|
@ -182,7 +182,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['fromLocationCode']==item['locationCode']&&item1['inventoryStatus']==item['inventoryStatus'])) |
|
|
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['fromLocationCode']==item['locationCode']&&item1['inventoryStatus']==item['inventoryStatus'])) |
|
|
if(val.length==0) return |
|
|
if(val.length==0) return |
|
|
val.forEach(item=>{ |
|
|
val.forEach(item=>{ |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys})) |
|
|
newRow['id'] = item['id'] |
|
|
newRow['id'] = item['id'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
newRow['uom'] = item['uom'] |
|
|
newRow['uom'] = item['uom'] |
|
@ -758,12 +758,15 @@ const labelPrint = async (row) => { |
|
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
|
const { getList:getListPrint } = tableMethods |
|
|
const { getList:getListPrint } = tableMethods |
|
|
getListPrint() |
|
|
await getListPrint() |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
const tableColumns = RelegateRequestDetailLabel.allSchemas.tableFormColumns |
|
|
const tableColumns = RelegateRequestDetailLabel.allSchemas.tableFormColumns |
|
|
tableColumns.forEach((item) => { |
|
|
tableColumns.forEach((item) => { |
|
|
item.width = item.table?.width || 150 |
|
|
item.width = item.table?.width || 150 |
|
|
}) |
|
|
}) |
|
|
|
|
|
tableObjectPrint.tableList.forEach(item=>{ |
|
|
|
|
|
item.fromBatch = item.batch |
|
|
|
|
|
}) |
|
|
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) |
|
|
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|