|
|
@ -216,18 +216,23 @@ const getLabelType = async (row,useToPackingNumber)=>{ |
|
|
|
getLabelType(row,true) |
|
|
|
} |
|
|
|
} |
|
|
|
const labelPrint = async (row) => { |
|
|
|
tableObject.loading = true |
|
|
|
//获取类型 |
|
|
|
await getLabelType(row,false) |
|
|
|
const defaultParams = {'moduleName':'productreceipt_predict','tableName':'record_productreceipt_main','recordNumber':row.number} |
|
|
|
const getLabelDetailPage = async (row,useToPackingNumber)=>{ |
|
|
|
let defaultParams = {'moduleName':'productreceipt_predict','recordNumber':row.number} |
|
|
|
if(useToPackingNumber){ |
|
|
|
defaultParams = {'moduleName':'productreceipt_predict','number':row.toPackingNumber} |
|
|
|
} |
|
|
|
const {tableObject:tableObjectPrint ,tableMethods} = useTable({ |
|
|
|
defaultParams, |
|
|
|
getListApi: PackageApi.getLabelDetailPage // 分页接口 |
|
|
|
}) |
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList:getListPrint } = tableMethods |
|
|
|
getListPrint() |
|
|
|
await getListPrint() |
|
|
|
if(!tableObjectPrint || !tableObjectPrint.tableList || tableObjectPrint.tableList.length==0){ |
|
|
|
getLabelDetailPage(row,true) |
|
|
|
return |
|
|
|
} |
|
|
|
console.log('tableObjectPrint',tableObjectPrint) |
|
|
|
tableObject.loading = false |
|
|
|
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns |
|
|
|
tableColumns.forEach((item) => { |
|
|
@ -235,6 +240,14 @@ const labelPrint = async (row) => { |
|
|
|
}) |
|
|
|
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) |
|
|
|
} |
|
|
|
|
|
|
|
const labelPrint = async (row) => { |
|
|
|
tableObject.loading = true |
|
|
|
//获取类型 |
|
|
|
await getLabelType(row,false) |
|
|
|
await getLabelDetailPage(row,false) |
|
|
|
|
|
|
|
} |
|
|
|
// 批量打印--预生产收货 |
|
|
|
const searchTableSuccessLabel = async (formField, searchField, val, formRef, type, row) => { |
|
|
|
console.log('批量打印',val) |
|
|
|