Browse Source

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

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

67
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 searchTableRef = ref()
const labelPrint = async (row) => { const labelPrint = async (row) => {
// tableObject.loading = true console.log("------------",row);
// const subTableDFata = await PackageApi.getLabel(row.masterId) tableObject.loading = true
// tableObject.loading = false const subTableDFata = await PackageApi.getLabel(row.masterId)
// const tableObject1 = { tableObject.loading = false
// // const tableObject1 = {
// currentPage: 1, //
// // currentPage: 1,
// exportLoading: false, //
// // exportLoading: false,
// loading: false, //
// // loading: false,
// pageSize: subTableDFata.length, //
// params:null, pageSize: subTableDFata.length,
// // params:null,
// sort: { //
// order: '', // sort: {
// prop: '' // order: '', //
// }, prop: '' //
// // },
// total: subTableDFata.length, //
// // total: subTableDFata.length,
// tableList: subTableDFata, //
// currentRow:null tableList: subTableDFata,
// } currentRow:null
// console.log("",subTableDFata,tableObject1,SupplierdeliverRequestPackage.allSchemas) }
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 tableColumns.forEach((item) => {
// }) item.width = item.table?.width || 150
// searchTableRef.value.openData("",tableObject1,{tableColumns},true) })
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) => { const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => {

Loading…
Cancel
Save