瀏覽代碼

总码单

阿赫 9 月之前
父節點
當前提交
f2bedbb06f
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 3 3
      zkqy-ui/src/utils/print/printUtils.js
  2. 1 2
      zkqy-ui/src/views/orderMange/codeListManage/printIndex.vue

+ 3 - 3
zkqy-ui/src/utils/print/printUtils.js

@@ -71,7 +71,7 @@ function printCN_XSW(printRow) {
     printFormat, /*格式*/
     productName, /*产品名*/
     productSpecifications, /*规格*/
-    productColour, /*色泽*/
+    productColor, /*色泽*/
     lotNum, /*批次*/
     levels,/*等级*/
     directionOfTwist,/*捻向*/
@@ -82,7 +82,7 @@ function printCN_XSW(printRow) {
   } = printRow;
   let res = [];
   res.push({ key1: '品种', key2: productName || '', key3: '规格', key4: productSpecifications || '' })
-  res.push({ key1: '批号', key2: lotNum || '', key3: '色号', key4: productColour || '' })
+  res.push({ key1: '批号', key2: lotNum || '', key3: '色号', key4: productColor || '' })
   res.push({ key1: '等级', key2: levels || '', key3: '箱号', key4: qrCode || '', key5: boxNum || '' })
   res.push({ key1: '筒数', key2: canisterNum || '' + '    ' + tubeColor, key3: '捻向', key4: directionOfTwistLabel || ' ', })
   res.push({
@@ -139,7 +139,7 @@ function printCN_WJZ(printRow) {
 
 // 总码单
 function printCN_ZMD(printRow) {
-  console.log('总码单', printRow);
+  console.log('----------------', printRow);
   let {
     qrCode,/*序号*/
     machineTool,/*机台*/

+ 1 - 2
zkqy-ui/src/views/orderMange/codeListManage/printIndex.vue

@@ -793,14 +793,13 @@ export default {
       firstRowData.id = this.summertId;
       firstRowData.otherStates = 1;
       firstRowData.printFormat = "6"; //打印类型为总码单
-      // firstRowData.boxSumNum = this.tableData.length; //箱子总数
+      firstRowData.boxSumNum = this.tableData.length; //箱子总数
       firstRowData.boxNum = this.tableData.length; //箱子总数
       firstRowData.machineToolNo = this.lineOptions.find(
         (item) => item.id == this.form.machineTool
       ).productionLineNo;
       firstRowData.qrCodeId = uuidv4().slice(0, 8); //生成总码单自己的qrCodeId
       this.printTableData = [firstRowData];
-
       // 保存打印数据
       let payLoad = {
         ...firstRowData,