From 7c24e02dd40f435aa036d4f3932e72f193441d06 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 18 四月 2025 17:34:42 +0800 Subject: [PATCH] feat: 页面 --- src/views/EnterpriseInfo/EnterpriseInfo.vue | 76 ++++++++++++++++++++++++------------- 1 files changed, 49 insertions(+), 27 deletions(-) diff --git a/src/views/EnterpriseInfo/EnterpriseInfo.vue b/src/views/EnterpriseInfo/EnterpriseInfo.vue index 304f063..5e21bbc 100644 --- a/src/views/EnterpriseInfo/EnterpriseInfo.vue +++ b/src/views/EnterpriseInfo/EnterpriseInfo.vue @@ -5,7 +5,7 @@ <template #query> <QueryFilterItem tip-content="鏈�杩戠敵鎶ユ棩鏈�"> <FieldDatePicker - v-model="extraParamState.date" + v-model="extraParamState.lastApplyTime" type="daterange" range-separator="~" start-placeholder="寮�濮嬫棩鏈�" @@ -16,7 +16,7 @@ </QueryFilterItem> <QueryFilterItem tip-content="鏈�杩戝彂鏀炬棩鏈�"> <FieldDatePicker - v-model="extraParamState.date" + v-model="extraParamState.lastPayTime" type="daterange" range-separator="~" start-placeholder="寮�濮嬫棩鏈�" @@ -27,7 +27,7 @@ </QueryFilterItem> <QueryFilterItem> <SearchInput - v-model="extraParamState.keyword" + v-model="extraParamState.keywords" style="width: 300px" placeholder="浼佷笟鍚�/缁熶竴淇$敤浠g爜" @on-click-search="getList" @@ -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 { EnterpriseTypeText } from '@/constants'; defineOptions({ name: 'EnterpriseInfo', @@ -68,58 +69,69 @@ const column: API.CustomModuleColumnDto[] = [ { id: '1', - enCode: 'changeFlag', + enCode: 'enterpriseName', name: '浼佷笟鍚�', + width: 250, }, { id: '2', - enCode: 'name', + enCode: 'societyCreditCode', name: '缁熶竴绀句細淇$敤浠g爜', + width: 200, }, { id: '3', - enCode: 'idNumber', + enCode: 'enterpriseType', name: '浼佷笟绫诲瀷', + width: 150, }, { id: '4', - enCode: 'workType', + enCode: 'industrialParkName', name: '鎵�灞炲洯鍖�', + width: 200, }, { id: '5', - enCode: 'gender', + enCode: 'parkTypName', name: '鍥尯绫诲瀷', + width: 150, }, { id: '6', - enCode: 'age', - name: '濂栧姳閲戠敵鎶ユ鏁�', + enCode: 'applyCount', + name: '鐢虫姤娆℃暟', + width: 150, }, { id: '7', - enCode: 'birthDay', + enCode: 'lastApplyTime', name: '鏈�杩戠敵鎶ユ棩鏈�', + width: 180, }, { id: '8', - enCode: 'phoneNumber', - name: '濂栧姳閲戝彂鏀炬鏁�', + enCode: 'payCount', + name: '鍙戞斁娆℃暟', + width: 150, }, { id: '9', - enCode: 'phoneNumber', + enCode: 'lastPayTime', name: '鏈�杩戝彂鏀炬棩鏈�', + width: 180, }, { id: '10', - enCode: 'phoneNumber', - name: '濂栧姳閲戝彂鏀炬�婚', + enCode: 'bountyAmount', + name: '鍙戞斁鎬婚', + width: 150, }, { id: '11', - enCode: 'phoneNumber', - name: '濂栧姳閲戜綑棰�', + enCode: 'bountyAmount', + name: '骞冲彴鍏呭�间綑棰�', + width: 150, }, ]; @@ -156,16 +168,19 @@ } = useTable( async ({ pageIndex, pageSize }, extraParamState) => { try { - let params: API.GetInformationForManageInput = { + let params: API.QueryParkCustomerManageInput = { pageModel: { rows: pageSize, page: pageIndex, orderInput: extraParamState.orderInput, }, - publishStartDate: format(extraParamState.date?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), - publishEndDate: format(extraParamState.date?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), + keywords: extraParamState.keywords, + lastApplyBeginTime: format(extraParamState.lastApplyTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), + lastApplyEndTime: format(extraParamState.lastApplyTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), + lastPayBeginTime: format(extraParamState.lastPayTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), + lastPayEndTime: format(extraParamState.lastPayTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), }; - let res = await informationServices.getInformationForManage(params, { + let res = await parkBountyApplyServices.getParkCustomerManagePage(params, { showLoading: !state.loading, }); return res; @@ -173,14 +188,21 @@ }, { defaultExtraParams: { - keyword: '', - date: [] as unknown as ModelValueType, - orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], + keywords: '', + lastApplyTime: [] as unknown as ModelValueType, + lastPayTime: [] as unknown as ModelValueType, + orderInput: [{ property: 'id', 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: EnterpriseTypeText }, }, } ); -function goDetail(row: any) { +function goDetail(row: API.GetParkCustomerManageOutput) { router.push({ name: 'EnterpriseInfoDetail', params: { -- Gitblit v1.9.1