From 33a6362a6e50684b3652d6ac8bd7a61a9978f11b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 13 六月 2026 14:40:48 +0800
Subject: [PATCH] 君歌 1.对于新增订单需流转协同办公进行审批,审批完成流转生产管控-生产订单 2.客户分类修改为:核心、重要、普通、一般。 3.可对报价多次修改,修改后流转至协同办公-协同审批-报价审批,并对每次报价进行记录。 4.不合格管理字段按照单据进行修改。 5.谁登记的客户只能看见自己的,负责人(维护人)可以转移,操作加一个‘客户交接’按钮选择要交接给的负责人
---
src/plugins/tab.js | 42 ++++++++++++++++++++++++------------------
1 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/src/plugins/tab.js b/src/plugins/tab.js
index d9fd580..16755f0 100644
--- a/src/plugins/tab.js
+++ b/src/plugins/tab.js
@@ -1,20 +1,20 @@
-import store from '@/store'
+import useTagsViewStore from '@/store/modules/tagsView'
import router from '@/router'
export default {
// 鍒锋柊褰撳墠tab椤电
refreshPage(obj) {
- const { path, query, matched } = router.currentRoute.value;
+ const { path, query, matched } = router.currentRoute.value
if (obj === undefined) {
matched.forEach((m) => {
if (m.components && m.components.default && m.components.default.name) {
if (!['Layout', 'ParentView'].includes(m.components.default.name)) {
- obj = { name: m.components.default.name, path: path, query: query };
+ obj = { name: m.components.default.name, path: path, query: query }
}
}
- });
+ })
}
- return store.dispatch('tagsView/delCachedView', obj).then(() => {
+ return useTagsViewStore().delCachedView(obj).then(() => {
const { path, query } = obj
router.replace({
path: '/redirect' + path,
@@ -24,42 +24,48 @@
},
// 鍏抽棴褰撳墠tab椤电锛屾墦寮�鏂伴〉绛�
closeOpenPage(obj) {
- store.dispatch("tagsView/delView", router.currentRoute.value);
+ useTagsViewStore().delView(router.currentRoute.value)
if (obj !== undefined) {
- return router.push(obj);
+ return router.push(obj)
}
},
// 鍏抽棴鎸囧畾tab椤电
closePage(obj) {
if (obj === undefined) {
- return store.dispatch('tagsView/delView', router.currentRoute.value).then(({ lastPath }) => {
- return router.push(lastPath || '/index');
- });
+ return useTagsViewStore().delView(router.currentRoute.value).then(({ visitedViews }) => {
+ const latestView = visitedViews.slice(-1)[0]
+ if (latestView) {
+ return router.push(latestView.fullPath)
+ }
+ return router.push('/')
+ })
}
- return store.dispatch('tagsView/delView', obj);
+ return useTagsViewStore().delView(obj)
},
// 鍏抽棴鎵�鏈塼ab椤电
closeAllPage() {
- return store.dispatch('tagsView/delAllViews');
+ return useTagsViewStore().delAllViews()
},
// 鍏抽棴宸︿晶tab椤电
closeLeftPage(obj) {
- return store.dispatch('tagsView/delLeftTags', obj || router.currentRoute.value);
+ return useTagsViewStore().delLeftTags(obj || router.currentRoute.value)
},
// 鍏抽棴鍙充晶tab椤电
closeRightPage(obj) {
- return store.dispatch('tagsView/delRightTags', obj || router.currentRoute.value);
+ return useTagsViewStore().delRightTags(obj || router.currentRoute.value)
},
// 鍏抽棴鍏朵粬tab椤电
closeOtherPage(obj) {
- return store.dispatch('tagsView/delOthersViews', obj || router.currentRoute.value);
+ return useTagsViewStore().delOthersViews(obj || router.currentRoute.value)
},
// 鎵撳紑tab椤电
- openPage(url) {
- return router.push(url);
+ openPage(title, url, params) {
+ const obj = { path: url, meta: { title: title } }
+ useTagsViewStore().addView(obj)
+ return router.push({ path: url, query: params })
},
// 淇敼tab椤电
updatePage(obj) {
- return store.dispatch('tagsView/updateVisitedView', obj);
+ return useTagsViewStore().updateVisitedView(obj)
}
}
--
Gitblit v1.9.3