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] - 上次库存变动的来源类型 */ /**