From ef82203ed7660e22abb64530ff4281bcbb187b0c Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Thu, 27 Nov 2025 18:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0swag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/swagger.json | 8 ++++++++ src/api/inventory.js | 1 + 2 files changed, 9 insertions(+) diff --git a/docs/swagger.json b/docs/swagger.json index 52a832ec..1758e2c7 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -7341,6 +7341,14 @@ "dto.CurrentStockResponse": { "type": "object", "properties": { + "last_operation_source_type": { + "description": "上次库存变动的来源类型", + "allOf": [ + { + "$ref": "#/definitions/models.StockLogSourceType" + } + ] + }, "last_updated": { "description": "最后更新时间", "type": "string" diff --git a/src/api/inventory.js b/src/api/inventory.js index 8195a8cc..5fafcfa1 100644 --- a/src/api/inventory.js +++ b/src/api/inventory.js @@ -38,6 +38,7 @@ import { PaginationDTO, Response, StockLogSourceType } from '../enums'; * @property {number} raw_material_id - 原料ID * @property {string} raw_material_name - 原料名称 * @property {number} stock - 当前库存量, 单位: g + * @property {StockLogSourceType} [last_operation_source_type] - 上次库存变动的来源类型 */ /**