From f3c67c8993ceae10e89409fcaefa6a53e8e1df55 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 31 三月 2025 13:59:58 +0800
Subject: [PATCH] 成品下单-缓存问题
---
src/views/business/productOrder/components/addOrder.vue | 8 +-------
src/views/business/productOrder/components/addView.vue | 9 +--------
src/views/business/productOrder/index.vue | 6 +++---
src/router/index.js | 18 +++++++++++++-----
4 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index e2b4cf6..61648ce 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -140,12 +140,20 @@
permissions: ["business:productOrder"],
children: [
{
- // 鎴愬搧涓嬪崟璇︽儏
- path: "add",
+ // 鏌ョ湅鎴愬搧涓嬪崟璇︽儏
+ path: "addView",
component: () =>
- import("@/views/business/productOrder/components/add.vue"),
- name: "Add",
- meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/productOrder",keepAlive: true },
+ import("@/views/business/productOrder/components/addView.vue"),
+ name: "AddView",
+ meta: { title: "鏌ョ湅鎴愬搧涓嬪崟", activeMenu: "/business/productOrder",keepAlive: true },
+ },
+ {
+ // 杩涜涓嬪崟-鎴愬搧涓嬪崟
+ path: "addOrder",
+ component: () =>
+ import("@/views/business/productOrder/components/addOrder.vue"),
+ name: "AddOrder",
+ meta: { title: "杩涜鎴愬搧涓嬪崟", activeMenu: "/business/productOrder",keepAlive: true },
},
],
},
diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/addOrder.vue
similarity index 99%
copy from src/views/business/productOrder/components/add.vue
copy to src/views/business/productOrder/components/addOrder.vue
index 7b0ad3c..5b9c516 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/addOrder.vue
@@ -600,7 +600,7 @@
import {mapGetters} from "vuex";
export default {
- name: 'Add',
+ name: 'AddOrder',
components: {
limsTable,
cableConfig,
@@ -844,12 +844,6 @@
this.getInfo()
},
activated() {
- this.$refs.addObj.resetFields()
- this.addObj.createTime = ''
- this.addObj.id = ''
- this.addObj.updateTime = ''
- this.sampleList = []
- this.productList = []
this.active = this.$route.query.active
this.tabIndex = this.$route.query.tabIndex
this.currentId = this.$route.query.currentId
diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/addView.vue
similarity index 99%
rename from src/views/business/productOrder/components/add.vue
rename to src/views/business/productOrder/components/addView.vue
index 7b0ad3c..b5ba69f 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/addView.vue
@@ -600,7 +600,7 @@
import {mapGetters} from "vuex";
export default {
- name: 'Add',
+ name: 'AddView',
components: {
limsTable,
cableConfig,
@@ -840,16 +840,9 @@
this.active = this.$route.query.active
this.tabIndex = this.$route.query.tabIndex
this.currentId = this.$route.query.currentId
- this.getUserNowData()
this.getInfo()
},
activated() {
- this.$refs.addObj.resetFields()
- this.addObj.createTime = ''
- this.addObj.id = ''
- this.addObj.updateTime = ''
- this.sampleList = []
- this.productList = []
this.active = this.$route.query.active
this.tabIndex = this.$route.query.tabIndex
this.currentId = this.$route.query.currentId
diff --git a/src/views/business/productOrder/index.vue b/src/views/business/productOrder/index.vue
index eb1e2c2..d8371fb 100644
--- a/src/views/business/productOrder/index.vue
+++ b/src/views/business/productOrder/index.vue
@@ -972,7 +972,7 @@
// 鐐瑰嚮鏍峰搧鍚嶇О
selectAllByOne(row) {
this.$router.push({
- path: "/productOrder/add", query: {
+ path: "/productOrder/addView", query: {
examine: 1,
active: 2,
currentId: row.id,
@@ -1243,11 +1243,11 @@
},
// 涓嬪崟
playOrder(num) {
- this.$router.push({ path: "/productOrder/add", query: { examine: 0, active: num, tabIndex: this.tabIndex } });
+ this.$router.push({ path: "/productOrder/addOrder", query: { examine: 0, active: num, tabIndex: this.tabIndex } });
},
// 瀹℃牳
handleVerify(row) {
- this.$router.push({ path: "/productOrder/add", query: { examine: 1, active: 3, currentId: row.id } });
+ this.$router.push({ path: "/productOrder/addView", query: { examine: 1, active: 3, currentId: row.id } });
},
handleTab(i) {
this.tabIndex = i;
--
Gitblit v1.9.3