Browse Source

应付对账、应收对账调整同步月份选择器

shenjunjie 7 years ago
parent
commit
00c3a8b5b9

+ 1 - 0
pages/mobile/center/user/btobarCheck.vue

@@ -600,6 +600,7 @@
         this.isShowApcheckList.show = true
         this.isShowApcheckList.show = true
         this.isShowApcheckList.vendorUU = item ? item.vendorEnterprise.uu : this.isShowApcheckList.vendorUU
         this.isShowApcheckList.vendorUU = item ? item.vendorEnterprise.uu : this.isShowApcheckList.vendorUU
         this.isShowApcheckList.enName = item ? item.vendorEnterprise.enName : this.isShowApcheckList.enName
         this.isShowApcheckList.enName = item ? item.vendorEnterprise.enName : this.isShowApcheckList.enName
+        this.isShowApcheckList.thisMonth = this.outTimeMonth
         this.getApcheckDetailsinfo()
         this.getApcheckDetailsinfo()
       },
       },
       // 未对账详情获取数据
       // 未对账详情获取数据

+ 5 - 4
pages/mobile/center/vendor/btobapCheck.vue

@@ -599,6 +599,7 @@
       showApcheckList(item) {
       showApcheckList(item) {
         this.isShowApcheckList.show = true
         this.isShowApcheckList.show = true
         this.isShowApcheckList.enName = item ? item.myEnterprise.enName : this.isShowApcheckList.enName
         this.isShowApcheckList.enName = item ? item.myEnterprise.enName : this.isShowApcheckList.enName
+        this.isShowApcheckList.thisMonth = this.outTimeMonth
         this.getApcheckDetailsinfo()
         this.getApcheckDetailsinfo()
       },
       },
       // 未对账详情获取数据
       // 未对账详情获取数据
@@ -816,16 +817,16 @@
           }
           }
         })
         })
         if (sameCust && validQty) {
         if (sameCust && validQty) {
-          this.isShowApcheckList.list = _list
-          this.saveApCheck(apCheck)
+          this.saveApCheck(apCheck, _list)
         }
         }
       },
       },
       // 对账提交
       // 对账提交
-      saveApCheck(apCheck) {
+      saveApCheck(apCheck, _list) {
         if (apCheck.items.length === 0) {
         if (apCheck.items.length === 0) {
           this.setRemindText('请先选择需要对账的数据')
           this.setRemindText('请先选择需要对账的数据')
         } else {
         } else {
           this.$http.post('/sale/apCheck/operation/save', apCheck).then(res => {
           this.$http.post('/sale/apCheck/operation/save', apCheck).then(res => {
+            this.isShowApcheckList.list = _list
             this.setRemindText('生成应收对账成功')
             this.setRemindText('生成应收对账成功')
             this.isShowApcheckList.id = res.data.id
             this.isShowApcheckList.id = res.data.id
             this.isShowApcheckList.showApcheck = true
             this.isShowApcheckList.showApcheck = true
@@ -841,7 +842,7 @@
             }
             }
             this.ShowApcheckChooseTime = false
             this.ShowApcheckChooseTime = false
           }, err => {
           }, err => {
-            this.setRemindText('生成对账单失败')
+            this.setRemindText(err.response.data || err)
           })
           })
         }
         }
       },
       },