完善北3面板

This commit is contained in:
xianyi
2025-12-17 14:14:23 +08:00
parent 1adb79ca0e
commit a345b1abd2
3 changed files with 110 additions and 25 deletions

View File

@@ -42,6 +42,8 @@ import type {
UserOwnedMenusResponse,
InputB1ServiceBoard,
B1ServiceBoardResponse,
InputNorth3ServiceBoard,
North3ServiceBoardResponse,
} from './types';
/**
@@ -346,3 +348,15 @@ export const getB1ServiceBoard = (
).then(res => res.data);
};
/**
* 北3服务看板
*/
export const getNorth3ServiceBoard = (
data: InputNorth3ServiceBoard = {}
): Promise<North3ServiceBoardResponse> => {
return request.post<North3ServiceBoardResponse>(
`${MEDICAL_EXAM_BASE_PATH}/north3-service-board`,
data
).then(res => res.data);
};

View File

@@ -744,3 +744,43 @@ export interface OutputB1ServiceBoard {
*/
export type B1ServiceBoardResponse = CommonActionResult<OutputB1ServiceBoard>;
/**
* 北3服务点信息
*/
export interface North3ServiceInfo {
/** 家医名称 */
family_doctor_name?: string | null;
/** 面诊率 */
face_to_face_rate: number;
/** 分配客户数 */
assigned_customer_count: number;
/** 面诊数 */
face_to_face_count: number;
}
/**
* 北3服务看板入参
*/
export interface InputNorth3ServiceBoard {
// 空对象,无需参数
}
/**
* 北3服务看板出参
*/
export interface OutputNorth3ServiceBoard {
/** 今日家医数 */
today_family_doctor_count: number;
/** 分配客户数 */
assigned_customer_count: number;
/** 面诊数 */
face_to_face_count: number;
/** 北3服务点信息列表 */
north3_service_list: North3ServiceInfo[];
}
/**
* 北3服务看板响应
*/
export type North3ServiceBoardResponse = CommonActionResult<OutputNorth3ServiceBoard>;