lilei 1 week ago
parent
commit
bc083091a4

+ 4 - 3
src/views/salesManagement/salesQueryNew/comps/detailProductList.vue

@@ -390,9 +390,6 @@ export default {
           if (this.promoProductClz == 0 || this.promoProductClz == undefined) {
             params.promotionFlag = this.promoProductClz == '' ? undefined : this.promoProductClz
             this.dataSource = await salesDetailAllList(params).then(res => res.data || [])
-            if (this.activeList.length > 0) {
-              this.countData = await salesDetaiCount(params).then(res => res.data)
-            }
           }
         }
       } else {
@@ -438,6 +435,10 @@ export default {
           this.hasJGtire = true
         }
       })
+
+      if (this.activeList.length > 0 && this.type == 'normal') {
+        this.countData = await salesDetaiCount(params).then(res => res.data)
+      }
       // 是否有缺货明细
       if (str.length > 0) {
         str = str.substr(0, str.length - 1)