chenrui hai 6 meses
pai
achega
070d1f3cd7

+ 1 - 8
src/views/salesManagement/salesQueryNew/detail.vue

@@ -374,14 +374,7 @@ export default {
     },
     // 查询第三方库存
     getThreeStock () {
-      this.spinning = true
-      getThirdStockQty({ salesBillSn: this.bizSn || this.$route.params.sn }).then(res => {
-        if (res.status == 200) {
-          this.$refs.productList.showThreeStock()
-          this.resetSearchForm()
-        }
-        this.spinning = false
-      })
+      this.$refs.productList.showThreeStock()
     },
     // 详情
     getDetail () {

+ 10 - 14
src/views/salesManagement/salesQueryNew/edit.vue

@@ -269,21 +269,17 @@ export default {
     // 刷新所有第三方库存
     searchAllThreeStock () {
       this.spinning = true
-      getThirdStockQty({ salesBillSn: this.$route.params.sn }).then(res => {
-        if (res.status == 200) {
-          // 刷新正常活动产品列表
-          this.$refs.productNormalList.searchThreeStockOk()
-          // 刷新所有活动产品列表
-          const activeList = this.activeList
-          activeList.map(item => {
-            item.isActive = true
-            const row = this.$refs['productList-' + item.promoRuleSn][0]
-            row && row.searchThreeStockOk()
-          })
-          activeList.splice()
-        }
-        this.spinning = false
+      // 刷新正常活动产品列表
+      this.$refs.productNormalList.searchThreeStockOk()
+      // 刷新所有活动产品列表
+      const activeList = this.activeList
+      activeList.map(item => {
+        item.isActive = true
+        const row = this.$refs['productList-' + item.promoRuleSn][0]
+        row && row.searchThreeStockOk()
       })
+      activeList.splice()
+      this.spinning = false
     },
     // 刷新所有表格数据
     updateAllTable (flag) {