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 }); }); });