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