diff --git a/inventory-web/src/api/inbound/return.ts b/inventory-web/src/api/inbound/return.ts index 9d7b6f5..0d13310 100644 --- a/inventory-web/src/api/inbound/return.ts +++ b/inventory-web/src/api/inbound/return.ts @@ -84,3 +84,28 @@ export function scrapDefective(id: number, data: { scrap_qty?: number; reason: s data }) } + +/** + * 退回流水台账(只读)。 + * + * @param params { + * page?, page_size?, + * keyword?, 模糊匹配 出库单号 / SKU / 操作人 + * return_type?, '良品' | '不良品';'全部' 或留空 = 不过滤 + * start_date?, end_date? 按退回时间过滤(YYYY-MM-DD) + * } + */ +export function getReturnList(params: { + page?: number + page_size?: number + keyword?: string + return_type?: string + start_date?: string + end_date?: string +}) { + return request({ + url: '/outbound/returns', + method: 'get', + params + }) +} diff --git a/inventory-web/src/layout/components/Sidebar/index.vue b/inventory-web/src/layout/components/Sidebar/index.vue index 9cc0e2e..5ef0137 100644 --- a/inventory-web/src/layout/components/Sidebar/index.vue +++ b/inventory-web/src/layout/components/Sidebar/index.vue @@ -46,18 +46,44 @@ + +