From acaec313ab0e3c9381060e36bf3ce4abc606dc9a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 28 三月 2025 14:07:11 +0800 Subject: [PATCH] feat: 接口对接 --- src/views/Home/components/BatchChangeRecordDetailDialog.vue | 46 ++++++++++++++++++---------------------------- 1 files changed, 18 insertions(+), 28 deletions(-) diff --git a/src/views/Home/components/BatchChangeRecordDetailDialog.vue b/src/views/Home/components/BatchChangeRecordDetailDialog.vue index 486371e..146a5fc 100644 --- a/src/views/Home/components/BatchChangeRecordDetailDialog.vue +++ b/src/views/Home/components/BatchChangeRecordDetailDialog.vue @@ -6,6 +6,7 @@ :columns="column" :show-operation-column="false" > + <template #changeType="{ row }"> {{ BatchChangeTypeEnumText[row.changeType] }}</template> </ProTableV2> </ProDialogTableWrapper> </ProDialog> @@ -13,8 +14,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 +26,7 @@ modelValue: boolean; form?: { id: string; + staffList: API.InsureBatchBillDetailDto[]; }; }; @@ -39,57 +42,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 +100,7 @@ () => props.modelValue, (val) => { if (val) { - getBatchRefundInfoDetail(); + getList(); } }, { @@ -115,7 +109,7 @@ ); const { - getDataSource: getBatchRefundInfoDetail, + getDataSource: getList, proTableProps, paginationState, extraParamState, @@ -123,17 +117,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 +132,6 @@ keyWord: '', orderInput: [{ property: 'id', order: OrderInputType.Asc }], }, - columnsRenderProps: {}, } ); </script> -- Gitblit v1.9.1