|
|
@ -110,8 +110,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
row['itemCode'] = val[0]['componentItemCode'] |
|
|
|
} else { |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['toLocationCode'] = val[0]['rawLocationCode'] |
|
|
|
} |
|
|
|
row['toLocationCode'] = val[0]['rawLocationCode'] |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
@ -169,7 +169,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['toLocationCode'] = val[0]['rawLocationCode'] |
|
|
|
if (formField == 'itemCode') { |
|
|
|
setV['itemCode'] = val[0]['componentItemCode'] |
|
|
|
} else { |
|
|
|
setV['toLocationCode'] = val[0]['rawLocationCode'] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|