feat(manage): 完善设备管理/支付配置/订单/审计日志模块

- 设备管理: 自营设备固定 source=DIRECT, 第三方设备固定 source=PARTNER, 门店终端管理跳转带 storeOrgId 筛选
- 支付配置: 支持平台全局/渠道/代理商/门店四个层级, 列表显示层级标签与所属组织
- 订单管理: 显示渠道/代理商/门店名称, 设备列显示MAC地址
- 审计日志: 新增审计日志和橘视厅调用日志页面及菜单图标SQL
- 门店管理: 兼容 manage 接口统一返回格式 data:{page:{list}}
This commit is contained in:
freeboss
2026-08-01 14:48:22 +08:00
parent 690568861b
commit 630dfddc59
14 changed files with 761 additions and 150 deletions

View File

@@ -0,0 +1,50 @@
import http from '@/utils/httpRequest'
import type { ManageListResponse, ManagePageParams } from './types'
/**
* 橘视厅调用日志(设备调用橘视厅 API 的日志)
*/
export interface JstCallLogItem {
id: number
/** 请求URL */
apiPath: string
/** 请求方法 */
requestMethod?: string
/** 请求体 */
requestBody?: string
/** 响应体 */
responseBody?: string
/** HTTP状态码 */
responseCode?: number
/** 是否成功(1=成功,0=失败) */
success: number
/** 耗时(ms) */
duration?: number
/** 错误信息 */
errorMessage?: string
/** 关联设备MAC */
mac?: string
/** 关联设备SN */
deviceSn?: string
/** 关联设备UID */
deviceUid?: string
/** 设备所属门店 */
storeOrgName?: string
createTime: string
}
/**
* 橘视厅调用日志查询参数
*/
export interface JstCallLogListParams extends ManagePageParams {
mac?: string
beginTime?: string
endTime?: string
apiPath?: string
requestBody?: string
}
/** 橘视厅调用日志列表 */
export function getJstCallLogList(params?: JstCallLogListParams): Promise<ManageListResponse<JstCallLogItem>> {
return http.get(http.adornUrl('/manage/jst/call-log/list'), { params: http.adornParams(params || {}) }).then(res => res.data)
}