From 8a82ce3065d6169480afb3403a4854fb64078c46 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 23 十月 2025 22:20:24 +0800
Subject: [PATCH] Merge branch 'dev-2.2.3' of http://120.26.58.240:8888/r/JYBIndependentFront into dev-2.2.3

---
 src/views/Home/components/InsureOrderInfoView.vue |   54 +++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/src/views/Home/components/InsureOrderInfoView.vue b/src/views/Home/components/InsureOrderInfoView.vue
index 0bcf47a..bd96540 100644
--- a/src/views/Home/components/InsureOrderInfoView.vue
+++ b/src/views/Home/components/InsureOrderInfoView.vue
@@ -91,10 +91,7 @@
         </ProForm>
       </ChunkCell>
       <ChunkCell title="浜哄憳淇℃伅" class="full-table-chunk">
-        <template
-          #titleRight
-          v-if="detail.status !== InsurancePolicyStatusEnum.WaitEffect && !detail.productOnline"
-        >
+        <template #titleRight v-if="detail.status !== InsurancePolicyStatusEnum.WaitEffect">
           <el-button type="primary" @click="handleBatchChange">鎵规敼鐢宠</el-button>
         </template>
         <ProTableQueryFilterBar @on-reset="reset">
@@ -123,6 +120,21 @@
               <el-button @click="handleExport(InsuranceDetailStatusEnum.Fail)" type="primary"
                 >瀵煎嚭閿欒浜哄憳</el-button
               >
+              <template v-if="detail.auditStatus === InsurancePolicyAuditStatusEnum.WaitAdd">
+                <BlFileUpload
+                  :limitFileSize="10"
+                  accept="xls,xlsx"
+                  :showTip="false"
+                  :show-file-list="false"
+                  :on-success="handleUploadSuccess"
+                  style="margin-right: 10px; margin-left: 10px"
+                >
+                  <template #default>
+                    <el-button icon="Plus" type="primary">瀵煎叆</el-button>
+                  </template>
+                </BlFileUpload>
+                <el-button @click="handleClear()" type="primary">娓呯┖鏁版嵁</el-button>
+              </template>
               <template v-if="detail.status !== InsurancePolicyStatusEnum.WaitEffect">
                 <el-button @click="handleGoStampFiles(id)" type="primary">涓嬭浇淇濆崟</el-button>
                 <el-button @click="handleGoDownloadInvoice(id)" type="primary">涓嬭浇鍙戠エ</el-button>
@@ -452,21 +464,23 @@
       url: response.url,
     });
     if (res?.length > 0) {
-      await Message.tipMessage('瀛樺湪閿欒鏁版嵁锛屾槸鍚﹀鍑猴紵');
-      XLSXUtils.exportToXLSX({
-        workbookDataList: res,
-        fileName: '閿欒浜哄憳鍚嶅崟',
-        workbookHeaderMap: {
-          name: '闆囧憳濮撳悕',
-          sex: '鎬у埆',
-          certType: '璇佷欢绫诲瀷',
-          certNo: '璇佷欢鍙风爜',
-          jobName: '闆囧憳宸ョ',
-          useEmploer: '鐢ㄥ伐鍗曚綅',
-          address: '鐢ㄥ伐鍦扮偣',
-          note: '澶囨敞',
-        },
-      });
+      try {
+        await Message.tipMessage('瀛樺湪閿欒鏁版嵁锛屾槸鍚﹀鍑猴紵');
+        XLSXUtils.exportToXLSX({
+          workbookDataList: res,
+          fileName: '閿欒浜哄憳鍚嶅崟',
+          workbookHeaderMap: {
+            name: '闆囧憳濮撳悕',
+            sex: '鎬у埆',
+            certType: '璇佷欢绫诲瀷',
+            certNo: '璇佷欢鍙风爜',
+            jobName: '闆囧憳宸ョ',
+            useEmploer: '鐢ㄥ伐鍗曚綅',
+            address: '鐢ㄥ伐鍦扮偣',
+            note: '澶囨敞',
+          },
+        });
+      } catch (error) {}
     }
     queryClient.invalidateQueries({
       queryKey: ['insuranceOrderServices/getInsuranceStaffList'],
@@ -596,6 +610,7 @@
     productSchemeIdNumber: getInsureProductSchemeByCode(detail.value.productSchemeCode)?.idNumber,
     effectStartTime: detail.value.effectStartTime,
     effectEndTime: detail.value.effectEndTime,
+    isOnLineInsurance: detail.value.productOnline ?? false,
   });
 }
 
@@ -613,6 +628,7 @@
     productSchemeIdNumber: '',
     effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'),
     effectEndTime: '',
+    isOnLineInsurance: false,
   },
   closeAfterConfirm: false,
 });

--
Gitblit v1.9.1