From da9859ae52f7c90165cfe76dbe8b824d1505ab0b Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 24 六月 2025 13:36:42 +0800
Subject: [PATCH] Merge branch 'dev-2.2.0' of http://120.26.58.240:8888/r/JYBIndependentFront into dev-2.2.0

---
 src/views/Home/Home.vue |   43 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue
index 29afe92..0e23a33 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';
@@ -157,6 +163,15 @@
     extraProps: {
       hide: (row: API.GetInsurancePageOutput) =>
         row.status === InsurancePolicyStatusEnum.WaitEffect,
+    },
+  },
+  {
+    data: {
+      enCode: 'standarEndoBtn',
+      name: '鐢宠閫�淇�',
+    },
+    emits: {
+      onClick: (role) => handleStandarEndo(role),
     },
   },
 ]).filter(Boolean);
@@ -403,6 +418,13 @@
   });
 }
 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: {
@@ -411,7 +433,22 @@
     query: {
       insurerName: row.insurerName ?? '',
       insureBillNo: row.insureBillNo ?? '',
+      effectEndTime: row.effectEndTime ?? '',
     },
   });
 }
+
+async function handleStandarEndo(row: API.GetInsurancePageOutput) {
+  try {
+    await Message.deleteMessage('鏄惁鐢宠閫�淇�?');
+    let params = {
+      id: row.id,
+    };
+    // let res = await userServices.deleteRole(params);
+    // if (res) {
+    //   Message.successMessage('鎿嶄綔鎴愬姛');
+    //   getList(paginationState.pageIndex);
+    // }
+  } catch (error) {}
+}
 </script>

--
Gitblit v1.9.1