From e9dda9e6c52cb737267185f5118ded73c0053115 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 06 五月 2025 17:13:41 +0800 Subject: [PATCH] feat: 接口 --- src/views/EnterpriseInfo/components/RewardGrantRecordView.vue | 75 +++++++++++++++++++++++++++++-------- 1 files changed, 58 insertions(+), 17 deletions(-) diff --git a/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue b/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue index b3e4419..a7013dc 100644 --- a/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue +++ b/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue @@ -3,14 +3,32 @@ <AppContainer> <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> </ProTableV2> + <FourStreamsMaterialFileDialogV2 + v-bind="dialogMaterialFileProps" + :show-upload-btn="false" + :show-delete-btn="false" + :show-check-btn="false" + downloadBtnText="鏌ョ湅" + title="鏌ョ湅鍑瘉" + :BusinessTypeEnumText="ApplyTransferFileBusinessTypeEnumText" + /> </AppContainer> </LoadingLayout> </template> <script setup lang="ts"> -import { AppContainer, useTable, ProTableV2, defineOperationBtns } from '@bole-core/components'; +import { + AppContainer, + useTable, + ProTableV2, + defineOperationBtns, + useFormDialog, +} from '@bole-core/components'; import { OrderInputType } from '@bole-core/core'; -import * as informationServices from '@/services/api/Information'; +import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; +import { ApplyTransferFileBusinessTypeEnumText } from '@/constants'; +import { FourStreamsMaterialUtils } from '@/components/commonView/utils'; +import { ApplyTransferMaterialFileTableItem } from '@/components/commonView/types'; defineOptions({ name: 'RewardGrantRecordView', @@ -19,39 +37,44 @@ const column: API.CustomModuleColumnDto[] = [ { id: '1', - enCode: 'batchBillNo', + enCode: 'batchNo', name: '鐢虫姤鎵规鍙�', }, { id: '2', - enCode: 'changeType', - name: '濂栧姳閲戝彂鏀炬棩鏈�', + enCode: 'applySumAmount', + name: '鐢虫姤鎬婚', }, { id: '3', - enCode: 'creationTime', - name: '濂栧姳閲戝埌璐︽棩鏈�', + enCode: 'financeToAmount', + name: '璐㈡斂鎷ㄤ粯閲戦', }, { id: '4', - enCode: 'effectTime', - name: '鍙戞斁閲戦', + enCode: 'financeTime', + name: '璐㈡斂鎷ㄤ粯鏃ユ湡', }, { id: '5', - enCode: 'insurePersonNumber', - name: '鍒拌处纭缁撴灉', + enCode: 'transferToAmount', + name: '骞冲彴鍏呭�奸噾棰�', + }, + { + id: '6', + enCode: 'settleTime', + name: '骞冲彴鍏呭�兼棩鏈�', }, ]; const operationBtns = defineOperationBtns([ { data: { - enCode: 'previewBtn', + enCode: 'checkBtn', name: '鏌ョ湅鍑瘉', }, emits: { - onClick: (role) => handlePreview(role), + onClick: (row) => openMaterialFileDialog(row), }, }, ]); @@ -74,14 +97,15 @@ } = useTable( async ({ pageIndex, pageSize }, extraParamState) => { try { - let params: API.GetInformationForManageInput = { + let params: API.QueryParkCustomerBountyApplyInput = { pageModel: { rows: pageSize, page: pageIndex, orderInput: extraParamState.orderInput, }, + id: id, }; - let res = await informationServices.getInformationForManage(params, { + let res = await parkBountyApplyServices.getParkCustomerBountyGrantList(params, { showLoading: !state.loading, }); return res; @@ -89,12 +113,29 @@ }, { defaultExtraParams: { - orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], + orderInput: [{ property: 'id', order: OrderInputType.Desc }], + }, + columnsRenderProps: { + settleTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, + financeTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, + applySumAmount: { type: 'money' }, + financeToAmount: { type: 'money' }, + transferToAmount: { type: 'money' }, }, } ); -function handlePreview(row: API.InsureBatchBillDto) {} +function openMaterialFileDialog(row: API.GetParkCustomerBountyGrantOutput) { + handleMaterialFileAdd({ + list: FourStreamsMaterialUtils.initApplyTransferMaterialFileList(row), + }); +} + +const { dialogProps: dialogMaterialFileProps, handleAdd: handleMaterialFileAdd } = useFormDialog({ + defaultFormParams: { + list: [] as ApplyTransferMaterialFileTableItem[], + }, +}); onMounted(async () => { await getList(); -- Gitblit v1.9.1