diff --git a/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js b/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js index 69ce7a0..4aa63db 100644 --- a/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js +++ b/src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js @@ -97,9 +97,10 @@ export function printTCPPackageLabelNoPreview(printList) { LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); LODOP.SET_PRINT_STYLEA(0,"FontSize",12); LODOP.SET_PRINT_STYLEA(0,"Bold",1); - LODOP.ADD_PRINT_TEXT(115,274,99,25,"MFG:"+printData.tcpValue+"g"); + LODOP.ADD_PRINT_TEXT(115,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); diff --git a/src/views/modules/production/bagLabelsTCP.vue b/src/views/modules/production/bagLabelsTCP.vue index cf08d36..fde5eff 100644 --- a/src/views/modules/production/bagLabelsTCP.vue +++ b/src/views/modules/production/bagLabelsTCP.vue @@ -112,7 +112,7 @@ export default { } linkWeighTPC(params).then(({data}) => { if (data && data.code === 0) { - this.$message.success("称重器连接成功!") + } else { this.$message.error(data.msg) @@ -157,11 +157,9 @@ export default { }) }, printTCPLabel(){ - console.log(this.soScheduleRouting.site) if (!this.soScheduleRouting.site) { return false } - console.log(this.nowTime) if (this.nowTime==''||this.nowTime==null) { return false } @@ -169,7 +167,6 @@ export default { if (this.soScheduleRouting.qtyBag === null || this.soScheduleRouting.qtyBag === undefined) { return false } - console.log('2') let params = { nowTime:this.nowTime, previousSeqNo: this.soScheduleRouting.previousSeqNo, @@ -179,11 +176,14 @@ export default { if (!params) { return } - console.log('3') getTCPPackagePrintDataList(params).then(({data}) => { if (data && data.code === 0) { if(data.rows.length>0){ - printTCPPackageLabelNoPreview(data.rows); + if(this.flag){ + this.weight=data.rows[0].tcpValue + }else { + printTCPPackageLabelNoPreview(data.rows); + } } this.searchData.flag = ''; } else {