From 5e412d4c541f5581dfb2beb44ab980914a0b069e Mon Sep 17 00:00:00 2001 From: xianyi Date: Mon, 15 Dec 2025 14:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2=E4=BD=93?= =?UTF-8?q?=E6=A3=80=E5=8A=A0=E9=A1=B9=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 | 31 +++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/src/api/his.ts b/src/api/his.ts index 7b70e09..d664df6 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -20,6 +20,8 @@ import type { TongyishuSignSubmitResponse, InputCustomerDetailEdit, CustomerDetailEditResponse, + InputPhysicalExamAddItem, + PhysicalExamAddItemListResponse, } from './types'; /** @@ -170,3 +172,15 @@ export const editCustomerDetail = ( ).then(res => res.data); }; +/** + * 搜索体检加项 + */ +export const searchPhysicalExamAddItem = ( + data: InputPhysicalExamAddItem +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/add-item-list`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index b98ba9a..998df03 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -358,3 +358,34 @@ export interface OutputCustomerDetailEdit { */ export type CustomerDetailEditResponse = CommonActionResult; +/** + * 体检加项列表信息入参 + */ +export interface InputPhysicalExamAddItem { + /** 项目名称(必填,空字符串表示获取全部) */ + item_name: string; +} + +/** + * 体检加项列表信息出参 + */ +export interface OutputPhysicalExamAddItem { + /** 项目ID */ + item_id?: number | null; + /** 项目名称 */ + item_name?: string | null; + /** 实收金额 */ + actual_received_amount?: number | null; + /** 原价 */ + original_price?: number | null; + /** 折扣率(含折扣单位,如8.0折) */ + discount_rate?: string | null; + /** 次数 */ + times?: number | null; +} + +/** + * 体检加项列表信息响应 + */ +export type PhysicalExamAddItemListResponse = CommonActionResult; +