diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue index 466116a4..05d2c334 100644 --- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue +++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue @@ -666,9 +666,9 @@ }) .then(() => { addCash(this.form).then((response) => { - this.chargeItme.map(res => { + this.chargeItme.map((r,idx) => { res.cashId = response.data.id - addCashdetail(res).then((r,idx) => { + addCashdetail(res).then(r => { if(idx == (_this.chargeItme.length - 1)){ if(_this.form.capitalExpenditureType==2){ _this.projectForm.outId = response.data.id diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd12.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd12.vue index 02c0db06..04613266 100644 --- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd12.vue +++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd12.vue @@ -748,9 +748,9 @@ }) .then(() => { addCash(this.form).then((response) => { - this.chargeItme.map(res => { + _this.chargeItme.map((res,idx) => { res.cashId = response.data.id - addCashdetail(res).then((r,idx) => { + addCashdetail(res).then(rdd => { if(idx == (_this.chargeItme.length - 1)){ if(_this.form.capitalExpenditureType==2){ _this.projectForm.outId = response.data.id diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify11.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify11.vue index 7850be60..5e5d11a4 100644 --- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify11.vue +++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify11.vue @@ -669,9 +669,9 @@ }) .then(() => { updateCash(this.form).then((response) => { - this.chargeItme.map(res => { + this.chargeItme.map((res,idx) => { res.cashId = response.data.id - addCashdetail(res).then((r,idx) => { + addCashdetail(res).then(r => { if(idx == (_this.chargeItme.length - 1)){ if(_this.form.capitalExpenditureType==2){ _this.projectForm.outId = response.data.id diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify12.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify12.vue index 3aacbbd7..159553c3 100644 --- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify12.vue +++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalModify12.vue @@ -755,9 +755,9 @@ }) .then(() => { updateCash(this.form).then((response) => { - this.chargeItme.map(res => { + this.chargeItme.map((res,idx) => { res.cashId = response.data.id - addCashdetail(res).then((r,idx) => { + addCashdetail(res).then(r => { if(idx == (_this.chargeItme.length - 1)){ if(_this.form.capitalExpenditureType==2){ _this.projectForm.outId = response.data.id