mushencc 3 vuotta sitten
vanhempi
commit
845e5caab6
1 muutettua tiedostoa jossa 29 lisäystä ja 11 poistoa
  1. 29 11
      src/views/ProductionOrderList/Dispatchlist/details.vue

+ 29 - 11
src/views/ProductionOrderList/Dispatchlist/details.vue

@@ -402,7 +402,25 @@ export default {
     },
   },
   mounted() {
-    this.getData(this.$route.query);
+      this.axios("/api/orders_dispatch_detail", 
+      { params: {page_size:this.pageSize,page_index:this.pageIndex,...this.$route.query} }).then((res) => {
+        if (res.code == 200) {
+          console.log(res);
+          this.tableData = res.data.list;
+          this.logList = res.data.detail;
+          this.total = res.data.total;
+          this.produce_id = res.data.produce_id;
+          this.house = res.data.house;
+          this.unit = res.data.unit;
+          this.storey = res.data.layer;
+          this.room_number = res.data.number_detail;
+          this.produce = res.data.product_title;
+          this.url_number = res.data.url_number;
+          this.parts = res.data.part_title;
+          this.house_list = res.data.basic_title;
+          this.unit_list = res.data.procedure_title;
+        }
+      });
     this.axios("/api/employee_list").then((res) => {
       console.log(res);
       this.username_list = res.data;
@@ -553,16 +571,16 @@ export default {
           this.tableData = res.data.list;
           this.logList = res.data.detail;
           this.total = res.data.total;
-          this.produce_id = res.data.produce_id;
-          this.house = res.data.house;
-          this.unit = res.data.unit;
-          this.storey = res.data.layer;
-          this.room_number = res.data.number_detail;
-          this.produce = res.data.product_title;
-          this.url_number = res.data.url_number;
-          this.parts = res.data.part_title;
-          this.house_list = res.data.basic_title;
-          this.unit_list = res.data.procedure_title;
+          // this.produce_id = res.data.produce_id;
+          // this.house = res.data.house;
+          // this.unit = res.data.unit;
+          // this.storey = res.data.layer;
+          // this.room_number = res.data.number_detail;
+          // this.produce = res.data.product_title;
+          // this.url_number = res.data.url_number;
+          // this.parts = res.data.part_title;
+          // this.house_list = res.data.basic_title;
+          // this.unit_list = res.data.procedure_title;
         }
       });
     },