feat/update-code

This commit is contained in:
TuanVT
2026-07-24 14:39:25 +07:00
parent 42cb08f0d0
commit 04ba0d3118
5 changed files with 56 additions and 77 deletions
@@ -86,14 +86,14 @@ export default function MainRegister() {
label={
<span>
Họ tên
<span className="text-red-500"> *</span>
{/* <span className="text-red-500"> *</span> */}
</span>
}
placeholder="Nhập họ và tên"
type="text"
name="fullName"
onClean
isRequired
// isRequired
isBlur
showDone
icon={<BadgeInfo size={22} />}
@@ -105,14 +105,14 @@ export default function MainRegister() {
label={
<span>
Email
<span className="text-red-500"> *</span>
{/* <span className="text-red-500"> *</span> */}
</span>
}
placeholder="Nhập email"
type="email"
name="email"
onClean
isRequired
// isRequired
isBlur
showDone
icon={<Mail size={22} />}
@@ -137,14 +137,14 @@ const CreateConsultation = () => {
<FormCustom form={form} setForm={setForm} onSubmit={handleSubmit}>
<div
className="
max-w-[95vw]
border
rounded-lg
bg-white
shadow-xl
flex
flex-col
"
max-w-[95vw]
border
rounded-lg
bg-white
shadow-xl
flex
flex-col
"
>
<div className="flex items-center justify-between">
<div
@@ -163,7 +163,7 @@ const CreateConsultation = () => {
</div>
{/* BODY */}
<div className="flex-1 px-7 py-5">
<div className="flex-1 px-7 py-5">
<div className="space-y-5 mb-2">
<SelectForm
label={
@@ -319,7 +319,8 @@ const UpdateConsultation = () => {
setForm((prev) => ({ ...prev, vitalSigns: String(v) }))
}
/>
</GridColumn>
<GridColumn col={2}>
<InputForm
type="text"
label={
@@ -338,37 +339,36 @@ const UpdateConsultation = () => {
<InputForm
type="text"
label={
<span>
Kế hoạch điều trị <span className="text-red-500">*</span>
</span>
}
name="treatmentPlan"
placeholder="Nhập kế hoạch điều trị"
value={form.treatmentPlan}
isRequired
onChangeValue={(v) =>
setForm((prev) => ({ ...prev, treatmentPlan: String(v) }))
}
/>
<InputForm
type="text"
label={
<span>
Ghi chú bác <span className="text-red-500">*</span>
</span>
}
label={<span>Ghi chú bác </span>}
name="doctorNotes"
placeholder="Nhập ghi chú"
value={form.doctorNotes}
isRequired
onChangeValue={(v) =>
setForm((prev) => ({ ...prev, doctorNotes: String(v) }))
}
/>
</GridColumn>
<TextArea
name="treatmentPlan"
placeholder="Nhập thông số chi tiết loại kính được chỉ định"
label={
<span>
Kế hoạch điều trị
<span className="text-red-500">*</span>
</span>
}
value={form.treatmentPlan}
isRequired
// readOnly
isBlur
max={5000}
onChangeValue={(v) =>
setForm((prev) => ({
...prev,
treatmentPlan: String(v),
}))
}
/>
{eyeClinic && (
<div className="mt-2 rounded-xl border border-blue-100 bg-[#f8fafc] p-5 transition-all">
<h3 className="mb-4 text-sm font-bold uppercase tracking-wider text-blue-600">
@@ -452,7 +452,6 @@ const UpdateConsultation = () => {
!form.vitalSigns ||
!form.diagnosis ||
!form.treatmentPlan ||
!form.doctorNotes ||
updateConsultationMutation.isPending
}
className="min-w-[140px]"
@@ -255,16 +255,6 @@ const MainPagePatient = () => {
>
{item.fullName}
</Link>
{/* <Link
href={`/patient/${item.id}`}
className={
isReturnWithin14Days(item.lastVisitDate)
? "text-red-500 font-semibold hover:underline"
: "text-blue-500 hover:underline"
}
>
{item.fullName}
</Link> */}
</TooltipTrigger>
<TooltipContent>