lilei 3 سال پیش
والد
کامیت
c887b78aeb
63فایلهای تغییر یافته به همراه370 افزوده شده و 1 حذف شده
  1. 2 0
      src/components/MultiTab/MultiTab.vue
  2. 2 1
      src/store/modules/app.js
  3. 6 0
      src/views/allocationManagement/transferOut/list.vue
  4. 6 0
      src/views/basicData/transferTypeManagement/list.vue
  5. 6 0
      src/views/basicData/warehouse/list.vue
  6. 6 0
      src/views/basicData/warehouse/storingLocation/list.vue
  7. 6 0
      src/views/dealerManagement/dealerAccountManagement/list.vue
  8. 6 0
      src/views/dealerManagement/dealerRelationshipBinding/list.vue
  9. 6 0
      src/views/dealerManagement/marketingDivisionSet/list.vue
  10. 6 0
      src/views/dealerManagement/merchantInfoManagement/list.vue
  11. 6 0
      src/views/dealerManagement/rebateSettings/list.vue
  12. 6 0
      src/views/financialManagement/financialCollection/list.vue
  13. 6 0
      src/views/financialManagement/inventoryReview/list.vue
  14. 6 0
      src/views/financialManagement/returnConfirmation/list.vue
  15. 6 0
      src/views/financialManagement/warehousingConfirmation/list.vue
  16. 6 0
      src/views/inventoryManagement/intelligentReplenishment/list.vue
  17. 6 0
      src/views/inventoryManagement/inventoryChecking/list.vue
  18. 6 0
      src/views/inventoryManagement/inventoryQuery/list.vue
  19. 6 0
      src/views/inventoryManagement/inventoryWarning/list.vue
  20. 6 0
      src/views/productManagement/newProduct/list.vue
  21. 6 0
      src/views/productManagement/priceChangeRecord/list.vue
  22. 6 0
      src/views/productManagement/productBrand/list.vue
  23. 6 0
      src/views/productManagement/productCategory/list.vue
  24. 6 0
      src/views/productManagement/productInfo/list.vue
  25. 6 0
      src/views/productManagement/productLaunchAudit/list.vue
  26. 6 0
      src/views/productManagement/productLevel/list.vue
  27. 6 0
      src/views/productManagement/productOfflineAudit/list.vue
  28. 6 0
      src/views/productManagement/productPricing/list.vue
  29. 6 0
      src/views/productManagement/productUniversal/list.vue
  30. 6 0
      src/views/productManagement/purchaseBaseLimit/list.vue
  31. 6 0
      src/views/promotionRulesManagement/orderStatistics/list.vue
  32. 6 0
      src/views/promotionRulesManagement/productStatistics/list.vue
  33. 6 0
      src/views/promotionRulesManagement/promotionRules/list.vue
  34. 6 0
      src/views/purchasingManagement/bulkWarehousingOrder/list.vue
  35. 6 0
      src/views/reportData/actualSalesReport/list.vue
  36. 6 0
      src/views/reportData/allocationDetails/list.vue
  37. 6 0
      src/views/reportData/allocationOrderTotal/list.vue
  38. 6 0
      src/views/reportData/billingReturnReport/list.vue
  39. 6 0
      src/views/reportData/districtTypeSalesDetails/list.vue
  40. 6 0
      src/views/reportData/hPriceDifferenceDetailReport/list.vue
  41. 6 0
      src/views/reportData/nationalCustomerCostStatistics/list.vue
  42. 6 0
      src/views/reportData/priceDifferenceDetailReport/list.vue
  43. 6 0
      src/views/reportData/provinceTypeSalesDetails/list.vue
  44. 6 0
      src/views/reportData/regionalPromotionCostStatistics/list.vue
  45. 6 0
      src/views/reportData/returnSlipReport/list.vue
  46. 6 0
      src/views/reportData/salesAmountReport/list.vue
  47. 6 0
      src/views/reportData/salesDetails/list.vue
  48. 6 0
      src/views/reportData/salesReturnDetailReport/list.vue
  49. 6 0
      src/views/reportData/salesReturnReport/list.vue
  50. 6 0
      src/views/reportData/salesReturnsReport/list.vue
  51. 6 0
      src/views/reportData/salesSlipReport/list.vue
  52. 6 0
      src/views/salesManagement/backorder/list.vue
  53. 6 0
      src/views/salesManagement/examineVerify/list.vue
  54. 6 0
      src/views/salesManagement/outboundOrder/list.vue
  55. 6 0
      src/views/salesManagement/priceInquiry/list.vue
  56. 6 0
      src/views/salesManagement/pushOrderManagement/list.vue
  57. 6 0
      src/views/salesManagement/salesQuery/list.vue
  58. 6 0
      src/views/salesManagement/salesReturn/list.vue
  59. 6 0
      src/views/salesManagement/shortageStatisticsC/list.vue
  60. 6 0
      src/views/salesManagement/shortageStatisticsP/list.vue
  61. 6 0
      src/views/setting/notice/list.vue
  62. 6 0
      src/views/supplierManagement/associatedProductDetails/list.vue
  63. 6 0
      src/views/supplierManagement/supplierInfo/list.vue

+ 2 - 0
src/components/MultiTab/MultiTab.vue

@@ -138,8 +138,10 @@ export default {
       if (index < 0) { // 不存在
         this.tabsList.push(newVal.name)
         this.pages.push(newVal)
+        this.$store.state.app.isNewTab = true
       } else { // 已存在
         this.pages.splice(index, 1, newVal)
+        this.$store.state.app.isNewTab = false
       }
     },
     activeKey: function (newPathKey) {

+ 2 - 1
src/store/modules/app.js

@@ -24,7 +24,8 @@ const app = {
     autoHideHeader: false,
     color: null,
     weak: false,
-    multiTab: true
+    multiTab: true,
+    isNewTab: false
   },
   mutations: {
     SET_SIDEBAR_TYPE: (state, type) => {

+ 6 - 0
src/views/allocationManagement/transferOut/list.vue

@@ -300,6 +300,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.openModal = false

+ 6 - 0
src/views/basicData/transferTypeManagement/list.vue

@@ -120,6 +120,12 @@ export default {
       this.tableHeight = window.innerHeight - tableSearchH - 195
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.$refs.table.refresh(true)
+    }
+  },
   mounted () {
     const _this = this
     this.$nextTick(() => { // 页面渲染完成后的回调

+ 6 - 0
src/views/basicData/warehouse/list.vue

@@ -162,6 +162,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.$refs.table.refresh()

+ 6 - 0
src/views/basicData/warehouse/storingLocation/list.vue

@@ -172,6 +172,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.resetSearchForm()

+ 6 - 0
src/views/dealerManagement/dealerAccountManagement/list.vue

@@ -213,6 +213,12 @@ export default {
       this.tableHeight = window.innerHeight - tableSearchH - 235
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   mounted () {
     const _this = this
     this.$nextTick(() => { // 页面渲染完成后的回调

+ 6 - 0
src/views/dealerManagement/dealerRelationshipBinding/list.vue

@@ -127,6 +127,12 @@ export default {
     this.tableHeight = window.innerHeight - 290
     this.getList()
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   methods: {
     expand (expanded, record) {
       this.nowData = record

+ 6 - 0
src/views/dealerManagement/marketingDivisionSet/list.vue

@@ -139,6 +139,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
     })

+ 6 - 0
src/views/dealerManagement/merchantInfoManagement/list.vue

@@ -279,6 +279,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.$refs.table.refresh()

+ 6 - 0
src/views/dealerManagement/rebateSettings/list.vue

@@ -132,6 +132,12 @@ export default {
       this.tableHeight = window.innerHeight - tableSearchH - 195
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   mounted () {
     const _this = this
     this.$nextTick(() => { // 页面渲染完成后的回调

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

@@ -336,6 +336,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/financialManagement/inventoryReview/list.vue

@@ -162,6 +162,12 @@ export default {
       this.newTime = undefined
       this.$refs.table.refresh(true)
     }
+  },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
   }
 }
 </script>

+ 6 - 0
src/views/financialManagement/returnConfirmation/list.vue

@@ -226,6 +226,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/financialManagement/warehousingConfirmation/list.vue

@@ -251,6 +251,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/inventoryManagement/intelligentReplenishment/list.vue

@@ -189,6 +189,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.$refs.table.refresh(true)
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.spinning) {

+ 6 - 0
src/views/inventoryManagement/inventoryChecking/list.vue

@@ -215,6 +215,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/inventoryManagement/inventoryQuery/list.vue

@@ -355,6 +355,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/inventoryManagement/inventoryWarning/list.vue

@@ -435,6 +435,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductType()

+ 6 - 0
src/views/productManagement/newProduct/list.vue

@@ -241,6 +241,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.$refs.table.refresh(true)

+ 6 - 0
src/views/productManagement/priceChangeRecord/list.vue

@@ -349,6 +349,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/productManagement/productBrand/list.vue

@@ -205,6 +205,12 @@ export default {
       this.tableHeight = window.innerHeight - tableSearchH - 235
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   mounted () {
     const _this = this
     this.$nextTick(() => { // 页面渲染完成后的回调

+ 6 - 0
src/views/productManagement/productCategory/list.vue

@@ -157,6 +157,12 @@ export default {
         })
       }
     }
+  },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.$refs.table.refresh(true)
+    }
   }
 }
 </script>

+ 6 - 0
src/views/productManagement/productInfo/list.vue

@@ -594,6 +594,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/productManagement/productLaunchAudit/list.vue

@@ -132,6 +132,12 @@ export default {
       } : null
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   methods: {
     //  重置
     resetSearchForm () {

+ 6 - 0
src/views/productManagement/productLevel/list.vue

@@ -161,6 +161,12 @@ export default {
       nowData: null
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   methods: {
     //  重置
     resetSearchForm () {

+ 6 - 0
src/views/productManagement/productOfflineAudit/list.vue

@@ -191,6 +191,12 @@ export default {
       } : null
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   methods: {
     filterOption (input, option) {
       return (

+ 6 - 0
src/views/productManagement/productPricing/list.vue

@@ -264,6 +264,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/productManagement/productUniversal/list.vue

@@ -225,6 +225,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/productManagement/purchaseBaseLimit/list.vue

@@ -238,6 +238,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/promotionRulesManagement/orderStatistics/list.vue

@@ -232,6 +232,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/promotionRulesManagement/productStatistics/list.vue

@@ -254,6 +254,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/promotionRulesManagement/promotionRules/list.vue

@@ -215,6 +215,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/purchasingManagement/bulkWarehousingOrder/list.vue

@@ -281,6 +281,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.openModal = false

+ 6 - 0
src/views/reportData/actualSalesReport/list.vue

@@ -445,6 +445,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/allocationDetails/list.vue

@@ -458,6 +458,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/reportData/allocationOrderTotal/list.vue

@@ -239,6 +239,12 @@ export default {
       )
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getAllocateTypeAllList()

+ 6 - 0
src/views/reportData/billingReturnReport/list.vue

@@ -447,6 +447,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/districtTypeSalesDetails/list.vue

@@ -149,6 +149,12 @@ export default {
       this.$refs.table.refresh(true)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/reportData/hPriceDifferenceDetailReport/list.vue

@@ -322,6 +322,12 @@ export default {
       this.$refs.table.clearTable()
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/nationalCustomerCostStatistics/list.vue

@@ -412,6 +412,12 @@ export default {
       this.$refs.table.refresh(true)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/reportData/priceDifferenceDetailReport/list.vue

@@ -257,6 +257,12 @@ export default {
       link.click()
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/provinceTypeSalesDetails/list.vue

@@ -165,6 +165,12 @@ export default {
       this.$refs.table.refresh(true)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/reportData/regionalPromotionCostStatistics/list.vue

@@ -168,6 +168,12 @@ export default {
       this.$refs.table.refresh(true)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/reportData/returnSlipReport/list.vue

@@ -454,6 +454,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/salesAmountReport/list.vue

@@ -446,6 +446,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/salesDetails/list.vue

@@ -282,6 +282,12 @@ export default {
       this.$refs.table.refresh(true)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/reportData/salesReturnDetailReport/list.vue

@@ -469,6 +469,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/reportData/salesReturnReport/list.vue

@@ -447,6 +447,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/salesReturnsReport/list.vue

@@ -308,6 +308,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/reportData/salesSlipReport/list.vue

@@ -454,6 +454,12 @@ export default {
       })
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/salesManagement/backorder/list.vue

@@ -131,6 +131,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/salesManagement/examineVerify/list.vue

@@ -293,6 +293,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   watch: {
     advanced (newValue, oldValue) {
       const _this = this

+ 6 - 0
src/views/salesManagement/outboundOrder/list.vue

@@ -400,6 +400,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/salesManagement/priceInquiry/list.vue

@@ -214,6 +214,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductBrand()

+ 6 - 0
src/views/salesManagement/pushOrderManagement/list.vue

@@ -246,6 +246,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/salesManagement/salesQuery/list.vue

@@ -451,6 +451,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   watch: {
     advanced (newValue, oldValue) {
       const _this = this

+ 6 - 0
src/views/salesManagement/salesReturn/list.vue

@@ -395,6 +395,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getArea('province')

+ 6 - 0
src/views/salesManagement/shortageStatisticsC/list.vue

@@ -409,6 +409,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.getProductType()

+ 6 - 0
src/views/salesManagement/shortageStatisticsP/list.vue

@@ -180,6 +180,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       if (!vm.disabled) {

+ 6 - 0
src/views/setting/notice/list.vue

@@ -207,6 +207,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.openModal = false

+ 6 - 0
src/views/supplierManagement/associatedProductDetails/list.vue

@@ -154,6 +154,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.$refs.table.refresh()

+ 6 - 0
src/views/supplierManagement/supplierInfo/list.vue

@@ -149,6 +149,12 @@ export default {
       _this.setTableH()
     })
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {
       vm.$refs.table.refresh()