linwenxin 6 miesięcy temu
rodzic
commit
66bfc4225d

+ 2 - 1
src/packageMaterial/pages/newSale/orderList.vue

@@ -186,7 +186,6 @@ export default {
       this.tabCurrent = Number(tabCurrent)
       this.status = this.tabList?.[this.tabCurrent]?.value
     }
-    this.getCount()
     this.getList()
   },
 
@@ -194,6 +193,7 @@ export default {
     getCount() {
       this.$api
         .post('/pay/orderCount', {
+          orderId: this.oid,
           goodsType: this.type
         })
         .then(res => {
@@ -218,6 +218,7 @@ export default {
           settlementType: this.salesType
         })
         .then(res => {
+          this.getCount()
           this.loadStatus = 0
           let list = res.data.records
           if (list.length < 10) {

+ 2 - 1
src/packageMaterial/pages/sale/orderList.vue

@@ -186,7 +186,6 @@ export default {
       this.status = this.tabList?.[this.tabCurrent]?.value
     }
     this.type = type
-    this.getCount()
     this.getList()
   },
 
@@ -194,6 +193,7 @@ export default {
     getCount() {
       this.$api
         .post('/pay/orderCount', {
+          orderId: this.oid,
           goodsType: this.type
         })
         .then(res => {
@@ -218,6 +218,7 @@ export default {
           settlementType: this.salesType
         })
         .then(res => {
+          this.getCount()
           this.loadStatus = 0
           let list = res.data.records
           if (list.length < 10) {