添加加项接口
This commit is contained in:
@@ -28,6 +28,8 @@ import type {
|
||||
CustomerDetailEditResponse,
|
||||
InputPhysicalExamAddItem,
|
||||
PhysicalExamAddItemListResponse,
|
||||
InputAddItemCustomerInfo,
|
||||
AddItemCustomerInfoResponse,
|
||||
InputPhysicalExamAddOrder,
|
||||
PhysicalExamQrcodeCreateResponse,
|
||||
InputOrderPaymentInfo,
|
||||
@@ -220,6 +222,18 @@ export const searchPhysicalExamAddItem = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取体检加项客户信息
|
||||
*/
|
||||
export const getAddItemCustomerInfo = (
|
||||
data: InputAddItemCustomerInfo
|
||||
): Promise<AddItemCustomerInfoResponse> => {
|
||||
return request.post<AddItemCustomerInfoResponse>(
|
||||
`${MEDICAL_EXAM_BASE_PATH}/add-item-customer-info`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* Native-生成扫码支付二维码
|
||||
*/
|
||||
|
||||
@@ -444,11 +444,11 @@ export interface OutputCustomerDetailEdit {
|
||||
export type CustomerDetailEditResponse = CommonActionResult<OutputCustomerDetailEdit>;
|
||||
|
||||
/**
|
||||
* 体检加项列表信息入参
|
||||
* 体检加项列表信息入参(搜索体检加项)
|
||||
*/
|
||||
export interface InputPhysicalExamAddItem {
|
||||
/** 体检ID */
|
||||
physical_exam_id: number;
|
||||
/** 折扣率 */
|
||||
discount_ratio: number;
|
||||
/** 项目名称(默认空值,传入项目名称过滤数据) */
|
||||
item_name?: string | null;
|
||||
}
|
||||
@@ -463,12 +463,16 @@ export interface PoAddItemCustomerInfo {
|
||||
exam_no?: string | null;
|
||||
/** 体检ID */
|
||||
physical_exam_id?: number | null;
|
||||
/** 渠道ID */
|
||||
scrm_account_id?: string | null;
|
||||
/** 渠道名称 */
|
||||
scrm_account_name?: string | null;
|
||||
/** 是否VIP(1是,0否) */
|
||||
is_vip?: number | null;
|
||||
/** 是否VIP名称(1是,0否) */
|
||||
is_vip_name?: string | null;
|
||||
/** 联系电话 */
|
||||
phone?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -494,19 +498,68 @@ export interface PoPhysicalExamAddItem {
|
||||
}
|
||||
|
||||
/**
|
||||
* 体检加项列表信息出参
|
||||
* 体检加项列表信息出参(每一项加项信息)
|
||||
*/
|
||||
export interface OutputPhysicalExamAddItem {
|
||||
/** 客户基本信息 */
|
||||
customerInfo?: PoAddItemCustomerInfo | null;
|
||||
/** 体检加项列表 */
|
||||
addItemList?: PoPhysicalExamAddItem[] | null;
|
||||
/** 项目ID */
|
||||
item_id?: number | null;
|
||||
/** 项目名称 */
|
||||
item_name?: string | null;
|
||||
/** 实收金额 */
|
||||
actual_received_amount?: number | null;
|
||||
/** 原价 */
|
||||
original_price?: number | null;
|
||||
/** 折扣率(含折扣单位,如8.0折) */
|
||||
discount_rate?: string | null;
|
||||
/** 折扣比例 */
|
||||
discount_ratio?: number | null;
|
||||
/** 次数 */
|
||||
times?: number | null;
|
||||
/** 组合项目代码 */
|
||||
combination_item_code?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 体检加项列表信息响应
|
||||
*/
|
||||
export type PhysicalExamAddItemListResponse = CommonActionResult<OutputPhysicalExamAddItem>;
|
||||
export type PhysicalExamAddItemListResponse = CommonActionResult<OutputPhysicalExamAddItem[]>;
|
||||
|
||||
/**
|
||||
* 获取体检加项客户信息入参
|
||||
*/
|
||||
export interface InputAddItemCustomerInfo {
|
||||
/** 体检ID */
|
||||
physical_exam_id: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 体检渠道加项折扣比例信息列表出参
|
||||
*/
|
||||
export interface OutputTijianChannelDiscountInfo {
|
||||
/** 渠道ID */
|
||||
channel_id?: string | null;
|
||||
/** 渠道名称 */
|
||||
channel_name?: string | null;
|
||||
/** 折扣比例 */
|
||||
discount_rate?: number | null;
|
||||
/** 折扣名称 */
|
||||
discount_name?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 加项客户信息出参
|
||||
*/
|
||||
export interface OutputAddItemCustomerInfo {
|
||||
/** 客户基本信息 */
|
||||
customerInfo?: PoAddItemCustomerInfo | null;
|
||||
/** 渠道折扣信息列表 */
|
||||
listChannelDiscount?: OutputTijianChannelDiscountInfo[] | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取体检加项客户信息响应
|
||||
*/
|
||||
export type AddItemCustomerInfoResponse = CommonActionResult<OutputAddItemCustomerInfo>;
|
||||
|
||||
/**
|
||||
* 体检加项支付记录入参(生成扫码支付二维码)
|
||||
|
||||
Reference in New Issue
Block a user