diff --git a/src/views/modules/label/logisticLabelRecord.vue b/src/views/modules/label/logisticLabelRecord.vue index 5013268..039146a 100644 --- a/src/views/modules/label/logisticLabelRecord.vue +++ b/src/views/modules/label/logisticLabelRecord.vue @@ -273,9 +273,8 @@ export default { } let qrCodeList = this.$refs.qrCode.init([row.qrCode]) row.qrCode = qrCodeList[0] - - for (let p in printer){ - printLogisticLabel([row],p.defaultPrinterName) + for (let j = 0; j < printer.length; j++) { + printLogisticLabel([row],printer[0].defaultPrinterName) } } }else { diff --git a/src/views/modules/label/printer.vue b/src/views/modules/label/printer.vue index 33012b8..cd94930 100644 --- a/src/views/modules/label/printer.vue +++ b/src/views/modules/label/printer.vue @@ -1078,7 +1078,7 @@ export default { let labelList = this.labelFormatList.filter((item)=> item.labelType === 'Logistic Label') for (let i = 0; i < this.currentPartLogistic.countOfPallets; i++) { let row = { - qrCode: `(00)${this.currentPartLogistic.partNo? this.currentPartLogistic.partNo : ''}(01)${this.currentPartLogistic.unitQtyPerPallet? this.currentPartLogistic.unitQtyPerPallet : ''}(02)${this.currentPartLogistic.umName? this.currentPartLogistic.umName : ''}(03)(04)(05)(06)(07)(08)(09)(10)${this.currentPartLogistic.partNo? this.currentPartLogistic.partNo : ''}`, + qrCode: `(00)${this.currentPartLogistic.partNo? this.currentPartLogistic.partNo : ''}(01)${this.currentPartLogistic.unitQtyPerPallet? this.currentPartLogistic.unitQtyPerPallet : ''}(02)${this.currentPartLogistic.umName? this.currentPartLogistic.umName : ''}(03)(04)(05)(06)(07)(08)(09)(10)${this.currentPartLogistic.poNo? this.currentPartLogistic.poNo : ''}`, partNo:this.currentPartLogistic.partNo, partDesc:this.currentPartLogistic.partDesc, poNo:this.currentPartLogistic.poNo,