|
|
@ -263,16 +263,20 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['containerNumber'] = val[0]['containerNumber'] |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
setV['packingNumber'] = val[0]['packingNumber'] |
|
|
|
setV['batch'] = val[0]['batch'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
setV['qty'] = val[0]['qty'] |
|
|
|
setV['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
setV['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
setV['produceDate'] = val[0]['produceDate'] |
|
|
|
setV['expireDate'] = val[0]['expireDate'] |
|
|
|
if(formField == 'packingNumber'){ |
|
|
|
setV['containerNumber'] = val[0]['containerNumber'] |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
setV['packingNumber'] = val[0]['packingNumber'] |
|
|
|
setV['batch'] = val[0]['batch'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
setV['qty'] = val[0]['qty'] |
|
|
|
setV['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
setV['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
setV['produceDate'] = val[0]['produceDate'] |
|
|
|
setV['expireDate'] = val[0]['expireDate'] |
|
|
|
}else if(formField == 'bomVersion') { |
|
|
|
setV['bomVersion'] = val[0]['version'] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|