|
|
@ -208,12 +208,15 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => { |
|
|
|
console.log('searchTableSuccess',) |
|
|
|
|
|
|
|
nextTick(async () => { |
|
|
|
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) |
|
|
|
|
|
|
|
nextTick( async () => { |
|
|
|
|
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
if(formField=='purchaseReceiptRecordNumber'){ |
|
|
|
row['supplierCode'] = val[0]['supplierCode'] |
|
|
|
row['poNumber'] = val[0]['poNumber'] |
|
|
|
row['poLine'] = val[0]['poLine'] |
|
|
@ -249,8 +252,7 @@ const searchTableSuccess = async(formField, searchField, val, formRef, type, row |
|
|
|
row['singlePrice'] = val[0]['singlePrice'] |
|
|
|
row['amount'] = val[0]['amount'] |
|
|
|
row['projectCode'] = val[0]['projectCode'] |
|
|
|
|
|
|
|
if(formField == 'itemCode'){ |
|
|
|
}else if(formField == 'itemCode'){ |
|
|
|
row['batch'] = val[0]['toBatch'] |
|
|
|
row['containerNumber'] = val[0]['toContainerNumber'] |
|
|
|
row['containerNumber'] = val[0]['containerNumber'] |
|
|
|