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