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