Files
ipad/src/api/types.ts
xianyi 0efc4c186e 添加接口
- 体检客户列表
- 体检进度详情
- 客户详情
2025-12-10 17:28:15 +08:00

254 lines
5.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 通用接口返回状态码类型
*/
export type CommonActionResultStatusCode = 200 | 400 | 401 | 403 | 500 | 4011 | -1;
/**
* 状态码常量(用于运行时访问)
*/
export const StatusCode = {
Success: 200,
BadRequest: 400,
Unauthorized: 401,
Forbidden: 403,
InternalException: 500,
Unidentified: 4011,
Fail: -1,
} as const;
/**
* 通用接口返回数据实体
*/
export interface CommonActionResult<T = any> {
Status: CommonActionResultStatusCode;
Message?: string | null;
Data?: T;
TraceId?: string | null;
CopyRight?: string | null;
}
/**
* 今日体检统计信息入参
*/
export interface InputTodayExamStatisticsInfo {
// 空对象,无需参数
}
/**
* 今日体检统计信息出参
*/
export interface OutputTodayExamStatisticsInfo {
/** 今日预约人数 */
today_appointment_count?: number | null;
/** 今日签到人数 */
today_signin_count?: number | null;
/** 今日签在检人数 */
today_in_exam_count?: number | null;
/** 今日签打印导检单 */
today_print_guide_count?: number | null;
/** 今日签已完成人数 */
today_completed_count?: number | null;
}
/**
* 今日体检统计信息接口返回
*/
export type TodayExamStatisticsResponse = CommonActionResult<OutputTodayExamStatisticsInfo>;
/**
* 今日体检进度入参
*/
export interface InputTodayExamProgress {
// 空对象,无需参数
}
/**
* 今日体检进度出参
*/
export interface OutputTodayExamProgress {
/** 今日预约人数 */
today_appointment_count?: number | null;
/** 今日已签到人数 */
today_signin_count?: number | null;
/** 今日体检中人数 */
today_in_exam_count?: number | null;
/** 今日用餐人数 */
today_meal_count?: number | null;
}
/**
* 今日体检进度接口返回
*/
export type TodayExamProgressResponse = CommonActionResult<OutputTodayExamProgress>;
/**
* 营收数据统计入参
*/
export interface InputRevenueStatisticsInfo {
// 空对象,无需参数
}
/**
* 营收数据统计出参
*/
export interface OutputRevenueStatisticsInfo {
/** 体检收入 */
physical_exam_income?: number | null;
/** 加项收入 */
add_item_income?: number | null;
/** 整体收入 */
total_income?: number | null;
/** 目标收入 */
target_income?: number | null;
/** 完成百分比 */
completion_percentage?: string | null;
/** 缺口金额 */
gap_amount?: number | null;
}
/**
* 营收数据统计接口返回
*/
export type RevenueStatisticsResponse = CommonActionResult<OutputRevenueStatisticsInfo>;
/**
* 体检客户列表入参
*/
export interface InputPhysicalExamCustomerList {
/** 客户姓名 */
customer_name?: string | null;
/** 联系电话 */
phone?: string | null;
/** 身份证号 */
id_no?: string | null;
/**
* 筛选类型
* 1-全部 2-上午 3-下午 4-高客 5-普客 6-已登记 7-未登记 8-散客 9-团客
*/
filter_type?: number | null;
}
/**
* 体检客户列表项
*/
export interface OutputPhysicalExamCustomerListItem {
physical_exam_status?: number | null;
physical_exam_status_name?: string | null;
physical_exam_id?: number | null;
customer_name?: string | null;
phone?: string | null;
id_no?: string | null;
family_doctor_name?: string | null;
member_level?: string | null;
is_vip?: number | null;
package_code?: string | null;
package_name?: string | null;
add_item_flag?: number | null;
add_item_count?: number | null;
channel?: string | null;
physical_exam_time?: string | null;
physical_exam_complete_time?: string | null;
customer_type?: number | null;
is_register?: number | null;
is_sign_in?: number | null;
is_print?: number | null;
appointment_remarks?: string | null;
}
/**
* 体检客户列表接口返回
*/
export type PhysicalExamCustomerListResponse = CommonActionResult<OutputPhysicalExamCustomerListItem[]>;
/**
* 体检进度详情入参
*/
export interface InputPhysicalExamProgressDetail {
/** 体检ID */
physical_exam_id: number;
}
/**
* 体检进度信息
*/
export interface PhysicalExamProgressItem {
department_id?: number | null;
department_name?: string | null;
project_id?: string | null;
project_name?: string | null;
/** 检查状态1-已查 2-弃检 3-未查 4-延期) */
exam_status?: number | null;
exam_status_name?: string | null;
}
/**
* 客户基本信息(进度、详情共用)
*/
export interface CustomerInfo {
customer_name?: string | null;
physical_exam_number?: string | null;
is_vip?: number | null;
phone?: string | null;
id_no?: string | null;
gender_code?: number | null;
gender_name?: string | null;
patient_marital_status?: number | null;
patient_marital_status_name?: string | null;
family_doctor_name?: string | null;
customer_type?: number | null;
}
/**
* 体检进度详情出参
*/
export interface OutputPhysicalExamProgressDetail {
customerInfo?: CustomerInfo | null;
examProgressesList?: PhysicalExamProgressItem[] | null;
}
/**
* 体检进度详情接口返回
*/
export type PhysicalExamProgressDetailResponse = CommonActionResult<OutputPhysicalExamProgressDetail>;
/**
* 客户详情入参
*/
export interface InputCustomerDetail {
/** 体检ID */
physical_exam_id: number;
}
/**
* 客户预约信息
*/
export interface CustomerAppointmentInfo {
appointment_time?: string | null;
sign_in_time?: string | null;
physical_exam_complete_time?: string | null;
package_name?: string | null;
}
/**
* 客户体检加项
*/
export interface CustomerExamAddItem {
dept_name?: string | null;
combination_name?: string | null;
}
/**
* 客户详情出参
*/
export interface OutputCustomerDetail {
customerInfo?: CustomerInfo | null;
appointmentInfo?: CustomerAppointmentInfo | null;
addItemInfoList?: CustomerExamAddItem[] | null;
}
/**
* 客户详情接口返回
*/
export type CustomerDetailResponse = CommonActionResult<OutputCustomerDetail>;