Sfoglia il codice sorgente

前端打印添加总码单标记

lph 10 mesi fa
parent
commit
7aae587da0

+ 9 - 0
zkqy-ui/src/api/tablelist/commonTable.js

@@ -439,4 +439,13 @@ export function printOutsourceOrder(data) {
     method: 'post',
     data: data,
   })
+}
+
+// 订单管理   重新登账接口
+export function againRecordBatch(data) {
+  return request({
+    url: '/system/order/againRecordBatch',
+    method: 'post',
+    data: data,
+  })
 }

+ 4 - 0
zkqy-ui/src/utils/print/codeListPrint.js

@@ -46,6 +46,7 @@ function codeListPrint(data, domId) {
       boxNum,//箱号
       packaging,
       qrCodeId,
+      otherStates,//总码单标记 1
     } = item
     // let theNumber = Number(printFormat) //小包装:1  大包装:2
     let theNumber = packaging == 3 ? 2 : 1;  //车丝和小包装都是1  大包装是2
@@ -59,6 +60,9 @@ function codeListPrint(data, domId) {
       // let qrCodeData = '123456';
       // let temp = id + '@' + uuid + '@' + canisterNum + '@' + suttle + '@' + grossWeight + '@' + lotNum + '@' + productName + '@' + productSpecifications + '@' + productColor + '@' + levels + '@' + qrCode + '@' + boxNum
       let temp = id + '@' + qrCodeId + '@' + canisterNum + '@' + suttle + '@' + grossWeight + '@' + qrCode
+      if (otherStates == 1) {
+        temp += "@" + 1; //总码单标识
+      }
       console.log('二维码数据:', productName, temp);
       // let resStr = encodeURIComponent(temp)
       if (printFormat == 3) {//打印英文版