Browse Source

财务对账收费修改3

翁玉文 4 năm trước cách đây
mục cha
commit
c67a34434f
2 tập tin đã thay đổi với 51 bổ sung1 xóa
  1. 27 0
      src/views/finance/charge/index.vue
  2. 24 1
      src/views/finance/contrast/index.vue

+ 27 - 0
src/views/finance/charge/index.vue

@@ -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)
+
     },
   }
 }

+ 24 - 1
src/views/finance/contrast/index.vue

@@ -1025,6 +1025,14 @@ export default {
     handleAdd() {
       this.reset();
       this.DzfeeList = []
+      this.pass={
+        fAmtdr:'',    //应收合计
+        fAmtcr:'',    //应付合计
+        fMblno:'',    //提单号
+        fName:'',      //货权方
+        fFeesName:'',   //结算单位
+        fCorpid:''     //结算单位ID
+      },
       this.open = true;
       this.title = "添加财务数据主";
       this.queryParams = {
@@ -1071,6 +1079,14 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
+      this.pass={
+        fAmtdr:'',    //应收合计
+        fAmtcr:'',    //应付合计
+        fMblno:'',    //提单号
+        fName:'',      //货权方
+        fFeesName:'',   //结算单位
+        fCorpid:''     //结算单位ID
+      }
       const fId = row.fId || this.ids
       console.log(fId)
       getFee(fId).then(response => {
@@ -1278,7 +1294,14 @@ export default {
     },
     //清空一行
     deleteRow(index, rows) {
-      rows.splice(index, 1);
+      this.queryParams.fAmtdr = 0
+      this.queryParams.fAmtcr = 0
+      rows.splice(index, 1)
+      for(let item in this.DzfeeList) {
+        console.log(this.DzfeeList[item])
+        this.queryParams.fAmtcr = this.DzfeeList[item].fAmt
+        this.queryParams.fAmtdr = this.DzfeeList[item].fAmtdr
+      }
     },
   },
 };