forked from RiseUP/riseup-squad23
form de agendar consulta melhorado
This commit is contained in:
parent
0a60dd717c
commit
d91b5cfebe
@ -1,80 +1,122 @@
|
|||||||
import React from 'react'
|
import React from "react";
|
||||||
|
import InputMask from "react-input-mask";
|
||||||
|
|
||||||
|
const FormNovaConsulta = ({ onCancel }) => {
|
||||||
|
const handleSubmit = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
alert("Agendamento salvo!");
|
||||||
|
};
|
||||||
|
|
||||||
const FormNovaConsulta = ( {onCancel}) => {
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<h1>Novo Agendamento</h1>
|
||||||
|
|
||||||
<form action="">
|
<form onSubmit={handleSubmit}>
|
||||||
|
|
||||||
<h2>Informações do paciente</h2>
|
<h2>Informações do paciente</h2>
|
||||||
<label htmlFor="nome">Nome *</label>
|
|
||||||
<input type="text" id='nome' />
|
|
||||||
|
|
||||||
<label htmlFor="cpf" >CPF do paciente</label>
|
<label>Nome *</label>
|
||||||
<input type="text" id='cpf' />
|
<input type="text" name="nome" placeholder="Insira o nome do paciente" required />
|
||||||
|
<br></br>
|
||||||
|
|
||||||
<label htmlFor="dataNascimento">Data de nascimeto *</label>
|
<label>CPF do paciente</label>
|
||||||
<input type="text" id='dataNascimento' />
|
<InputMask mask="999.999.999-99" placeholder="000.000.000-00">
|
||||||
|
{(inputProps) => <input {...inputProps} type="text" name="cpf" />}
|
||||||
|
</InputMask>
|
||||||
|
<br></br>
|
||||||
|
|
||||||
<label htmlFor="telefone"> Telefone</label>
|
<label>RG</label>
|
||||||
<input type="text" id='telefone' />
|
<input type="text" name="rg" placeholder="Insira o nº do RG" maxLength={9} />
|
||||||
|
<br></br>
|
||||||
|
|
||||||
<label htmlFor="email">E-mail</label>
|
<label>Data de nascimento *</label>
|
||||||
<input type="email" id='email' />
|
<input type="date" name="dataNascimento" required />
|
||||||
|
<br></br>
|
||||||
|
|
||||||
<label htmlFor="nome">Convenio</label>
|
<label>Telefone</label>
|
||||||
<select>
|
<InputMask mask="(99) 99999-9999" placeholder="(99) 99999-9999">
|
||||||
<option value="">Particular</option>
|
{(inputProps) => <input {...inputProps} type="tel" name="telefone" />}
|
||||||
<option value="">Público</option>
|
</InputMask>
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<label>E-mail</label>
|
||||||
|
<input type="email" name="email" placeholder="Email" />
|
||||||
|
<br></br>
|
||||||
|
|
||||||
|
<label>Convênio</label>
|
||||||
|
<select name="convenio">
|
||||||
|
<option value="particular">Particular</option>
|
||||||
|
<option value="publico">Público</option>
|
||||||
</select>
|
</select>
|
||||||
|
<br></br>
|
||||||
<label htmlFor="matricula">Matrícula</label>
|
|
||||||
<input type="text" id='matricula' />
|
|
||||||
|
|
||||||
<label htmlFor="validade">Validade</label>
|
|
||||||
<input type="text" id='validade' />
|
|
||||||
|
|
||||||
|
|
||||||
|
<label>Matrícula</label>
|
||||||
|
<input type="text" name="matricula" placeholder="000000000" />
|
||||||
|
<br></br>
|
||||||
|
|
||||||
|
<label>Validade</label>
|
||||||
|
<InputMask mask="99/99/9999" placeholder="00/00/0000">
|
||||||
|
{(inputProps) => <input {...inputProps} type="text" name="validade" />}
|
||||||
|
</InputMask>
|
||||||
|
|
||||||
|
<br></br>
|
||||||
|
|
||||||
|
<h3>Informações adicionais</h3>
|
||||||
|
<button type="button">Documentos e anexos</button>
|
||||||
|
|
||||||
<h2>Informações do atendimento</h2>
|
<h2>Informações do atendimento</h2>
|
||||||
<label htmlFor="nomedoProfissional">Nome do profissional *</label>
|
|
||||||
<input type="text" id='nomedoProfissional' />
|
|
||||||
<label htmlFor="TipodeAtendimento">Tipo de atendimento *</label>
|
|
||||||
<input type="text" id='TipodeAtendimento' />
|
|
||||||
|
|
||||||
<label htmlFor="">Unidade *</label>
|
<label>Nome do profissional *</label>
|
||||||
<select name="" id="">
|
<input type="text" name="profissional" required />
|
||||||
<option value="">Unidade Centro</option>
|
|
||||||
<option value="">Unidade Leste</option>
|
<label>Tipo de atendimento *</label>
|
||||||
|
<input type="text" name="tipoAtendimento" required />
|
||||||
|
|
||||||
|
<label>Unidade *</label>
|
||||||
|
<select name="unidade">
|
||||||
|
<option value="centro">Núcleo de Especialidades Integradas</option>
|
||||||
|
<option value="leste">Unidade Leste</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<label htmlFor="DataAtendimento">Data *</label>
|
<label>Data *</label>
|
||||||
<input type="text" id='DataAtendimento' />
|
<input type="date" name="dataAtendimento" required />
|
||||||
|
|
||||||
<label htmlFor="TipodeAtendimento">Tipo de atendimento *</label>
|
<label>Início *</label>
|
||||||
<input type="text" id='TipodeAtendimento' />
|
<input type="time" name="inicio" required />
|
||||||
|
|
||||||
<label htmlFor="inicioAtendimento">Inicio</label>
|
<label>Término *</label>
|
||||||
<input type="text" id='inicioAtendimento' />
|
<input type="time" name="termino" required />
|
||||||
|
|
||||||
|
<label>Profissional solicitante</label>
|
||||||
<label htmlFor="terminoAtendimento">Término</label>
|
<select name="solicitante">
|
||||||
<input type="text" id='terminoAtendimento'/>
|
<option value="">Selecione o solicitante</option>
|
||||||
|
<option value="secretaria">Secretária</option>
|
||||||
<label htmlFor="">Profissional Solicitante</label>
|
<option value="medico">Médico</option>
|
||||||
<select name="" id="">
|
|
||||||
<option value="">Secretária</option>
|
|
||||||
<option value="">Médico</option>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button type='submit' >Saqlvar agendamento</button>
|
<label>Observações</label>
|
||||||
<button onClick={() => onCancel()} >Cancelar</button>
|
<textarea name="observacoes"></textarea>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="reembolso" /> Pagamento via Reembolso
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="imprimirEtiqueta" /> Imprimir na Etiqueta / Pulseira
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<h3>Acessibilidade</h3>
|
||||||
|
<button type="button"></button>
|
||||||
|
<button type="button"></button>
|
||||||
|
<button type="button"></button>
|
||||||
|
<button type="button"></button>
|
||||||
|
|
||||||
|
<br /><br />
|
||||||
|
<button type="submit">Salvar agendamento</button>
|
||||||
|
<button type="button" onClick={onCancel}>Cancelar</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default FormNovaConsulta
|
export default FormNovaConsulta;
|
||||||
@ -7,7 +7,7 @@ import FormNovaConsulta from '../components/AgendarConsulta/FormNovaConsulta';
|
|||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
const Agendamento = ( {setCurrentPage }) => {
|
const Agendamento = () => {
|
||||||
|
|
||||||
|
|
||||||
const ListarDiasdoMes = (ano, mes) => {
|
const ListarDiasdoMes = (ano, mes) => {
|
||||||
@ -50,7 +50,7 @@ const Agendamento = ( {setCurrentPage }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const [tabela, setTabela] = useState('diario')
|
const [tabela, setTabela] = useState('diario')
|
||||||
const [PageNovaConsulta, setPageConsulta] = useState(false)
|
const [PageNovaConsulta, setPageConsulta] = useState(true)
|
||||||
|
|
||||||
const handleClickAgendamento = (agendamento) => {
|
const handleClickAgendamento = (agendamento) => {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user