| | |
| | | "type": "string", |
| | | "name": "unit", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "summary": "新版提交", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "summary": "提交采购单", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "sourceOrder": { |
| | | "description": "来源单据", |
| | | "description": "来源单据 ,销售明细编码", |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.SubmitPurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/purchase.OrderStatus" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.UpdatePurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.OperationInfo": { |
| | | "response.InWarehouseInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "description": "采购数", |
| | | "type": "number" |
| | | }, |
| | | "modelNumber": { |
| | | "description": "型号", |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | |
| | | "description": "负责人", |
| | | "type": "string" |
| | | }, |
| | | "purchasePrice": { |
| | | "description": "单价", |
| | | "type": "number" |
| | | }, |
| | | "sendAmount": { |
| | | "description": "发货数", |
| | | "type": "integer" |
| | | }, |
| | | "specifications": { |
| | | "description": "规格", |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "description": "总价", |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "description": "单位", |
| | | "type": "string" |
| | | }, |
| | | "warehouseName": { |
| | | "description": "仓库名", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.OperationInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "inWarehouseInfos": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/response.InWarehouseInfo" |
| | | } |
| | | }, |
| | | "productInfos": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/response.ProductInfo" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.ProductInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "description": "采购数", |
| | | "type": "number" |
| | | }, |
| | | "modelNumber": { |
| | | "description": "型号", |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "description": "产品编码", |
| | | "type": "string" |
| | | }, |
| | | "overAmount": { |
| | | "description": "入库数", |
| | | "type": "integer" |
| | | }, |
| | | "purchasePrice": { |
| | | "description": "单价", |
| | | "type": "number" |
| | | }, |
| | | "sendAmount": { |
| | | "description": "收货数", |
| | | "type": "integer" |
| | | }, |
| | | "specifications": { |
| | | "description": "规格", |
| | | "type": "string" |
| | | }, |
| | | "total": { |
| | | "description": "总价", |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "description": "单位", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.PurchaseProducts": { |
| | | "type": "object", |
| | | "properties": { |