Ver Fonte

bug修复,出库详情,为弹框时不请求数据

chenrui há 3 anos atrás
pai
commit
f405ac606f

+ 1 - 1
src/views/allocationManagement/chainTransferOut/detail.vue

@@ -190,7 +190,7 @@ export default {
     }
   },
   mounted () {
-    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+    if (!this.$store.state.app.isNewTab || this.outBizSn) { // 页签刷新 或 为弹框时调用
       this.getDetail()
       this.$refs.table.refresh(true)
     }

+ 1 - 1
src/views/allocationManagement/storeTransferOut/detail.vue

@@ -185,7 +185,7 @@ export default {
     }
   },
   mounted () {
-    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+    if (!this.$store.state.app.isNewTab || this.outBizSn) { // 页签刷新 或 为弹框时调用
       this.$refs.table.refresh(true)
       this.getDetail()
       this.getDetailCount()

+ 1 - 1
src/views/allocationManagement/warehouseAllocation/detail.vue

@@ -148,7 +148,7 @@ export default {
     }
   },
   mounted () {
-    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+    if (!this.$store.state.app.isNewTab || this.outBizSn) { // 页签刷新 或 为弹框时调用
       this.$refs.table.refresh(true)
       this.getHouse()
     }

+ 1 - 1
src/views/purchasingManagement/purchaseReturn/detail.vue

@@ -122,7 +122,7 @@ export default {
     }
   },
   mounted () {
-    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+    if (!this.$store.state.app.isNewTab || this.outBizSn) { // 页签刷新 或 为弹框时调用
       this.$refs.table.refresh(true)
       this.getDetail()
     }

+ 1 - 1
src/views/salesManagement/salesQuery/detail.vue

@@ -238,7 +238,7 @@ export default {
     }
   },
   mounted () {
-    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+    if (!this.$store.state.app.isNewTab || this.outBizSn) { // 页签刷新 或 为弹框时调用
       this.$refs.table.refresh(true)
       this.getDetail()
     }

+ 1 - 1
src/views/salesManagement/urgentItemsOffset/detail.vue

@@ -168,7 +168,7 @@ export default {
     }
   },
   mounted () {
-    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+    if (!this.$store.state.app.isNewTab || this.outBizSn) { // 页签刷新 或 为弹框时调用
       this.$refs.table.refresh(true)
       this.getDetail()
     }