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 |  467 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 459 insertions(+), 8 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index a683fef..238ddaf 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1606,6 +1606,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": [
@@ -1638,6 +1676,110 @@
                                             "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"
                                             }
                                         }
                                     }
@@ -1681,6 +1823,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 +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": [
@@ -2138,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": {
@@ -3677,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": {
@@ -3861,6 +4170,59 @@
                 }
             }
         },
+        "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": {
@@ -3985,6 +4347,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 +4479,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": {
@@ -4119,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": {

--
Gitblit v1.8.0