Browse Source

供应商发货申请批量打印标签代码

master_hella_20240701
chenfang 7 months ago
parent
commit
a36dce9f7f
  1. 63
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

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

@ -772,40 +772,41 @@ const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAcces
//
const searchTableRef = ref()
const labelPrint = async (row) => {
// tableObject.loading = true
// const subTableDFata = await PackageApi.getLabel(row.masterId)
// tableObject.loading = false
// const tableObject1 = {
// //
// currentPage: 1,
// //
// exportLoading: false,
// //
// loading: false,
// //
// pageSize: subTableDFata.length,
// params:null,
// //
// sort: {
// order: '', //
// prop: '' //
// },
// //
// total: subTableDFata.length,
// //
// tableList: subTableDFata,
// currentRow:null
// }
// console.log("",subTableDFata,tableObject1,SupplierdeliverRequestPackage.allSchemas)
console.log("------------",row);
tableObject.loading = true
const subTableDFata = await PackageApi.getLabel(row.masterId)
tableObject.loading = false
const tableObject1 = {
//
currentPage: 1,
//
exportLoading: false,
//
loading: false,
//
pageSize: subTableDFata.length,
params:null,
//
sort: {
order: '', //
prop: '' //
},
//
total: subTableDFata.length,
//
tableList: subTableDFata,
currentRow:null
}
console.log("标签打印",subTableDFata,tableObject1,SupplierdeliverRequestPackage.allSchemas)
// const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns
// tableColumns.forEach((item) => {
// item.width = item.table?.width || 150
// })
// searchTableRef.value.openData("",tableObject1,{tableColumns},true)
tableColumns.forEach((item) => {
item.width = item.table?.width || 150
})
searchTableRef.value.openData("采购收货记录单号",tableObject1,{tableColumns},true)
window.open(src.value + '&asn_number=' + row.asnNumber)
// window.open(src.value + '&asn_number=' + row.asnNumber)
}
//
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => {

Loading…
Cancel
Save