linwenxin преди 6 месеца
родител
ревизия
66bfc4225d
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 1
      src/packageMaterial/pages/newSale/orderList.vue
  2. 2 1
      src/packageMaterial/pages/sale/orderList.vue

+ 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) {