| | |
| | | - BaseOperationTypeIncoming |
| | | - BaseOperationTypeOutgoing |
| | | - BaseOperationTypeInternal |
| | | constvar.LocationType: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | - 4 |
| | | - 5 |
| | | - 6 |
| | | - 7 |
| | | type: integer |
| | | x-enum-comments: |
| | | LocationTypeCustomer: 客户位置 |
| | | LocationTypeInternal: 内部位置 |
| | | LocationTypeInventoryLoss: 库存损失 |
| | | LocationTypeProduction: 生产 |
| | | LocationTypeTransit: 中转位置 |
| | | LocationTypeVendor: 供应商位置 |
| | | LocationTypeView: 视图 |
| | | x-enum-varnames: |
| | | - LocationTypeVendor |
| | | - LocationTypeView |
| | | - LocationTypeInternal |
| | | - LocationTypeCustomer |
| | | - LocationTypeInventoryLoss |
| | | - LocationTypeProduction |
| | | - LocationTypeTransit |
| | | constvar.OperationStatus: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | - 4 |
| | | type: integer |
| | | x-enum-comments: |
| | | OperationStatus_Draft: 草稿 |
| | | OperationStatus_Finish: 完成 |
| | | OperationStatus_Ready: 就绪 |
| | | OperationStatus_Waiting: 正在等待 |
| | | x-enum-varnames: |
| | | - OperationStatus_Draft |
| | | - OperationStatus_Waiting |
| | | - OperationStatus_Ready |
| | | - OperationStatus_Finish |
| | | constvar.ReservationMethod: |
| | | enum: |
| | | - 1 |
| | |
| | | type: object |
| | | models.Location: |
| | | properties: |
| | | company: |
| | | allOf: |
| | | - $ref: '#/definitions/models.Company' |
| | | description: 公司 |
| | | companyId: |
| | | description: 公司id |
| | | type: integer |
| | | countFrequency: |
| | | description: 盘点频率(天) |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | id: |
| | | type: integer |
| | | isReturnLocation: |
| | | description: 是否退货位置 |
| | | type: boolean |
| | | isScrapLocation: |
| | | description: 是否报废位置 |
| | | type: boolean |
| | | name: |
| | | description: 位置名称 |
| | | type: string |
| | | parentId: |
| | | description: 上级id |
| | | type: integer |
| | | replenishLocation: |
| | | description: 是否补充位置 |
| | | type: boolean |
| | | type: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.LocationType' |
| | | description: 位置类型 |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | |
| | | description: 备注 |
| | | type: string |
| | | type: object |
| | | request.AddOperation: |
| | | properties: |
| | | details: |
| | | items: |
| | | $ref: '#/definitions/request.OperationDetails' |
| | | type: array |
| | | fromLocationId: |
| | | description: 源位置id |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | number: |
| | | description: 单号 |
| | | type: string |
| | | operationDate: |
| | | $ref: '#/definitions/util.JSONTime' |
| | | operationTypeId: |
| | | description: 作业类型id |
| | | type: integer |
| | | sourceNumber: |
| | | description: 源单号 |
| | | type: string |
| | | status: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.OperationStatus' |
| | | description: 状态 |
| | | toLocationId: |
| | | description: 目标位置id |
| | | type: integer |
| | | type: object |
| | | request.AddOperationType: |
| | | properties: |
| | | ReservationDaysBeforePriority: |
| | |
| | | type: array |
| | | required: |
| | | - code |
| | | type: object |
| | | request.OperationDetails: |
| | | properties: |
| | | finishQuantity: |
| | | description: 完成数量 |
| | | type: number |
| | | productId: |
| | | description: 产品id |
| | | type: integer |
| | | productName: |
| | | description: 产品名称 |
| | | type: string |
| | | quantity: |
| | | description: 数量 |
| | | type: number |
| | | type: object |
| | | request.UpdateCompany: |
| | | properties: |
| | |
| | | type: array |
| | | required: |
| | | - code |
| | | type: object |
| | | util.JSONTime: |
| | | properties: |
| | | time.Time: |
| | | type: string |
| | | type: object |
| | | util.Response: |
| | | properties: |
| | |
| | | summary: 编辑公司 |
| | | tags: |
| | | - 公司 |
| | | /api-wms/v1/operation/operation: |
| | | post: |
| | | parameters: |
| | | - description: 入库/出库信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddOperation' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加入库/出库 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/warehouse/operationType: |
| | | get: |
| | | parameters: |