This commit is contained in:
Your Name
2026-03-18 14:53:09 +08:00
parent 338b104d50
commit 7832514f28
315 changed files with 7071 additions and 1136 deletions
@@ -159,6 +159,20 @@ class DiagnosisController extends BaseAdminController
$result = DiagnosisLogic::checkIdCard($params);
return $this->data($result);
}
/**
* @notes 补全身份证号(自动计算年龄并更新)
* @return \think\response\Json
*/
public function fillIdCard()
{
$params = (new DiagnosisValidate())->post()->goCheck('fillIdCard');
$result = DiagnosisLogic::fillIdCard($params);
if ($result) {
return $this->success('补全成功,年龄已自动更新', [], 1, 1);
}
return $this->fail(DiagnosisLogic::getError());
}
/**
* @notes 指派医助
@@ -65,4 +65,21 @@ class PrescriptionController extends BaseAdminController
$prescription = PrescriptionLogic::getByAppointment($appointmentId);
return $this->data($prescription ?? []);
}
/**
* @notes 作废处方
*/
public function void()
{
$id = (int)($this->request->post('id') ?? 0);
if (!$id) {
return $this->fail('处方ID不能为空');
}
$admin = $this->adminInfo;
$ok = PrescriptionLogic::void($id, (int)$this->adminId, $admin['name'] ?? '');
if (!$ok) {
return $this->fail(PrescriptionLogic::getError());
}
return $this->success('作废成功');
}
}