From e4cbd9cc35b2e8b025ff936881bb893aee547f3e Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Thu, 1 Aug 2024 17:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=9A=E9=95=BFid=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E5=AF=BC=E5=87=BA-=E5=AE=B6=E6=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/nobleman/nobleman.js | 14 +++++- src/views/nobleman/GoldWater.vue | 82 ++++++++++++++++++++++++++++--- src/views/nobleman/WagesCount.vue | 73 ++++++++++++++++++++++++--- 3 files changed, 155 insertions(+), 14 deletions(-) diff --git a/src/api/nobleman/nobleman.js b/src/api/nobleman/nobleman.js index 63fe96c..b4665e0 100644 --- a/src/api/nobleman/nobleman.js +++ b/src/api/nobleman/nobleman.js @@ -188,6 +188,16 @@ export const exportFamilyMemberDaily = query => { window.location.href = `/admin/family/wage/stat/exportFamilyMemberDaily?${genQueryParam(query)}`; return; }; +// 工会统计-导出公会工资统计 +export const statExportFamily = query => { + window.location.href = `/admin/family/wage/stat/exportFamily?${genQueryParam(query)}`; + return; +}; +// 工会统计-导出家族流水 +export const incomeExportFamilys = query => { + window.location.href = `/admin/family/income/exportFamily?${genQueryParam(query)}`; + return; +}; // 金币流水-列表 export const incomePageFamily = query => { return request({ @@ -204,9 +214,9 @@ export const incomeListFamilyMember = query => { params: query }); }; -// 金币流水-导出 +// 金币流水-导出成员流水信息 export const incomeExportFamily = query => { - window.location.href = `/admin/family/income/exportFamily?${genQueryParam(query)}`; + window.location.href = `/admin/family/income/exportFamilyMember?${genQueryParam(query)}`; return; }; // 成员信息-弹窗详情 diff --git a/src/views/nobleman/GoldWater.vue b/src/views/nobleman/GoldWater.vue index 93fee60..2d25359 100644 --- a/src/views/nobleman/GoldWater.vue +++ b/src/views/nobleman/GoldWater.vue @@ -6,18 +6,34 @@ 日期 +
+
+ 会长分区 + + + +
+
- 公会ID + 会长ID
@@ -33,6 +49,10 @@ 查询 + + 导出 - + + 查看详情 + 导出 @@ -121,6 +149,7 @@ import { incomePageFamily, incomeListFamilyMember, incomeExportFamily, + incomeExportFamilys, } from "@/api/nobleman/nobleman"; // @ts-ignore import { dateFormat } from "@/utils/system-helper"; @@ -136,6 +165,12 @@ export default { time: this.calculateLastSevenDays(), id: "", nick: "", + partitionId: 2, + inquireonInfos: [ + { desc: "英语区", id: 1 }, + { desc: "阿拉伯区", id: 2 }, + { desc: "华语区", id: 4 }, + ], }, // 表格 tableData: [], @@ -147,6 +182,7 @@ export default { detailsDialog: false, detailsTitle: "", tableDataDetails: [], + familyIdEx: "", }; }, created() { @@ -166,6 +202,7 @@ export default { incomePageFamily({ erbanNo: this.inquire.id, familyName: this.inquire.nick, + partitionId: this.inquire.partitionId, startDate: startTime, endDate: endTime, pageNum: this.currentPage, @@ -176,6 +213,39 @@ export default { this.loading = false; }); }, + // 导出总外列表 + deriveFun(val) { + let time = this.inquire.time; + let startTime = ""; + let endTime = ""; + if (time && time.length > 0) { + startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"); + endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"); + } + incomeExportFamilys({ + startDate: startTime, + endDate: endTime, + erbanNo: this.inquire.id, + familyName: this.inquire.nick, + partitionId: this.inquire.partitionId, + }).then((res) => {}); + }, + // 导出列表最外层 + deriveFun2(val) { + let time = this.inquire.time; + let startTime = ""; + let endTime = ""; + if (time && time.length > 0) { + startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"); + endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"); + } + incomeExportFamily({ + familyId: val.id, + startDate: startTime, + endDate: endTime, + }).then((res) => {}); + this.detailsDialog = false; + }, // 默认七天 calculateLastSevenDays() { const end = new Date(); @@ -193,6 +263,7 @@ export default { startDate = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"); endDate = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"); } + this.familyIdEx = val.id; incomeListFamilyMember({ endDate, startDate, @@ -212,8 +283,7 @@ export default { endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"); } incomeExportFamily({ - erbanNo: this.inquire.id, - familyName: this.inquire.nick, + familyId: this.familyIdEx, startDate: startTime, endDate: endTime, }).then((res) => {}); diff --git a/src/views/nobleman/WagesCount.vue b/src/views/nobleman/WagesCount.vue index 565a330..a1aa70b 100644 --- a/src/views/nobleman/WagesCount.vue +++ b/src/views/nobleman/WagesCount.vue @@ -1,7 +1,6 @@