|
@ -797,15 +797,18 @@ const labelPrint = async (row) => { |
|
|
} |
|
|
} |
|
|
// 批量打印 |
|
|
// 批量打印 |
|
|
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => { |
|
|
let rows:any = [] |
|
|
console.log('批量打印',val) |
|
|
val.forEach(item=>{ |
|
|
// let rows:any = [] |
|
|
rows = [...rows,...item.selectionRows.map(item1=>item1.id)] |
|
|
// val.forEach(item=>{ |
|
|
}) |
|
|
// rows = [...rows,...item.selectionRows.map(item1=>item1.number)] |
|
|
if(rows.length == 0){ |
|
|
// }) |
|
|
|
|
|
if(val.length == 0){ |
|
|
message.warning("请先选择要打印的数据!") |
|
|
message.warning("请先选择要打印的数据!") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
await PackageApi.batchPrintingLable(rows.join(',')).then(res => { |
|
|
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) |
|
|
|
|
|
|
|
|
|
|
|
await PackageApi.batchPrintingLable(val.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 => { |
|
|