Browse Source

no message

linwenxin 5 tháng trước cách đây
mục cha
commit
83e497e977

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

@@ -172,12 +172,16 @@ export default {
       salesType: '',
       isShowDatePicker: false,
       datePickerValue: Number(new Date()),
-      date: ''
+      date: '',
+      oid: ''
     }
   },
 
-  onLoad({ type }) {
+  onLoad({ type, oid }) {
     this.type = type
+    if (oid) {
+      this.oid = oid
+    }
     this.getCount()
     this.getList()
   },
@@ -201,6 +205,7 @@ export default {
       this.loadStatus = 1
       this.$api
         .post('/pay/orderPage', {
+          orderId: this.oid,
           pageNum: this.pageNum,
           pageSize: 10,
           payStatus: this.status,

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

@@ -172,11 +172,15 @@ export default {
       salesType: '',
       isShowDatePicker: false,
       datePickerValue: Number(new Date()),
-      date: ''
+      date: '',
+      oid: ''
     }
   },
 
-  onLoad({ type }) {
+  onLoad({ type, oid }) {
+    if (oid) {
+      this.oid = oid
+    }
     this.type = type
     this.getCount()
     this.getList()
@@ -201,6 +205,7 @@ export default {
       this.loadStatus = 1
       this.$api
         .post('/pay/orderPage', {
+          orderId: this.oid,
           pageNum: this.pageNum,
           pageSize: 10,
           payStatus: this.status,

+ 2 - 2
src/packageWorkorder/pages/orderDetail.vue

@@ -1245,11 +1245,11 @@ export default {
     toCharge(type) {
       if (type == 'M') {
         this.$navToPage({
-          url: `/packageMaterial/pages/sale/index?type=${type}&oid=${this.id}`
+          url: `/packageMaterial/pages/sale/orderList?type=${type}&oid=${this.id}`
         })
       } else if (type == 'P') {
         this.$navToPage({
-          url: `/packageMaterial/pages/newSale/index?type=${type}&oid=${this.id}`
+          url: `/packageMaterial/pages/newSale/orderList?type=${type}&oid=${this.id}`
         })
       }
     },

+ 2 - 2
src/packageWorkorder/pages/orderList.vue

@@ -673,11 +673,11 @@ export default {
     toCharge(id, type) {
       if (type == 'M') {
         this.$navToPage({
-          url: `/packageMaterial/pages/sale/index?type=${type}&oid=${id}`
+          url: `/packageMaterial/pages/sale/orderList?type=${type}&oid=${id}`
         })
       } else if (type == 'P') {
         this.$navToPage({
-          url: `/packageMaterial/pages/newSale/index?type=${type}&oid=${id}`
+          url: `/packageMaterial/pages/newSale/orderList?type=${type}&oid=${id}`
         })
       }
     },