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 | 62 +++++++++++++++++++----------- 1 files changed, 39 insertions(+), 23 deletions(-) diff --git a/src/views/Home/components/BatchChangeRecordView.vue b/src/views/Home/components/BatchChangeRecordView.vue index c79d563..1b37424 100644 --- a/src/views/Home/components/BatchChangeRecordView.vue +++ b/src/views/Home/components/BatchChangeRecordView.vue @@ -1,17 +1,19 @@ <template> - <AppContainer> - <ProTableV2 - v-bind="proTableProps" - :columns="column" - :operationBtns="operationBtns" - :autoHeight="false" - :tableProps="{ - maxHeight: '400px', - }" - > - </ProTableV2> - <BatchChangeRecordDetailDialog v-bind="dialogProps"></BatchChangeRecordDetailDialog> - </AppContainer> + <LoadingLayout :loading="state.loading"> + <AppContainer> + <ProTableV2 + v-bind="proTableProps" + :columns="column" + :operationBtns="operationBtns" + :autoHeight="false" + :tableProps="{ + maxHeight: '400px', + }" + > + </ProTableV2> + <BatchChangeRecordDetailDialog v-bind="dialogProps"></BatchChangeRecordDetailDialog> + </AppContainer> + </LoadingLayout> </template> <script setup lang="ts"> @@ -22,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'; @@ -88,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, // }, }, ]); @@ -110,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; @@ -140,14 +153,17 @@ }, }); -function handleDetail(row: API.InsuranceOrderListOutput) { +function handleDetail(row: API.InsureBatchBillDto) { handleEdit({ - id: row.id, + id: row.insureBatchBillId, }); } -onMounted(() => { - getBatchRefundInfoDetail(); +function handleDownload(row: API.InsureBatchBillDto) {} + +onMounted(async () => { + await getBatchRefundInfoDetail(); + state.loading = false; }); </script> -- Gitblit v1.9.1