From 99cda620b8e070ea621b1b6dfa8b555790186d89 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期五, 01 八月 2025 08:38:17 +0800 Subject: [PATCH] 1.巡检新增工位扫描 2.生产报工优化 3.生产领料条码打印优化 4.产品绑定送检新增AGV 5.产品绑定提交优化 --- H5/Js/Scll.js | 76 +++++++++++++++++++------------------- 1 files changed, 38 insertions(+), 38 deletions(-) diff --git a/H5/Js/Scll.js b/H5/Js/Scll.js index 94a8b49..7545889 100644 --- a/H5/Js/Scll.js +++ b/H5/Js/Scll.js @@ -164,7 +164,7 @@ that.$notify({ type: 'success', message: json.message }); that.$playSound('success'); - that.sendMessage(json.data.tbBillList); + that.sendPrintMessage(json.data.tbBillList); that.$refs.barcode.focus(); that.getModel(); @@ -183,43 +183,43 @@ }, - sendMessage(tbBillList) { - const cfDetails = tbBillList.cfBarInfo.map(item => { - return "! 0 200 200 210 1\r\n" + - "PAGE - WIDTH 700 \r\n" + - "BOX 0 0 700 180 0 \r\n" + - `T 16 0 10 10 鐗╂枡缂栫爜锛歕r\n` + - `T 55 3 120 10 ${item.iteM_NO}\r\n` + - `T 16 0 310 10 ${item.item_name}\r\n` + - "T 55 2 10 42 鐗╂枡瑙勬牸锛歕r\n" + - `T 55 2 110 42 ${item.item_model}\r\n` + - "T 16 0 10 78 鏁伴噺锛歕r\n" + - `T 0 5 90 78 ${item.quantity}\r\n` + - `T 16 5 180 78 ${item.barType}\r\n` + - `BARCODE 128 1 25 35 350 130 ${item.iteM_BARCODE}\r\n` + - `T 0 1 350 130 ${item.iteM_BARCODE}\r\n` + - "T 55 0 10 125 鍒涘缓鏃堕棿锛歕r\n" + - `T 55 0 120 125 ${item.creatE_DATE}\r\n` + - "T 55 0 10 150 鎵撳嵃鏃堕棿锛歕r\n" + - `T 55 0 120 150 ${item.print_date}\r\n` + - "B QR 580 12 M 2 U 4\r\n" + - `MA,${item.iteM_BARCODE}\r\n` + - "ENDQR\r\nFORM\r\nPRINT\r\n"; - }); - //alert(cfDetails); - let sendData = { - Type: 'Bar', - Barcode: tbBillList.cfBarInfo[0].iteM_BARCODE, - Detail: cfDetails, - Ip: tbBillList.printInfo[0].ip, - Port: tbBillList.printInfo[0].port, - } - console.log('sendMessage 寮�濮�1:') - console.log('sendMessage 寮�濮�2:' + JSON.stringify(sendData)) - uni.webView.postMessage({ - data: JSON.stringify(sendData) - }) - }, + //sendMessage(tbBillList) { + // const cfDetails = tbBillList.cfBarInfo.map(item => { + // return "! 0 200 200 210 1\r\n" + + // "PAGE - WIDTH 700 \r\n" + + // "BOX 0 0 700 180 0 \r\n" + + // `T 16 0 10 10 鐗╂枡缂栫爜锛歕r\n` + + // `T 55 3 120 10 ${item.iteM_NO}\r\n` + + // `T 16 0 310 10 ${item.item_name}\r\n` + + // "T 55 2 10 42 鐗╂枡瑙勬牸锛歕r\n" + + // `T 55 2 110 42 ${item.item_model}\r\n` + + // "T 16 0 10 78 鏁伴噺锛歕r\n" + + // `T 0 5 90 78 ${item.quantity}\r\n` + + // `T 16 5 180 78 ${item.barType}\r\n` + + // `BARCODE 128 1 25 35 350 130 ${item.iteM_BARCODE}\r\n` + + // `T 0 1 350 130 ${item.iteM_BARCODE}\r\n` + + // "T 55 0 10 125 鍒涘缓鏃堕棿锛歕r\n" + + // `T 55 0 120 125 ${item.creatE_DATE}\r\n` + + // "T 55 0 10 150 鎵撳嵃鏃堕棿锛歕r\n" + + // `T 55 0 120 150 ${item.print_date}\r\n` + + // "B QR 580 12 M 2 U 4\r\n" + + // `MA,${item.iteM_BARCODE}\r\n` + + // "ENDQR\r\nFORM\r\nPRINT\r\n"; + // }); + // //alert(cfDetails); + // let sendData = { + // Type: 'Bar', + // Barcode: tbBillList.cfBarInfo[0].iteM_BARCODE, + // Detail: cfDetails, + // Ip: tbBillList.printInfo[0].ip, + // Port: tbBillList.printInfo[0].port, + // } + // console.log('sendMessage 寮�濮�1:') + // console.log('sendMessage 寮�濮�2:' + JSON.stringify(sendData)) + // uni.webView.postMessage({ + // data: JSON.stringify(sendData) + // }) + //}, //getPrintInfo() { // var that = this; -- Gitblit v1.9.3