Procházet zdrojové kódy

订单管理修改色号选项数据接口

lph před 1 rokem
rodič
revize
a606d9413f
1 změnil soubory, kde provedl 8 přidání a 4 odebrání
  1. 8 4
      zkqy-ui/src/views/orderMange/index.vue

+ 8 - 4
zkqy-ui/src/views/orderMange/index.vue

@@ -758,6 +758,7 @@ import {
   addProductInvoice,
   updateProductInvoice,
   saleOrderList,
+  queryMaterielList,
 } from "@/api/tablelist/commonTable";
 import { listData } from "@/api/system/tenant/data";
 import { getToken } from "@/utils/auth";
@@ -843,6 +844,8 @@ export default {
         craftMark: "", //包装/贴唛
         shippingMethod: "", //运输方式
       },
+      sliceTypeOptions: [], //切片型号选项
+      colourNumberOptions: [], //色号选项
       allProductionOptions: [], //所有产品选项
       productionOptions: [],
       customerOptions: [],
@@ -1270,11 +1273,12 @@ export default {
             },
           },
         ];
-        let res = await queryDropDownBoxData(payLoad);
+        // let res = await queryDropDownBoxData(payLoad);
+        let res = await queryMaterielList();
         if (res.code == 200) {
-          console.log(res.data.resultMap);
-          let { materiel } = res.data.resultMap;
-          this.colourNumberOptions = materiel || [];
+          console.log(res.data);
+          // let { materiel } = res.data;
+          this.colourNumberOptions = res.data || [];
         } else {
           throw Error("获取下拉框数据失败");
         }