|
|
@ -760,40 +760,40 @@ 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) |
|
|
|
|
|
|
|
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns |
|
|
|
|
|
|
|
tableColumns.forEach((item) => { |
|
|
|
item.width = item.table?.width || 150 |
|
|
|
}) |
|
|
|
searchTableRef.value.openData("采购收货记录单号",tableObject1,{tableColumns},true) |
|
|
|
// 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 |
|
|
|
|
|
|
|
// 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) => { |
|
|
@ -928,13 +928,6 @@ const formFormDateChange = (field, val,row, index) => { |
|
|
|
if(field == 'produceDate'){ |
|
|
|
let produceDateStr = formatDate(val,'YYYYMMDD'); |
|
|
|
row.batch = produceDateStr |
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
console.log("item.produceDate",item.produceDate) |
|
|
|
if(!item.produceDate){ |
|
|
|
item.produceDate = val |
|
|
|
item.batch = produceDateStr |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|