|
@@ -792,6 +792,14 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset()
|
|
|
+ this.pass={
|
|
|
+ fAmtdr:'', //应收合计
|
|
|
+ fAmtcr:'', //应付合计
|
|
|
+ fMblno:'', //提单号
|
|
|
+ fName:'', //货权方
|
|
|
+ fFeesName:'', //结算单位
|
|
|
+ fCorpid:'' //结算单位ID
|
|
|
+ },
|
|
|
// this.queryParams = []
|
|
|
this.increase_s = []
|
|
|
this.queryParams = {
|
|
@@ -817,6 +825,14 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
console.log(row)
|
|
|
this.reset()
|
|
|
+ this.pass={
|
|
|
+ fAmtdr:'', //应收合计
|
|
|
+ fAmtcr:'', //应付合计
|
|
|
+ fMblno:'', //提单号
|
|
|
+ fName:'', //货权方
|
|
|
+ fFeesName:'', //结算单位
|
|
|
+ fCorpid:'' //结算单位ID
|
|
|
+ }
|
|
|
const fId = row.fId || this.ids
|
|
|
console.log(fId)
|
|
|
getCharge(fId).then(response => {
|
|
@@ -895,7 +911,18 @@ export default {
|
|
|
},
|
|
|
//清空一行
|
|
|
deleteRow(index, rows) {
|
|
|
+ this.queryParams.fAmtcr = 0
|
|
|
+ this.queryParams.fAmtdr = 0
|
|
|
rows.splice(index, 1);
|
|
|
+ for(let item in this.increase_s) {
|
|
|
+ console.log(this.increase_s[item])
|
|
|
+ this.queryParams.fAmtcr += this.increase_s[item].fAmt
|
|
|
+ this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
|
|
|
+
|
|
|
+ }
|
|
|
+ console.log(this.queryParams.fAmtdr)
|
|
|
+ console.log(this.queryParams.fAmtcr)
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
}
|