From 59107b5669ac3773e18b1ec7162d35abb24bc6a5 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 12 Jul 2022 15:59:21 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20-=E5=A2=9E=E5=8A=A0=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E6=9C=88=E4=BB=BD=E7=9A=84=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WholeInstituteStatisticsList.vue | 24 +++++++++++- .../DepartmentAllStatistics.vue | 24 +++++++++++- .../IndividualPaymentStatisticsDetail.vue | 24 +++++++++++- .../IndividualPaymentStatisticsList.vue | 25 ++++++++++++- .../ProjectPaymentStatisticsList.vue | 25 ++++++++++++- .../EnterprisePaymentStatisticsDetail.vue | 27 +++++++++++++- .../EnterprisePaymentStatisticsList.vue | 25 ++++++++++++- src/views/statisticalReport/statisticData.js | 14 +++++++ .../WorkingGroupPaymentStatisticsDetail.vue | 37 +++++++++++++++---- .../WorkingGroupPaymentStatisticsList.vue | 25 ++++++++++++- 10 files changed, 234 insertions(+), 16 deletions(-) create mode 100644 src/views/statisticalReport/statisticData.js diff --git a/src/views/statisticalReport/WholeInstituteStatisticsList.vue b/src/views/statisticalReport/WholeInstituteStatisticsList.vue index e82546d..2a350a2 100644 --- a/src/views/statisticalReport/WholeInstituteStatisticsList.vue +++ b/src/views/statisticalReport/WholeInstituteStatisticsList.vue @@ -73,7 +73,21 @@ - + + + + + + + {{item.name}} + @@ -218,6 +232,7 @@ import ProjectDetailModal from '../../components/ProjectDetailModal' import {downloadFile} from '../../api/manage' import StatusSlot from '../../components/tools/StatusSlot' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from './statisticData' const defaultTableColumns = [ { @@ -319,6 +334,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: {span: 24}, @@ -552,6 +568,12 @@ export default { return ( option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 ) + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } } diff --git a/src/views/statisticalReport/departmentAllStatistics/DepartmentAllStatistics.vue b/src/views/statisticalReport/departmentAllStatistics/DepartmentAllStatistics.vue index 47f32c6..4779252 100644 --- a/src/views/statisticalReport/departmentAllStatistics/DepartmentAllStatistics.vue +++ b/src/views/statisticalReport/departmentAllStatistics/DepartmentAllStatistics.vue @@ -16,7 +16,21 @@ - + + + + + + + {{item.name}} + @@ -103,6 +117,7 @@ import JYearDate from '../../../components/jero/JYearDate' import { JeroListMixin } from '../../../mixins/JeroListMixin' import { getAction } from '../../../api/manage' import {formatMoney} from '@/utils/formatMoney' +import {MonthData} from "../statisticData"; const defaultTableColumns = [ { @@ -176,6 +191,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: {span: 24}, @@ -280,6 +296,12 @@ export default { } this.loadData(1) }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } + } } } diff --git a/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsDetail.vue b/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsDetail.vue index 51c9664..4b64e04 100644 --- a/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsDetail.vue +++ b/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsDetail.vue @@ -31,7 +31,21 @@ - + + + + + + + {{item.name}} + @@ -151,6 +165,7 @@ import { getAction } from '@api/manage' import ProjectDetailModal from '../../../components/ProjectDetailModal' import StatusSlot from '../../../components/tools/StatusSlot' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from '../statisticData' const defaultTableColumns = [ { @@ -238,6 +253,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, labelCol: { xs: { span: 24 }, sm: { span: 5 } @@ -388,6 +404,12 @@ export default { } return } + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } } diff --git a/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsList.vue b/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsList.vue index 06847ad..01eac36 100644 --- a/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsList.vue +++ b/src/views/statisticalReport/departmentStatistics/IndividualPaymentStatisticsList.vue @@ -47,7 +47,21 @@ - + + + + + + + {{item.name}} + @@ -146,6 +160,8 @@ import SelectPrincipal from '../../../components/company/SelectPrincipal' import { getAllDepartTreeList } from '../../../api/incomePaymentsApi' import { getAction } from '@api/manage' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from '../statisticData' + const defaultTableColumns = [ { title: '项目负责人', @@ -219,6 +235,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: { span: 24 }, @@ -398,6 +415,12 @@ export default { } return } + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } } diff --git a/src/views/statisticalReport/departmentStatistics/ProjectPaymentStatisticsList.vue b/src/views/statisticalReport/departmentStatistics/ProjectPaymentStatisticsList.vue index c86305d..dd20f36 100644 --- a/src/views/statisticalReport/departmentStatistics/ProjectPaymentStatisticsList.vue +++ b/src/views/statisticalReport/departmentStatistics/ProjectPaymentStatisticsList.vue @@ -49,7 +49,21 @@ - + + + + + + + {{item.name}} + @@ -173,6 +187,8 @@ import { getAllDepartTreeList } from '../../../api/incomePaymentsApi' import ProjectDetailModal from '../../../components/ProjectDetailModal' import StatusSlot from '../../../components/tools/StatusSlot' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from '../statisticData' + const defaultTableColumns = [ { title: '项目负责人', @@ -268,6 +284,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: { span: 24 }, @@ -441,6 +458,12 @@ export default { } return } + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } } diff --git a/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentStatisticsDetail.vue b/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentStatisticsDetail.vue index 23d905c..f0831fc 100644 --- a/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentStatisticsDetail.vue +++ b/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentStatisticsDetail.vue @@ -31,10 +31,24 @@ - + - + + + + {{item.name}} + + + + - + + + + + + + {{item.name}} + @@ -148,6 +162,8 @@ import { getAction } from '@api/manage' import CompanySelect from '@comp/company/CompanySelect' import { filterObj } from '../../../utils/util' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from '../statisticData' + const defaultTableColumns = [ { title: '来款企业', @@ -227,6 +243,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: { span: 24 }, @@ -407,6 +424,12 @@ export default { } return } + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } } diff --git a/src/views/statisticalReport/statisticData.js b/src/views/statisticalReport/statisticData.js new file mode 100644 index 0000000..460ac2b --- /dev/null +++ b/src/views/statisticalReport/statisticData.js @@ -0,0 +1,14 @@ +export const MonthData = [ + {name: '1月', value: '01'}, + {name: '2月', value: '02'}, + {name: '3月', value: '03'}, + {name: '4月', value: '04'}, + {name: '5月', value: '05'}, + {name: '6月', value: '06'}, + {name: '7月', value: '07'}, + {name: '8月', value: '08'}, + {name: '9月', value: '09'}, + {name: '10月', value: '10'}, + {name: '11月', value: '11'}, + {name: '12月', value: '12'}, +] \ No newline at end of file diff --git a/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsDetail.vue b/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsDetail.vue index a2e777d..9d00ad7 100644 --- a/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsDetail.vue +++ b/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsDetail.vue @@ -37,10 +37,28 @@ - + + + + + + + {{item.name}} + + + + + + - - - - - - + 查询 @@ -170,6 +184,8 @@ import JYearDate from '../../../components/jero/JYearDate' import { getAction } from '../../../api/manage' import StatusSlot from '../../../components/tools/StatusSlot' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from '../statisticData' + const defaultTableColumns = [ { title: '来款单位', @@ -257,6 +273,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: { span: 24 }, @@ -409,6 +426,12 @@ export default { } return } + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } } diff --git a/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsList.vue b/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsList.vue index e761fc4..5cc1073 100644 --- a/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsList.vue +++ b/src/views/statisticalReport/workingGroupPaymentStatistics/WorkingGroupPaymentStatisticsList.vue @@ -19,7 +19,21 @@ - + + + + + + + {{item.name}} + @@ -155,6 +169,8 @@ import { JeroListMixin } from '../../../mixins/JeroListMixin' import JYearDate from '../../../components/jero/JYearDate' import { getAction } from '../../../api/manage' import {formatMoney} from '@/utils/formatMoney' +import { MonthData } from '../statisticData' + const defaultTableColumns = [ { title: '工作组', @@ -237,6 +253,7 @@ export default { mixins: [JeroListMixin], data() { return { + MonthData, IconImg, labelCol: { xs: { span: 24 }, @@ -388,6 +405,12 @@ export default { } return } + }, + // 确认年份 年份选择器改变的事件 + paymentYearChange() { + if(!this.queryParam.paymentYear) { + this.queryParam.paymentMonth = undefined + } } } }