From cb17e94ad8c0756803888014852b3a126aa8210a Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 01 七月 2025 17:31:02 +0800 Subject: [PATCH] fix: 江佑保系统健壮性修复 --- src/views/Home/Home.vue | 31 +++++++++++++++++++++++++------ 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue index 1ef5d59..031a9e2 100644 --- a/src/views/Home/Home.vue +++ b/src/views/Home/Home.vue @@ -63,7 +63,7 @@ <el-button @click="handleDownload()" type="primary" style="margin-right: 10px" link >妯℃澘涓嬭浇</el-button > - <el-button @click="handleUpload()" type="primary" style="margin-right: 10px" + <el-button @click="handleOpenInstructions()" type="primary" style="margin-right: 10px" >瀵煎叆鎶曚繚浜哄憳</el-button > <!-- <el-button @@ -111,7 +111,7 @@ </AppContainer> <UploadInsurePersonDialog v-bind="dialogProps" /> <UploadStampFileDialog v-bind="dialogStampFileProps" /> - <InsureInstructionsDialog v-bind="dialogInstructionsProps" /> + <InsureInstructionsDialog v-bind="dialogInstructionsProps" @onConfirm="handleUpload" /> </LoadingLayout> </template> @@ -137,7 +137,14 @@ import { columns } from './constants'; import UploadInsurePersonDialog from './components/UploadInsurePersonDialog.vue'; import UploadStampFileDialog from './components/UploadStampFileDialog.vue'; -import { format, downloadFile, setOSSLink, toThousand, convertApi2FormUrl } from '@/utils'; +import { + format, + downloadFile, + setOSSLink, + toThousand, + convertApi2FormUrl, + convertFormUrl2Api, +} from '@/utils'; import { ModelValueType } from 'element-plus'; import { InsuranceOrderTempPath, @@ -155,6 +162,7 @@ import dayjs from 'dayjs'; import _ from 'lodash'; import InsureInstructionsDialog from './components/InsureInstructionsDialog.vue'; +// import { Recorder } from '@/utils/record'; defineOptions({ name: 'Home', @@ -193,7 +201,6 @@ }, extraProps: { hide: (row: API.GetInsurancePageOutput) => - row.auditStatus !== InsurancePolicyAuditStatusEnum.Pass || row.status !== InsurancePolicyStatusEnum.WaitEffect, }, }, @@ -263,12 +270,22 @@ }; const state = reactive({ ...BaseState }); +// const recorder = ref(new Recorder()); onMounted(async () => { await getList(); state.loading = false; - handleOpenInstructions(); + // handleOpenInstructions(); + + // setTimeout(() => { + // // recorder.value.init(); + // recorder.value.replaySession('9cb24e5a-0423-4dcd-abd5-fa7a4117cadc'); + // }, 3000); }); + +// onUnmounted(() => { +// recorder.value.stopRecordingAndSave(); +// }); const { getDataSource: getList, @@ -340,6 +357,7 @@ url: [] as UploadUserFile[], productIdNumber: '', productSchemeIdNumber: '', + effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'), }, closeAfterConfirm: false, }); @@ -371,6 +389,7 @@ url: editForm.url?.[0]?.path, productIdNumber: editForm.productIdNumber, productSchemeIdNumber: editForm.productSchemeIdNumber, + effectStartTime: editForm.effectStartTime, }; let res = await insuranceOrderServices.importInsStaffToList(params); if (res.length > 0) { @@ -489,7 +508,7 @@ try { let params: API.UploadInsuranceStampFilesInput = { insurancePolicyId: stampFileForm.id, - listFiles: stampFileForm.url?.map((x) => x.path) ?? [], + listFiles: convertFormUrl2Api(stampFileForm.url), }; let res = await insuranceOrderServices.uploadInsuranceStampFiles(params); if (res) { -- Gitblit v1.9.1