|
|
@ -133,7 +133,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
setV['fromPackingNumber'] = val[0]['fromPackingNumber'] |
|
|
|
setV['toPackingNumber'] = val[0]['packingNumber'] |
|
|
|
setV['fromBatch'] = val[0]['batch'] |
|
|
|
setV['toBatch'] = val[0]['batch'] |
|
|
@ -164,17 +164,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
if(formField == 'fromPackingNumber') { |
|
|
|
setV['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
setV['fromBatch'] = val[0]['batch'] |
|
|
|
setV['locationCode'] = val[0]['locationCode'] |
|
|
|
setV['fromQty'] = val[0]['qty'] |
|
|
|
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
} else { |
|
|
|
if(formField == 'fromPackingNumber') { |
|
|
|
setV['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
setV['fromBatch'] = val[0]['batch'] |
|
|
|
setV['toBatch'] = val[0]['batch'] |
|
|
|
setV['locationCode'] = val[0]['locationCode'] |
|
|
|
setV['fromQty'] = val[0]['qty'] |
|
|
|
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
} else { |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|