| | |
| | | WaitEffect = 10, |
| | | /**已生效 */ |
| | | Effecting = 20, |
| | | /**部分生效 */ |
| | | PartEffecting = 21, |
| | | /**已过期 */ |
| | | OutTimeEffect = 30, |
| | | } |
| | |
| | | export const InsurancePolicyStatusEnumText = { |
| | | [InsurancePolicyStatusEnum.WaitEffect]: '未生效', |
| | | [InsurancePolicyStatusEnum.Effecting]: '已生效', |
| | | [InsurancePolicyStatusEnum.PartEffecting]: '部分生效', |
| | | [InsurancePolicyStatusEnum.OutTimeEffect]: '已过期', |
| | | }; |
| | | |
| | |
| | | amount?: number; |
| | | /** 投保人数 */ |
| | | insureCount?: number; |
| | | /** 投保生效人数 */ |
| | | insureEffectingCount?: number; |
| | | /** 理赔数量 */ |
| | | claimCount?: number; |
| | | /** 投保机构 */ |
| | |
| | | /** 创建日期 */ |
| | | creationTime?: string; |
| | | status?: InsurancePolicyPayStatusEnum; |
| | | /** 投保单号 */ |
| | | proposalNo?: string; |
| | | /** 保单号 */ |
| | | policyNo?: string; |
| | | /** 电子保单链接 */ |
| | |
| | | |
| | | type InsurancePolicyPayStatusEnum = 0 | 1 | 2 | -1; |
| | | |
| | | type InsurancePolicyStatusEnum = 10 | 20 | 30; |
| | | type InsurancePolicyStatusEnum = 10 | 20 | 21 | 30; |
| | | |
| | | interface InsureBatchBillDetailDto { |
| | | /** 批单Id */ |
| | |
| | | onClick: (role) => handleUploadStampFile(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetInsurancePageOutput) => |
| | | row.status !== InsurancePolicyStatusEnum.WaitEffect, |
| | | hide: (row: API.GetInsurancePageOutput) => { |
| | | if (row.productOnline) { |
| | | return ( |
| | | row.auditStatus !== InsurancePolicyAuditStatusEnum.WaitAdd && |
| | | row.auditStatus !== InsurancePolicyAuditStatusEnum.WaitAudit |
| | | ); |
| | | } else { |
| | | return row.status !== InsurancePolicyStatusEnum.WaitEffect; |
| | | } |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | |
| | | url: response.url, |
| | | }); |
| | | if (res?.length > 0) { |
| | | await Message.tipMessage('存在错误数据,是否导出?'); |
| | | XLSXUtils.exportToXLSX({ |
| | | workbookDataList: res, |
| | | fileName: '错误人员名单', |
| | | workbookHeaderMap: { |
| | | name: '雇员姓名', |
| | | sex: '性别', |
| | | certType: '证件类型', |
| | | certNo: '证件号码', |
| | | jobName: '雇员工种', |
| | | useEmploer: '用工单位', |
| | | address: '用工地点', |
| | | note: '备注', |
| | | }, |
| | | }); |
| | | try { |
| | | await Message.tipMessage('存在错误数据,是否导出?'); |
| | | XLSXUtils.exportToXLSX({ |
| | | workbookDataList: res, |
| | | fileName: '错误人员名单', |
| | | workbookHeaderMap: { |
| | | name: '雇员姓名', |
| | | sex: '性别', |
| | | certType: '证件类型', |
| | | certNo: '证件号码', |
| | | jobName: '雇员工种', |
| | | useEmploer: '用工单位', |
| | | address: '用工地点', |
| | | note: '备注', |
| | | }, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | queryClient.invalidateQueries({ |
| | | queryKey: ['insuranceOrderServices/getInsuranceStaffList'], |