|
|
@ -76,6 +76,7 @@ |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
nextTick(async () => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
|
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['itemCode'] = val[0]['code'] |
|
|
@ -83,13 +84,16 @@ |
|
|
|
row['poLine'] = val[0]['lineNumber'] |
|
|
|
await PurchaseDetailApi.getPurchaseDetailPage({ |
|
|
|
number: row['poNumber'], |
|
|
|
lineNumber: row['poLine'], |
|
|
|
poLine: row['lineNumber'], |
|
|
|
}).then(res => { |
|
|
|
if (res.list.length == 1) { |
|
|
|
row['itemCode'] = res.list[0].itemCode |
|
|
|
row['poLine'] = res.list[0].lineNumber |
|
|
|
row['uom'] = res.list[0].uom |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
console.log(456) |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
formRef.setValues(setV) |
|
|
|