Browse Source

散件入库更改调合计接口时机

chenrui 4 years ago
parent
commit
94a848f054
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/bulkManagement/bulkWarehousingOrder/edit.vue

+ 3 - 3
src/views/bulkManagement/bulkWarehousingOrder/edit.vue

@@ -533,8 +533,8 @@ export default {
       }
     },
     // 合计
-    getDetailCount () {
-      sparePartsPurDetailCount({ sparePartsPurchaseSn: this.$route.params.sn }).then(res => {
+    getDetailCount (params) {
+      sparePartsPurDetailCount(params).then(res => {
         if (res.status == 200) {
           this.productTotal = res.data
         } else {
@@ -604,6 +604,7 @@ export default {
       }
       sparePartsPurDetailList(params).then(res => {
         if (res.status == 200) {
+          this.getDetailCount(params)
           const data = res.data
           this.choosePaginationProps.total = Number(res.data.count) || 0
           this.choosePaginationProps.current = data.pageNo
@@ -654,7 +655,6 @@ export default {
       vm.openModal = false
       vm.getDetail()
       vm.getDealerProductList()
-      vm.getDetailCount()
       vm.getChooseDealerProductList()
       vm.getProductBrand()
       vm.getProductType()