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/BatchChangeRecordDetailDialog.vue |   52 +++++++++++++++++++---------------------------------
 1 files changed, 19 insertions(+), 33 deletions(-)

diff --git a/src/views/Home/components/BatchChangeRecordDetailDialog.vue b/src/views/Home/components/BatchChangeRecordDetailDialog.vue
index 486371e..685db9b 100644
--- a/src/views/Home/components/BatchChangeRecordDetailDialog.vue
+++ b/src/views/Home/components/BatchChangeRecordDetailDialog.vue
@@ -1,11 +1,8 @@
 <template>
   <ProDialog title="鎵规敼淇℃伅" v-model="innerVisible" width="1200px" destroy-on-close>
     <ProDialogTableWrapper :height="400">
-      <ProTableV2
-        :table-data="proTableProps.tableData"
-        :columns="column"
-        :show-operation-column="false"
-      >
+      <ProTableV2 v-bind="proTableProps" :columns="column" :show-operation-column="false">
+        <template #changeType="{ row }"> {{ BatchChangeTypeEnumText[row.changeType] }}</template>
       </ProTableV2>
     </ProDialogTableWrapper>
   </ProDialog>
@@ -13,8 +10,9 @@
 
 <script setup lang="ts">
 import { ProDialog, ProTableV2, ProDialogTableWrapper, useTable } from '@bole-core/components';
-import * as insuranceOrderServices from '@/services/api/InsuranceOrder';
 import { OrderInputType } from '@bole-core/core';
+import { paginateList } from '@/utils';
+import { BatchChangeTypeEnumText } from '@/constants';
 
 defineOptions({
   name: 'BatchChangeRecordDetailDialog',
@@ -24,6 +22,7 @@
   modelValue: boolean;
   form?: {
     id: string;
+    staffList: API.InsureBatchBillDetailDto[];
   };
 };
 
@@ -39,57 +38,48 @@
 const column: API.CustomModuleColumnDto[] = [
   {
     id: '1',
-    enCode: 'name',
+    enCode: 'changeType',
     name: '鎵规敼绫诲瀷',
-    width: 120,
   },
   {
     id: '2',
     enCode: 'name',
     name: '濮撳悕',
-    width: 120,
   },
   {
     id: '3',
-    enCode: 'name',
+    enCode: 'idNumber',
     name: '韬唤璇佸彿',
-    width: 120,
   },
   {
     id: '4',
-    enCode: 'name',
+    enCode: 'workType',
     name: '闆囧憳宸ョ',
-    width: 120,
   },
   {
     id: '5',
-    enCode: 'name',
+    enCode: 'gender',
     name: '鎬у埆',
-    width: 120,
   },
   {
     id: '6',
-    enCode: 'name',
+    enCode: 'age',
     name: '骞撮緞',
-    width: 120,
   },
   {
     id: '7',
-    enCode: 'name',
+    enCode: 'birthDay',
     name: '鍑虹敓鏃ユ湡',
-    width: 120,
   },
   {
     id: '8',
-    enCode: 'name',
+    enCode: 'phoneNumber',
     name: '鐢佃瘽鍙风爜',
-    width: 120,
   },
   {
     id: '9',
-    enCode: 'name',
+    enCode: 'modifyInfo',
     name: '淇敼鍐呭',
-    width: 120,
   },
 ];
 
@@ -106,7 +96,7 @@
   () => props.modelValue,
   (val) => {
     if (val) {
-      getBatchRefundInfoDetail();
+      getList();
     }
   },
   {
@@ -115,7 +105,7 @@
 );
 
 const {
-  getDataSource: getBatchRefundInfoDetail,
+  getDataSource: getList,
   proTableProps,
   paginationState,
   extraParamState,
@@ -123,17 +113,14 @@
 } = useTable(
   async ({ pageIndex, pageSize }, extraParamState) => {
     try {
-      let params: API.QueryInsuranceOrderPageInput = {
+      return Promise.resolve({
         pageModel: {
           rows: pageSize,
           page: pageIndex,
-          orderInput: extraParamState.orderInput,
+          totalCount: props.form.staffList.length,
         },
-        condition: extraParamState.keyWord,
-        // insurePolicyOperateHistoryId: id,
-      };
-      let res = await insuranceOrderServices.getInsuranceOrderPage(params);
-      return res;
+        data: paginateList(props.form.staffList, pageIndex, pageSize),
+      });
     } catch (error) {}
   },
   {
@@ -141,7 +128,6 @@
       keyWord: '',
       orderInput: [{ property: 'id', order: OrderInputType.Asc }],
     },
-    columnsRenderProps: {},
   }
 );
 </script>

--
Gitblit v1.9.1