From a35958164353c6910177bb2a8fc4507bb251b4e9 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Tue, 30 Jun 2026 15:45:12 +0800 Subject: [PATCH] keepalive --- src/pages/login/Home.vue | 6 +++--- .../xinrui/storage/instorage/NewMaterOtherInStoreGroup.vue | 3 ++- src/pages/xinrui/storage/instorage/SearchRelatedBill2.vue | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/login/Home.vue b/src/pages/login/Home.vue index e136f11..609a05a 100644 --- a/src/pages/login/Home.vue +++ b/src/pages/login/Home.vue @@ -125,7 +125,7 @@ export default { toPage (e) { // if (e.sonTree.length === 0) { // let name = e.path.substr(2) - // if (name === 'ProcedureInspection' || name === 'SoftWasteBarrelPrint' || name === 'NewMaterInStoreGroup' || name === 'SoftWasteInStoreGroup' || name === 'SoftWasteProfileInStore' || name === 'FinishProdBarrelPrint' || name === 'ChengPinBarrelPrint' || name === 'BarrelBagUpdate' || name === 'ReworkBarrelPrint' || name === 'SoftWasteBagPrint' || name === 'ChaipanManage' || name === 'RawMaterCheck' || name === 'ProductInstore' || name === 'PeifenOutStore' || name === 'ReturnMaterOutStore' || name === 'OtherOutStore' || name === 'CheckOutStore' || name === 'SaleOutStore' || name === 'SoftWasteCleanOutStore' || name === 'CleaningGroupBarrel' || name === 'PeifenBarrelPrint' || name === 'AbnormalBarrelPrint' || name === 'SoftWasteCleanInStore' || name === 'PowderMaterMoveStore') { + // if (name === 'ProcedureInspection' || name === 'SoftWasteBarrelPrint' || name === 'NewMaterInStoreGroup' || name === 'NewMaterOtherInStoreGroup' || name === 'SoftWasteInStoreGroup' || name === 'SoftWasteProfileInStore' || name === 'FinishProdBarrelPrint' || name === 'ChengPinBarrelPrint' || name === 'BarrelBagUpdate' || name === 'ReworkBarrelPrint' || name === 'SoftWasteBagPrint' || name === 'ChaipanManage' || name === 'RawMaterCheck' || name === 'ProductInstore' || name === 'PeifenOutStore' || name === 'ReturnMaterOutStore' || name === 'OtherOutStore' || name === 'CheckOutStore' || name === 'SaleOutStore' || name === 'SoftWasteCleanOutStore' || name === 'CleaningGroupBarrel' || name === 'PeifenBarrelPrint' || name === 'AbnormalBarrelPrint' || name === 'SoftWasteCleanInStore' || name === 'PowderMaterMoveStore') { // this.$store.dispatch('setKeepAlive', [name]) // } // this.$router.push(e.path.substr(2)) @@ -140,7 +140,7 @@ export default { }, toPage2 (e) { let name = e.path.substr(2) - if (name === 'ProcedureInspection' || name === 'SoftWasteBarrelPrint' || name === 'NewMaterInStoreGroup' || name === 'SoftWasteInStoreGroup' || name === 'SoftWasteProfileInStore' || name === 'FinishProdBarrelPrint' || name === 'ChengPinBarrelPrint' || name === 'BarrelBagUpdate' || name === 'ReworkBarrelPrint' || name === 'SoftWasteBagPrint' || name === 'ChaipanManage' || name === 'RawMaterCheck' || name === 'ProductInstore' || name === 'PeifenOutStore' || name === 'RawOutStore' || name === 'ReturnMaterOutStore' || name === 'OtherOutStore' || name === 'CheckOutStore' || name === 'SaleOutStore' || name === 'SoftWasteCleanOutStore' || name === 'CleaningGroupBarrel' || name === 'PeifenBarrelPrint' || name === 'AbnormalBarrelPrint' || name === 'SoftWasteCleanInStore' || name === 'ProcessMakePowder' || name === 'ProcessGrindBall' || name === 'ProcessSpray' || name === 'ProcessMix' || name === 'ProcessDry' || name === 'ProcessSeDry' || name === 'ProcessChuimo' || name === 'ProcessYatuan' || name === 'ProcessGranulation' || name === 'ProcessWipe' || name === 'MaintainExecution' || name === 'MaintainConfirm' || name === 'EquipRepair' || name === 'EquipRepairExecute' || name === 'EquipRepairConfirm' || name === 'SparePartInstore' || name === 'SparePartOutstore' || name === 'UseReturn' || name === 'RunLogFill' || name === 'XingcaiDeliver' || name === 'PowderMaterMoveStore') { + if (name === 'ProcedureInspection' || name === 'SoftWasteBarrelPrint' || name === 'NewMaterInStoreGroup' || name === 'NewMaterOtherInStoreGroup' || name === 'SoftWasteInStoreGroup' || name === 'SoftWasteProfileInStore' || name === 'FinishProdBarrelPrint' || name === 'ChengPinBarrelPrint' || name === 'BarrelBagUpdate' || name === 'ReworkBarrelPrint' || name === 'SoftWasteBagPrint' || name === 'ChaipanManage' || name === 'RawMaterCheck' || name === 'ProductInstore' || name === 'PeifenOutStore' || name === 'RawOutStore' || name === 'ReturnMaterOutStore' || name === 'OtherOutStore' || name === 'CheckOutStore' || name === 'SaleOutStore' || name === 'SoftWasteCleanOutStore' || name === 'CleaningGroupBarrel' || name === 'PeifenBarrelPrint' || name === 'AbnormalBarrelPrint' || name === 'SoftWasteCleanInStore' || name === 'ProcessMakePowder' || name === 'ProcessGrindBall' || name === 'ProcessSpray' || name === 'ProcessMix' || name === 'ProcessDry' || name === 'ProcessSeDry' || name === 'ProcessChuimo' || name === 'ProcessYatuan' || name === 'ProcessGranulation' || name === 'ProcessWipe' || name === 'MaintainExecution' || name === 'MaintainConfirm' || name === 'EquipRepair' || name === 'EquipRepairExecute' || name === 'EquipRepairConfirm' || name === 'SparePartInstore' || name === 'SparePartOutstore' || name === 'UseReturn' || name === 'RunLogFill' || name === 'XingcaiDeliver' || name === 'PowderMaterMoveStore') { this.$store.dispatch('setKeepAlive', [name]) } this.$router.push(e.path.substr(2)) @@ -166,7 +166,7 @@ export default { }, goInner (path) { let name = path.substr(1) - if (name === 'ProcedureInspection' || name === 'SoftWasteBarrelPrint' || name === 'NewMaterInStoreGroup' || name === 'SoftWasteInStoreGroup' || name === 'SoftWasteProfileInStore' || name === 'FinishProdBarrelPrint' || name === 'ChengPinBarrelPrint' || name === 'BarrelBagUpdate' || name === 'ReworkBarrelPrint' || name === 'SoftWasteBagPrint' || name === 'ChaipanManage' || name === 'RawMaterCheck' || name === 'ProductInstore' || name === 'PeifenOutStore' || name === 'RawOutStore' || name === 'ReturnMaterOutStore' || name === 'OtherOutStore' || name === 'CheckOutStore' || name === 'SaleOutStore' || name === 'SoftWasteCleanOutStore' || name === 'CleaningGroupBarrel' || name === 'PeifenBarrelPrint' || name === 'AbnormalBarrelPrint' || name === 'SoftWasteCleanInStore' || name === 'ProcessMakePowder' || name === 'ProcessGrindBall' || name === 'ProcessSpray' || name === 'ProcessMix' || name === 'ProcessDry' || name === 'ProcessSeDry' || name === 'ProcessChuimo' || name === 'ProcessYatuan' || name === 'ProcessGranulation' || name === 'ProcessWipe' || name === 'MaintainExecution' || name === 'MaintainConfirm' || name === 'EquipRepair' || name === 'EquipRepairExecute' || name === 'EquipRepairConfirm' || name === 'SparePartInstore' || name === 'SparePartOutstore' || name === 'UseReturn' || name === 'RunLogFill' || name === 'PowderMaterMoveStore') { + if (name === 'ProcedureInspection' || name === 'SoftWasteBarrelPrint' || name === 'NewMaterInStoreGroup' || name === 'NewMaterOtherInStoreGroup' || name === 'SoftWasteInStoreGroup' || name === 'SoftWasteProfileInStore' || name === 'FinishProdBarrelPrint' || name === 'ChengPinBarrelPrint' || name === 'BarrelBagUpdate' || name === 'ReworkBarrelPrint' || name === 'SoftWasteBagPrint' || name === 'ChaipanManage' || name === 'RawMaterCheck' || name === 'ProductInstore' || name === 'PeifenOutStore' || name === 'RawOutStore' || name === 'ReturnMaterOutStore' || name === 'OtherOutStore' || name === 'CheckOutStore' || name === 'SaleOutStore' || name === 'SoftWasteCleanOutStore' || name === 'CleaningGroupBarrel' || name === 'PeifenBarrelPrint' || name === 'AbnormalBarrelPrint' || name === 'SoftWasteCleanInStore' || name === 'ProcessMakePowder' || name === 'ProcessGrindBall' || name === 'ProcessSpray' || name === 'ProcessMix' || name === 'ProcessDry' || name === 'ProcessSeDry' || name === 'ProcessChuimo' || name === 'ProcessYatuan' || name === 'ProcessGranulation' || name === 'ProcessWipe' || name === 'MaintainExecution' || name === 'MaintainConfirm' || name === 'EquipRepair' || name === 'EquipRepairExecute' || name === 'EquipRepairConfirm' || name === 'SparePartInstore' || name === 'SparePartOutstore' || name === 'UseReturn' || name === 'RunLogFill' || name === 'PowderMaterMoveStore') { this.$store.dispatch('setKeepAlive', [name]) } this.$router.push(path) diff --git a/src/pages/xinrui/storage/instorage/NewMaterOtherInStoreGroup.vue b/src/pages/xinrui/storage/instorage/NewMaterOtherInStoreGroup.vue index 086fdcc..e160233 100644 --- a/src/pages/xinrui/storage/instorage/NewMaterOtherInStoreGroup.vue +++ b/src/pages/xinrui/storage/instorage/NewMaterOtherInStoreGroup.vue @@ -75,7 +75,7 @@ import SearchBox from '@components/SearchBox.vue' import {checkVehicle, checkBucket, confirmVehicleOther} from '@config/getData2.js' import {accAdd} from '@config/mUtils.js' export default { - name: 'NewMaterInStoreGroup', + name: 'NewMaterOtherInStoreGroup', components: { NavBar, SearchBox @@ -100,6 +100,7 @@ export default { next() }, activated () { + console.log(this.$store.getters.materObj.source_bill_code, '1source_bill_code') this.val3 = this.$store.getters.materObj.source_bill_code }, methods: { diff --git a/src/pages/xinrui/storage/instorage/SearchRelatedBill2.vue b/src/pages/xinrui/storage/instorage/SearchRelatedBill2.vue index f005e26..3e96952 100644 --- a/src/pages/xinrui/storage/instorage/SearchRelatedBill2.vue +++ b/src/pages/xinrui/storage/instorage/SearchRelatedBill2.vue @@ -55,7 +55,7 @@ import NavBar from '@components/NavBar.vue' import {getBillDtl2} from '@config/getData2.js' export default { - name: 'SearchRelatedBill', + name: 'SearchRelatedBill2', components: { NavBar },