Browse Source

批量打印

master_hella_20240701
yufei0306 7 months ago
parent
commit
8fcf381b86
  1. 15
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

15
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -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 => {

Loading…
Cancel
Save