zhongtianhaoyuan 3 år sedan
förälder
incheckning
e65341e5af
1 ändrade filer med 7 tillägg och 6 borttagningar
  1. 7 6
      src/views/houseSelfCollect/paymentManagement.vue

+ 7 - 6
src/views/houseSelfCollect/paymentManagement.vue

@@ -418,12 +418,13 @@
         },
       }
     },
-    mounted() {
-      this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
+    // mounted() {
+    //   // this.getList()
+    // },
+    activated(){
+        this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
       this.getPassYearFormatDate()
       this.getWarehouse()
-
-      this.getList()
     },
     updated() {
       this.$nextTick(() => {
@@ -902,13 +903,13 @@
               //判断是否在任务页面进来
               this.warehouseName = this.$route.query.warehouseName
               this.warehouseNameKey = this.$route.query.warehouseName
+              this.getList()
             } else {
               for (let index = 0; index < this.warehouseList.length; index++) {
                 if (_wareHouse && _wareHouse.value == this.warehouseList[index].warehouseName) {
                   this.warehouseName = this.warehouseList[index].warehouseName
                   this.warehouseNameKey = this.warehouseList[index].warehouseName
-                  this.getList()
-                  return
+                 break
                 } else {
                   this.warehouseNameKey = this.warehouseList[0].id
                   if (this.warehouseName) {