@@ -666,9 +666,9 @@ | |||||
}) | }) | ||||
.then(() => { | .then(() => { | ||||
addCash(this.form).then((response) => { | addCash(this.form).then((response) => { | ||||
this.chargeItme.map(res => { | |||||
this.chargeItme.map((r,idx) => { | |||||
res.cashId = response.data.id | res.cashId = response.data.id | ||||
addCashdetail(res).then((r,idx) => { | |||||
addCashdetail(res).then(r => { | |||||
if(idx == (_this.chargeItme.length - 1)){ | if(idx == (_this.chargeItme.length - 1)){ | ||||
if(_this.form.capitalExpenditureType==2){ | if(_this.form.capitalExpenditureType==2){ | ||||
_this.projectForm.outId = response.data.id | _this.projectForm.outId = response.data.id | ||||
@@ -748,9 +748,9 @@ | |||||
}) | }) | ||||
.then(() => { | .then(() => { | ||||
addCash(this.form).then((response) => { | addCash(this.form).then((response) => { | ||||
this.chargeItme.map(res => { | |||||
_this.chargeItme.map((res,idx) => { | |||||
res.cashId = response.data.id | res.cashId = response.data.id | ||||
addCashdetail(res).then((r,idx) => { | |||||
addCashdetail(res).then(rdd => { | |||||
if(idx == (_this.chargeItme.length - 1)){ | if(idx == (_this.chargeItme.length - 1)){ | ||||
if(_this.form.capitalExpenditureType==2){ | if(_this.form.capitalExpenditureType==2){ | ||||
_this.projectForm.outId = response.data.id | _this.projectForm.outId = response.data.id | ||||
@@ -669,9 +669,9 @@ | |||||
}) | }) | ||||
.then(() => { | .then(() => { | ||||
updateCash(this.form).then((response) => { | updateCash(this.form).then((response) => { | ||||
this.chargeItme.map(res => { | |||||
this.chargeItme.map((res,idx) => { | |||||
res.cashId = response.data.id | res.cashId = response.data.id | ||||
addCashdetail(res).then((r,idx) => { | |||||
addCashdetail(res).then(r => { | |||||
if(idx == (_this.chargeItme.length - 1)){ | if(idx == (_this.chargeItme.length - 1)){ | ||||
if(_this.form.capitalExpenditureType==2){ | if(_this.form.capitalExpenditureType==2){ | ||||
_this.projectForm.outId = response.data.id | _this.projectForm.outId = response.data.id | ||||
@@ -755,9 +755,9 @@ | |||||
}) | }) | ||||
.then(() => { | .then(() => { | ||||
updateCash(this.form).then((response) => { | updateCash(this.form).then((response) => { | ||||
this.chargeItme.map(res => { | |||||
this.chargeItme.map((res,idx) => { | |||||
res.cashId = response.data.id | res.cashId = response.data.id | ||||
addCashdetail(res).then((r,idx) => { | |||||
addCashdetail(res).then(r => { | |||||
if(idx == (_this.chargeItme.length - 1)){ | if(idx == (_this.chargeItme.length - 1)){ | ||||
if(_this.form.capitalExpenditureType==2){ | if(_this.form.capitalExpenditureType==2){ | ||||
_this.projectForm.outId = response.data.id | _this.projectForm.outId = response.data.id | ||||