|
@ -148,8 +148,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
row['supplierQty'] = val[0]['supplierQty'] |
|
|
row['supplierQty'] = val[0]['supplierQty'] |
|
|
row['supplierUom'] = val[0]['supplierUom'] |
|
|
row['supplierUom'] = val[0]['supplierUom'] |
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
row['fromLocationCode'] = val[0]['toLocationCode'] |
|
|
row['toLocationCode'] = null |
|
|
row['toLocationCode'] = val[0]['toLocationCode'] |
|
|
row['fromLocationGroupCode'] = val[0]['locationGroupCode'] |
|
|
row['fromLocationGroupCode'] = val[0]['locationGroupCode'] |
|
|
row['toLocationGroupCode'] = null |
|
|
row['toLocationGroupCode'] = null |
|
|
row['toWarehouseCode'] = null |
|
|
row['toWarehouseCode'] = null |
|
@ -261,8 +261,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
setV['supplierQty'] = val[0]['supplierQty'] |
|
|
setV['supplierQty'] = val[0]['supplierQty'] |
|
|
setV['supplierUom'] = val[0]['supplierUom'] |
|
|
setV['supplierUom'] = val[0]['supplierUom'] |
|
|
setV['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
setV['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
setV['fromLocationCode'] = val[0]['locationCode'] |
|
|
setV['fromLocationCode'] = val[0]['toLocationCode'] |
|
|
setV['toLocationCode'] = null |
|
|
setV['toLocationCode'] = val[0]['toLocationCode'] |
|
|
setV['fromLocationGroupCode'] = val[0]['locationGroupCode'] |
|
|
setV['fromLocationGroupCode'] = val[0]['locationGroupCode'] |
|
|
setV['toLocationGroupCode'] = null |
|
|
setV['toLocationGroupCode'] = null |
|
|
setV['toWarehouseCode'] = null |
|
|
setV['toWarehouseCode'] = null |
|
@ -281,6 +281,16 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
setV['singlePrice'] = val[0]['singlePrice'] |
|
|
setV['singlePrice'] = val[0]['singlePrice'] |
|
|
setV['amount'] = val[0]['amount'] |
|
|
setV['amount'] = val[0]['amount'] |
|
|
setV['projectCode'] = val[0]['projectCode'] |
|
|
setV['projectCode'] = val[0]['projectCode'] |
|
|
|
|
|
|
|
|
|
|
|
if(formField == 'itemCode'){ |
|
|
|
|
|
setV['batch'] = val[0]['toBatch'] |
|
|
|
|
|
setV['packingNumber'] = val[0]['toPackingNumber'] |
|
|
|
|
|
setV['containerNumber'] = val[0]['toContainerNumber'] |
|
|
|
|
|
setV['containerNumber'] = val[0]['containerNumber'] |
|
|
|
|
|
setV['containerNumber'] = val[0]['containerNumber'] |
|
|
|
|
|
setV['fromLocationCode'] = val[0]['fromLocationCode'] |
|
|
|
|
|
setV['toLocationCode'] = val[0]['toLocationCode'] |
|
|
|
|
|
} |
|
|
}else { |
|
|
}else { |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
} |
|
|
} |
|
|