|
@ -275,6 +275,20 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
setV['fromBatch'] = val[0]['batch'] |
|
|
setV['fromBatch'] = val[0]['batch'] |
|
|
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
setV['fromLocationCode'] = val[0]['locationCode'] |
|
|
setV['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
|
|
if(routeName.value == 'OktoholdRequestMain'){ |
|
|
|
|
|
row['toInventoryStatus'] = "HOLD" |
|
|
|
|
|
}else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
|
|
row['toInventoryStatus'] = "OK" |
|
|
|
|
|
}else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
|
|
|
row['toInventoryStatus'] = "SCRAP" |
|
|
|
|
|
}else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
|
|
|
row['toInventoryStatus'] = "SCRAP" |
|
|
|
|
|
}else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
|
|
row['toInventoryStatus'] = "HOLD" |
|
|
|
|
|
}else{ |
|
|
|
|
|
row['toInventoryStatus'] = null |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
} |
|
|
} |
|
|