From 6b0807da4e5fb7eec54d04801ce865ccb7717694 Mon Sep 17 00:00:00 2001 From: gongjiale <942894820@qq.com> Date: Tue, 22 Nov 2022 17:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E9=87=91=E6=8A=A5=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/assetReport/index.vue | 119 ++++++++++--------- 1 file changed, 62 insertions(+), 57 deletions(-) diff --git a/back/src/views/modules/assetReport/index.vue b/back/src/views/modules/assetReport/index.vue index fec4af3c..1ac334eb 100644 --- a/back/src/views/modules/assetReport/index.vue +++ b/back/src/views/modules/assetReport/index.vue @@ -2,7 +2,7 @@ * @Author: hisense.guoyue * @LastEditors: hisense.guoyue * @LastEditTime: 2022-09-27 14:23:29 - * @Description: 设备审批 + * @Description: 资金报表 --> @@ -220,8 +214,9 @@ export default { return { token: Cookies.get('ucsToken'), //导出全部 - exportExcelCondition: '', - exportExcelType: '', + exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/processForm/tabilityapplication/exportFundStatementTable', + + saveMoney: 3243, offerDepartSelects: [], applyDepartSelects: [], @@ -231,38 +226,48 @@ export default { { name: "开发组件", value: 3 }, { name: "业务组件", value: 4 }, { name: "应用资源", value: 5 }, + { name: "会客厅", value: 5 }, ], // 类型备选列表 - dataList: [], + tableData: [], + dateList: [],//时间 dataForm: { // date: '', startDate: "", endDate: "", - offerDepartment: "", - applyDepartment: "", - type: "", - name: "", + provideDept: "", + applyDept: "", + resourceType: "", + resourceName: "", + pageNum:1, + pageSize:10, }, currentPage: 1, pageSize: 10, - total: null, + total: 0, }; }, methods: { init() { - if (this.value1 && this.value1.length > 0) { - this.dataForm.startDate = this.value1[0]; - this.dataForm.endDate = this.value1[1]; + if (this.dateList && this.dateList.length > 0) { + this.dataForm.startDate = this.dateList[0]; + this.dataForm.endDate = this.dateList[1]; } else { this.dataForm.startDate = ""; this.dataForm.endDate = ""; } + + this.dataForm.pageNum=this.currentPage let params = this.dataForm; this.$http - .get("/census/center/v3/treeList/", { + .get("/processForm/tabilityapplication/getFundStatement/", { params, }) .then((res) => { - this.tableData = res.data.data; + this.tableData = res.data.data.list; + let price=Number(res.data.data.totalPrice); + price=Math.round(price / 10000); + this.saveMoney=price.toFixed(1) + this.total=Number(res.data.data.total); }); }, handleCurrentChange(val) { @@ -270,13 +275,13 @@ export default { this.init(); }, resetDataList() { - this.dataList = []; + this.dateList = []; this.dataForm.startDate = ""; this.dataForm.endDate = ""; - this.dataForm.type = ""; - this.dataForm.name = ""; - this.dataForm.applyDepartment = ""; - this.dataForm.offerDepartment = ""; + this.dataForm.resourceType = ""; + this.dataForm.resourceName = ""; + this.dataForm.applyDept = ""; + this.dataForm.provideDept = ""; this.currentPage = 1; this.init(); }, @@ -289,7 +294,7 @@ export default { this.applyDepartSelects = []; this.offerDepartSelects = []; res.data.data.map((val) => { - this.applyDepartSelects.push({ label: val.name, value: val.id }); + this.applyDepartSelects.push({ label: val.name, value: val.name }); this.offerDepartSelects.push({ label: val.name, value: val.id }); }); });