| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/dict/getUserList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "数据字典" |
| | | ], |
| | | "summary": "获取用户列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "id", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "nickName", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "parentId", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "pos", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "userName", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "name": "userType", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/user.GetUserRequest" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/dict/save": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.DoMonthStats" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.MonthStats" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/forms/doWarehouseMonthStats": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "报表" |
| | | ], |
| | | "summary": "手动跑月度统计库存报表", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.DoWarehouseMonthStats" |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/forms/downloadWarehouseMonthStats": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "报表" |
| | | ], |
| | | "summary": "下载按仓库统计月度统计库存报表", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetMonthStats" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.MonthStats" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/forms/getHistory": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.MonthStats" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/forms/warehouseMonthStats": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "报表" |
| | | ], |
| | | "summary": "仓库月度统计库存报表", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetMonthStats" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.WarehouseMonthStats" |
| | | } |
| | | } |
| | | } |
| | |
| | | "summary": "添加库存盘点信息", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "入库/出库信息", |
| | | "name": "object", |
| | | "in": "body", |
| | |
| | | ], |
| | | "summary": "应用、验证", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "入参", |
| | | "name": "object", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/locationProductAmount/locationProductList": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "库存盘点" |
| | | ], |
| | | "summary": "获取位置对应产品列表", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetLocationProductList" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/locationProductAmount/update": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | ], |
| | | "summary": "修改库存盘点信息", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "入库/出库信息", |
| | | "name": "object", |
| | |
| | | ], |
| | | "summary": "更改记录状态", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "id", |
| | |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "入库/出库列表", |
| | | "summary": "操作详情接口", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/models.Operation" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | "入库/出库" |
| | | ], |
| | | "summary": "获取人员列表", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.OperationCondition" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/inventory_order.WorkerInfo" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | |
| | | "summary": "入库/出库列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.Operation" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | "summary": "添加入库/出库", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "入库/出库信息", |
| | | "name": "object", |
| | | "in": "body", |
| | |
| | | ], |
| | | "summary": "删除入库/出库信息", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "id", |
| | |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "type": "string", |
| | | "description": "仓库id", |
| | | "name": "warehouseId", |
| | | "name": "warehouseIds", |
| | | "in": "query" |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/other/saveProductImagesFromExcel": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "其他" |
| | | ], |
| | | "summary": "从excel中获取产品图片并保存", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/controllers.saveProductImagesFromExcelRequest" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addDisuse": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/downloadInputFormat": { |
| | | "get": { |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "下载导入物料/产品模板", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetProductList" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "application/xlsx" |
| | | ], |
| | | "tags": [ |
| | | "物料管理" |
| | | "产品" |
| | | ], |
| | | "summary": "导入物料", |
| | | "summary": "导入物料/产品", |
| | | "parameters": [ |
| | | { |
| | | "type": "file", |
| | |
| | | "BaseOperationTypeAdjust" |
| | | ] |
| | | }, |
| | | "constvar.BoolType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2 |
| | | ], |
| | | "x-enum-comments": { |
| | | "BoolTypeFalse": "false", |
| | | "BoolTypeTrue": "true" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "BoolTypeTrue", |
| | | "BoolTypeFalse" |
| | | ] |
| | | }, |
| | | "constvar.CostingMethod": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3 |
| | | 3, |
| | | 4, |
| | | 5, |
| | | 6 |
| | | ], |
| | | "x-enum-comments": { |
| | | "DisuseType": "报废类型", |
| | | "ProductSource": "产品来源", |
| | | "StockoutType": "出库类型", |
| | | "StorageType": "入库类型", |
| | | "TakeStockType": "盘点类型", |
| | | "TransferType": "调拨类型" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "TransferType", |
| | | "StorageType", |
| | | "StockoutType" |
| | | "StockoutType", |
| | | "TransferType", |
| | | "TakeStockType", |
| | | "DisuseType", |
| | | "ProductSource" |
| | | ] |
| | | }, |
| | | "constvar.OperationSource": { |
| | |
| | | "ReservationNever" |
| | | ] |
| | | }, |
| | | "controllers.saveProductImagesFromExcelRequest": { |
| | | "type": "object", |
| | | "properties": { |
| | | "excelFilePath": { |
| | | "description": "excel路径 用docker cp传到容器里", |
| | | "type": "string" |
| | | }, |
| | | "imageColumn": { |
| | | "description": "图片所在列名", |
| | | "type": "string" |
| | | }, |
| | | "productIdColumnIndex": { |
| | | "description": "产品ID是第几列(从0开始)", |
| | | "type": "integer" |
| | | }, |
| | | "sheetIndex": { |
| | | "description": "第几个sheet", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "gorm.DeletedAt": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "valid": { |
| | | "description": "Valid is true if Time is not NULL", |
| | | "type": "boolean" |
| | | } |
| | | } |
| | | }, |
| | | "inventory_order.WorkerInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "$ref": "#/definitions/models.Location" |
| | | }, |
| | | "locationId": { |
| | | "description": "LocationProductId int ` + "`" + `json:\"locationProductId\" gorm:\"type:int;not null;comment:上架规则id\"` + "`" + ` //上架规则id\nLocationProduct LocationProduct ` + "`" + `json:\"locationProduct\" gorm:\"foreignKey:LocationProductId;references:Id\"` + "`" + `", |
| | | "description": "位置id", |
| | | "type": "integer" |
| | | }, |
| | | "product": { |
| | |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "models.MonthStatsItemsType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2 |
| | | ], |
| | | "x-enum-comments": { |
| | | "MonthStatsItemsTypeInput": "入库", |
| | | "MonthStatsItemsTypeOutput": "出库" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "MonthStatsItemsTypeInput", |
| | | "MonthStatsItemsTypeOutput" |
| | | ] |
| | | }, |
| | | "models.MoveHistory": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "accountant": { |
| | | "description": "会计名称", |
| | | "type": "string" |
| | | }, |
| | | "accountantId": { |
| | | "description": "会计id", |
| | | "type": "string" |
| | | }, |
| | | "auditDate": { |
| | | "description": "审批时间", |
| | | "type": "string" |
| | | }, |
| | | "baseOperationType": { |
| | |
| | | ] |
| | | }, |
| | | "checkedBy": { |
| | | "description": "验证者UserId", |
| | | "type": "string" |
| | | }, |
| | | "comment": { |
| | | "description": "备注", |
| | | "type": "string" |
| | | }, |
| | | "companyID": { |
| | | "description": "公司ID-客户", |
| | | "type": "string" |
| | | }, |
| | | "companyName": { |
| | | "description": "公司名称-客户", |
| | | "type": "string" |
| | | }, |
| | | "contacterID": { |
| | | "description": "联系人ID", |
| | | "type": "integer" |
| | | }, |
| | | "contacterName": { |
| | | "description": "联系人姓名", |
| | | "type": "string" |
| | | }, |
| | | "createBy": { |
| | | "description": "创建者UserId", |
| | | "type": "string" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "custodian": { |
| | | "description": "保管员名称", |
| | | "type": "string" |
| | | }, |
| | | "custodianId": { |
| | | "description": "保管员id", |
| | | "type": "string" |
| | | }, |
| | | "dealerType": { |
| | | "description": "调拨出入库类型", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | | "description": "操作明细", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationDetails" |
| | | } |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inventoryDealer": { |
| | | "$ref": "#/definitions/models.MiniDict" |
| | | }, |
| | | "inventoryDealerType": { |
| | | "type": "integer" |
| | | }, |
| | | "isInternalOutput": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "logisticCompany": { |
| | | "$ref": "#/definitions/models.LogisticCompany" |
| | | "description": "物流公司信息", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/models.LogisticCompany" |
| | | } |
| | | ] |
| | | }, |
| | | "logisticCompanyId": { |
| | | "description": "物流公司id", |
| | | "type": "string" |
| | | }, |
| | | "logisticWeight": { |
| | |
| | | "type": "number" |
| | | }, |
| | | "manager": { |
| | | "description": "主管名称", |
| | | "type": "string" |
| | | }, |
| | | "managerId": { |
| | | "description": "主管id", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "FromLocationID int ` + "`" + `json:\"fromLocationId\" gorm:\"type:int;not null;comment:源位置id\"` + "`" + ` //源位置id\nFromLocation Location ` + "`" + `json:\"fromLocation\" gorm:\"foreignKey:FromLocationID;references:Id\"` + "`" + ` //源位置\nToLocationID int ` + "`" + `json:\"toLocationId\" gorm:\"type:int;not null;comment:目标位置id\"` + "`" + ` //目标位置id\nToLocation Location ` + "`" + `json:\"toLocation\" gorm:\"foreignKey:ToLocationID;references:Id\"` + "`" + ` //目标位置", |
| | | "description": "安排日期", |
| | | "type": "string" |
| | | }, |
| | | "operationSource": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "receiverAddr": { |
| | | "description": "收货地址", |
| | | "type": "string" |
| | | }, |
| | | "receiverName": { |
| | | "description": "收货人姓名", |
| | | "type": "string" |
| | | }, |
| | | "receiverPhone": { |
| | | "description": "联系电话", |
| | | "type": "string" |
| | | }, |
| | | "remark": { |
| | | "description": "备注", |
| | | "type": "string" |
| | | }, |
| | | "salesDetailsNumber": { |
| | | "description": "销售明细编码", |
| | | "type": "string" |
| | | }, |
| | | "silkMarket": { |
| | | "description": "嘉联仓储添加 SilkMarket", |
| | | "type": "string" |
| | | }, |
| | | "source": { |
| | | "description": "来源系统", |
| | | "type": "string" |
| | | }, |
| | | "sourceNumber": { |
| | |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "warehouse": { |
| | | "description": "仓库信息", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/models.Warehouse" |
| | | } |
| | | ] |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "integer" |
| | | }, |
| | | "waybillNumber": { |
| | |
| | | "type": "number" |
| | | }, |
| | | "auxiliaryAmount": { |
| | | "description": "辅助数量", |
| | | "type": "number" |
| | | }, |
| | | "auxiliaryUnit": { |
| | | "description": "辅助单位", |
| | | "type": "string" |
| | | }, |
| | | "baseOperationType": { |
| | | "description": "基础作业类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BaseOperationType" |
| | | } |
| | | ] |
| | | }, |
| | | "cost": { |
| | | "description": "成本单价", |
| | | "type": "number" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "dealerType": { |
| | | "description": "出入库类型", |
| | | "type": "string" |
| | | }, |
| | | "fromLocation": { |
| | |
| | | "description": "是否调拨产生的出库", |
| | | "type": "boolean" |
| | | }, |
| | | "moreUnitList": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.UnitItems" |
| | | } |
| | | }, |
| | | "operationId": { |
| | | "description": "操作id", |
| | | "description": "操作记录id", |
| | | "type": "integer" |
| | | }, |
| | | "product": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "remark": { |
| | | "description": "备注", |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售单价", |
| | | "type": "number" |
| | | }, |
| | | "silkMarket": { |
| | | "description": "嘉联仓储添加 SilkMarket、SilkMarketClose", |
| | | "type": "string" |
| | | }, |
| | | "silkMarketClose": { |
| | | "description": "庄口关闭", |
| | | "type": "string" |
| | | }, |
| | | "stockAmount": { |
| | | "description": "库存数量,盘点时用", |
| | | "type": "number" |
| | | }, |
| | | "toLocation": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "totalGrossWeight": { |
| | | "description": "总毛重", |
| | | "type": "number" |
| | | }, |
| | | "totalNetWeight": { |
| | | "description": "总净重", |
| | | "type": "number" |
| | | }, |
| | | "updateTime": { |
| | |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "openMonthStats": { |
| | | "description": "是否开启月度统计", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BoolType" |
| | | } |
| | | ] |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | |
| | | "warehouseLocation": { |
| | | "description": "库存位置", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "models.WarehouseMonthStats": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "description": "期末结余数量", |
| | | "type": "number" |
| | | }, |
| | | "beginAmount": { |
| | | "description": "期初数量", |
| | | "type": "number" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "date": { |
| | | "description": "日期 2024-04", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inputAmount": { |
| | | "description": "入库数量", |
| | | "type": "number" |
| | | }, |
| | | "inputItems": { |
| | | "description": "入库明细", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.WarehouseStatsItems" |
| | | } |
| | | }, |
| | | "outputAmount": { |
| | | "description": "出库数量", |
| | | "type": "number" |
| | | }, |
| | | "outputItems": { |
| | | "description": "出库明细", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.WarehouseStatsItems" |
| | | } |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "productName": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售单价", |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "description": "单位", |
| | | "type": "string" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "models.WarehouseStatsItems": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "description": "数量", |
| | | "type": "number" |
| | | }, |
| | | "name": { |
| | | "description": "入库来源,出库去处", |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "$ref": "#/definitions/models.MonthStatsItemsType" |
| | | }, |
| | | "warehouseMonthStatsId": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "request.AddMiniDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "description": "编码", |
| | | "type": "string" |
| | | }, |
| | | "isDefault": { |
| | | "description": "是否默认", |
| | | "type": "boolean" |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "accountant": { |
| | | "description": "会计名称", |
| | | "type": "string" |
| | | }, |
| | | "accountantId": { |
| | | "description": "会计id", |
| | | "type": "string" |
| | | }, |
| | | "baseOperationType": { |
| | | "description": "基础作业类型 5库存盘点", |
| | | "description": "基础作业类型 1 入库 2 出库 3 内部调拨 4 报废 5 库存盘点", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BaseOperationType" |
| | |
| | | "type": "string" |
| | | }, |
| | | "custodian": { |
| | | "description": "保管员名称", |
| | | "type": "string" |
| | | }, |
| | | "custodianId": { |
| | | "description": "保管员id", |
| | | "type": "string" |
| | | }, |
| | | "dealerType": { |
| | | "description": "调拨出入库类型", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | | "description": "详情", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/request.OperationDetails" |
| | |
| | | "type": "integer" |
| | | }, |
| | | "logisticCompanyId": { |
| | | "description": "物流公司id", |
| | | "type": "string" |
| | | }, |
| | | "logisticWeight": { |
| | |
| | | "type": "number" |
| | | }, |
| | | "manager": { |
| | | "description": "主管名称", |
| | | "type": "string" |
| | | }, |
| | | "managerId": { |
| | | "description": "主管id", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" gorm:\"type:int;not null;comment:源位置id\"` + "`" + ` //源位置id\nToLocationId int ` + "`" + `json:\"toLocationId\" gorm:\"type:int;not null;comment:目标位置id\"` + "`" + ` //目标位置id", |
| | | "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" ` + "`" + ` //源位置id\nToLocationId int ` + "`" + `json:\"toLocationId\" ` + "`" + ` //目标位置id", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "receiverAddr": { |
| | | "description": "收货地址", |
| | | "type": "string" |
| | | }, |
| | | "receiverName": { |
| | | "description": "收货人姓名", |
| | | "type": "string" |
| | | }, |
| | | "receiverPhone": { |
| | | "description": "联系电话", |
| | | "type": "string" |
| | | }, |
| | | "silkMarket": { |
| | | "description": "庄口", |
| | | "type": "string" |
| | | }, |
| | | "sourceNumber": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.DoWarehouseMonthStats": { |
| | | "type": "object", |
| | | "properties": { |
| | | "token": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.EditMiniDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "description": "编码", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "description": "字典类型", |
| | | "type": "integer" |
| | |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "warehouseCode": { |
| | | "description": "仓库缩写", |
| | | "type": "string" |
| | | "warehouseId": { |
| | | "description": "WarehouseCode string ` + "`" + `json:\"warehouseCode\"` + "`" + ` //仓库缩写", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "unit": { |
| | | "description": "单位", |
| | | "type": "string" |
| | | }, |
| | | "warehouseCode": { |
| | | "type": "string" |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库ID", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | "locationId": { |
| | | "type": "integer" |
| | | }, |
| | | "locationIds": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | |
| | | }, |
| | | "type": { |
| | | "type": "integer" |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetLocationProductList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "locationId": { |
| | | "type": "integer" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "warehouseId": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetMiniDictList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "description": "关键字查询", |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "description": "字典类型", |
| | | "allOf": [ |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "preload": { |
| | | "type": "boolean" |
| | | }, |
| | | "warehouseID": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "properties": { |
| | | "categoryId": { |
| | | "type": "integer" |
| | | }, |
| | | "categoryIds": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | }, |
| | | "keyWord": { |
| | | "type": "string" |
| | |
| | | "request.MiniDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "description": "编码", |
| | | "type": "string" |
| | | }, |
| | | "isDefault": { |
| | | "description": "是否默认", |
| | | "type": "boolean" |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "number": { |
| | | "description": "单号", |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "sourceNumber": { |
| | | "description": "源单号", |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "condition": { |
| | | "description": "模糊查询条件", |
| | | "type": "string" |
| | | }, |
| | | "keyword": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "amount": { |
| | | "description": "ProductName string ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:产品名称\"` + "`" + ` //产品名称", |
| | | "description": "ProductName string ` + "`" + `json:\"productName\" ` + "`" + ` //产品名称", |
| | | "type": "number" |
| | | }, |
| | | "auxiliaryAmount": { |
| | |
| | | "type": "number" |
| | | }, |
| | | "fromLocationId": { |
| | | "description": "Unit string ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:单位\"` + "`" + ` //单位\nProduct models.Material ` + "`" + `json:\"product\" gorm:\"foreignKey:ProductId;references:ID\"` + "`" + `", |
| | | "description": "Unit string ` + "`" + `json:\"unit\"` + "`" + ` //单位\nProduct models.Material ` + "`" + `json:\"product\" ` + "`" + ` // 产品", |
| | | "type": "integer" |
| | | }, |
| | | "moreUnitList": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.UnitItems" |
| | | } |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "remark": { |
| | | "description": "备注", |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售单价", |
| | | "type": "number" |
| | | }, |
| | | "silkMarket": { |
| | | "description": "庄口", |
| | | "type": "string" |
| | | }, |
| | | "silkMarketClose": { |
| | | "description": "庄口关闭", |
| | | "type": "string" |
| | | }, |
| | | "stockAmount": { |
| | | "description": "库存数量,盘点时用", |
| | | "type": "number" |
| | | }, |
| | | "toLocationId": { |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "baseOperationType": { |
| | | "description": "1 入库 2 出库 3 内部调拨 4 报废 5 库存盘点", |
| | | "description": "基础作业类型 1 入库 2 出库 3 内部调拨 4 报废 5 库存盘点", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BaseOperationType" |
| | |
| | | ] |
| | | }, |
| | | "number": { |
| | | "description": "单号", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | | "description": "作业类型id", |
| | | "type": "integer" |
| | | }, |
| | | "page": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/constvar.OperationStatus" |
| | | "description": "状态", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.OperationStatus" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "accountant": { |
| | | "description": "会计名称", |
| | | "type": "string" |
| | | }, |
| | | "accountantId": { |
| | | "description": "会计id", |
| | | "type": "string" |
| | | }, |
| | | "baseOperationType": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "custodian": { |
| | | "description": "保管员名称", |
| | | "type": "string" |
| | | }, |
| | | "custodianId": { |
| | | "description": "保管员id", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | | "description": "详情", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/request.OperationDetails" |
| | | } |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inventoryDealerType": { |
| | | "description": "调拨出入库分类(对应dict字典表的ID)", |
| | | "type": "integer" |
| | | }, |
| | | "locationId": { |
| | |
| | | "type": "number" |
| | | }, |
| | | "manager": { |
| | | "description": "主管名称", |
| | | "type": "string" |
| | | }, |
| | | "managerId": { |
| | | "description": "主管id", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" gorm:\"type:int;not null;comment:源位置id\"` + "`" + ` //源位置id\nToLocationId int ` + "`" + `json:\"toLocationId\" gorm:\"type:int;not null;comment:目标位置id\"` + "`" + ` //目标位置id", |
| | | "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" ` + "`" + ` //源位置id\nToLocationId int ` + "`" + `json:\"toLocationId\" ` + "`" + ` //目标位置id", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "receiverAddr": { |
| | | "description": "收货地址", |
| | | "type": "string" |
| | | }, |
| | | "receiverName": { |
| | | "description": "收货人姓名", |
| | | "type": "string" |
| | | }, |
| | | "receiverPhone": { |
| | | "description": "联系电话", |
| | | "type": "string" |
| | | }, |
| | | "silkMarket": { |
| | | "description": "庄口", |
| | | "type": "string" |
| | | }, |
| | | "sourceNumber": { |
| | |
| | | }, |
| | | "toLocationId": { |
| | | "description": "目标位置id", |
| | | "type": "integer" |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "integer" |
| | | }, |
| | | "waybillNumber": { |
| | |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "productCategory": { |
| | | "description": "产品类别", |
| | | "type": "string" |
| | | }, |
| | | "productName": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "productSpecs": { |
| | | "description": "产品规格", |
| | | "type": "string" |
| | | }, |
| | | "productType": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "user.GetUserRequest": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "nickName": { |
| | | "type": "string" |
| | | }, |
| | | "parentId": { |
| | | "type": "string" |
| | | }, |
| | | "pos": { |
| | | "type": "string" |
| | | }, |
| | | "userName": { |
| | | "type": "string" |
| | | }, |
| | | "userType": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "util.Response": { |
| | | "type": "object", |
| | | "properties": { |