|
|
@ -589,12 +589,13 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r |
|
|
|
|
|
|
|
if (item.itemType == '可采购') { |
|
|
|
array.push(item) |
|
|
|
} else if(item.itemType == '可制造') { |
|
|
|
} |
|
|
|
if (item.itemType == '可制造') { |
|
|
|
array1.push(item) |
|
|
|
} |
|
|
|
}) |
|
|
|
if (array.length>0) { |
|
|
|
await PackageApi.getPrintingLableId({packingNumbers:packingNumbers}).then(res => { |
|
|
|
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { |
|
|
|
console.log(res) |
|
|
|
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) |
|
|
|
}).catch(err => { |
|
|
@ -603,7 +604,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r |
|
|
|
}) |
|
|
|
} |
|
|
|
if (array1.length > 0) { |
|
|
|
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { |
|
|
|
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { |
|
|
|
console.log(res) |
|
|
|
window.open(src.value + '&asn_number=' + res) |
|
|
|
}).catch(err => { |
|
|
|