添加搜索体检加项接口
This commit is contained in:
@@ -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<PhysicalExamAddItemListResponse> => {
|
||||
return request.post<PhysicalExamAddItemListResponse>(
|
||||
`${MEDICAL_EXAM_BASE_PATH}/add-item-list`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
@@ -358,3 +358,34 @@ export interface OutputCustomerDetailEdit {
|
||||
*/
|
||||
export type CustomerDetailEditResponse = CommonActionResult<OutputCustomerDetailEdit>;
|
||||
|
||||
/**
|
||||
* 体检加项列表信息入参
|
||||
*/
|
||||
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<OutputPhysicalExamAddItem[]>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user