|
@ -117,7 +117,9 @@ export default { |
|
|
this.Loading.appMainLoading = true; |
|
|
this.Loading.appMainLoading = true; |
|
|
getInventoryLabelByCodes(_ids).then(res => { |
|
|
getInventoryLabelByCodes(_ids).then(res => { |
|
|
this.Loading.appMainLoading = false; |
|
|
this.Loading.appMainLoading = false; |
|
|
let _printData = { |
|
|
let _printData = {details:[]} |
|
|
|
|
|
if(res && res.length > 0){ |
|
|
|
|
|
_printData = { |
|
|
supplierSimpleName:res[0].supplierSimpleName || "", |
|
|
supplierSimpleName:res[0].supplierSimpleName || "", |
|
|
supplierCode:res[0].supplierCode || "", |
|
|
supplierCode:res[0].supplierCode || "", |
|
|
contacts:res[0].contacts || "", |
|
|
contacts:res[0].contacts || "", |
|
@ -128,6 +130,7 @@ export default { |
|
|
asnNumber:res[0].asnNumber || "", |
|
|
asnNumber:res[0].asnNumber || "", |
|
|
details:[], |
|
|
details:[], |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
res.forEach(item=>{ |
|
|
res.forEach(item=>{ |
|
|
item.packingCode = item.code |
|
|
item.packingCode = item.code |
|
|
_printData.details.push(item) |
|
|
_printData.details.push(item) |
|
|