@ -130,6 +130,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else{
newRow[formField] = item[searchField]
}
newRow['id'] = item['id']
tableData.value.push(newRow)
})
@ -154,6 +154,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =
if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow['uom'] = item['customerUom']
@ -161,6 +161,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
@ -133,6 +133,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['uom'] = item['uom']
newRow['itemCode'] = item['code']
@ -122,6 +122,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{
if(tableData.value.find(item1=>item1['id'] == item['id'])) return
} else {
newRow['qty'] = item['qty']
newRow['inventoryStatus'] = item['inventoryStatus']
newRow['fromLocationCode'] = item['locationCode']
@ -142,6 +142,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['packUnit'] = item['packUnit']
newRow['toLocationCode'] = item['locationCode']
@ -176,6 +176,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['poNumber'] = item['number']
newRow['poLineType'] = item['poLineType']
let supplierCode = formRef.formModel.supplierCode;
let queryData = {
supplierCode:supplierCode,
@ -171,6 +171,7 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc
newRow['lineNumber'] = lineNumber
newRow['uom'] = item['supplierUom']
// const itemCodes = val.map(valItem=>valItem['itemCode'])
@ -121,6 +121,7 @@
newRow['poLine'] = item['lineNumber']
if (formField == 'poLine') {
//添加费用明细--点击确定
newRow['itemCode'] = item['itemCode']
@ -190,6 +190,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['poLine'] = item['poLine']
newRow['orderQty'] = item['orderQty']
if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode']&&item1['poLine'] == item['poLine']&&item1['poNumber'] == item['poNumber'])) return
itemCodes.push(item['itemCode'])
@ -269,6 +269,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
newRow['deliveryDate'] = item['prhRcpDate']
newRow['arrivalQty'] = item['prhRcvd']