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 | 587 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 567 insertions(+), 20 deletions(-)
diff --git a/docs/swagger.json b/docs/swagger.json
index 2a6474a..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": [
@@ -1616,7 +1661,7 @@
"summary": "鑾峰彇鎿嶄綔淇℃伅",
"responses": {
"200": {
- "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃",
+ "description": "鑾峰彇鎿嶄綔淇℃伅",
"schema": {
"allOf": [
{
@@ -1628,7 +1673,111 @@
"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"
}
}
}
@@ -1656,15 +1805,6 @@
"Purchase"
],
"summary": "鑾峰彇浠撳簱鍒楄〃",
- "parameters": [
- {
- "type": "integer",
- "description": "閲囪喘鍗旾D",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
"responses": {
"200": {
"description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃",
@@ -1681,6 +1821,56 @@
"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"
}
}
}
@@ -2119,6 +2309,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": [
@@ -2138,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": {
@@ -3677,21 +3975,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": {
@@ -3809,7 +4116,7 @@
"type": "string"
},
"sourceOrder": {
- "description": "鏉ユ簮鍗曟嵁",
+ "description": "鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮�",
"type": "string"
},
"status": {
@@ -3858,6 +4165,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"
}
}
},
@@ -3985,6 +4345,26 @@
}
}
},
+ "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": {
@@ -4097,6 +4477,47 @@
}
}
},
+ "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": {
@@ -4116,6 +4537,34 @@
"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"
}
}
},
@@ -4232,6 +4681,59 @@
}
}
},
+ "response.InWarehouseInfo": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "浜у搧鍚嶇О",
+ "type": "string"
+ },
+ "number": {
+ "description": "浜у搧缂栫爜",
+ "type": "string"
+ },
+ "operationNumber": {
+ "description": "鍏ュ簱鍗曞彿",
+ "type": "string"
+ },
+ "overAmount": {
+ "description": "鍏ュ簱鏁�",
+ "type": "integer"
+ },
+ "overTime": {
+ "description": "鍏ュ簱鏃堕棿",
+ "type": "string"
+ },
+ "principal": {
+ "description": "璐熻矗浜�",
+ "type": "string"
+ },
+ "status": {
+ "type": "integer"
+ },
+ "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.PageResult": {
"type": "object",
"properties": {
@@ -4247,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