From 7134746b236dbdf638e3d8bbbf9e82cc03ea3b65 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 26 六月 2025 13:02:16 +0800
Subject: [PATCH] feat: v2.2

---
 src/views/Home/Home.vue |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue
index d31334e..1dc4f3a 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';
@@ -159,6 +165,15 @@
         row.status === InsurancePolicyStatusEnum.WaitEffect,
     },
   },
+  // {
+  //   data: {
+  //     enCode: 'standarEndoBtn',
+  //     name: '鐢宠閫�淇�',
+  //   },
+  //   emits: {
+  //     onClick: (role) => handleStandarEndo(role),
+  //   },
+  // },
 ]).filter(Boolean);
 
 const BaseState = {
@@ -237,6 +252,7 @@
   defaultFormParams: {
     serialNum: '',
     url: [] as UploadUserFile[],
+    productIdNumber: '',
   },
   closeAfterConfirm: false,
 });
@@ -266,6 +282,7 @@
     let params: API.APIimportInsStaffToListParams = {
       serialNum: editForm.serialNum,
       url: editForm.url?.[0]?.path,
+      productIdNumber: editForm.productIdNumber,
     };
     let res = await insuranceOrderServices.importInsStaffToList(params);
     if (res.length > 0) {
@@ -404,8 +421,8 @@
 }
 function handleBatch(row: API.GetInsurancePageOutput) {
   if (
-    dayjs(row.effectEndTime).isAfter(dayjs()) ||
-    dayjs(row.effectEndTime).isBefore(dayjs(), 'day')
+    dayjs(row.effectEndTime).isBefore(dayjs()) ||
+    dayjs(row.effectEndTime).isSame(dayjs(), 'day')
   ) {
     Message.errorMessage('淇濋櫓浠婂ぉ鍒版湡锛屾棤娉曟壒鏀�');
     return;
@@ -422,4 +439,18 @@
     },
   });
 }
+
+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