wupengfei
2025-04-01 4923681d933b455972166552dfb7538cd18f5808
fix: bug
3个文件已修改
13 ■■■■■ 已修改文件
src/views/Home/BatchChange.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/Home.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/InsureOrderInfoView.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/BatchChange.vue
@@ -298,7 +298,10 @@
      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);
src/views/Home/Home.vue
@@ -404,8 +404,8 @@
}
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;
src/views/Home/components/InsureOrderInfoView.vue
@@ -398,8 +398,8 @@
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;