From 634069895e7165db7e2d04dca5cd61dfd1e1f5f9 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 23 六月 2025 13:49:17 +0800 Subject: [PATCH] feat: 新增功能 --- src/views/Home/Home.vue | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue index fe04a60..e566cc1 100644 --- a/src/views/Home/Home.vue +++ b/src/views/Home/Home.vue @@ -47,11 +47,16 @@ <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 + >瀵煎叆鎶曚繚浜哄憳</el-button > - + <!-- <el-button + v-if="AppType === 'jx'" + @click="handleUpload()" + type="primary" + style="margin-right: 10px" + >澶ф壒閲忔暟鎹鍏�</el-button + > --> <el-button @click="getInsurancePageExport()" type="primary" link>瀵煎嚭淇濆崟鍒楄〃</el-button> <el-button @click="getInsuranceStaffPageExport()" type="primary" link >瀵煎嚭鍦ㄤ繚浜哄憳</el-button @@ -103,6 +108,7 @@ insuranceTypeText, InsurancePolicyStatusEnumText, InsurancePolicyStatusEnum, + AppType, } from '@/constants'; import dayjs from 'dayjs'; import _ from 'lodash'; @@ -403,11 +409,23 @@ }); } function handleBatch(row: API.GetInsurancePageOutput) { + if ( + dayjs(row.effectEndTime).isBefore(dayjs()) || + dayjs(row.effectEndTime).isSame(dayjs(), 'day') + ) { + Message.errorMessage('淇濋櫓浠婂ぉ鍒版湡锛屾棤娉曟壒鏀�'); + return; + } router.push({ name: 'BatchChange', params: { id: row.id, }, + query: { + insurerName: row.insurerName ?? '', + insureBillNo: row.insureBillNo ?? '', + effectEndTime: row.effectEndTime ?? '', + }, }); } </script> -- Gitblit v1.9.1