From 892a8d3c739cdd654fdd52f8b6735068fb4431bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com>
Date: Thu, 7 Aug 2025 16:46:14 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=B7=A5=E8=BF=94=E4=BF=AE=E6=8A=A5?=
=?UTF-8?q?=E5=91=8A=EF=BC=9A=E8=BF=94=E4=BF=AE=E6=8A=A5=E5=B7=A5=E6=89=93?=
=?UTF-8?q?=E5=8D=B0=E6=A0=87=E7=AD=BE=20=20=E5=A2=9E=E5=8A=A0=E9=87=8D?=
=?UTF-8?q?=E9=87=8F=E8=BE=93=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/print/print_package_label-NOOREVIEW.js | 7 ++++++-
src/views/modules/production/reworkRecord.vue | 6 ++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/print/print_package_label-NOOREVIEW.js b/src/views/modules/print/print_package_label-NOOREVIEW.js
index b2a91fb..27534ee 100644
--- a/src/views/modules/print/print_package_label-NOOREVIEW.js
+++ b/src/views/modules/print/print_package_label-NOOREVIEW.js
@@ -13,7 +13,7 @@ export function printPackageLabelNoPreview(printList) {
LODOP.NewPage();
LODOP.SET_PRINT_PAGESIZE(0,1000,700,"");
// LODOP.ADD_PRINT_BARCODE(133,286,130,88,"QRCode",printData.partSpec);
- LODOP.ADD_PRINT_BARCODE(133,286,130,88,"QRCode",`${printData.site};${printData.partNo};${printData.unitQty};${printData.seqNo};${printData.printId}`);
+ LODOP.ADD_PRINT_BARCODE(133,286,130,88,"QRCode",`${printData.site};${printData.partNo};${printData.unitQty};${printData.seqNo};${printData.printId};${isNaN(printData.tcpValue)?'':printData.tcpValue}`);
LODOP.ADD_PRINT_TEXT(93,18,123,25,"Product No:");
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial");
LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
@@ -98,6 +98,11 @@ export function printPackageLabelNoPreview(printList) {
LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
+ LODOP.ADD_PRINT_TEXT(92,274,99,25,"BAG:"+printData.tcpValue+"g");
+ LODOP.SET_PRINT_STYLEA(0,"FontName","Arial");
+ LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
+ LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
+ LODOP.SET_PRINT_STYLEA(0,"Bold",1);
if(printData.code==='CODE128') {
LODOP.ADD_PRINT_BARCODE(40,143,236,23, "128A",printData.partSpec);
}else {
diff --git a/src/views/modules/production/reworkRecord.vue b/src/views/modules/production/reworkRecord.vue
index d9042d0..280f0f4 100644
--- a/src/views/modules/production/reworkRecord.vue
+++ b/src/views/modules/production/reworkRecord.vue
@@ -41,6 +41,7 @@ export default {
site:this.$store.state.user.site,
type:undefined,
},
+ weight:0,
soScheduleRouting: {},
printDataList: [],
reportWorkDialog:false,
@@ -309,6 +310,7 @@ export default {
item.receiveDate = this.saveRework.createTime2
item.inspector = this.saveRework.operatorId
item.unitQty = this.saveRework.qtyApprove
+ item.tcpValue = this.weight
})
if (data && data.code === 0) {
printPackageLabelNoPreview(this.printDataList);
@@ -481,6 +483,10 @@ export default {
+
+
+
确定