|
@ -115,10 +115,11 @@ export default { |
|
|
_ids.push(item.packingCode) |
|
|
_ids.push(item.packingCode) |
|
|
}); |
|
|
}); |
|
|
this.Loading.appMainLoading = true; |
|
|
this.Loading.appMainLoading = true; |
|
|
|
|
|
let _printData = JSON.parse(JSON.stringify(this.propsData)) |
|
|
getInventoryLabelByCodes(_ids).then(res => { |
|
|
getInventoryLabelByCodes(_ids).then(res => { |
|
|
this.Loading.appMainLoading = false; |
|
|
this.Loading.appMainLoading = false; |
|
|
let _printData = {details:[]} |
|
|
|
|
|
if(res && res.length > 0){ |
|
|
if(res && res.length > 0){ |
|
|
|
|
|
_printData = {details:[]} |
|
|
_printData = { |
|
|
_printData = { |
|
|
supplierSimpleName:res[0].supplierSimpleName || "", |
|
|
supplierSimpleName:res[0].supplierSimpleName || "", |
|
|
supplierCode:res[0].supplierCode || "", |
|
|
supplierCode:res[0].supplierCode || "", |
|
@ -130,11 +131,11 @@ export default { |
|
|
asnNumber:res[0].asnNumber || "", |
|
|
asnNumber:res[0].asnNumber || "", |
|
|
details:[], |
|
|
details:[], |
|
|
} |
|
|
} |
|
|
|
|
|
res.forEach(item=>{ |
|
|
|
|
|
item.packingCode = item.code |
|
|
|
|
|
_printData.details.push(item) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
res.forEach(item=>{ |
|
|
|
|
|
item.packingCode = item.code |
|
|
|
|
|
_printData.details.push(item) |
|
|
|
|
|
}) |
|
|
|
|
|
let _data = initPrintPackingCodeManyData(_printData); |
|
|
let _data = initPrintPackingCodeManyData(_printData); |
|
|
this.Print(_data) |
|
|
this.Print(_data) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|