gaoluyang
2025-03-31 f3c67c8993ceae10e89409fcaefa6a53e8e1df55
成品下单-缓存问题
已修改2个文件
已复制1个文件
已重命名1个文件
41 ■■■■■ 文件已修改
src/router/index.js 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/productOrder/components/addOrder.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/productOrder/components/addView.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/productOrder/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 },
      },
    ],
  },
src/views/business/productOrder/components/addOrder.vue
copy from src/views/business/productOrder/components/add.vue copy to src/views/business/productOrder/components/addOrder.vue
文件从 src/views/business/productOrder/components/add.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
src/views/business/productOrder/components/addView.vue
文件名从 src/views/business/productOrder/components/add.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
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;