lilei před 3 roky
rodič
revize
36c19fd1d0

+ 2 - 0
src/views/bulkManagement/bulkReturnGoods/detailModal.vue

@@ -151,6 +151,8 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+        this.basicInfoData = null
+        this.$refs.table.clearTable()
       } else {
         const _this = this
         setTimeout(() => (

+ 3 - 0
src/views/financialManagement/companyCollectionPayment/list.vue

@@ -217,6 +217,9 @@ export default {
     next(vm => {
       vm.getSettleStyle()
       vm.resetSearchForm()
+      if (!vm.disabled) {
+        vm.$refs.table.refresh()
+      }
     })
   }
 }

+ 3 - 1
src/views/financialManagement/companyReceivablePayable/list.vue

@@ -154,7 +154,9 @@ export default {
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
-      vm.$refs.table.refresh()
+      if (!vm.disabled) {
+        vm.$refs.table.refresh()
+      }
     })
   }
 }

+ 3 - 0
src/views/financialManagement/financialCollection/list.vue

@@ -215,6 +215,9 @@ export default {
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.queryByTypeSum()
+      if (!vm.disabled) {
+        vm.resetSearchForm()
+      }
     })
   },
   methods: {

+ 3 - 0
src/views/financialManagement/financialPayment/list.vue

@@ -214,6 +214,9 @@ export default {
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.queryByTypeSum()
+      if (!vm.disabled) {
+        vm.resetSearchForm()
+      }
     })
   },
   methods: {

+ 7 - 0
src/views/financialManagement/inventoryCheckAudit/list.vue

@@ -184,6 +184,13 @@ export default {
         _this.setTableH()
       }, 400)
     }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {
+      if (!vm.disabled) {
+        vm.resetSearchForm()
+      }
+    })
   }
 }
 </script>

+ 7 - 0
src/views/financialManagement/ledgerRecord/list.vue

@@ -172,6 +172,13 @@ export default {
         _this.setTableH()
       }, 400)
     }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {
+      if (!vm.disabled) {
+        vm.$refs.table.refresh()
+      }
+    })
   }
 }
 </script>

+ 7 - 0
src/views/financialManagement/warehousingAudit/list.vue

@@ -222,6 +222,13 @@ export default {
         _this.setTableH()
       }, 400)
     }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {
+      if (!vm.disabled) {
+        vm.resetSearchForm()
+      }
+    })
   }
 }
 </script>

+ 2 - 0
src/views/inventoryManagement/inventoryChecking/detailModal.vue

@@ -330,6 +330,8 @@ export default {
       if (!newValue) {
         this.$emit('close')
         this.printerType = 'NEEDLE'
+        this.$refs.table.clearTable()
+        this.basicInfoData = null
       } else {
         const _this = this
         setTimeout(() => (

+ 2 - 0
src/views/inventoryManagement/inventoryQuery/detailModal.vue

@@ -111,6 +111,8 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+        this.currentStock = null
+        this.$refs.table.clearTable()
       }
     }
   }

+ 5 - 1
src/views/outboundOrderManagement/outboundOrder/list.vue

@@ -326,7 +326,11 @@ export default {
     }
   },
   beforeRouteEnter (to, from, next) {
-    next(vm => {})
+    next(vm => {
+      if (!vm.disabled) {
+        vm.resetSearchForm()
+      }
+    })
   }
 }
 </script>

+ 4 - 3
src/views/productManagement/productInfo/detailModal.vue

@@ -42,9 +42,9 @@ export default {
   },
   computed: {
     productTypeName () {
-      const productTypeName1 = this.detailsData&&this.detailsData.productTypeName1 ? this.detailsData.productTypeName1 : ''
-      const productTypeName2 = this.detailsData&&this.detailsData.productTypeName2 ? ' > ' + this.detailsData.productTypeName2 : ''
-      const productTypeName3 = this.detailsData&&this.detailsData.productTypeName3 ? ' > ' + this.detailsData.productTypeName3 : ''
+      const productTypeName1 = this.detailsData && this.detailsData.productTypeName1 ? this.detailsData.productTypeName1 : ''
+      const productTypeName2 = this.detailsData && this.detailsData.productTypeName2 ? ' > ' + this.detailsData.productTypeName2 : ''
+      const productTypeName3 = this.detailsData && this.detailsData.productTypeName3 ? ' > ' + this.detailsData.productTypeName3 : ''
       return productTypeName1 + productTypeName2 + productTypeName3
     }
   },
@@ -75,6 +75,7 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+        this.detailsData = null
       }
     },
     itemId (newValue, oldValue) {

+ 3 - 1
src/views/purchasingManagement/purchaseOrder/warehousing.vue

@@ -189,12 +189,14 @@ export default {
     },
     //  详情
     getDetail () {
+      this.spinning = true
       receivingQuery({ purchaseBillSn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {
           this.detail = res.data
         } else {
           this.detail = null
         }
+        this.spinning = false
       })
     },
     //  仓库仓位  级联  列表
@@ -281,7 +283,7 @@ export default {
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
-      if (!vm.disabled) {
+      if (!vm.spinning) {
         vm.getDetail()
         vm.getWarehouseCascade()
       }

+ 2 - 2
src/views/salesManagement/salesReturn/salesReturnGrabEdit.vue

@@ -541,9 +541,9 @@ export default {
       this.orderId = this.$route.params.id
       this.orderSn = this.$route.params.sn
       this.buyerSn = this.$route.params.buyerSn
-      this.getOrderDetail()
-      this.getWarehouseCascade()
       if (!this.disabled) {
+        this.getOrderDetail()
+        this.getWarehouseCascade()
         this.resetForm()
       }
     }