From c7e82fd1d76b9fb25497d5aba4372bbfe13a8468 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 28 三月 2024 20:00:21 +0800 Subject: [PATCH] 采购入库增加来源 --- docs/docs.go | 895 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 865 insertions(+), 30 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 55a08e3..238ddaf 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -16,6 +16,112 @@ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { + "/code/getAutoCode": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "缂栫爜" + ], + "summary": "鑾峰彇鑷姩缂栫爜", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/code.CodeStandard" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + } + } + } + ] + } + } + } + } + }, + "/code/getCodeList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "缂栫爜" + ], + "summary": "鑾峰彇缂栫爜鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "codeStandID", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/code.CodeStandard" + } + } + } + } + ] + } + } + } + } + }, "/con/createContract": { "post": { "security": [ @@ -1096,7 +1202,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/srm_model_common_request.GetById" } } ], @@ -1495,6 +1601,282 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"棰勮鎴愬姛\"}", "schema": { "type": "string" + } + } + } + } + }, + "/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": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇鎿嶄綔淇℃伅", + "responses": { + "200": { + "description": "鑾峰彇鎿嶄綔淇℃伅", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$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/getWarehouseInfo": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇浠撳簱鍒楄〃", + "responses": { + "200": { + "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "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" + } + } + } + ] } } } @@ -1929,6 +2311,112 @@ } } }, + "/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": [ @@ -1948,11 +2436,13 @@ "summary": "鎻愪氦閲囪喘鍗�", "parameters": [ { - "type": "integer", - "description": "閲囪喘鍗旾D", - "name": "id", - "in": "path", - "required": true + "description": "鍙傛暟", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.SubmitPurchase" + } } ], "responses": { @@ -2188,7 +2678,8 @@ "in": "query" }, { - "type": "integer", + "type": "string", + "example": "0", "description": "涓婚敭ID", "name": "id", "in": "query" @@ -2349,7 +2840,8 @@ "in": "query" }, { - "type": "integer", + "type": "string", + "example": "0", "description": "涓婚敭ID", "name": "id", "in": "query" @@ -2915,6 +3407,69 @@ } }, "definitions": { + "code.CodeAuto": { + "type": "object", + "properties": { + "AutoLength": { + "type": "integer" + }, + "Desc": { + "type": "string" + }, + "PrefixMethod": { + "type": "integer" + }, + "PrefixValue": { + "type": "string" + }, + "SuffixMethod": { + "type": "integer" + } + } + }, + "code.CodeRule": { + "type": "object", + "properties": { + "Desc": { + "type": "string" + }, + "Length": { + "type": "integer" + }, + "Name": { + "type": "string" + } + } + }, + "code.CodeStandard": { + "type": "object", + "properties": { + "AutoRule": { + "$ref": "#/definitions/code.CodeAuto" + }, + "ID": { + "type": "string" + }, + "List": { + "type": "array", + "items": { + "$ref": "#/definitions/code.CodeRule" + } + }, + "Method": { + "type": "integer" + }, + "Name": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Type": { + "type": "string" + } + } + }, "config.CORS": { "type": "object", "properties": { @@ -3422,21 +3977,30 @@ 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": { @@ -3478,7 +4042,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "invoiceAmount": { "description": "宸叉敹绁ㄩ噾棰�", @@ -3521,7 +4086,7 @@ ] }, "principal": { - "description": "閲囪喘璐熻矗浜�", + "description": "浠撳簱璐熻矗浜�", "type": "string" }, "purchaseType": { @@ -3529,7 +4094,8 @@ }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", - "type": "integer" + "type": "string", + "example": "0" }, "quantity": { "description": "閲囪喘鏁伴噺", @@ -3551,6 +4117,10 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "sourceOrder": { + "description": "鏉ユ簮鍗曟嵁", + "type": "string" + }, "status": { "description": "鐘舵��", "allOf": [ @@ -3564,7 +4134,8 @@ }, "supplierId": { "description": "渚涘簲鍟唅d", - "type": "integer" + "type": "string", + "example": "0" }, "totalPrice": { "description": "浠风◣鍚堣", @@ -3581,6 +4152,10 @@ "description": "鏀惰揣浠撳簱", "type": "string" }, + "warehouseAddress": { + "description": "鏀惰揣浠撳簱鍦板潃", + "type": "string" + }, "wholeDiscount": { "description": "鏁村崟鎶樻墸鍊�", "type": "number" @@ -3592,6 +4167,59 @@ "$ref": "#/definitions/purchase.WholeDiscountType" } ] + } + } + }, + "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" } } }, @@ -3642,7 +4270,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘绫诲瀷", @@ -3676,6 +4305,34 @@ "WholeDiscountTypeDiscount" ] }, + "purchase_wms.SrmGetWarehouseInfoResponse": { + "type": "object", + "properties": { + "info": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase_wms.SrmWarehouseInfo" + } + } + } + }, + "purchase_wms.SrmWarehouseInfo": { + "type": "object", + "properties": { + "address": { + "description": "浠撳簱鍦板潃", + "type": "string" + }, + "name": { + "description": "浠撳簱鍚�", + "type": "string" + }, + "principal": { + "description": "浠撳簱璐熻矗浜�", + "type": "string" + } + } + }, "purchaserequest.AddPurchase": { "type": "object", "properties": { @@ -3687,6 +4344,26 @@ }, "purchase": { "$ref": "#/definitions/purchaserequest.Purchase" + } + } + }, + "purchaserequest.GetQualityInspectionInfo": { + "type": "object", + "properties": { + "purchaseNumber": { + "type": "string" + }, + "status": { + "type": "array", + "items": { + "type": "integer" + } + }, + "times": { + "type": "array", + "items": { + "type": "string" + } } } }, @@ -3703,7 +4380,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘鍚嶇О", @@ -3733,9 +4411,14 @@ } ] }, + "principal": { + "description": "浠撳簱璐熻矗浜�", + "type": "string" + }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", - "type": "integer" + "type": "string", + "example": "0" }, "quantity": { "description": "閲囪喘鏁伴噺", @@ -3753,6 +4436,10 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "sourceOrder": { + "description": "鏉ユ簮鍗曟嵁", + "type": "string" + }, "status": { "description": "鐘舵��", "allOf": [ @@ -3763,11 +4450,20 @@ }, "supplierId": { "description": "渚涘簲鍟唅d", - "type": "integer" + "type": "string", + "example": "0" }, "totalPrice": { "description": "浠风◣鍚堣", "type": "number" + }, + "warehouse": { + "description": "鏀惰揣浠撳簱", + "type": "string" + }, + "warehouseAddress": { + "description": "鏀惰揣浠撳簱鍦板潃", + "type": "string" }, "wholeDiscount": { "description": "鏁村崟鎶樻墸鍊�", @@ -3783,12 +4479,54 @@ } } }, + "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": { "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘绫诲瀷", @@ -3804,6 +4542,34 @@ } } }, + "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" + } + } + }, "purchaserequest.UpdatePurchase": { "type": "object", "properties": { @@ -3815,15 +4581,6 @@ }, "purchase": { "$ref": "#/definitions/purchaserequest.Purchase" - } - } - }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" } } }, @@ -3926,6 +4683,70 @@ } } }, + "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": { @@ -3978,6 +4799,10 @@ "purchasePrice": { "type": "number" }, + "remark": { + "description": "鎻忚堪", + "type": "string" + }, "shippingDuration": { "type": "integer" }, @@ -4016,6 +4841,15 @@ "data": {}, "msg": { "type": "string" + } + } + }, + "srm_model_common_request.GetById": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" } } }, @@ -4122,7 +4956,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "industry": { "type": "string" -- Gitblit v1.8.0