Ver Fonte

【修改】自动预留单配置

howie há 2 anos atrás
pai
commit
1b48597d9c
1 ficheiros alterados com 11 adições e 4 exclusões
  1. 11 4
      src/views/setting/other.vue

+ 11 - 4
src/views/setting/other.vue

@@ -569,8 +569,8 @@ export default {
       console.log(val);
       this.getDetail(val);
     },
-    getDictList(type) {
-      getDictList({ sysDictEnum: type }).then((res) => {
+    getDictList(e, type) {
+      getDictList({ sysDictEnum: e }).then((res) => {
         console.log(res, "99");
         let data = res.data.map((item) => {
           return {
@@ -581,6 +581,13 @@ export default {
           };
         });
         if (type != "fourth") {
+          if (e === "FO_SHAN_RESERVED_DAY") {
+            this[type + "Form"].input1 = data[0];
+            return;
+          } else if (e === "GUANG_ZHOU_RESERVED_DAY") {
+            this[type + "Form"].input2 = data[0];
+            return;
+          }
           this[type + "Form"].input1 = data[0];
           // this[type + "Form"].input2 = data[1];
           console.log(777, this[type + "Form"].input1);
@@ -616,11 +623,11 @@ export default {
       };
       if (type === "third") {
         MAP[type].forEach((e) => {
-          this.getDictList(e);
+          this.getDictList(e, type);
         });
         return;
       }
-      this.getDictList(MAP[type]);
+      this.getDictList(MAP[type], type);
     },
 
     submitForm(type) {