From 8feaba218a5ce22e92214e4c9082faf59b25c885 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 20 十一月 2025 09:20:35 +0800
Subject: [PATCH] fix: bug
---
src/views/EnterpriseInfo/EnterpriseInfo.vue | 126 +++++++++++++++---------------------------
1 files changed, 45 insertions(+), 81 deletions(-)
diff --git a/src/views/EnterpriseInfo/EnterpriseInfo.vue b/src/views/EnterpriseInfo/EnterpriseInfo.vue
index 5e21bbc..8de223a 100644
--- a/src/views/EnterpriseInfo/EnterpriseInfo.vue
+++ b/src/views/EnterpriseInfo/EnterpriseInfo.vue
@@ -3,6 +3,17 @@
<AppContainer>
<ProTableQueryFilterBar @on-reset="reset">
<template #query>
+ <QueryFilterItem>
+ <FieldSelect
+ v-model="extraParamState.industrialParkId"
+ placeholder="璇烽�夋嫨鍥尯"
+ :value-enum="fourStreamsIndustrialParkList"
+ enumLabelKey="parkName"
+ enum-value-key="id"
+ clearable
+ @change="getList()"
+ />
+ </QueryFilterItem>
<QueryFilterItem tip-content="鏈�杩戠敵鎶ユ棩鏈�">
<FieldDatePicker
v-model="extraParamState.lastApplyTime"
@@ -14,9 +25,20 @@
@change="getList()"
></FieldDatePicker>
</QueryFilterItem>
- <QueryFilterItem tip-content="鏈�杩戝彂鏀炬棩鏈�">
+ <QueryFilterItem tip-content="鏈�杩戣储鏀挎嫧浠樻棩鏈�">
<FieldDatePicker
v-model="extraParamState.lastPayTime"
+ type="daterange"
+ range-separator="~"
+ start-placeholder="寮�濮嬫棩鏈�"
+ end-placeholder="缁撴潫鏃ユ湡"
+ clearable
+ @change="getList()"
+ ></FieldDatePicker>
+ </QueryFilterItem>
+ <QueryFilterItem tip-content="鏈�杩戝钩鍙版嫧浠樻棩鏈�">
+ <FieldDatePicker
+ v-model="extraParamState.lastSettleTime"
type="daterange"
range-separator="~"
start-placeholder="寮�濮嬫棩鏈�"
@@ -54,6 +76,7 @@
SearchInput,
QueryFilterItem,
FieldDatePicker,
+ FieldSelect,
} from '@bole-core/components';
import { OrderInputType } from '@bole-core/core';
import { format } from '@/utils';
@@ -61,91 +84,19 @@
import _ from 'lodash';
import { ModelValueType } from 'element-plus';
import { EnterpriseTypeText } from '@/constants';
+import { useAccess, useIndustrialParkDropDownList } from '@/hooks';
defineOptions({
name: 'EnterpriseInfo',
});
-const column: API.CustomModuleColumnDto[] = [
- {
- 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: '鐢虫姤娆℃暟',
- width: 150,
- },
- {
- id: '7',
- enCode: 'lastApplyTime',
- name: '鏈�杩戠敵鎶ユ棩鏈�',
- width: 180,
- },
- {
- id: '8',
- enCode: 'payCount',
- name: '鍙戞斁娆℃暟',
- width: 150,
- },
- {
- id: '9',
- enCode: 'lastPayTime',
- name: '鏈�杩戝彂鏀炬棩鏈�',
- width: 180,
- },
- {
- id: '10',
- enCode: 'bountyAmount',
- name: '鍙戞斁鎬婚',
- width: 150,
- },
- {
- id: '11',
- enCode: 'bountyAmount',
- name: '骞冲彴鍏呭�间綑棰�',
- width: 150,
- },
-];
+const operationBtnMap: Record<string, OperationBtnType> = {
+ detailBtn: { emits: { onClick: (role) => goDetail(role) } },
+};
-const operationBtns = defineOperationBtns([
- {
- data: {
- enCode: 'detailBtn',
- name: '璇︽儏',
- },
- emits: {
- onClick: (role) => goDetail(role),
- },
- },
-]);
+const { checkSubModuleItemShow, column, operationBtns } = useAccess({
+ operationBtnMap,
+});
const router = useRouter();
const BaseState = {
@@ -153,6 +104,8 @@
};
const state = reactive({ ...BaseState });
+
+const { fourStreamsIndustrialParkList } = useIndustrialParkDropDownList();
onMounted(async () => {
await getList();
@@ -179,6 +132,12 @@
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'),
+ lastSettleBeginTime: format(
+ extraParamState.lastSettleTime?.[0] ?? '',
+ 'YYYY-MM-DD 00:00:00'
+ ),
+ lastSettleEndTime: format(extraParamState.lastSettleTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'),
+ industrialParkId: extraParamState.industrialParkId,
};
let res = await parkBountyApplyServices.getParkCustomerManagePage(params, {
showLoading: !state.loading,
@@ -191,11 +150,16 @@
keywords: '',
lastApplyTime: [] as unknown as ModelValueType,
lastPayTime: [] as unknown as ModelValueType,
+ lastSettleTime: [] as unknown as ModelValueType,
orderInput: [{ property: 'id', order: OrderInputType.Desc }],
+ industrialParkId: '',
},
columnsRenderProps: {
lastApplyTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
- lastPayTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
+ lastFinanceTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
+ financeSumAmount: { type: 'money' },
+ lastSettleTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
+ settleSumAmount: { type: 'money' },
bountyAmount: { type: 'money' },
enterpriseType: { type: 'enum', valueEnum: EnterpriseTypeText },
},
--
Gitblit v1.9.1