| | |
| | | description: 文件地址 |
| | | type: string |
| | | type: object |
| | | purchase.OrderStatus: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | - 4 |
| | | type: integer |
| | | x-enum-comments: |
| | | OrderStatusCompleted: 已完成 |
| | | OrderStatusConfirmed: 已下单 |
| | | OrderStatusReceived: 已到货 |
| | | OrderStatusStored: 已入库 |
| | | x-enum-varnames: |
| | | - OrderStatusConfirmed |
| | | - OrderStatusReceived |
| | | - OrderStatusStored |
| | | - OrderStatusCompleted |
| | | purchase.Purchase: |
| | | properties: |
| | | contact: |
| | |
| | | name: |
| | | description: 采购名称 |
| | | type: string |
| | | number: |
| | | description: 采购编号 |
| | | type: string |
| | | phone: |
| | | description: 联系人电话 |
| | | type: string |
| | | purchaseType: |
| | | $ref: '#/definitions/purchase.PurchaseType' |
| | | purchaseTypeId: |
| | | description: 采购类型id |
| | | type: integer |
| | |
| | | signingDate: |
| | | description: 签约日期 |
| | | type: string |
| | | status: |
| | | allOf: |
| | | - $ref: '#/definitions/purchase.OrderStatus' |
| | | description: 状态 |
| | | supplier: |
| | | $ref: '#/definitions/test.Supplier' |
| | | supplierId: |
| | | description: 供应商id |
| | | type: integer |
| | |
| | | description: 采购总价 |
| | | type: number |
| | | type: object |
| | | purchase.PurchaseType: |
| | | properties: |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | name: |
| | | description: 采购类型 |
| | | type: string |
| | | pin: |
| | | description: 是否置顶 |
| | | type: boolean |
| | | sort: |
| | | description: 排序 |
| | | type: integer |
| | | type: object |
| | | purchaserequest.AddPurchase: |
| | | properties: |
| | | productList: |
| | |
| | | $ref: '#/definitions/purchase.PurchaseProducts' |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchase.Purchase' |
| | | $ref: '#/definitions/purchaserequest.Purchase' |
| | | type: object |
| | | purchaserequest.Purchase: |
| | | properties: |
| | | contact: |
| | | description: 联系人 |
| | | type: string |
| | | deliveryDate: |
| | | description: 交付日期 |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | name: |
| | | description: 采购名称 |
| | | type: string |
| | | number: |
| | | description: 采购编号 |
| | | type: string |
| | | phone: |
| | | description: 联系人电话 |
| | | type: string |
| | | purchaseTypeId: |
| | | description: 采购类型id |
| | | type: integer |
| | | remark: |
| | | description: 备注 |
| | | type: string |
| | | signingDate: |
| | | description: 签约日期 |
| | | type: string |
| | | status: |
| | | allOf: |
| | | - $ref: '#/definitions/purchase.OrderStatus' |
| | | description: 状态 |
| | | supplierId: |
| | | description: 供应商id |
| | | type: integer |
| | | type: object |
| | | purchaserequest.PurchaseType: |
| | | properties: |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | name: |
| | | description: 采购类型 |
| | | type: string |
| | | pin: |
| | | description: 是否置顶 |
| | | type: boolean |
| | | sort: |
| | | description: 排序 |
| | | type: integer |
| | | type: object |
| | | purchaserequest.UpdatePurchase: |
| | | properties: |
| | | productList: |
| | | items: |
| | | $ref: '#/definitions/purchase.PurchaseProducts' |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchaserequest.Purchase' |
| | | type: object |
| | | request.AddMenuAuthorityInfo: |
| | | properties: |
| | |
| | | name: data |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/purchaserequest.AddPurchase' |
| | | $ref: '#/definitions/purchaserequest.UpdatePurchase' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | summary: 分页获取采购单列表 |
| | | tags: |
| | | - Purchase |
| | | /purchase/purchaseType: |
| | | post: |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 采购类型list |
| | | in: body |
| | | name: data |
| | | required: true |
| | | schema: |
| | | items: |
| | | $ref: '#/definitions/purchaserequest.PurchaseType' |
| | | type: array |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 创建采购类型 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/response.Response' |
| | | - properties: |
| | | msg: |
| | | type: string |
| | | type: object |
| | | security: |
| | | - ApiKeyAuth: [] |
| | | summary: 创建采购类型 |
| | | tags: |
| | | - Purchase |
| | | /purchase/purchaseTypeList: |
| | | get: |
| | | consumes: |
| | | - application/json |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 获取采购类型列表 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/response.Response' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/purchase.PurchaseType' |
| | | type: array |
| | | msg: |
| | | type: string |
| | | type: object |
| | | security: |
| | | - ApiKeyAuth: [] |
| | | summary: 获取采购类型列表 |
| | | tags: |
| | | - Purchase |
| | | /purchase/submit/{id}: |
| | | post: |
| | | consumes: |