| | |
| | | - Task |
| | | - Object |
| | | - TaskAndObject |
| | | constvar.ProductType: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | type: integer |
| | | x-enum-comments: |
| | | Consumables: 消耗品 |
| | | Server: 服务 |
| | | StoredProduct: 可储存的产品 |
| | | x-enum-varnames: |
| | | - Consumables |
| | | - Server |
| | | - StoredProduct |
| | | constvar.ReservationMethod: |
| | | enum: |
| | | - 1 |
| | |
| | | type: string |
| | | parentId: |
| | | description: 上级id |
| | | type: integer |
| | | type: string |
| | | replenishLocation: |
| | | description: 是否补充位置 |
| | | type: boolean |
| | |
| | | categoryId: |
| | | description: 产品类别id |
| | | type: integer |
| | | categoryName: |
| | | description: 产品类别名称 |
| | | type: string |
| | | companyId: |
| | | description: 公司id |
| | | type: integer |
| | |
| | | invoicingStrategy: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.InvoicingStrategy' |
| | | description: wms添加字段 |
| | | description: 开票策略 |
| | | isSale: |
| | | description: PurchaseType constvar.PurchaseType `gorm:"type:int(11);comment:采购类型" |
| | | json:"purchaseType"` |
| | |
| | | productTagName: |
| | | description: 产品标签名称 |
| | | type: string |
| | | productType: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.ProductType' |
| | | description: wms添加字段 |
| | | purchasePrice: |
| | | description: 采购价格 |
| | | type: number |
| | |
| | | inboundTransportation: |
| | | description: 入向运输 |
| | | type: integer |
| | | locationId: |
| | | description: 位置id |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | |
| | | type: string |
| | | type: array |
| | | updateTime: |
| | | type: string |
| | | warehouseLocation: |
| | | description: 库存位置 |
| | | type: string |
| | | required: |
| | | - code |
| | |
| | | type: string |
| | | inboundTransportation: |
| | | description: 入向运输 |
| | | type: integer |
| | | locationId: |
| | | description: 位置id |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | |
| | | warehouseId: |
| | | description: 仓库id |
| | | type: integer |
| | | type: object |
| | | request.UpdateWarehouse: |
| | | properties: |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | address: |
| | | description: 地址 |
| | | type: string |
| | | buyToResupply: |
| | | description: 购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | | code: |
| | | description: 仓库编码 |
| | | maxLength: 5 |
| | | minLength: 1 |
| | | type: string |
| | | id: |
| | | type: integer |
| | | inboundTransportation: |
| | | description: 入向运输 |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | outboundTransportation: |
| | | description: 出库运输 |
| | | type: integer |
| | | partnerId: |
| | | description: 合作伙伴id |
| | | type: integer |
| | | resupplyWhIds: |
| | | description: 补给来源仓库ID |
| | | items: |
| | | type: string |
| | | type: array |
| | | required: |
| | | - code |
| | | type: object |
| | | util.Response: |
| | | properties: |
| | |
| | | summary: 修改产品类型 |
| | | tags: |
| | | - 产品类型 |
| | | /api-wms/v1/warehouse/getWarehouseDetails/{id}: |
| | | get: |
| | | parameters: |
| | | - description: 仓库id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/util.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/models.Warehouse' |
| | | type: object |
| | | summary: 获取仓库详情 |
| | | tags: |
| | | - 仓库 |
| | | /api-wms/v1/warehouse/updateWarehouse: |
| | | post: |
| | | parameters: |
| | | - description: 仓库信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/models.Warehouse' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 编辑仓库 |
| | | tags: |
| | | - 仓库 |
| | | /api-wms/v1/warehouse/warehouse: |
| | | get: |
| | | parameters: |
| | |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 删除仓库 |
| | | tags: |
| | | - 仓库 |
| | | put: |
| | | parameters: |
| | | - description: 仓库信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateWarehouse' |
| | | - description: 仓库id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 编辑仓库 |
| | | tags: |
| | | - 仓库 |
| | | swagger: "2.0" |