| Línea 104... |
Línea 104... |
| 104 |
style: 'danger',
|
104 |
style: 'danger',
|
| 105 |
msg: 'Ha ocurrido un error'
|
105 |
msg: 'Ha ocurrido un error'
|
| 106 |
}))
|
106 |
}))
|
| 107 |
}
|
107 |
}
|
| Línea 108... |
Línea -... |
| 108 |
|
- |
|
| 109 |
setValue('comment', resData.interview.comment)
|
- |
|
| 110 |
setValue('points', resData.interview.points)
|
- |
|
| 111 |
setValue('status', resData.interview.status)
|
108 |
|
| 112 |
setCompetencies(resData.job_description.competencies)
|
109 |
setCompetencies(resData.job_description.competencies)
|
| 113 |
setCandidatesOptions([resData.candidate])
|
110 |
setCandidatesOptions([resData.candidate])
|
| 114 |
setVacancyOptions([{ name: resData.vacancy.name, uuid: resData.vacancy.uuid }])
|
111 |
setVacancyOptions([{ name: resData.vacancy.name, uuid: resData.vacancy.uuid }])
|
| 115 |
setTypeOptions({ ...typeOptions, value: resData.interview.type === 'r' ? 'Entrevista por Recursos Humanos' : 'Entrevista por Potencial superior' })
|
112 |
setTypeOptions({ ...typeOptions, value: resData.interview.type === 'r' ? 'Entrevista por Recursos Humanos' : 'Entrevista por Potencial superior' })
|
| Línea 119... |
Línea 116... |
| 119 |
uuid: resData.vacancy.uuid,
|
116 |
uuid: resData.vacancy.uuid,
|
| 120 |
description: resData.vacancy.description,
|
117 |
description: resData.vacancy.description,
|
| 121 |
functions: resData.job_description.functions,
|
118 |
functions: resData.job_description.functions,
|
| 122 |
objectives: resData.job_description.objectives
|
119 |
objectives: resData.job_description.objectives
|
| 123 |
})
|
120 |
})
|
| - |
|
121 |
setValue('comment', resData.interview.comment)
|
| - |
|
122 |
setValue('points', resData.interview.points)
|
| - |
|
123 |
setValue('status', resData.interview.status)
|
| 124 |
resData.interview.content.forEach((obj) => {
|
124 |
resData.interview.content.forEach((obj) => {
|
| 125 |
setValue(`select-${obj.competencyUuid}-${obj.behaviorUuid}`, obj.evaluation)
|
125 |
setValue(`select-${obj.competencyUuid}-${obj.behaviorUuid}`, obj.evaluation)
|
| 126 |
setValue(`${obj.competencyUuid}-${obj.behaviorUuid}-comment`, obj.comment)
|
126 |
setValue(`${obj.competencyUuid}-${obj.behaviorUuid}-comment`, obj.comment)
|
| 127 |
})
|
127 |
})
|
| 128 |
})
|
128 |
})
|
| Línea 297... |
Línea 297... |
| 297 |
<label>Comentario</label>
|
297 |
<label>Comentario</label>
|
| 298 |
<input type="text" name="comment" className="form-control" ref={register} />
|
298 |
<input type="text" name="comment" className="form-control" ref={register} />
|
| 299 |
</div>
|
299 |
</div>
|
| 300 |
<div className="form-group">
|
300 |
<div className="form-group">
|
| 301 |
<label>Evaluación</label>
|
301 |
<label>Evaluación</label>
|
| 302 |
<select className='form-control' name='points' ref={register} defaultValue={pointsOptions[0].value}>
|
302 |
<select className='form-control' name='points' ref={register}>
|
| 303 |
{
|
303 |
{
|
| 304 |
pointsOptions.map(({ label, value }) => (
|
304 |
pointsOptions.map(({ label, value }) => (
|
| 305 |
<option selected={watch('points') === value} key={value} value={value}>{label}</option>
|
305 |
<option selected={watch('points') === value} key={value} value={value}>{label}</option>
|
| 306 |
))
|
306 |
))
|
| 307 |
}
|
307 |
}
|
| 308 |
</select>
|
308 |
</select>
|
| 309 |
</div>
|
309 |
</div>
|
| 310 |
<div className="form-group">
|
310 |
<div className="form-group">
|
| 311 |
<label>Estatus</label>
|
311 |
<label>Estatus</label>
|
| 312 |
<select className='form-control' name='status' ref={register} defaultValue={statusOptions[0].value}>
|
312 |
<select className='form-control' name='status' ref={register}>
|
| 313 |
{
|
313 |
{
|
| 314 |
statusOptions.map(({ label, value }) => (
|
314 |
statusOptions.map(({ label, value }) => (
|
| 315 |
<option selected={watch('status') === value} key={value} value={value}>{label}</option>
|
315 |
<option selected={watch('status') === value} key={value} value={value}>{label}</option>
|
| 316 |
))
|
316 |
))
|
| 317 |
}
|
317 |
}
|