From 33f3506c93c0b84f6abc165e7d22d2bae1c8fcb1 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 23 十月 2025 22:21:33 +0800
Subject: [PATCH] feat: 接口
---
src/views/Home/components/BatchChangeRecordDetailDialog.vue | 82 ++++++++++++++++++++++-------------------
1 files changed, 44 insertions(+), 38 deletions(-)
diff --git a/src/views/Home/components/BatchChangeRecordDetailDialog.vue b/src/views/Home/components/BatchChangeRecordDetailDialog.vue
index 486371e..d020291 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,68 @@
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',
- name: '闆囧憳宸ョ',
- width: 120,
+ enCode: 'occupationType',
+ name: '鑱屼笟绫诲瀷',
},
{
id: '5',
- enCode: 'name',
- name: '鎬у埆',
- width: 120,
+ enCode: 'occupationCode',
+ name: '鑱屼笟鐮佸��',
},
{
id: '6',
- enCode: 'name',
- name: '骞撮緞',
- width: 120,
+ enCode: 'workEnterprise',
+ name: '鐢ㄥ伐鍗曚綅',
},
{
id: '7',
- enCode: 'name',
- name: '鍑虹敓鏃ユ湡',
- width: 120,
+ enCode: 'workAddress',
+ name: '鐢ㄥ伐鍦扮偣',
},
{
id: '8',
- enCode: 'name',
- name: '鐢佃瘽鍙风爜',
- width: 120,
+ enCode: 'workType',
+ name: '闆囧憳宸ョ',
},
{
id: '9',
- enCode: 'name',
+ enCode: 'gender',
+ name: '鎬у埆',
+ },
+ {
+ id: '10',
+ enCode: 'age',
+ name: '骞撮緞',
+ },
+ {
+ id: '11',
+ enCode: 'birthDay',
+ name: '鍑虹敓鏃ユ湡',
+ },
+ {
+ id: '12',
+ enCode: 'phoneNumber',
+ name: '鐢佃瘽鍙风爜',
+ },
+ {
+ id: '13',
+ enCode: 'modifyInfo',
name: '淇敼鍐呭',
- width: 120,
},
];
@@ -106,7 +116,7 @@
() => props.modelValue,
(val) => {
if (val) {
- getBatchRefundInfoDetail();
+ getList();
}
},
{
@@ -115,7 +125,7 @@
);
const {
- getDataSource: getBatchRefundInfoDetail,
+ getDataSource: getList,
proTableProps,
paginationState,
extraParamState,
@@ -123,17 +133,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 +148,6 @@
keyWord: '',
orderInput: [{ property: 'id', order: OrderInputType.Asc }],
},
- columnsRenderProps: {},
}
);
</script>
--
Gitblit v1.9.1