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

修改采购单打码逻辑

xuezizhuo пре 1 година
родитељ
комит
9aee6ddee0
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      zkqy-ui/src/views/orderMange/purchase/index.vue

+ 6 - 2
zkqy-ui/src/views/orderMange/purchase/index.vue

@@ -523,14 +523,18 @@ export default {
         },
       };
       let res = await listTableData(payLoad);
+      console.log(res.rows[0].resultMap.units,"打印数据")
+      console.log(res.rows[0].resultMap.specificationModel,"打印数据")
       let labelRes = await getDictLabel(purchaseMaterielId);
       if (res.code == 200 && labelRes.code == 200) {
         let data = res.rows[0]?.resultMap;
         printData.serialNumber = purchaseSerialNumber;
         printData.materielId = purchaseMaterielId;
         // printData.materielName = data?.materielName;//母粒名称
-        printData.units = purchaseUnits;
-        printData.specificationModel = purchaseSpecification;
+        // printData.units = purchaseUnits;
+        // printData.specificationModel = purchaseSpecification;
+        printData.units = res.rows[0].resultMap.units;
+        printData.specificationModel = res.rows[0].resultMap.specificationModel;
         printData.quantity=purchaseQuantity
         // printData.dictLabel = labelRes.msg;
       }