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