zhengyiming
6 天以前 34e523d5ed7f25a0bc20532577ccde90386352aa
src/views/Home/Home.vue
@@ -197,8 +197,7 @@
      onClick: (role) => handleBatch(role),
    },
    extraProps: {
      hide: (row: API.GetInsurancePageOutput) =>
        row.productOnline || row.status !== InsurancePolicyStatusEnum.Effecting,
      hide: (row: API.GetInsurancePageOutput) => row.status !== InsurancePolicyStatusEnum.Effecting,
    },
  },
  {
@@ -402,6 +401,7 @@
    productSchemeIdNumber: '',
    effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'),
    effectEndTime: '',
    isOnLineInsurance: false,
  },
  closeAfterConfirm: false,
});
@@ -516,7 +516,9 @@
}
const { dialogProps: dialogInstructionsProps, dialogState: dialogInstructionsState } = useDialog({
  onConfirm: handleUpload,
  onConfirm: () => {
    return handleUpload(true);
  },
});
function handleOpenInstructions() {
@@ -528,10 +530,11 @@
  }
}
async function handleUpload() {
async function handleUpload(isOnLineInsurance = false) {
  handleAdd({
    serialNum: `${dayjs().format('YYYYMMDD')}${_.random(0, 9999).toString().padStart(4, '0')}`,
    url: [] as UploadUserFile[],
    isOnLineInsurance,
  });
}