From b51fa42a6e18b95a012706d995df7892d0ecf95e Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 03 七月 2025 18:59:24 +0800
Subject: [PATCH] fix: 江佑保系统健壮性修复

---
 src/views/Home/components/InsureOrderInfoView.vue |   70 +++++++++++++++++++++++++++++++++--
 1 files changed, 66 insertions(+), 4 deletions(-)

diff --git a/src/views/Home/components/InsureOrderInfoView.vue b/src/views/Home/components/InsureOrderInfoView.vue
index b05a03e..229edc5 100644
--- a/src/views/Home/components/InsureOrderInfoView.vue
+++ b/src/views/Home/components/InsureOrderInfoView.vue
@@ -6,7 +6,16 @@
           <ProFormCol>
             <ProFormColItem :span="8">
               <ProFormItemV2 label="淇濆崟鍙�:" prop="insureBillNo">
-                <ProFormText v-model.trim="detail.insureBillNo" />
+                <div class="pro-from-item-read-content-wrapper" v-if="!!detail.insureBillNo">
+                  {{ detail.insureBillNo }}
+                  <el-button
+                    type="primary"
+                    link
+                    @click="handleGoStampFiles"
+                    v-if="detail.productOnline && detail.anyPayComplete"
+                    >璇︽儏</el-button
+                  >
+                </div>
               </ProFormItemV2>
             </ProFormColItem>
             <ProFormColItem :span="8">
@@ -85,7 +94,10 @@
             <template v-if="detail.status === InsurancePolicyStatusEnum.WaitEffect">
               <el-button @click="handleTemplateDownload()" link type="primary">妯℃澘涓嬭浇</el-button>
               <BlFileUpload
-                v-if="detail.auditStatus !== InsurancePolicyAuditStatusEnum.Pass"
+                v-if="
+                  detail.auditStatus !== InsurancePolicyAuditStatusEnum.Pass &&
+                  !detail.productOnline
+                "
                 :limitFileSize="10"
                 accept="xls,xlsx"
                 :showTip="false"
@@ -97,11 +109,17 @@
                   <el-button icon="Plus" type="primary">瀵煎叆</el-button>
                 </template>
               </BlFileUpload>
+              <el-button @click="handleClear()" type="primary">瀵煎嚭鎶曚繚閿欒浜哄憳娓呭崟</el-button>
               <el-button @click="handleClear()" type="primary">娓呯┖鏁版嵁</el-button>
             </template>
             <template v-else>
               <el-button @click="handleDownloadPerson()" type="primary">涓嬭浇浜哄憳娓呭崟</el-button>
-              <el-button @click="handleDownloadOrder()" type="primary">涓嬭浇淇濆崟</el-button>
+              <template v-if="detail.productOnline">
+                <el-button v-if="detail.anyPayComplete" @click="handleGoStampFiles()" type="primary"
+                  >涓嬭浇淇濆崟</el-button
+                >
+              </template>
+              <el-button v-else @click="handleDownloadOrder()" type="primary">涓嬭浇淇濆崟</el-button>
             </template>
           </template>
         </ProTableQueryFilterBar>
@@ -151,6 +169,7 @@
   InsurancePolicyStatusEnum,
   InsurancePolicyStatusEnumText,
   InsurancePolicyAuditStatusEnum,
+  InsuranceDetailStatusEnumText,
 } from '@/constants';
 import ChangePersonInfoDialog from './ChangePersonInfoDialog.vue';
 import InsureClaimDetailDialog from './InsureClaimDetailDialog.vue';
@@ -195,6 +214,16 @@
     name: '闆囧憳宸ョ',
   },
   {
+    id: '51',
+    enCode: 'occupationType',
+    name: '鑱屼笟绫诲瀷',
+  },
+  {
+    id: '52',
+    enCode: 'occupationCode',
+    name: '鑱屼笟鐮佸��',
+  },
+  {
     id: '6',
     enCode: 'userEmploer',
     name: '鐢ㄥ伐鍗曚綅',
@@ -223,6 +252,24 @@
     width: 140,
   },
   {
+    id: '101',
+    enCode: 'payOrder',
+    name: '鎵规鍙�',
+    width: 140,
+  },
+  {
+    id: '102',
+    enCode: 'status',
+    name: '鎶曚繚鐘舵��',
+    width: 140,
+  },
+  {
+    id: '103',
+    enCode: 'auditRemark',
+    name: '澶囨敞',
+    width: 140,
+  },
+  {
     id: '11',
     enCode: 'claimCount',
     name: '鐞嗚禂',
@@ -241,6 +288,7 @@
     },
     extraProps: {
       hide: (row: API.GetInsuranceStaffPageTemplate) =>
+        detail.value?.productOnline ||
         detail.value?.status !== InsurancePolicyStatusEnum.WaitEffect ||
         detail.value?.auditStatus === InsurancePolicyAuditStatusEnum.Pass,
     },
@@ -322,7 +370,12 @@
       keyWord: '',
       orderInput: [{ property: 'id', order: OrderInputType.Asc }],
     },
-    columnsRenderProps: {},
+    columnsRenderProps: {
+      status: {
+        type: 'enum',
+        valueEnum: InsuranceDetailStatusEnumText,
+      },
+    },
   }
 );
 
@@ -397,6 +450,15 @@
   downloadFileByUrl(setOSSLink(detail.value?.insureBillUrl));
 }
 
+function handleGoStampFiles() {
+  router.push({
+    name: 'InsurancePolicyStampFiles',
+    params: {
+      id: id,
+    },
+  });
+}
+
 function handleBatchChange() {
   if (
     dayjs(detail.value?.effectEndTime).isBefore(dayjs()) ||

--
Gitblit v1.9.1