Browse Source

20241022

dev
qiezi 1 year ago
parent
commit
39a9eeb1d8
  1. 5
      src/views/modules/label/logisticLabelRecord.vue
  2. 2
      src/views/modules/label/printer.vue

5
src/views/modules/label/logisticLabelRecord.vue

@ -273,9 +273,8 @@ export default {
} }
let qrCodeList = this.$refs.qrCode.init([row.qrCode]) let qrCodeList = this.$refs.qrCode.init([row.qrCode])
row.qrCode = qrCodeList[0] 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 { }else {

2
src/views/modules/label/printer.vue

@ -1078,7 +1078,7 @@ export default {
let labelList = this.labelFormatList.filter((item)=> item.labelType === 'Logistic Label') let labelList = this.labelFormatList.filter((item)=> item.labelType === 'Logistic Label')
for (let i = 0; i < this.currentPartLogistic.countOfPallets; i++) { for (let i = 0; i < this.currentPartLogistic.countOfPallets; i++) {
let row = { 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, partNo:this.currentPartLogistic.partNo,
partDesc:this.currentPartLogistic.partDesc, partDesc:this.currentPartLogistic.partDesc,
poNo:this.currentPartLogistic.poNo, poNo:this.currentPartLogistic.poNo,

Loading…
Cancel
Save