From 65fdfc6dd82f0bcf6c6826fe1ab645b309f6045c Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 19:37:06 +0800
Subject: [PATCH] fix: bug
---
src/views/Home/Home.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue
index 3af683d..748ed15 100644
--- a/src/views/Home/Home.vue
+++ b/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,
});
}
--
Gitblit v1.9.1