|
@ -128,22 +128,27 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
// tableData.value.push(newRow) |
|
|
// tableData.value.push(newRow) |
|
|
// }) |
|
|
// }) |
|
|
// 查询标准价格 |
|
|
// 查询标准价格 |
|
|
let param = {'itemCodes':val.map(item=>item.itemCode).join(',') as string} |
|
|
if(formField == 'packingNumber'){ |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { |
|
|
let param = {'itemCodes':val.map(item=>item.itemCode).join(',') as string} |
|
|
val.forEach(item=>{ |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { |
|
|
const itemCode = res.find(item1=>item1['itemCode']==item['itemCode']) |
|
|
val.forEach(item=>{ |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
const itemCode = res.find(item1=>item1['itemCode']==item['itemCode']) |
|
|
newRow[formField] = item[searchField] |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
newRow['packingNumber'] = item['packingNumber'] |
|
|
newRow[formField] = item[searchField] |
|
|
newRow['batch'] = item['batch'] |
|
|
newRow['packingNumber'] = item['packingNumber'] |
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
newRow['batch'] = item['batch'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
newRow['uom'] = item['uom'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
newRow['singlePrice'] = itemCode?itemCode['price']:'' |
|
|
newRow['uom'] = item['uom'] |
|
|
tableData.value.push(newRow) |
|
|
newRow['singlePrice'] = itemCode?itemCode['price']:'' |
|
|
|
|
|
tableData.value.push(newRow) |
|
|
|
|
|
}) |
|
|
|
|
|
// row['singlePrice'] = res.price |
|
|
}) |
|
|
}) |
|
|
// row['singlePrice'] = res.price |
|
|
} else { |
|
|
}) |
|
|
row[formField] = val[0][searchField] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|