| | |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/allProductInWarehouse": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Purchase" |
| | | ], |
| | | "summary": "全部合格入库", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "获取确认信息", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/getOperationInfo/{id}": { |
| | | "get": { |
| | | "security": [ |
| | |
| | | "summary": "获取操作信息", |
| | | "responses": { |
| | | "200": { |
| | | "description": "获取采购类型列表", |
| | | "description": "获取操作信息", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" |
| | | "$ref": "#/definitions/response.OperationInfo" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/getPurchaseProductConfirmInfo/{number}": { |
| | | "get": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Purchase" |
| | | ], |
| | | "summary": "获取确认信息", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "采购单编码", |
| | | "name": "number", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "获取确认信息", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchase.PurchaseProductConfirm" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/getPurchaseQualityInspectionInfo": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Purchase" |
| | | ], |
| | | "summary": "获取采购质检信息信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.GetQualityInspectionInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "获取确认信息", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchase.PurchaseProductConfirm" |
| | | } |
| | | } |
| | | } |
| | |
| | | "Purchase" |
| | | ], |
| | | "summary": "获取仓库列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "获取采购类型列表", |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/newSubmit": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Purchase" |
| | | ], |
| | | "summary": "新版提交", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "新版提交", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/savePurchaseProductConfirm": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Purchase" |
| | | ], |
| | | "summary": "确认收货", |
| | | "parameters": [ |
| | | { |
| | | "description": "list", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo" |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "确认收货", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/savePurchaseQualityInspectionInfo": { |
| | | "post": { |
| | | "security": [ |
| | | { |
| | | "ApiKeyAuth": [] |
| | | } |
| | | ], |
| | | "consumes": [ |
| | | "application/json" |
| | | ], |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Purchase" |
| | | ], |
| | | "summary": "保存采购质检信息信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SaveQualityInspectionInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "获取确认信息", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchase.PurchaseProductConfirm" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/submit": { |
| | | "post": { |
| | | "security": [ |
| | |
| | | "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": { |
| | |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5 |
| | | 5, |
| | | 6, |
| | | 7, |
| | | 8 |
| | | ], |
| | | "x-enum-comments": { |
| | | "OrderStatusCanceled": "已取消", |
| | | "OrderStatusCompleted": "已完成", |
| | | "OrderStatusConfirmed": "待确认", |
| | | "OrderStatusPartReceive": "部分收货", |
| | | "OrderStatusReceived": "待入库", |
| | | "OrderStatusStored": "已入库" |
| | | "OrderStatusStored": "已入库", |
| | | "OrderStatusWaitQuality": "待质检", |
| | | "OrderStatusWaitReceive": "待收货" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "OrderStatusConfirmed", |
| | | "OrderStatusReceived", |
| | | "OrderStatusStored", |
| | | "OrderStatusCompleted", |
| | | "OrderStatusCanceled" |
| | | "OrderStatusCanceled", |
| | | "OrderStatusWaitReceive", |
| | | "OrderStatusPartReceive", |
| | | "OrderStatusWaitQuality" |
| | | ] |
| | | }, |
| | | "purchase.PriceAdjustmentType": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchase.PurchaseProductConfirm": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "number" |
| | | }, |
| | | "created_at": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "notReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "nowReceiveAmount": { |
| | | "description": "本次收货数量", |
| | | "type": "number" |
| | | }, |
| | | "overReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "principal": { |
| | | "type": "string" |
| | | }, |
| | | "productId": { |
| | | "type": "string" |
| | | }, |
| | | "productName": { |
| | | "type": "string" |
| | | }, |
| | | "purchaseNumber": { |
| | | "type": "string" |
| | | }, |
| | | "specs": { |
| | | "type": "string" |
| | | }, |
| | | "surplusReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "type": { |
| | | "type": "string" |
| | | }, |
| | | "unit": { |
| | | "type": "string" |
| | | }, |
| | | "updated_at": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "purchase.PurchaseProducts": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.GetQualityInspectionInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "purchaseNumber": { |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | }, |
| | | "times": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.Purchase": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.PurchaseProductConfirmInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "number" |
| | | }, |
| | | "notReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "nowReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "overReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "principal": { |
| | | "type": "string" |
| | | }, |
| | | "productId": { |
| | | "type": "string" |
| | | }, |
| | | "productName": { |
| | | "type": "string" |
| | | }, |
| | | "purchaseNumber": { |
| | | "type": "string" |
| | | }, |
| | | "specs": { |
| | | "type": "string" |
| | | }, |
| | | "surplusReceiveAmount": { |
| | | "type": "number" |
| | | }, |
| | | "type": { |
| | | "type": "string" |
| | | }, |
| | | "unit": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.PurchaseType": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "sort": { |
| | | "description": "排序", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.SaveQualityInspectionInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "ids": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | }, |
| | | "purchaseId": { |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.SubmitPurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/purchase.OrderStatus" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.OperationInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "description": "采购数", |
| | | "type": "number" |
| | | }, |
| | | "modelNumber": { |
| | | "description": "型号", |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "description": "产品编码", |
| | | "type": "string" |
| | | }, |
| | | "operationNumber": { |
| | | "description": "入库单号", |
| | | "type": "string" |
| | | }, |
| | | "overAmount": { |
| | | "description": "入库数", |
| | | "type": "integer" |
| | | }, |
| | | "overTime": { |
| | | "description": "入库时间", |
| | | "type": "string" |
| | | }, |
| | | "principal": { |
| | | "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.PageResult": { |
| | | "type": "object", |
| | | "properties": { |