From 69f0410081da54e6cea8a04a07fd0119a8edc623 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 30 三月 2024 11:38:42 +0800
Subject: [PATCH] 采购单修改
---
docs/swagger.json | 248 +++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 206 insertions(+), 42 deletions(-)
diff --git a/docs/swagger.json b/docs/swagger.json
index 2cc58b6..aa52a00 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1380,6 +1380,13 @@
"type": "string",
"name": "unit",
"in": "query"
+ },
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
}
],
"responses": {
@@ -1597,6 +1604,44 @@
}
}
},
+ "/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": [
@@ -1785,8 +1830,8 @@
}
}
},
- "/purchase/newSubmit/{id}": {
- "get": {
+ "/purchase/newSubmit": {
+ "post": {
"security": [
{
"ApiKeyAuth": []
@@ -1804,11 +1849,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": {
@@ -2315,6 +2362,59 @@
}
}
},
+ "/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": [
@@ -2334,11 +2434,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": {
@@ -4014,7 +4116,7 @@
"type": "string"
},
"sourceOrder": {
- "description": "鏉ユ簮鍗曟嵁",
+ "description": "鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮�",
"type": "string"
},
"status": {
@@ -4438,6 +4540,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": {
@@ -4551,17 +4681,9 @@
}
}
},
- "response.OperationInfo": {
+ "response.InWarehouseInfo": {
"type": "object",
"properties": {
- "amount": {
- "description": "閲囪喘鏁�",
- "type": "number"
- },
- "modelNumber": {
- "description": "鍨嬪彿",
- "type": "string"
- },
"name": {
"description": "浜у搧鍚嶇О",
"type": "string"
@@ -4586,32 +4708,29 @@
"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"
+ }
}
}
},
@@ -4630,6 +4749,51 @@
}
}
},
+ "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": {
--
Gitblit v1.8.0