|
@ -121,11 +121,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
if(formField == 'areaCode') { |
|
|
if(formField == 'areaCode') { |
|
|
console.log(val[0]); |
|
|
console.log(val[0]); |
|
|
setV['areaCode'] = val[0]['code'] |
|
|
setV['areaCode'] = val[0]['code'] |
|
|
setV['areaType'] = val[0]['type'] |
|
|
setV['areaType'] = val[0]['type'] |
|
|
|
|
|
}else if(formField == 'inPackUnit') { |
|
|
|
|
|
setV['inPackUnit'] = val[0]['code'] |
|
|
|
|
|
}else if(formField == 'outPackUnit') { |
|
|
|
|
|
setV['outPackUnit'] = val[0]['code'] |
|
|
}else{ |
|
|
}else{ |
|
|
setV[formField] = setV[0][searchField] |
|
|
setV[formField] = setV[0][searchField] |
|
|
} |
|
|
} |
|
|