From ea94e03636d6c074602c6c937f63a8b1c3e929b7 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Fri, 27 Dec 2024 14:14:39 +0800 Subject: [PATCH] =?UTF-8?q?24-12-27=20=E6=A0=87=E7=AD=BE=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../print/print_package_TCPlabel-NOOREVIEW.js | 2 +- src/views/modules/production/scanForm.vue | 36 ++++++++++++++----- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js b/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js index 4aa63db..f1401e7 100644 --- a/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js +++ b/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js @@ -13,7 +13,7 @@ export function printTCPPackageLabelNoPreview(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); diff --git a/src/views/modules/production/scanForm.vue b/src/views/modules/production/scanForm.vue index ba8668b..9c4a407 100644 --- a/src/views/modules/production/scanForm.vue +++ b/src/views/modules/production/scanForm.vue @@ -55,6 +55,19 @@ export default { // this.scanLabelDetailList = v } }, + totalWeight:{ + get(){ + return this.scanLabelDetailList.reduce((pre, cur) => { + if (cur.weight){ + return pre + new Decimal(cur.weight).toNumber() + } + return pre + }, 0); + }, + set(val) { + + } + } }, data(){ return{ @@ -180,6 +193,7 @@ export default { scanType:parseInt(arr[2]) !== this.partValue?'零散数量':'标准数量', seqNo:arr[3], printId:arr[4]?arr[4]:'', + weight:arr[5], createBy:this.$store.state.user.name, createData:dayjs().format("YYYY-MM-DD") } @@ -271,6 +285,9 @@ export default { + + + 删除 - - - + + + - - - - - - + + + + + + +