| | |
| | | created_at: |
| | | description: 创建时间 |
| | | type: string |
| | | creator: |
| | | description: 制单人 |
| | | type: string |
| | | deliveryDate: |
| | | description: 交付日期 |
| | | type: string |
| | | handledBy: |
| | | description: 经办人 |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | |
| | | number: |
| | | description: 采购编号 |
| | | type: string |
| | | orderType: |
| | | description: 单据类型 |
| | | type: string |
| | | phone: |
| | | description: 联系人电话 |
| | | type: string |
| | |
| | | purchaseTypeId: |
| | | description: 采购类型id |
| | | type: integer |
| | | quantity: |
| | | description: 采购数量 |
| | | type: number |
| | | remark: |
| | | description: 备注 |
| | | type: string |
| | |
| | | supplierId: |
| | | description: 供应商id |
| | | type: integer |
| | | warehouse: |
| | | description: 收货仓库 |
| | | type: string |
| | | type: object |
| | | purchase.PurchaseProducts: |
| | | properties: |
| | |
| | | price: |
| | | description: 采购单价 |
| | | type: number |
| | | product: |
| | | $ref: '#/definitions/test.Product' |
| | | productId: |
| | | description: 产品id |
| | | type: integer |
| | |
| | | type: object |
| | | purchase.PurchaseType: |
| | | properties: |
| | | created_at: |
| | | description: 创建时间 |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | |
| | | $ref: '#/definitions/request.CasbinInfo' |
| | | type: array |
| | | type: object |
| | | response.PurchaseProducts: |
| | | properties: |
| | | amount: |
| | | description: 采购数量 |
| | | type: number |
| | | deliveryTime: |
| | | type: integer |
| | | modelNumber: |
| | | type: string |
| | | name: |
| | | type: string |
| | | number: |
| | | type: string |
| | | price: |
| | | description: 采购单价 |
| | | type: number |
| | | productId: |
| | | description: 产品id |
| | | type: integer |
| | | productType: |
| | | type: string |
| | | purchaseId: |
| | | description: 采购id |
| | | type: integer |
| | | purchasePrice: |
| | | type: number |
| | | shippingDuration: |
| | | type: integer |
| | | specifications: |
| | | type: string |
| | | total: |
| | | description: 采购总价 |
| | | type: number |
| | | unit: |
| | | type: string |
| | | type: object |
| | | response.PurchaseResponse: |
| | | properties: |
| | | productList: |
| | | items: |
| | | $ref: '#/definitions/purchase.PurchaseProducts' |
| | | $ref: '#/definitions/response.PurchaseProducts' |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchase.Purchase' |
| | |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 采购单用户名, 采购单手机号码 |
| | | - description: 采购单,采购单产品 |
| | | in: body |
| | | name: data |
| | | required: true |