|  |  | 
 |  |  |       insurancePolicyId: id, | 
 |  |  |       effectTime: state.form.time, | 
 |  |  |       addInsStaffList: _addInsStaffList.filter((x) => x.changeFlag.includes('增加')), | 
 |  |  |       updateInsStaffList: _addInsStaffList.filter((x) => x.changeFlag.includes('替换')), | 
 |  |  |       updateInsStaffList: _.uniqBy( | 
 |  |  |         _addInsStaffList.filter((x) => x.changeFlag.includes('替换')), | 
 |  |  |         'orginIdNumber' | 
 |  |  |       ), | 
 |  |  |       delInsStaffList: _addInsStaffList.filter((x) => x.changeFlag.includes('删除')), | 
 |  |  |     }; | 
 |  |  |     let res = await insureBatchBillServices.addOrUpdateInsureBatchBill(params); | 
 
 |  |  | 
 |  |  | } | 
 |  |  | function handleBatch(row: API.GetInsurancePageOutput) { | 
 |  |  |   if ( | 
 |  |  |     dayjs(row.effectEndTime).isAfter(dayjs()) || | 
 |  |  |     dayjs(row.effectEndTime).isBefore(dayjs(), 'day') | 
 |  |  |     dayjs(row.effectEndTime).isBefore(dayjs()) || | 
 |  |  |     dayjs(row.effectEndTime).isSame(dayjs(), 'day') | 
 |  |  |   ) { | 
 |  |  |     Message.errorMessage('保险今天到期,无法批改'); | 
 |  |  |     return; | 
 
 |  |  | 
 |  |  |  | 
 |  |  | function handleBatchChange() { | 
 |  |  |   if ( | 
 |  |  |     dayjs(detail.value?.effectEndTime).isAfter(dayjs()) || | 
 |  |  |     dayjs(detail.value?.effectEndTime).isBefore(dayjs(), 'day') | 
 |  |  |     dayjs(detail.value?.effectEndTime).isBefore(dayjs()) || | 
 |  |  |     dayjs(detail.value?.effectEndTime).isSame(dayjs(), 'day') | 
 |  |  |   ) { | 
 |  |  |     Message.errorMessage('保险今天到期,无法批改'); | 
 |  |  |     return; |