瀏覽代碼

修改tagsbug

QuKatie 3 年之前
父節點
當前提交
93a7e75cc8
共有 1 個文件被更改,包括 13 次插入18 次删除
  1. 13 18
      src/page/index/tags.vue

+ 13 - 18
src/page/index/tags.vue

@@ -135,29 +135,24 @@ export default {
     menuTag(value, action) {
       if (action === "remove") {
         let { tag, key } = this.findTag(value);
-            if (tag.label == "发货单(E)") {
+        if (tag.label == "发货单(E)") {
           this.$store.commit("OUT_OUT_DETAIL");
         }
         if (tag.label == "收货单(E)") {
           this.$store.commit("REC_OUT_DETAIL");
         }
-            if(tag.label=="国内发货单"){
-            this.$store.commit("IN_OUT_DETAIL");
-          }
-            if(tag.label=="发货单(I)"){
-            this.$store.commit("GO_OUT_DETAIL");
-          }
-          if(tag.label=="收货单(I)"){
-            this.$store.commit("TAKE_OUT_DETAIL");
-          }
-          if(tag.label=="付款管理"){
-            this.$store.commit("PAY_OUT_DETAIL");
-          }
-          this.$store.commit("DEL_TAG", tag);
-          if (tag.value === this.tag.value) {
-            tag = this.tagList[key === 0 ? key : key - 1]; //如果关闭本标签让前推一个
-            this.openTag(tag);
-          }
+        if (tag.label == "国内发货单") {
+          this.$store.commit("IN_OUT_DETAIL");
+        }
+        if (tag.label == "发货单(I)") {
+          this.$store.commit("GO_OUT_DETAIL");
+        }
+        if (tag.label == "收货单(I)") {
+          this.$store.commit("TAKE_OUT_DETAIL");
+        }
+        if (tag.label == "付款管理") {
+          this.$store.commit("PAY_OUT_DETAIL");
+        }
         this.$store.commit("DEL_TAG", tag);
         if (tag.value === this.tag.value) {
           tag = this.tagList[key === 0 ? key : key - 1]; //如果关闭本标签让前推一个