4fb3fd42d84118df5b4508ac3cc37e480760373d..b51fa42a6e18b95a012706d995df7892d0ecf95e
2025-07-03 zhengyiming
fix: 江佑保系统健壮性修复
b51fa4 对比 | 目录
2025-07-03 zhengyiming
fix: 江佑保系统健壮性修复
0e17f6 对比 | 目录
2个文件已修改
68 ■■■■ 已修改文件
src/views/Home/Home.vue 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/InsureOrderInfoView.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/Home.vue
@@ -395,38 +395,40 @@
      timeout: 60 * 1000 * 10,
    });
    if (res) {
      // await Message.tipMessage('存在错误数据,是否导出?');
      try {
        if (res.errorList.length > 0) {
          await Message.tipMessage(
            `总投保人数${res.importAllCount}人,投保成功${res.successCount}人,投保失败${res.errorList.length}人是否导出投保失败人员清单?`,
            {
              confirmButtonText: '导出',
            }
          );
          XLSXUtils.exportToXLSX({
            workbookDataList: res.errorList,
            fileName: '错误人员名单',
            workbookHeaderMap: {
              name: '雇员姓名',
              sex: '性别',
              certType: '证件类型',
              certNo: '证件号码',
              jobName: '雇员工种',
              useEmploer: '用工单位',
              address: '用工地点',
              note: '备注',
            },
          });
        } else {
          await Message.tipMessage(
            `总投保人数${res.importAllCount}人,投保成功${res.successCount}人`,
            {
              showCancelButton: false,
            }
          );
        }
      } catch (error) {}
      dialogState.dialogVisible = false;
      getList(paginationState.pageIndex);
      // await Message.tipMessage('存在错误数据,是否导出?');
      if (res.errorList.length > 0) {
        await Message.tipMessage(
          `总投保人数${res.importAllCount}人,投保成功${res.successCount}人,投保失败${res.errorList.length}人是否导出投保失败人员清单?`,
          {
            confirmButtonText: '导出',
          }
        );
        XLSXUtils.exportToXLSX({
          workbookDataList: res.errorList,
          fileName: '错误人员名单',
          workbookHeaderMap: {
            name: '雇员姓名',
            sex: '性别',
            certType: '证件类型',
            certNo: '证件号码',
            jobName: '雇员工种',
            useEmploer: '用工单位',
            address: '用工地点',
            note: '备注',
          },
        });
      } else {
        await Message.tipMessage(
          `总投保人数${res.importAllCount}人,投保成功${res.successCount}人`,
          {
            showCancelButton: false,
          }
        );
      }
    }
  } catch (error) {}
}
src/views/Home/components/InsureOrderInfoView.vue
@@ -94,7 +94,10 @@
            <template v-if="detail.status === InsurancePolicyStatusEnum.WaitEffect">
              <el-button @click="handleTemplateDownload()" link type="primary">模板下载</el-button>
              <BlFileUpload
                v-if="detail.auditStatus !== InsurancePolicyAuditStatusEnum.Pass"
                v-if="
                  detail.auditStatus !== InsurancePolicyAuditStatusEnum.Pass &&
                  !detail.productOnline
                "
                :limitFileSize="10"
                accept="xls,xlsx"
                :showTip="false"
@@ -285,6 +288,7 @@
    },
    extraProps: {
      hide: (row: API.GetInsuranceStaffPageTemplate) =>
        detail.value?.productOnline ||
        detail.value?.status !== InsurancePolicyStatusEnum.WaitEffect ||
        detail.value?.auditStatus === InsurancePolicyAuditStatusEnum.Pass,
    },