更新
This commit is contained in:
@@ -64,3 +64,16 @@ export function accountCostDetail(params?: any) {
|
||||
export function accountCostDelete(params?: any) {
|
||||
return request.post({ url: '/finance.account_cost/delete', params })
|
||||
}
|
||||
|
||||
/** 制定业绩:按月查看各部门目标 */
|
||||
export function deptPerformanceTargetMonthMatrix(params: { year_month: string }) {
|
||||
return request.get({ url: '/finance.dept_performance_target/monthMatrix', params })
|
||||
}
|
||||
|
||||
/** 制定业绩:批量保存当月目标(target_amount≤0 则清除该部门当月目标) */
|
||||
export function deptPerformanceTargetBatchSave(params: {
|
||||
year_month: string
|
||||
items: Array<{ dept_id: number; target_amount: number; remark?: string }>
|
||||
}) {
|
||||
return request.post({ url: '/finance.dept_performance_target/batchSave', params })
|
||||
}
|
||||
|
||||
@@ -15,6 +15,17 @@ export function qywxCustomerStats() {
|
||||
return request.get({ url: '/qywx.customer/stats' })
|
||||
}
|
||||
|
||||
/**
|
||||
* 标签维度统计:返回 { total_tags, total_relations, total_tagged_customers, groups[] }
|
||||
* - groups[i].group_name / customer_count(组内最热门标签的客户数)
|
||||
* - groups[i].tags[j].tag_id / tag_name / customer_count
|
||||
*
|
||||
* 用于:① 列表"按标签筛选"下拉 ② 标签维度面板抽屉
|
||||
*/
|
||||
export function qywxCustomerTagStats() {
|
||||
return request.get({ url: '/qywx.customer/tagStats' })
|
||||
}
|
||||
|
||||
/**
|
||||
* 今日进入分布(事件流水零误差口径)
|
||||
* 返回 { total, recent_time, hourly: number[24], by_state: [{state,count}] }
|
||||
|
||||
@@ -3,3 +3,42 @@ import request from '@/utils/request'
|
||||
export function getConversionStatsOverview(params: any) {
|
||||
return request.get({ url: '/stats.conversion/overview', params })
|
||||
}
|
||||
|
||||
/** 业绩看板:单区间(部门 × 时间 × 渠道) */
|
||||
export function yejiStatsOverview(params: {
|
||||
start_date: string
|
||||
end_date: string
|
||||
dept_ids?: number[] | string
|
||||
channel_code?: string
|
||||
}) {
|
||||
return request.get({ url: '/stats.yejiStats/overview', params })
|
||||
}
|
||||
|
||||
/** 业绩看板:多区间一次返回(默认 月/周/今日/昨日 四张表) */
|
||||
export function yejiStatsMulti(params: {
|
||||
dept_ids?: number[] | string
|
||||
channel_code?: string
|
||||
ranges?: Array<{ label?: string; start_date: string; end_date: string }>
|
||||
}) {
|
||||
return request.get({ url: '/stats.yejiStats/multi', params })
|
||||
}
|
||||
|
||||
/** 业绩看板:部门下拉 */
|
||||
export function yejiStatsDeptOptions() {
|
||||
return request.get({ url: '/stats.yejiStats/deptOptions' })
|
||||
}
|
||||
|
||||
/** 业绩看板:渠道下拉(按 source_group_name 分组) */
|
||||
export function yejiStatsChannelOptions() {
|
||||
return request.get({ url: '/stats.yejiStats/channelOptions' })
|
||||
}
|
||||
|
||||
/** 业绩看板:医助排行榜(按部门分表;区间须与当前业绩表一致) */
|
||||
export function yejiStatsLeaderboard(params: {
|
||||
start_date: string
|
||||
end_date: string
|
||||
dept_ids?: number[] | string
|
||||
channel_code?: string
|
||||
}) {
|
||||
return request.get({ url: '/stats.yejiStats/leaderboard', params })
|
||||
}
|
||||
|
||||
@@ -364,6 +364,7 @@ export function prescriptionOrderRevokePayAudit(params: { id: number }) {
|
||||
/** 确认发货:将 fulfillment_status 从 2(履约中)推进到 5(已发货) */
|
||||
export function prescriptionOrderShip(params: {
|
||||
id: number
|
||||
ship_mode?: 'gancao' | 'direct'
|
||||
express_company: string
|
||||
tracking_number: string
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user