| | |
| | | "summary": "创建采购单", |
| | | "parameters": [ |
| | | { |
| | | "description": "采购单用户名, 采购单手机号码", |
| | | "description": "采购单,采购单产品", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | |
| | | "description": "创建时间", |
| | | "type": "string" |
| | | }, |
| | | "creator": { |
| | | "description": "制单人", |
| | | "type": "string" |
| | | }, |
| | | "deliveryDate": { |
| | | "description": "交付日期", |
| | | "type": "string" |
| | | }, |
| | | "handledBy": { |
| | | "description": "经办人", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | |
| | | "description": "采购编号", |
| | | "type": "string" |
| | | }, |
| | | "orderType": { |
| | | "description": "单据类型", |
| | | "type": "string" |
| | | }, |
| | | "phone": { |
| | | "description": "联系人电话", |
| | | "type": "string" |
| | |
| | | "purchaseTypeId": { |
| | | "description": "采购类型id", |
| | | "type": "integer" |
| | | }, |
| | | "quantity": { |
| | | "description": "采购数量", |
| | | "type": "number" |
| | | }, |
| | | "remark": { |
| | | "description": "备注", |
| | |
| | | "supplierId": { |
| | | "description": "供应商id", |
| | | "type": "integer" |
| | | }, |
| | | "warehouse": { |
| | | "description": "收货仓库", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "description": "采购单价", |
| | | "type": "number" |
| | | }, |
| | | "product": { |
| | | "$ref": "#/definitions/test.Product" |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "integer" |
| | |
| | | "purchase.PurchaseType": { |
| | | "type": "object", |
| | | "properties": { |
| | | "created_at": { |
| | | "description": "创建时间", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.PurchaseProducts": { |
| | | "type": "object", |
| | | "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" |
| | | } |
| | | } |
| | | }, |
| | | "response.PurchaseResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | | "productList": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchase.PurchaseProducts" |
| | | "$ref": "#/definitions/response.PurchaseProducts" |
| | | } |
| | | }, |
| | | "purchase": { |