From 5b8e74c072f7ee41e5176a93c5b070dc97ed4f4f Mon Sep 17 00:00:00 2001 From: xianyi Date: Tue, 16 Dec 2025 10:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=93=E6=A3=80=E7=94=A8?= =?UTF-8?q?=E9=A4=90=E7=99=BB=E8=AE=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/his.ts | 14 ++++++++++++++ src/api/types.ts | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/src/api/his.ts b/src/api/his.ts index ba4fe52..d365fde 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -26,6 +26,8 @@ import type { PhysicalExamAddItemListResponse, InputPhysicalExamDiningLog, PhysicalExamDiningLogResponse, + InputTijianDiningLog, + TijianDiningLogResponse, } from './types'; /** @@ -220,3 +222,15 @@ export const getPhysicalExamDiningList = ( ).then(res => res.data); }; +/** + * 体检用餐登记 + */ +export const registerPhysicalExamDining = ( + data: InputTijianDiningLog +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/dining-register`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index cebe6e4..99eeb71 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -461,3 +461,27 @@ export interface OutputPhysicalExamDiningLog { */ export type PhysicalExamDiningLogResponse = CommonActionResult; +/** + * 体检用餐登记入参 + */ +export interface InputTijianDiningLog { + /** 体检ID */ + physical_exam_id: number; + /** 体检编号 */ + exam_no: string; + /** 客户姓名 */ + customer_name: string; +} + +/** + * 体检用餐登记出参 + */ +export interface OutputTijianDiningLog { + // 空对象,无属性 +} + +/** + * 体检用餐登记响应 + */ +export type TijianDiningLogResponse = CommonActionResult; +