|
@ -102,12 +102,16 @@ const updataTableColumns = (val) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
if(formField == 'fromPackingNumber'){ |
|
|
row['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
row['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
row['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
row['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
|
|
} else { |
|
|
|
|
|
row[formField] = val[0][searchField] |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
@ -119,13 +123,16 @@ 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 = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
if(formField == 'fromPackingNumber') { |
|
|
setV['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
setV['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
setV['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
setV['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
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'] |
|
|
|
|
|
} else { |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|