From 12cce14bc30a85bbf96b5b30bb1aff1fc354091a Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 27 三月 2025 15:07:21 +0800
Subject: [PATCH] feat: 接口对接

---
 src/views/Home/components/BatchChangeRecordView.vue |   29 +++++++++++++++++++++--------
 1 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/src/views/Home/components/BatchChangeRecordView.vue b/src/views/Home/components/BatchChangeRecordView.vue
index 0dcdf53..1b37424 100644
--- a/src/views/Home/components/BatchChangeRecordView.vue
+++ b/src/views/Home/components/BatchChangeRecordView.vue
@@ -24,7 +24,7 @@
   defineOperationBtns,
   useFormDialog,
 } from '@bole-core/components';
-import * as insuranceOrderServices from '@/services/api/InsuranceOrder';
+import * as insureBatchBillServices from '@/services/api/InsureBatchBill';
 import { OrderInputType } from '@bole-core/core';
 import BatchChangeRecordDetailDialog from './BatchChangeRecordDetailDialog.vue';
 
@@ -90,7 +90,19 @@
       onClick: (role) => handleDetail(role),
     },
     // extraProps: {
-    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+    //   hide: (row: API.InsureBatchBillDto) => !row.orderBillFile,
+    // },
+  },
+  {
+    data: {
+      enCode: 'downloadBtn',
+      name: '涓嬭浇鎵瑰崟',
+    },
+    emits: {
+      onClick: (role) => handleDownload(role),
+    },
+    // extraProps: {
+    //   hide: (row: API.InsureBatchBillDto) => !row.orderBillFile,
     // },
   },
 ]);
@@ -112,16 +124,15 @@
 } = useTable(
   async ({ pageIndex, pageSize }, extraParamState) => {
     try {
-      let params: API.QueryInsuranceOrderPageInput = {
+      let params: API.GetInsuranceBatchBillInput = {
         pageModel: {
           rows: pageSize,
           page: pageIndex,
           orderInput: extraParamState.orderInput,
         },
-        condition: extraParamState.keyWord,
-        // insurePolicyOperateHistoryId: id,
+        insurancePolicyId: id,
       };
-      let res = await insuranceOrderServices.getInsuranceOrderPage(params, {
+      let res = await insureBatchBillServices.getInsureBatchBillList(params, {
         showLoading: !state.loading,
       });
       return res;
@@ -142,12 +153,14 @@
   },
 });
 
-function handleDetail(row: API.InsuranceOrderListOutput) {
+function handleDetail(row: API.InsureBatchBillDto) {
   handleEdit({
-    id: row.id,
+    id: row.insureBatchBillId,
   });
 }
 
+function handleDownload(row: API.InsureBatchBillDto) {}
+
 onMounted(async () => {
   await getBatchRefundInfoDetail();
   state.loading = false;

--
Gitblit v1.9.1