Browse Source

采购收货标签问题

intex_online20241228
张立 2 months ago
parent
commit
c0bb52fd5a
  1. 7
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

7
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

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

Loading…
Cancel
Save