|
@@ -728,12 +728,16 @@ export default {
|
|
|
this.$message.success("已关闭读数");
|
|
|
} else {
|
|
|
// 开启读数时 先获取码单号
|
|
|
- let res = await getQrCode();
|
|
|
- if (res.code == 200) {
|
|
|
- this.qrCode = res.msg;
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
+ if (this.tableData.length == 0) {
|
|
|
+ //左侧表单为空时才获取码单号
|
|
|
+ let res = await getQrCode();
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.qrCode = res.msg;
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
this.initWebSocket();
|
|
|
}
|
|
|
},
|
|
@@ -962,7 +966,7 @@ export default {
|
|
|
// payload.qrCodeVal = encodeURIComponent(temp);
|
|
|
payload.qrCodeVal = temp;
|
|
|
console.log("二维码数据", temp);
|
|
|
- payload.remark = remark || "暂无";
|
|
|
+ payload.remark = remark || "注:不同批号,请勿混用";
|
|
|
payload.mapList = getServerPrintData(printRow);
|
|
|
payload.printType = printFormat == 3 ? "export" : "normal";
|
|
|
try {
|
|
@@ -1063,14 +1067,14 @@ export default {
|
|
|
});
|
|
|
this.changeGrossWeight(this.printTableData[0]);
|
|
|
// 前端打印
|
|
|
- // codeListPrint(this.printTableData, "printDom");
|
|
|
+ codeListPrint(this.printTableData, "printDom");
|
|
|
|
|
|
- // if (this.excuteType == 1) {
|
|
|
- // this.tableData.push(this.printTableData[0]);
|
|
|
- // }
|
|
|
+ if (this.excuteType == 1) {
|
|
|
+ this.tableData.push(this.printTableData[0]);
|
|
|
+ }
|
|
|
// 后端打印
|
|
|
console.log("newPrintHandler");
|
|
|
- this.newPrintHandler();
|
|
|
+ // this.newPrintHandler();
|
|
|
},
|
|
|
// 获取机台选项数据
|
|
|
async getLineOptionLsit() {
|