瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
9ae55dbfd8
共有 60 個文件被更改,包括 369 次插入17 次删除
  1. 2 1
      src/components/MultiTab/MultiTab.vue
  2. 1 1
      src/store/getters.js
  3. 1 1
      src/store/modules/app.js
  4. 6 0
      src/views/allocationManagement/chainTransferIn/list.vue
  5. 6 0
      src/views/allocationManagement/chainTransferOut/list.vue
  6. 6 0
      src/views/allocationManagement/storeTransferOut/list.vue
  7. 6 0
      src/views/allocationManagement/warehouseAllocation/list.vue
  8. 6 0
      src/views/basicData/bulkPartsTypeManagement/list.vue
  9. 6 0
      src/views/basicData/customerTypeManagement/list.vue
  10. 6 0
      src/views/basicData/expenseType/list.vue
  11. 6 0
      src/views/basicData/storeTransferOutTypeManagement/list.vue
  12. 13 6
      src/views/bulkManagement/bulkImport/list.vue
  13. 6 0
      src/views/bulkManagement/bulkReturnGoods/list.vue
  14. 6 0
      src/views/bulkManagement/bulkWarehousingOrder/list.vue
  15. 6 0
      src/views/customerManagement/customerInfo/list.vue
  16. 6 0
      src/views/financialManagement/companyCollectionPayment/list.vue
  17. 6 0
      src/views/financialManagement/companyReceivablePayable/list.vue
  18. 6 0
      src/views/financialManagement/expenseManagement/list.vue
  19. 6 0
      src/views/financialManagement/financialCollection/list.vue
  20. 6 0
      src/views/financialManagement/financialPayment/list.vue
  21. 6 0
      src/views/financialManagement/inventoryCheckAudit/list.vue
  22. 6 0
      src/views/financialManagement/inventoryReview/list.vue
  23. 6 0
      src/views/financialManagement/ledgerRecord/list.vue
  24. 6 0
      src/views/financialManagement/warehousingAudit/list.vue
  25. 6 0
      src/views/financialManagement/withdrawalManagement/list.vue
  26. 6 0
      src/views/inventoryManagement/inventoryChecking/list.vue
  27. 13 6
      src/views/inventoryManagement/inventoryImport/list.vue
  28. 6 0
      src/views/inventoryManagement/inventoryQuery/list.vue
  29. 6 0
      src/views/inventoryManagement/inventoryWarning/list.vue
  30. 6 0
      src/views/inventoryManagement/satelliteWarehouseInventory/list.vue
  31. 13 0
      src/views/inventoryManagement/warehouse/list.vue
  32. 6 0
      src/views/inventoryManagement/warehouse/storingLocation/list.vue
  33. 6 0
      src/views/notice/list.vue
  34. 6 0
      src/views/outboundOrderManagement/outboundOrder/list.vue
  35. 6 0
      src/views/productManagement/newProduct/list.vue
  36. 6 0
      src/views/productManagement/priceChangeRecord/list.vue
  37. 6 0
      src/views/productManagement/productBrand/list.vue
  38. 6 0
      src/views/productManagement/productCategory/list.vue
  39. 6 0
      src/views/productManagement/productInfo/list.vue
  40. 6 0
      src/views/productManagement/productInfoJg/list.vue
  41. 6 0
      src/views/purchasingManagement/purchaseOrder/list.vue
  42. 6 0
      src/views/purchasingManagement/purchaseReturn/list.vue
  43. 6 0
      src/views/reportData/chainCustomerReport/list.vue
  44. 6 0
      src/views/reportData/chainReceivedSendStorageReport/list.vue
  45. 6 0
      src/views/reportData/chainSalesDetailReport/list.vue
  46. 6 0
      src/views/reportData/chainSalesReport/list.vue
  47. 6 0
      src/views/reportData/chainStockReport/list.vue
  48. 8 2
      src/views/reportData/customerReport/list.vue
  49. 6 0
      src/views/reportData/receivedSendStorageReport/list.vue
  50. 6 0
      src/views/reportData/stockExpenditureReport/list.vue
  51. 6 0
      src/views/reportData/stockIncomeReport/list.vue
  52. 6 0
      src/views/salesManagement/giftRecord/list.vue
  53. 6 0
      src/views/salesManagement/quotation/list.vue
  54. 6 0
      src/views/salesManagement/salesQuery/list.vue
  55. 6 0
      src/views/salesManagement/salesReturn/list.vue
  56. 6 0
      src/views/salesManagement/salesman/list.vue
  57. 6 0
      src/views/salesManagement/urgentItemsOffset/list.vue
  58. 6 0
      src/views/storeManagement/bind/list.vue
  59. 6 0
      src/views/storeManagement/userAuthorization/list.vue
  60. 6 0
      src/views/supplierManagement/supplierInfo/list.vue

+ 2 - 1
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) {
@@ -150,7 +152,6 @@ export default {
         // this.$router.push({ path: row.fullPath, query: { closeLastOldTab: true } })  //  需求:切换页签需关掉子页面
         this.$router.push({ path: row.path }) //  需求:切换页签不需关掉子页面
       }
-      this.$store.state.app.routeList = this.tabsList
     }
   },
   render () {

+ 1 - 1
src/store/getters.js

@@ -16,7 +16,7 @@ const getters = {
   lang: state => state.i18n.lang,
   nowRoute: state => state.app.nowRoute,
   isShowVideo: state => state.app.isShowVideo,
-  routeList: state => state.app.routeList
+  isNewTab: state => state.app.isNewTab
 }
 
 export default getters

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

@@ -27,7 +27,7 @@ const app = {
     multiTab: true,
     nowRoute: '', // 当前路由
     isShowVideo: false ,// 是否显示视频弹窗
-    routeList: [] // 路由数组
+    isNewTab: false
   },
   mutations: {
     SET_SIDEBAR_TYPE: (state, type) => {

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

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

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

@@ -310,6 +310,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/allocationManagement/storeTransferOut/list.vue

@@ -295,6 +295,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/allocationManagement/warehouseAllocation/list.vue

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

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

@@ -127,6 +127,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/basicData/customerTypeManagement/list.vue

@@ -143,6 +143,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/basicData/expenseType/list.vue

@@ -163,6 +163,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/storeTransferOutTypeManagement/list.vue

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

+ 13 - 6
src/views/bulkManagement/bulkImport/list.vue

@@ -130,6 +130,11 @@ export default {
         this.uploadData = null
       }
     },
+    resetSearchForm () {
+      this.$refs.table.clearTable() //  清空列表数据
+      this.$refs.importUpload.setFileList() //  清空导入文件
+      this.uploadData = null //  清空上传数据
+    },
     // 确认导入
     handleConfirm () {
       const _this = this
@@ -142,9 +147,7 @@ export default {
           stockImportFinish({ stockImportSn: _this.uploadData && _this.uploadData.stockImportSn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.$refs.table.clearTable() //  清空列表数据
-              _this.$refs.importUpload.setFileList() //  清空导入文件
-              _this.uploadData = null //  清空上传数据
+              _this.resetSearchForm()
               _this.spinning = false
             } else {
               _this.spinning = false
@@ -165,9 +168,7 @@ export default {
           stockImportCancel({ stockImportSn: _this.uploadData && _this.uploadData.stockImportSn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.$refs.table.clearTable() //  清空列表数据
-              _this.$refs.importUpload.setFileList() //  清空导入文件
-              _this.uploadData = null //  清空上传数据
+              _this.resetSearchForm()
               _this.spinning = false
             } else {
               _this.spinning = false
@@ -229,6 +230,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

+ 6 - 0
src/views/bulkManagement/bulkReturnGoods/list.vue

@@ -323,6 +323,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/bulkManagement/bulkWarehousingOrder/list.vue

@@ -353,6 +353,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/customerManagement/customerInfo/list.vue

@@ -342,6 +342,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/companyCollectionPayment/list.vue

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

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

@@ -152,6 +152,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/financialManagement/expenseManagement/list.vue

@@ -322,6 +322,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/financialCollection/list.vue

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

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

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

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

@@ -185,6 +185,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/inventoryReview/list.vue

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

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

@@ -173,6 +173,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/warehousingAudit/list.vue

@@ -223,6 +223,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/withdrawalManagement/list.vue

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

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

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

+ 13 - 6
src/views/inventoryManagement/inventoryImport/list.vue

@@ -126,6 +126,11 @@ export default {
         this.uploadData = null
       }
     },
+    resetSearchForm () {
+      this.$refs.table.clearTable() //  清空列表数据
+      this.$refs.importUpload.setFileList() //  清空导入文件
+      this.uploadData = null //  清空上传数据
+    },
     // 确认导入
     handleConfirm () {
       const _this = this
@@ -138,9 +143,7 @@ export default {
           stockImportFinish({ stockImportSn: _this.uploadData && _this.uploadData.stockImportSn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.$refs.table.clearTable() //  清空列表数据
-              _this.$refs.importUpload.setFileList() //  清空导入文件
-              _this.uploadData = null //  清空上传数据
+              _this.resetSearchForm()
               _this.spinning = false
             } else {
               _this.spinning = false
@@ -161,9 +164,7 @@ export default {
           stockImportCancel({ stockImportSn: _this.uploadData && _this.uploadData.stockImportSn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.$refs.table.clearTable() //  清空列表数据
-              _this.$refs.importUpload.setFileList() //  清空导入文件
-              _this.uploadData = null //  清空上传数据
+              _this.resetSearchForm()
               _this.spinning = false
             } else {
               _this.spinning = false
@@ -225,6 +226,12 @@ export default {
       }, 400)
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   beforeRouteEnter (to, from, next) {
     next(vm => {})
   }

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

@@ -353,6 +353,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

@@ -442,6 +442,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/inventoryManagement/satelliteWarehouseInventory/list.vue

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

+ 13 - 0
src/views/inventoryManagement/warehouse/list.vue

@@ -158,11 +158,24 @@ export default {
       this.tableHeight = window.innerHeight - tableSearchH - 235
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   mounted () {
     const _this = this
     this.$nextTick(() => { // 页面渲染完成后的回调
       _this.setTableH()
     })
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {
+      if (!vm.disabled) {
+        vm.resetSearchForm()
+      }
+    })
   }
 }
 </script>

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

@@ -175,6 +175,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/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/outboundOrderManagement/outboundOrder/list.vue

@@ -325,6 +325,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/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

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

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

@@ -159,6 +159,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

@@ -94,6 +94,12 @@ export default {
       nowData: null //  当前记录数据
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.$refs.table.refresh(true)
+    }
+  },
   methods: {
     //  新增子级
     handleAdd (row) {

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

@@ -339,6 +339,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/productInfoJg/list.vue

@@ -294,6 +294,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/purchasingManagement/purchaseOrder/list.vue

@@ -310,6 +310,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/purchasingManagement/purchaseReturn/list.vue

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

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

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

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

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

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

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

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

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

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

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

+ 8 - 2
src/views/reportData/customerReport/list.vue

@@ -173,7 +173,7 @@ export default {
       addrProvinceList: [], //  省下拉
       addrCityList: [], //  市下拉
       addrDistrictList: [], //  区下拉
-      productTypeList: [], //  分类下拉数据
+      productTypeList: [] //  分类下拉数据
     }
   },
   methods: {
@@ -287,7 +287,13 @@ export default {
           }
         }
       })
-    },
+    }
+  },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {

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

@@ -269,6 +269,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/stockExpenditureReport/list.vue

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

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

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

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

@@ -149,6 +149,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/salesManagement/quotation/list.vue

@@ -139,6 +139,12 @@ export default {
       openModal: false // 基本信息弹框是否显示
     }
   },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.resetSearchForm()
+    }
+  },
   methods: {
     //  时间  change
     dateChange (date) {

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

@@ -432,6 +432,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/salesManagement/salesReturn/list.vue

@@ -285,6 +285,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/salesManagement/salesman/list.vue

@@ -198,6 +198,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/urgentItemsOffset/list.vue

@@ -164,6 +164,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/storeManagement/bind/list.vue

@@ -147,6 +147,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/storeManagement/userAuthorization/list.vue

@@ -157,6 +157,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/supplierManagement/supplierInfo/list.vue

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