From bd33bea0f3b44e608fcb4d9aa9d1f51a2f5bcf17 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 07 四月 2024 19:26:17 +0800 Subject: [PATCH] 新增按仓库分组的发货准备接口 --- docs/docs.go | 199 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 190 insertions(+), 9 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 35d02d0..ef7fd5c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -7008,6 +7008,66 @@ } } }, + "/api/salesDetails/confirmOutput": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "纭鍙戣揣", + "parameters": [ + { + "description": "鏄庣粏缂栫爜", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.ConfirmOutput" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, + "/api/salesDetails/confirmOutputOver": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "纭鍙戣揣", + "parameters": [ + { + "description": "鏄庣粏缂栫爜", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.ConfirmOutputOver" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/salesDetails/delete": { "delete": { "produces": [ @@ -7145,22 +7205,24 @@ } } }, - "/api/salesDetails/getProductInventoryInfo/{number}": { - "get": { + "/api/salesDetails/getDeliveryPrepareInfoByWarehouse": { + "post": { "produces": [ "application/json" ], "tags": [ "SalesDetails" ], - "summary": "鑾峰彇浜у搧鍙戣揣淇℃伅", + "summary": "鑾峰彇浜у搧鍏ュ簱淇℃伅鎸変粨搴撳垎缁�", "parameters": [ { - "type": "string", "description": "鏄庣粏缂栫爜", - "name": "number", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.GetWarehouseProductInfoReq" + } } ], "responses": { @@ -7173,7 +7235,7 @@ } } }, - "/api/salesDetails/getSalesDetailsProductInfo/{number}": { + "/api/salesDetails/getProductInventoryInfo/{number}": { "get": { "produces": [ "application/json" @@ -7181,7 +7243,7 @@ "tags": [ "SalesDetails" ], - "summary": "鑾峰彇閿�鍞槑缁嗕骇鍝佷俊鎭�", + "summary": "鑾峰彇浜у搧鍙戣揣淇℃伅", "parameters": [ { "type": "string", @@ -15533,6 +15595,41 @@ } } }, + "request.ConfirmOutput": { + "type": "object", + "properties": { + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/request.ConfirmOutputProducts" + } + }, + "saleDetailNumber": { + "type": "string" + } + } + }, + "request.ConfirmOutputOver": { + "type": "object", + "properties": { + "saleDetailNumber": { + "type": "string" + } + } + }, + "request.ConfirmOutputProducts": { + "type": "object", + "properties": { + "number": { + "description": "浜у搧缂栧彿", + "type": "string" + }, + "outputAmount": { + "description": "鏈鍙戣揣鏁伴噺", + "type": "number" + } + } + }, "request.Contact": { "type": "object", "properties": { @@ -19430,6 +19527,12 @@ "$ref": "#/definitions/response.OutsourcingInfo" } }, + "productInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/response.SalesDetailsProductInfo" + } + }, "purchaseInfo": { "type": "array", "items": { @@ -19785,6 +19888,81 @@ } } }, + "response.SalesDetailsProductInfo": { + "type": "object", + "properties": { + "amount": { + "description": "璁㈠崟鏁伴噺", + "type": "number" + }, + "cost": { + "description": "浜у搧鎴愭湰", + "type": "string" + }, + "deliveryAmount": { + "description": "鍙戣揣鏁伴噺", + "type": "integer" + }, + "finishAmount": { + "description": "瀹屾垚鏁伴噺", + "type": "integer" + }, + "makeAmount": { + "description": "鍒堕�犳暟閲�", + "type": "integer" + }, + "makeFinishAmount": { + "description": "鍒堕�犲畬鎴愭暟閲�", + "type": "integer" + }, + "margin": { + "description": "姣涘埄鐜�", + "type": "string" + }, + "outsourcingAmount": { + "description": "濮斿鏁伴噺", + "type": "integer" + }, + "outsourcingFinishAmount": { + "description": "濮斿瀹屾垚鏁伴噺", + "type": "integer" + }, + "price": { + "description": "浜у搧浠锋牸", + "type": "number" + }, + "productId": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "profit": { + "description": "姣涘埄", + "type": "string" + }, + "purchaseAmount": { + "description": "閲囪喘鏁伴噺", + "type": "integer" + }, + "purchaseFinishAmount": { + "description": "閲囪喘瀹屾垚鏁伴噺", + "type": "integer" + }, + "specs": { + "description": "鐗╂枡瑙勬牸", + "type": "string" + }, + "total": { + "description": "浜у搧鎬讳环", + "type": "number" + }, + "unit": { + "description": "鍗曚綅", + "type": "string" + } + } + }, "response.SalesDetailsResponse": { "type": "object", "properties": { @@ -20011,6 +20189,9 @@ "v1.GetWarehouseProductInfoReq": { "type": "object", "properties": { + "groupByWarehouse": { + "type": "boolean" + }, "saleDetailID": { "type": "integer" }, -- Gitblit v1.8.0