From d82fea569f9bb487364d667cdf3af626cf06f20e Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 02 四月 2025 17:24:18 +0800
Subject: [PATCH] fix: bug

---
 src/views/Home/components/InsureClaimDetailDialog.vue |   47 ++++++++++++++++++++++++++++++-----------------
 1 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/src/views/Home/components/InsureClaimDetailDialog.vue b/src/views/Home/components/InsureClaimDetailDialog.vue
index efa7ceb..a040b92 100644
--- a/src/views/Home/components/InsureClaimDetailDialog.vue
+++ b/src/views/Home/components/InsureClaimDetailDialog.vue
@@ -1,14 +1,21 @@
 <template>
   <ProDialog title="鐞嗚禂璇︽儏" v-model="innerVisible" width="1200px" destroy-on-close>
     <ProDialogTableWrapper :height="400">
-      <ProTableV2
-        :table-data="proTableProps.tableData"
-        :columns="column"
-        :operation-btns="operationBtns"
-      >
-        <template #changeType="{ row }"> {{ BatchChangeTypeEnumText[row.changeType] }}</template>
+      <ProTableV2 v-bind="proTableProps" :columns="column" :operation-btns="operationBtns">
+        <template #claimResult="{ row }">
+          {{ InsuranceClaimResultEnumText[row.claimResult] }}
+        </template>
+        <template #reportedTime="{ row }">
+          {{ dayjs(row.reportedTime).format('YYYY-MM-DD') }}
+        </template>
       </ProTableV2>
     </ProDialogTableWrapper>
+    <template #footer>
+      <span class="dialog-footer">
+        <el-button @click="emit('onCancel')">鍙� 娑�</el-button>
+        <el-button type="primary" @click="emit('onCancel')">纭� 瀹�</el-button>
+      </span>
+    </template>
   </ProDialog>
 </template>
 
@@ -20,9 +27,9 @@
   useTable,
   defineOperationBtns,
 } from '@bole-core/components';
-import { OrderInputType } from '@bole-core/core';
 import { paginateList } from '@/utils';
-import { BatchChangeTypeEnumText } from '@/constants';
+import { InsuranceClaimResultEnumText } from '@/constants';
+import dayjs from 'dayjs';
 
 defineOptions({
   name: 'InsureClaimDetailDialog',
@@ -32,7 +39,8 @@
   modelValue: boolean;
   form?: {
     id: string;
-    staffList: API.InsureBatchBillDetailDto[];
+    routeId: string;
+    staffList: API.InsuranceClaimDetailOutput[];
   };
 };
 
@@ -58,22 +66,22 @@
   },
   {
     id: '3',
-    enCode: 'idNumber',
+    enCode: 'reportedTime',
     name: '鎶ユ鏃堕棿',
   },
   {
     id: '4',
-    enCode: 'idNumber',
+    enCode: 'contactNumber',
     name: '鑱旂郴鐢佃瘽',
   },
   {
     id: '5',
-    enCode: 'idNumber',
+    enCode: 'accidentType',
     name: '浜嬫晠绫诲瀷',
   },
   {
     id: '6',
-    enCode: 'idNumber',
+    enCode: 'claimResult',
     name: '鐞嗚禂缁撴灉',
   },
 ];
@@ -120,7 +128,7 @@
   extraParamState,
   reset,
 } = useTable(
-  async ({ pageIndex, pageSize }, extraParamState) => {
+  async ({ pageIndex, pageSize }) => {
     try {
       return Promise.resolve({
         pageModel: {
@@ -133,9 +141,11 @@
     } catch (error) {}
   },
   {
-    defaultExtraParams: {
-      keyWord: '',
-      orderInput: [{ property: 'id', order: OrderInputType.Asc }],
+    columnsRenderProps: {
+      reportedTime: {
+        type: 'date',
+        format: 'YYYY-MM-DD',
+      },
     },
   }
 );
@@ -148,8 +158,11 @@
     },
     query: {
       fromRoute: 'InsuranceOrderDetail',
+      insuranceClaimId: row.id,
+      routeId: props.form.routeId,
     },
   });
+  emit('onCancel');
 }
 </script>
 

--
Gitblit v1.9.1