Browse Source

到货通知打印bug修复

dev_web_online
安虹睿 2 years ago
parent
commit
c8fc7d9d55
  1. 5
      fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseReceiptRequest.vue

5
fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseReceiptRequest.vue

@ -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=>{ res.forEach(item=>{
item.packingCode = item.code item.packingCode = item.code
_printData.details.push(item) _printData.details.push(item)
}) })
}
let _data = initPrintPackingCodeManyData(_printData); let _data = initPrintPackingCodeManyData(_printData);
this.Print(_data) this.Print(_data)
}).catch(err => { }).catch(err => {

Loading…
Cancel
Save