From 1b0bbe7fbe3d62779356f0729f086ceb3901e17b Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 09 四月 2025 16:39:18 +0800 Subject: [PATCH] feat: 接口 --- src/views/EnterpriseInfo/EnterpriseInfo.vue | 35 +++++++++++++++++++++-------------- 1 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/views/EnterpriseInfo/EnterpriseInfo.vue b/src/views/EnterpriseInfo/EnterpriseInfo.vue index 304f063..0f8a514 100644 --- a/src/views/EnterpriseInfo/EnterpriseInfo.vue +++ b/src/views/EnterpriseInfo/EnterpriseInfo.vue @@ -57,9 +57,10 @@ } from '@bole-core/components'; import { OrderInputType } from '@bole-core/core'; import { format } from '@/utils'; -import * as informationServices from '@/services/api/Information'; +import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; import _ from 'lodash'; import { ModelValueType } from 'element-plus'; +import { AuthTypeText } from '@/constants'; defineOptions({ name: 'EnterpriseInfo', @@ -68,57 +69,57 @@ const column: API.CustomModuleColumnDto[] = [ { id: '1', - enCode: 'changeFlag', + enCode: 'enterpriseName', name: '浼佷笟鍚�', }, { id: '2', - enCode: 'name', + enCode: 'societyCreditCode', name: '缁熶竴绀句細淇$敤浠g爜', }, { id: '3', - enCode: 'idNumber', + enCode: 'enterpriseType', name: '浼佷笟绫诲瀷', }, { id: '4', - enCode: 'workType', + enCode: 'industrialParkName', name: '鎵�灞炲洯鍖�', }, { id: '5', - enCode: 'gender', + enCode: 'parkTypName', name: '鍥尯绫诲瀷', }, { id: '6', - enCode: 'age', + enCode: 'applyCount', name: '濂栧姳閲戠敵鎶ユ鏁�', }, { id: '7', - enCode: 'birthDay', + enCode: 'lastApplyTime', name: '鏈�杩戠敵鎶ユ棩鏈�', }, { id: '8', - enCode: 'phoneNumber', + enCode: 'payCount', name: '濂栧姳閲戝彂鏀炬鏁�', }, { id: '9', - enCode: 'phoneNumber', + enCode: 'lastPayTime', name: '鏈�杩戝彂鏀炬棩鏈�', }, { id: '10', - enCode: 'phoneNumber', + enCode: 'bountyAmount', name: '濂栧姳閲戝彂鏀炬�婚', }, { id: '11', - enCode: 'phoneNumber', + enCode: 'bountyAmount', name: '濂栧姳閲戜綑棰�', }, ]; @@ -156,7 +157,7 @@ } = useTable( async ({ pageIndex, pageSize }, extraParamState) => { try { - let params: API.GetInformationForManageInput = { + let params: API.QueryParkCustomerManageInput = { pageModel: { rows: pageSize, page: pageIndex, @@ -165,7 +166,7 @@ publishStartDate: format(extraParamState.date?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), publishEndDate: format(extraParamState.date?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), }; - let res = await informationServices.getInformationForManage(params, { + let res = await parkBountyApplyServices.getParkCustomerManagePage(params, { showLoading: !state.loading, }); return res; @@ -177,6 +178,12 @@ date: [] as unknown as ModelValueType, orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], }, + columnsRenderProps: { + lastApplyTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, + lastPayTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, + bountyAmount: { type: 'money' }, + enterpriseType: { type: 'enum', valueEnum: AuthTypeText }, + }, } ); -- Gitblit v1.9.1