lichao 3 vuotta sitten
vanhempi
commit
8260877ca8
4 muutettua tiedostoa jossa 39 lisäystä ja 0 poistoa
  1. 3 0
      src/page/index/tags.vue
  2. 15 0
      src/router/views/index.js
  3. 1 0
      src/store/getters.js
  4. 20 0
      src/store/modules/ifdetail.js

+ 3 - 0
src/page/index/tags.vue

@@ -375,6 +375,9 @@ export default {
         if (tag.label == "报销") {
           this.$store.commit('BX_OUT_DETAIL');
         }
+        if (tag.label == "销售订单(D)") {
+          this.$store.commit('JXSSALE_OUT_DETAIL');
+        }
         this.$store.commit("DEL_TAG", tag);
         if (tag.value === this.tag.value) {
           tag = this.tagList[key === 0 ? key : key - 1]; //如果关闭本标签让前推一个

+ 15 - 0
src/router/views/index.js

@@ -1319,4 +1319,19 @@ export default [{
       component: () => import( /* webpackChunkName: "views" */ '@/views/workManagement/handoverSheet/index')
     }]
   },
+  //经销商产品调拨
+  {
+    path: '/dealer/allocation/index',
+    component: Layout,
+    hidden: true,
+    children: [{
+      path: '/dealer/allocation/index',
+      name: '产品调拨',
+      meta: {
+        i18n: '/dealer/allocation/index',
+        keepAlive: true,
+      },
+      component: () => import( /* webpackChunkName: "views" */ '@/views/dealer/allocation/index')
+    }]
+  },
 ]

+ 1 - 0
src/store/getters.js

@@ -50,5 +50,6 @@ const getters = {
   officeLyStatus: state => state.ifdetail.officeLyStatus,
   handOverStatus: state => state.ifdetail.handOverStatus,
   reimbursementStatus: state => state.ifdetail.reimbursementStatus,
+  dealerSaleStatus: state => state.ifdetail.dealerSaleStatus,
 }
 export default getters

+ 20 - 0
src/store/modules/ifdetail.js

@@ -24,6 +24,7 @@ const ifdetail = {
     officeLyStatus: false, //办公领用
     handOverStatus: false, // 交接单
     reimbursementStatus: false, // 报销
+    dealerSaleStatus: false, //经销商销售
   },
   actions: {},
   mutations: {
@@ -212,6 +213,13 @@ const ifdetail = {
     BX_OUT_DETAIL(state) {
       state.reimbursementStatus = false;
     },
+    // 经销商销售
+    JXSSALE_IN_DETAIL(state) {
+      state.dealerSaleStatus = true;
+    },
+    JXSSALE_OUT_DETAIL(state) {
+      state.dealerSaleStatus = false;
+    },
     //关闭所有
     DEL_ALL_DETAIL(state) {
       for (let item in state) {
@@ -286,6 +294,18 @@ const ifdetail = {
       if (tag.label == '采购申请') {
         state.officePurchaseStatus = true
       }
+      if (tag.label == '领用') {
+        state.officeLyStatus = true
+      }
+      if (tag.label == '交接单') {
+        state.handOverStatus = true
+      }
+      if (tag.label == '报销') {
+        state.reimbursementStatus = true
+      }
+      if (tag.label == '销售订单(D)') {
+        state.dealerSaleStatus = true
+      }
     }
   }