zhengyiming
14 小时以前 62287d09f9f5f1135163359fa18fd1fc4f8b2bc6
src/views/Home/Home.vue
@@ -377,8 +377,12 @@
    } else if (res === InsurancePolicyStatusEnum.OutTimeEffect) {
      await Message.tipMessage('该批次保单已失效,请修改批次号后重新导入');
    } else if (res === InsurancePolicyStatusEnum.WaitEffect) {
      await Message.tipMessage('存在相同的批次号,是否覆盖?');
      importInsStaffToList();
      if (isSjbAccount.value) {
        await Message.tipMessage('存在相同的批次号,请修改批次号后重新导入');
      } else {
        await Message.tipMessage('存在相同的批次号,是否覆盖?');
        importInsStaffToList();
      }
    } else {
      importInsStaffToList();
    }
@@ -396,6 +400,15 @@
    };
    let res = await insuranceOrderServices.importInsStaffToList(params, {
      timeout: 60 * 1000 * 10,
      customErrorHandler(error) {
        if (error?.response?.data?.error?.code === '10001') {
          Message.tipMessage(error.response.data?.error?.message, {
            showCancelButton: false,
          });
          return true;
        }
        return false;
      },
    });
    if (res) {
      // await Message.tipMessage('存在错误数据,是否导出?');
@@ -623,7 +636,12 @@
async function handleGoDownloadInvoice(row: API.GetInsurancePageOutput) {
  try {
    await insuranceOrderServices.getInvoiceId({ id: row.id });
    await insuranceOrderServices.getInvoiceId(
      { id: row.id },
      {
        timeout: 60 * 1000 * 30,
      }
    );
    router.push({
      name: 'InsureDownloadInvoice',
      params: {