| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/saveUnitDict": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "数据字典" |
| | | ], |
| | | "summary": "更新计量单位字典", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SaveUnitDict" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/updateDisuse": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "MaterialModeVirtual" |
| | | ] |
| | | }, |
| | | "constvar.OperationSource": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5, |
| | | 6 |
| | | ], |
| | | "x-enum-comments": { |
| | | "OperationSourceOutsourcing": "委外入库", |
| | | "OperationSourceOutsourcingApply": "委外领料", |
| | | "OperationSourceProduction": "生产入库", |
| | | "OperationSourceProductionApply": "生产领料", |
| | | "OperationSourcePurchase": "采购入库", |
| | | "OperationSourceSaleDelivery": "销售发货" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "OperationSourcePurchase", |
| | | "OperationSourceProduction", |
| | | "OperationSourceOutsourcing", |
| | | "OperationSourceProductionApply", |
| | | "OperationSourceOutsourcingApply", |
| | | "OperationSourceSaleDelivery" |
| | | ] |
| | | }, |
| | | "constvar.OperationStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "warehouse": { |
| | | "description": "仓库", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/models.Warehouse" |
| | | } |
| | | ] |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "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\"` + "`" + ` //目标位置", |
| | | "type": "string" |
| | | }, |
| | | "operationSource": { |
| | | "description": "操作来源", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.OperationSource" |
| | | } |
| | | ] |
| | | }, |
| | | "operationTypeId": { |
| | | "description": "作业类型id", |
| | | "type": "integer" |
| | |
| | | "type": "string" |
| | | }, |
| | | "receiverPhone": { |
| | | "type": "string" |
| | | }, |
| | | "salesDetailsNumber": { |
| | | "type": "string" |
| | | }, |
| | | "source": { |
| | |
| | | }, |
| | | "models.Warehouse": { |
| | | "type": "object", |
| | | "required": [ |
| | | "code" |
| | | ], |
| | | "properties": { |
| | | "active": { |
| | | "description": "是否启用,传true就行", |
| | |
| | | }, |
| | | "code": { |
| | | "description": "仓库编码", |
| | | "type": "string", |
| | | "maxLength": 5, |
| | | "minLength": 1 |
| | | "type": "string" |
| | | }, |
| | | "company": { |
| | | "$ref": "#/definitions/models.Company" |
| | |
| | | "type": "integer" |
| | | }, |
| | | "locationId": { |
| | | "description": "位置id", |
| | | "description": "默认位置id", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.SaveUnitDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/request.UnitDict" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.UnitDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "isDefault": { |
| | | "type": "boolean" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateCompany": { |
| | | "type": "object", |
| | | "properties": { |