From 8c1c96a03da69b980a8822a02603123d78d8b4e1 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 30 六月 2025 21:28:47 +0800 Subject: [PATCH] feat: v2.2 --- src/views/Home/Home.vue | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue index dba96ee..1ef5d59 100644 --- a/src/views/Home/Home.vue +++ b/src/views/Home/Home.vue @@ -53,6 +53,13 @@ </QueryFilterItem> </template> <template #btn> + <el-button + @click="handleDownloadOccupationType()" + type="primary" + style="margin-right: 10px" + link + >鑱屼笟绫诲瀷瀵圭収琛�</el-button + > <el-button @click="handleDownload()" type="primary" style="margin-right: 10px" link >妯℃澘涓嬭浇</el-button > @@ -87,7 +94,7 @@ class="box-item" effect="dark" :content="row.auditRemark" - placement="top-start" + placement="top" v-if="row.auditStatus === InsurancePolicyAuditStatusEnum.Reject && row.auditRemark" popper-class="max-width-popper" > @@ -104,6 +111,7 @@ </AppContainer> <UploadInsurePersonDialog v-bind="dialogProps" /> <UploadStampFileDialog v-bind="dialogStampFileProps" /> + <InsureInstructionsDialog v-bind="dialogInstructionsProps" /> </LoadingLayout> </template> @@ -122,6 +130,7 @@ SearchInput, FieldRadio, XLSXUtils, + useDialog, } from '@bole-core/components'; import * as insuranceOrderServices from '@/services/api/InsuranceOrder'; import { Message, OrderInputType, downloadFileByUrl } from '@bole-core/core'; @@ -141,9 +150,11 @@ InsurancePolicyProductIdNumberEnum, InsurancePolicyListPayStatusEnum, InsurancePolicyListPayStatusEnumText, + InsuranceOccupationTypeTempPath, } from '@/constants'; import dayjs from 'dayjs'; import _ from 'lodash'; +import InsureInstructionsDialog from './components/InsureInstructionsDialog.vue'; defineOptions({ name: 'Home', @@ -256,6 +267,7 @@ onMounted(async () => { await getList(); state.loading = false; + handleOpenInstructions(); }); const { @@ -383,6 +395,12 @@ } catch (error) {} } +const { dialogProps: dialogInstructionsProps, dialogState: dialogInstructionsState } = useDialog(); + +function handleOpenInstructions() { + dialogInstructionsState.dialogVisible = true; +} + function handleUpload() { handleAdd({ serialNum: `${dayjs().format('YYYYMMDD')}${_.random(0, 9999).toString().padStart(4, '0')}`, @@ -426,6 +444,10 @@ } catch (error) {} } +function handleDownloadOccupationType() { + downloadFileByUrl(InsuranceOccupationTypeTempPath, '鑱屼笟绫诲瀷瀵圭収琛�'); +} + function handleDownload() { downloadFileByUrl(InsuranceOrderTempPath, '淇濆崟瀵煎叆妯℃澘'); } -- Gitblit v1.9.1