oms/frontend/src/api/outboundLog.ts
liufumingren a51cb4df15 feat(frontend): 初始化 Vue3 + Vite 前端工程与业务页面
- 工程脚手架:Vite、TypeScript 配置、路由、Pinia store(auth/principal/menu)、请求封装
- 布局与通用组件:BasicLayout、SideMenu、DataTable/VirtualTable、VirtualSelect、ProductSelect、ImageUploader 等
- 业务页面:登录、首页、商品、店铺、店铺商品、组合商品、仓库/接口配置、库存、入库单、出库单、发货单(列表 + 创建)、外部接口、主体/主体用户、个人资料
- API 层:api/*.ts 与后端接口一一对应
2026-09-13 02:23:51 +08:00

31 lines
856 B
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.

import { get } from '@/utils/request'
/** 对外 API 请求记录(OMS → 外部 WMS 的调用) */
export interface OutboundLogItem {
id: number
principal_id: number | null
warehouse_id: number | null
warehouse_api_id: number | null
api_type: string | null
method: string
url: string | null
request_headers: string | null
request_body: string | null
response_status: number | null
response_body: string | null
is_success: number
business_code: string | null
business_message: string | null
error: string | null
duration: number | null
created_at: string
}
/** 对外 API 调用日志列表(按当前主体、可选仓库过滤) */
export function getOutboundLogs(params?: object) {
return get<{ list: OutboundLogItem[]; total: number; page: number; pageSize: number }>(
'/outbound-logs',
params,
)
}