From 7e0f30a66ee8aade87fdd0d02ff2c2445f1d6911 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 20 Mar 2025 13:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/cost/component/applyDetail.vue | 18 ++++++++++++------ .../material/cost/component/applyHome.vue | 3 ++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/material/cost/component/applyDetail.vue b/src/views/material/cost/component/applyDetail.vue index f382f434..1e8e0f20 100644 --- a/src/views/material/cost/component/applyDetail.vue +++ b/src/views/material/cost/component/applyDetail.vue @@ -398,7 +398,8 @@ export default { /** 导出按钮操作 */ //租赁 handleExport1() { - const params = this.rowData + let data = _.cloneDeep(this.rowData); + const params = {params:JSON.stringify(data)} this.download( 'material/slt_agreement_info/exportLease', {...params,}, @@ -407,7 +408,8 @@ export default { }, //丢失 handleExport2() { - const params = this.rowData + let data = _.cloneDeep(this.rowData); + const params = {params:JSON.stringify(data)} this.download( 'material/slt_agreement_info/exportLose', {...params,}, @@ -416,7 +418,8 @@ export default { }, // 维修 handleExport3() { - const params = this.rowData + let data = _.cloneDeep(this.rowData); + const params = {params:JSON.stringify(data)} this.download( 'material/slt_agreement_info/exportRepair', {...params,}, @@ -425,7 +428,8 @@ export default { }, //报废 handleExport4() { - const params = this.rowData + let data = _.cloneDeep(this.rowData); + const params = {params:JSON.stringify(data)} this.download( 'material/slt_agreement_info/exportScrap', {...params,}, @@ -438,7 +442,8 @@ export default { // ) }, handleExport5() { - const params = this.rowData + let data = _.cloneDeep(this.rowData); + const params = {params:JSON.stringify(data)} this.download( 'material/slt_agreement_info/exportReduction', {...params,}, @@ -447,7 +452,8 @@ export default { }, handleExportAll() { - const params = this.rowData + let data = _.cloneDeep(this.rowData); + const params = {params:JSON.stringify(data)} this.download( 'material/slt_agreement_info/exportAll', {...params,}, diff --git a/src/views/material/cost/component/applyHome.vue b/src/views/material/cost/component/applyHome.vue index 34e190e1..3ddb97c4 100644 --- a/src/views/material/cost/component/applyHome.vue +++ b/src/views/material/cost/component/applyHome.vue @@ -442,7 +442,8 @@ export default { }, //结算申请 handleApply(row) { - let arr = row + let arr = []; + arr.push(row); // console.log(arr) // console.log(this.ids) // console.log(JSON.stringify(arr))