Browse Source

物料变更

hella_online_20240829
wangyufei 3 months ago
parent
commit
1b179c0a38
  1. 7
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

7
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -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)
} }

Loading…
Cancel
Save