mushencc преди 3 години
родител
ревизия
dbe6166033
променени са 1 файла, в които са добавени 36 реда и са изтрити 36 реда
  1. 36 36
      src/views/ProductionOrderList/InboundForm/details.vue

+ 36 - 36
src/views/ProductionOrderList/InboundForm/details.vue

@@ -443,42 +443,42 @@ export default {
       this.getData(row);
     },
     getOptions() {
-      this.axios("/api/orders_list_detail", {
-        params: { order_no: this.$route.query.order_no ,type:this.$route.query.type},
-      }).then((res) => {
-        res.data.house.map((v) => {
-          v.value = v.house;
-          v.label = v.house;
-        });
-        res.data.unit.map((v) => {
-          v.value = v.unit;
-          v.label = v.unit;
-        });
-        res.data.layer.map((v) => {
-          v.value = v.layer;
-          v.label = v.layer;
-        });
-        res.data.number_detail.map((v) => {
-          v.value = v.number;
-          v.label = v.number;
-        });
-        res.data.product_title.map((v) => {
-          (v.value = v.title), (v.label = v.title);
-        });
-        res.data.part_title.map((v) => {
-          (v.value = v.title), (v.label = v.title);
-        });
-        res.data.url_number.map(v=>{
-          (v.value=v.url_number),(v.label = v.url_number);
-        })
-        this.list[0].option = res.data.house;
-        this.list[1].option = res.data.unit;
-        this.list[2].option = res.data.layer;
-        this.list[3].option = res.data.number_detail;
-        this.list[4].option = res.data.product_title;
-        this.list[5].option = res.data.url_number;
-        this.list[6].option = res.data.part_title;
-      });
+      // this.axios("/api/orders_list_detail", {
+      //   params: { order_no: this.$route.query.order_no ,type:this.$route.query.type},
+      // }).then((res) => {
+      //   res.data.house.map((v) => {
+      //     v.value = v.house;
+      //     v.label = v.house;
+      //   });
+      //   res.data.unit.map((v) => {
+      //     v.value = v.unit;
+      //     v.label = v.unit;
+      //   });
+      //   res.data.layer.map((v) => {
+      //     v.value = v.layer;
+      //     v.label = v.layer;
+      //   });
+      //   res.data.number_detail.map((v) => {
+      //     v.value = v.number;
+      //     v.label = v.number;
+      //   });
+      //   res.data.product_title.map((v) => {
+      //     (v.value = v.title), (v.label = v.title);
+      //   });
+      //   res.data.part_title.map((v) => {
+      //     (v.value = v.title), (v.label = v.title);
+      //   });
+      //   res.data.url_number.map(v=>{
+      //     (v.value=v.url_number),(v.label = v.url_number);
+      //   })
+      //   this.list[0].option = res.data.house;
+      //   this.list[1].option = res.data.unit;
+      //   this.list[2].option = res.data.layer;
+      //   this.list[3].option = res.data.number_detail;
+      //   this.list[4].option = res.data.product_title;
+      //   this.list[5].option = res.data.url_number;
+      //   this.list[6].option = res.data.part_title;
+      // });
     },
     getData(row) {
       this.loading = true;