|  |  | 
 |  |  |               <el-button @click="handleExport(InsuranceDetailStatusEnum.Fail)" type="primary" | 
 |  |  |                 >导出错误人员</el-button | 
 |  |  |               > | 
 |  |  |               <template v-if="detail.auditStatus === InsurancePolicyAuditStatusEnum.WaitAdd"> | 
 |  |  |                 <BlFileUpload | 
 |  |  |                   :limitFileSize="10" | 
 |  |  |                   accept="xls,xlsx" | 
 |  |  |                   :showTip="false" | 
 |  |  |                   :show-file-list="false" | 
 |  |  |                   :on-success="handleUploadSuccess" | 
 |  |  |                   style="margin-right: 10px; margin-left: 10px" | 
 |  |  |                 > | 
 |  |  |                   <template #default> | 
 |  |  |                     <el-button icon="Plus" type="primary">导入</el-button> | 
 |  |  |                   </template> | 
 |  |  |                 </BlFileUpload> | 
 |  |  |                 <el-button @click="handleClear()" type="primary">清空数据</el-button> | 
 |  |  |               </template> | 
 |  |  |               <template v-if="detail.status !== InsurancePolicyStatusEnum.WaitEffect"> | 
 |  |  |                 <el-button @click="handleGoStampFiles(id)" type="primary">下载保单</el-button> | 
 |  |  |                 <el-button @click="handleGoDownloadInvoice(id)" type="primary">下载发票</el-button> | 
 |  |  | 
 |  |  |       onClick: (role) => handleChangeInfo(role), | 
 |  |  |     }, | 
 |  |  |     extraProps: { | 
 |  |  |       hide: (row: API.GetInsuranceStaffPageTemplate) => | 
 |  |  |         detail.value?.productOnline || | 
 |  |  |         detail.value?.status !== InsurancePolicyStatusEnum.WaitEffect || | 
 |  |  |         detail.value?.auditStatus === InsurancePolicyAuditStatusEnum.Pass, | 
 |  |  |       hide: (row: API.GetInsuranceStaffPageTemplate) => { | 
 |  |  |         if (detail.value?.productOnline) { | 
 |  |  |           return detail.value?.auditStatus !== InsurancePolicyAuditStatusEnum.WaitAdd; | 
 |  |  |         } else { | 
 |  |  |           return ( | 
 |  |  |             detail.value?.status !== InsurancePolicyStatusEnum.WaitEffect || | 
 |  |  |             detail.value?.auditStatus === InsurancePolicyAuditStatusEnum.Pass | 
 |  |  |           ); | 
 |  |  |         } | 
 |  |  |       }, | 
 |  |  |     }, | 
 |  |  |   }, | 
 |  |  |   { | 
 |  |  | 
 |  |  |       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'], | 
 |  |  | 
 |  |  |     productIdNumber: detail.value.productIdNumber, | 
 |  |  |     productSchemeIdNumber: getInsureProductSchemeByCode(detail.value.productSchemeCode)?.idNumber, | 
 |  |  |     effectStartTime: detail.value.effectStartTime, | 
 |  |  |     effectEndTime: detail.value.effectEndTime, | 
 |  |  |   }); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | 
 |  |  |     productIdNumber: '', | 
 |  |  |     productSchemeIdNumber: '', | 
 |  |  |     effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'), | 
 |  |  |     effectEndTime: '', | 
 |  |  |   }, | 
 |  |  |   closeAfterConfirm: false, | 
 |  |  | }); |