From c6eb1d663f6d91cf5d5fd5c95cc15e5b4f33c064 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 26 六月 2025 14:28:45 +0800
Subject: [PATCH] feat: v2.2

---
 src/views/Home/components/InsureOrderInfoView.vue |   63 ++++++++++++++++++++++++-------
 1 files changed, 48 insertions(+), 15 deletions(-)

diff --git a/src/views/Home/components/InsureOrderInfoView.vue b/src/views/Home/components/InsureOrderInfoView.vue
index 6e8a5db..b05a03e 100644
--- a/src/views/Home/components/InsureOrderInfoView.vue
+++ b/src/views/Home/components/InsureOrderInfoView.vue
@@ -1,6 +1,6 @@
 <template>
   <LoadingLayout :loading="state.loading">
-    <AppScrollContainer>
+    <AppContainer>
       <ChunkCell title="">
         <ProForm :model="detail" ref="formRef" label-width="120px" :is-read="true">
           <ProFormCol>
@@ -65,7 +65,7 @@
           </ProFormCol>
         </ProForm>
       </ChunkCell>
-      <ChunkCell title="浜哄憳淇℃伅">
+      <ChunkCell title="浜哄憳淇℃伅" class="full-table-chunk">
         <template #titleRight v-if="detail.status !== InsurancePolicyStatusEnum.WaitEffect">
           <el-button type="primary" @click="handleBatchChange">鎵规敼鐢宠</el-button>
         </template>
@@ -85,6 +85,7 @@
             <template v-if="detail.status === InsurancePolicyStatusEnum.WaitEffect">
               <el-button @click="handleTemplateDownload()" link type="primary">妯℃澘涓嬭浇</el-button>
               <BlFileUpload
+                v-if="detail.auditStatus !== InsurancePolicyAuditStatusEnum.Pass"
                 :limitFileSize="10"
                 accept="xls,xlsx"
                 :showTip="false"
@@ -104,21 +105,19 @@
             </template>
           </template>
         </ProTableQueryFilterBar>
-        <ProTableV2
-          v-bind="proTableProps"
-          :columns="column"
-          :operationBtns="operationBtns"
-          :auto-height="false"
-          ref="proTable"
-          :tableProps="{
-            maxHeight: '400px',
-          }"
-        >
-        </ProTableV2>
+        <div class="full-table-chunk-table">
+          <ProTableV2
+            v-bind="proTableProps"
+            :columns="column"
+            :operationBtns="operationBtns"
+            ref="proTable"
+          >
+          </ProTableV2>
+        </div>
       </ChunkCell>
       <ChangePersonInfoDialog v-bind="dialogProps"></ChangePersonInfoDialog>
       <InsureClaimDetailDialog v-bind="dialogInsureClaimProps"></InsureClaimDetailDialog>
-    </AppScrollContainer>
+    </AppContainer>
   </LoadingLayout>
 </template>
 
@@ -151,6 +150,7 @@
   insuranceTypeText,
   InsurancePolicyStatusEnum,
   InsurancePolicyStatusEnumText,
+  InsurancePolicyAuditStatusEnum,
 } from '@/constants';
 import ChangePersonInfoDialog from './ChangePersonInfoDialog.vue';
 import InsureClaimDetailDialog from './InsureClaimDetailDialog.vue';
@@ -159,6 +159,7 @@
 import { useQuery, useQueryClient } from '@tanstack/vue-query';
 import { downloadFile, downloadFileByUrl, Message, OrderInputType } from '@bole-core/core';
 import { setOSSLink } from '@/utils';
+import dayjs from 'dayjs';
 
 defineOptions({
   name: 'InsureOrderInfoView',
@@ -240,7 +241,8 @@
     },
     extraProps: {
       hide: (row: API.GetInsuranceStaffPageTemplate) =>
-        detail.value?.status !== InsurancePolicyStatusEnum.WaitEffect,
+        detail.value?.status !== InsurancePolicyStatusEnum.WaitEffect ||
+        detail.value?.auditStatus === InsurancePolicyAuditStatusEnum.Pass,
     },
   },
   {
@@ -396,6 +398,13 @@
 }
 
 function handleBatchChange() {
+  if (
+    dayjs(detail.value?.effectEndTime).isBefore(dayjs()) ||
+    dayjs(detail.value?.effectEndTime).isSame(dayjs(), 'day')
+  ) {
+    Message.errorMessage('淇濋櫓浠婂ぉ鍒版湡锛屾棤娉曟壒鏀�');
+    return;
+  }
   router.push({
     name: 'BatchChange',
     params: {
@@ -404,6 +413,7 @@
     query: {
       insurerName: detail.value?.insurerName ?? '',
       insureBillNo: detail.value?.insureBillNo ?? '',
+      effectEndTime: detail.value?.effectEndTime ?? '',
     },
   });
 }
@@ -474,4 +484,27 @@
 
 <style lang="scss" scoped>
 @use '@/style/common.scss' as *;
+
+.full-table-chunk {
+  display: flex;
+  min-height: 0;
+  flex: 1;
+  flex-direction: column;
+
+  :deep() {
+    .chunk-cell-content {
+      display: flex;
+      flex-direction: column;
+      flex: 1;
+      min-height: 0;
+    }
+  }
+
+  .full-table-chunk-table {
+    display: flex;
+    flex-direction: column;
+    flex: 1;
+    min-height: 0;
+  }
+}
 </style>

--
Gitblit v1.9.1