Преглед изворни кода

CategoryVo: weightUnit <- {netWeightUnit,roughtWeightUnit}

wanxq пре 2 година
родитељ
комит
66f349bc1f

+ 2 - 2
src/api/productionPlan/order.js

@@ -23,8 +23,8 @@ export async function getDeviceList ({ productionId }) {
 }
 
 // 生产计划添加工单列表
-export async function getPlanDeviceList ({ productionId }) {
-  const res = await request.get(`/aps/workorder/getDeviceList/${productionId}`);
+export async function getPlanDeviceList ({ produceVersionId }) {
+  const res = await request.get(`/aps/workorder/getDeviceList/${produceVersionId}`);
   if (res.data.code == 0) {
     return res.data.data;
   }

+ 1 - 1
src/components/CreatePlan/equipment-dailog.vue

@@ -148,7 +148,7 @@
 		const fn = val?getPlanDeviceList:getDeviceList
         const data = await fn({
           name: this.name,
-          productionId: this.produceVersionId
+          produceVersionId: this.produceVersionId
         });
         this.datasource = data || [];
       },

+ 1 - 4
src/views/saleOrder/components/create-order.vue

@@ -321,10 +321,7 @@
                 categoryId: item.id,
                 productCode: item.code,
                 productName: item.name,
-                productUnitWeight:
-                  item.netWeightUnit == 'G'
-                    ? (item.netWeight * 1000000) / 1000000000
-                    : item.netWeight,
+                productUnitWeight: item.weightUnit == 'G' ? item.netWeight / 1000 : item.netWeight,
                 model: item.modelType,
                 brandNo: item.brandNum
               };