|
@ -418,42 +418,24 @@ const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAcces |
|
|
// 标签打印 |
|
|
// 标签打印 |
|
|
const searchTableRef = ref() |
|
|
const searchTableRef = ref() |
|
|
const labelPrint = async (row) => { |
|
|
const labelPrint = async (row) => { |
|
|
console.log("------------",row); |
|
|
|
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
const subTableDFata = await PackageApi.getLabel(row.masterId) |
|
|
const defaultParams = {'moduleName':'supplier','recordNumber':row.number} |
|
|
tableObject.loading = false |
|
|
const {tableObject:tableObjectPrint ,tableMethods} = useTable({ |
|
|
const tableObject1 = { |
|
|
defaultParams, |
|
|
// 当前页 |
|
|
getListApi: PackageApi.getLabelDetailPage // 分页接口 |
|
|
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 { getList:getListPrint } = tableMethods |
|
|
|
|
|
getListPrint() |
|
|
|
|
|
tableObject.loading = false |
|
|
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns |
|
|
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns |
|
|
|
|
|
|
|
|
tableColumns.forEach((item) => { |
|
|
tableColumns.forEach((item) => { |
|
|
item.width = item.table?.width || 150 |
|
|
item.width = item.table?.width || 150 |
|
|
}) |
|
|
}) |
|
|
searchTableRef.value.openData("标签信息",tableObject1,{tableColumns},true) |
|
|
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) |
|
|
|
|
|
|
|
|
// 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) => { |
|
|
console.log('批量打印',val) |
|
|
console.log('批量打印',val) |
|
|