From 6bac509f8e6efc205d9f37a84c9b019ec828467a Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 07 五月 2025 14:22:26 +0800
Subject: [PATCH] feat: 接口
---
src/views/EnterpriseInfo/EnterpriseInfo.vue | 48 ++++++++++++++++++++++++++++++++----------------
1 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/src/views/EnterpriseInfo/EnterpriseInfo.vue b/src/views/EnterpriseInfo/EnterpriseInfo.vue
index 0f8a514..10434a9 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"
@@ -60,7 +60,7 @@
import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
import _ from 'lodash';
import { ModelValueType } from 'element-plus';
-import { AuthTypeText } from '@/constants';
+import { EnterpriseTypeText } from '@/constants';
defineOptions({
name: 'EnterpriseInfo',
@@ -71,56 +71,67 @@
id: '1',
enCode: 'enterpriseName',
name: '浼佷笟鍚�',
+ width: 250,
},
{
id: '2',
enCode: 'societyCreditCode',
name: '缁熶竴绀句細淇$敤浠g爜',
+ width: 200,
},
{
id: '3',
enCode: 'enterpriseType',
name: '浼佷笟绫诲瀷',
+ width: 150,
},
{
id: '4',
enCode: 'industrialParkName',
name: '鎵�灞炲洯鍖�',
+ width: 200,
},
{
id: '5',
enCode: 'parkTypName',
name: '鍥尯绫诲瀷',
+ width: 150,
},
{
id: '6',
enCode: 'applyCount',
- name: '濂栧姳閲戠敵鎶ユ鏁�',
+ name: '鐢虫姤娆℃暟',
+ width: 150,
},
{
id: '7',
enCode: 'lastApplyTime',
name: '鏈�杩戠敵鎶ユ棩鏈�',
+ width: 180,
},
{
id: '8',
enCode: 'payCount',
- name: '濂栧姳閲戝彂鏀炬鏁�',
+ name: '鍙戞斁娆℃暟',
+ width: 150,
},
{
id: '9',
enCode: 'lastPayTime',
name: '鏈�杩戝彂鏀炬棩鏈�',
+ width: 180,
},
{
id: '10',
- enCode: 'bountyAmount',
- name: '濂栧姳閲戝彂鏀炬�婚',
+ enCode: 'bountySumAmount',
+ name: '鍙戞斁鎬婚',
+ width: 150,
},
{
id: '11',
enCode: 'bountyAmount',
- name: '濂栧姳閲戜綑棰�',
+ name: '骞冲彴鍏呭�间綑棰�',
+ width: 150,
},
];
@@ -163,8 +174,11 @@
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 parkBountyApplyServices.getParkCustomerManagePage(params, {
showLoading: !state.loading,
@@ -174,20 +188,22 @@
},
{
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' },
+ bountySumAmount: { type: 'money' },
bountyAmount: { type: 'money' },
- enterpriseType: { type: 'enum', valueEnum: AuthTypeText },
+ enterpriseType: { type: 'enum', valueEnum: EnterpriseTypeText },
},
}
);
-function goDetail(row: any) {
+function goDetail(row: API.GetParkCustomerManageOutput) {
router.push({
name: 'EnterpriseInfoDetail',
params: {
--
Gitblit v1.10.0