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 | 1553 +++++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 1,186 insertions(+), 367 deletions(-)

diff --git a/docs/swagger.json b/docs/swagger.json
index 06dd49f..aa52a00 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -7,6 +7,112 @@
         "version": "0.0.1"
     },
     "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": [
@@ -119,61 +225,6 @@
                 "responses": {
                     "200": {
                         "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}",
-                        "schema": {
-                            "type": "string"
-                        }
-                    }
-                }
-            }
-        },
-        "/con/downloadContract": {
-            "get": {
-                "security": [
-                    {
-                        "ApiKeyAuth": []
-                    }
-                ],
-                "consumes": [
-                    "application/json"
-                ],
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "Contract"
-                ],
-                "summary": "涓嬭浇Contract",
-                "parameters": [
-                    {
-                        "type": "string",
-                        "name": "created_at",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "fileName",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "涓婚敭ID",
-                        "name": "id",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "supplierID",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "updated_at",
-                        "in": "query"
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "{\"success\":true,\"data\":{},\"msg\":\"涓嬭浇鎴愬姛\"}",
                         "schema": {
                             "type": "string"
                         }
@@ -319,61 +370,6 @@
                 }
             }
         },
-        "/con/previewContract": {
-            "get": {
-                "security": [
-                    {
-                        "ApiKeyAuth": []
-                    }
-                ],
-                "consumes": [
-                    "application/json"
-                ],
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "Contract"
-                ],
-                "summary": "棰勮Contract",
-                "parameters": [
-                    {
-                        "type": "string",
-                        "name": "created_at",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "fileName",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "涓婚敭ID",
-                        "name": "id",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "supplierID",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "updated_at",
-                        "in": "query"
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "{\"success\":true,\"data\":{},\"msg\":\"棰勮鎴愬姛\"}",
-                        "schema": {
-                            "type": "string"
-                        }
-                    }
-                }
-            }
-        },
         "/con/updateContract": {
             "put": {
                 "security": [
@@ -405,6 +401,61 @@
                 "responses": {
                     "200": {
                         "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}",
+                        "schema": {
+                            "type": "string"
+                        }
+                    }
+                }
+            }
+        },
+        "/downloadContract": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Contract"
+                ],
+                "summary": "涓嬭浇Contract",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "name": "created_at",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "fileName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "涓婚敭ID",
+                        "name": "id",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{\"success\":true,\"data\":{},\"msg\":\"涓嬭浇鎴愬姛\"}",
                         "schema": {
                             "type": "string"
                         }
@@ -1142,7 +1193,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/test.Product"
+                            "$ref": "#/definitions/srm_model_common_request.GetById"
                         }
                     }
                 ],
@@ -1213,89 +1264,9 @@
                 "summary": "鐢╥d鏌ヨProduct",
                 "parameters": [
                     {
-                        "type": "string",
-                        "name": "created_at",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "deliveryTime",
-                        "in": "query"
-                    },
-                    {
                         "type": "integer",
                         "description": "涓婚敭ID",
                         "name": "id",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "maximumStock",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "minimumStock",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "modelNumber",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "name",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "number",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "productType",
-                        "in": "query"
-                    },
-                    {
-                        "type": "number",
-                        "name": "purchasePrice",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "remark",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "shippingDuration",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "specifications",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "supplierId",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "supplierName",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "unit",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -1329,7 +1300,7 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "name": "created_at",
+                        "name": "categoryName",
                         "in": "query"
                     },
                     {
@@ -1339,29 +1310,8 @@
                     },
                     {
                         "type": "string",
-                        "name": "endCreatedAt",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "涓婚敭ID",
-                        "name": "id",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
                         "description": "鍏抽敭瀛�",
                         "name": "keyword",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "maximumStock",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "minimumStock",
                         "in": "query"
                     },
                     {
@@ -1392,18 +1342,8 @@
                         "in": "query"
                     },
                     {
-                        "type": "string",
-                        "name": "productType",
-                        "in": "query"
-                    },
-                    {
                         "type": "number",
                         "name": "purchasePrice",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "remark",
                         "in": "query"
                     },
                     {
@@ -1418,7 +1358,7 @@
                     },
                     {
                         "type": "string",
-                        "name": "startCreatedAt",
+                        "name": "supplier",
                         "in": "query"
                     },
                     {
@@ -1443,8 +1383,10 @@
                     },
                     {
                         "type": "string",
-                        "name": "updated_at",
-                        "in": "query"
+                        "description": "token",
+                        "name": "Authorization",
+                        "in": "header",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -1477,7 +1419,7 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "name": "created_at",
+                        "name": "categoryName",
                         "in": "query"
                     },
                     {
@@ -1487,29 +1429,8 @@
                     },
                     {
                         "type": "string",
-                        "name": "endCreatedAt",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "涓婚敭ID",
-                        "name": "id",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
                         "description": "鍏抽敭瀛�",
                         "name": "keyword",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "maximumStock",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "name": "minimumStock",
                         "in": "query"
                     },
                     {
@@ -1540,18 +1461,8 @@
                         "in": "query"
                     },
                     {
-                        "type": "string",
-                        "name": "productType",
-                        "in": "query"
-                    },
-                    {
                         "type": "number",
                         "name": "purchasePrice",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "remark",
                         "in": "query"
                     },
                     {
@@ -1566,7 +1477,7 @@
                     },
                     {
                         "type": "string",
-                        "name": "startCreatedAt",
+                        "name": "supplier",
                         "in": "query"
                     },
                     {
@@ -1587,11 +1498,6 @@
                     {
                         "type": "string",
                         "name": "unit",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -1629,7 +1535,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/test.Product"
+                            "$ref": "#/definitions/test.SupplierMaterial"
                         }
                     }
                 ],
@@ -1638,6 +1544,337 @@
                         "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}",
                         "schema": {
                             "type": "string"
+                        }
+                    }
+                }
+            }
+        },
+        "/previewContract": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Contract"
+                ],
+                "summary": "棰勮Contract",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "name": "created_at",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "fileName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "涓婚敭ID",
+                        "name": "id",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "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"
+                                        }
+                                    }
+                                }
+                            ]
                         }
                     }
                 }
@@ -1873,6 +2110,12 @@
                         "description": "姣忛〉澶у皬",
                         "name": "pageSize",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "渚涘簲鍟唅d",
+                        "name": "supplierId",
+                        "in": "query"
                     }
                 ],
                 "responses": {
@@ -2033,6 +2276,12 @@
                         "description": "姣忛〉澶у皬",
                         "name": "pageSize",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "渚涘簲鍟唅d",
+                        "name": "supplierId",
+                        "in": "query"
                     }
                 ],
                 "responses": {
@@ -2060,7 +2309,113 @@
                 }
             }
         },
-        "/purchase/submit/{id}": {
+        "/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": [
                     {
@@ -2079,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": {
@@ -2319,7 +2676,8 @@
                         "in": "query"
                     },
                     {
-                        "type": "integer",
+                        "type": "string",
+                        "example": "0",
                         "description": "涓婚敭ID",
                         "name": "id",
                         "in": "query"
@@ -2368,6 +2726,42 @@
                         "type": "string",
                         "name": "url",
                         "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}",
+                        "schema": {
+                            "type": "string"
+                        }
+                    }
+                }
+            }
+        },
+        "/s/getSupplierByNumber/{number}": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Supplier"
+                ],
+                "summary": "鐢ㄧ紪鐮佹煡璇upplier",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "渚涘簲鍟嗙紪鐮�",
+                        "name": "number",
+                        "in": "path",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -2444,7 +2838,8 @@
                         "in": "query"
                     },
                     {
-                        "type": "integer",
+                        "type": "string",
+                        "example": "0",
                         "description": "涓婚敭ID",
                         "name": "id",
                         "in": "query"
@@ -3010,6 +3405,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": {
@@ -3449,33 +3907,23 @@
                     "type": "string"
                 },
                 "grpc-admin-url": {
-                    "description": "grpc鏈嶅姟鍦板潃",
+                    "description": "admin grpc鏈嶅姟鍦板潃",
+                    "type": "string"
+                },
+                "grpc-port": {
+                    "description": "瀵瑰鎻愪緵鏈嶅姟grpc绔彛",
                     "type": "string"
                 },
                 "grpc-url": {
-                    "description": "grpc鏈嶅姟鍦板潃",
+                    "description": "aps grpc鏈嶅姟鍦板潃",
                     "type": "string"
                 },
-                "iplimit-count": {
-                    "type": "integer"
-                },
-                "iplimit-time": {
-                    "type": "integer"
-                },
-                "oss-type": {
-                    "description": "Oss绫诲瀷",
+                "grpc-wms-url": {
+                    "description": "wms grpc鏈嶅姟鍦板潃",
                     "type": "string"
                 },
                 "router-prefix": {
                     "type": "string"
-                },
-                "use-multipoint": {
-                    "description": "澶氱偣鐧诲綍鎷︽埅",
-                    "type": "boolean"
-                },
-                "use-redis": {
-                    "description": "浣跨敤redis",
-                    "type": "boolean"
                 }
             }
         },
@@ -3526,19 +3974,31 @@
                 1,
                 2,
                 3,
-                4
+                4,
+                5,
+                6,
+                7,
+                8
             ],
             "x-enum-comments": {
+                "OrderStatusCanceled": "宸插彇娑�",
                 "OrderStatusCompleted": "宸插畬鎴�",
-                "OrderStatusConfirmed": "宸蹭笅鍗�",
-                "OrderStatusReceived": "宸插埌璐�",
-                "OrderStatusStored": "宸插叆搴�"
+                "OrderStatusConfirmed": "寰呯‘璁�",
+                "OrderStatusPartReceive": "閮ㄥ垎鏀惰揣",
+                "OrderStatusReceived": "寰呭叆搴�",
+                "OrderStatusStored": "宸插叆搴�",
+                "OrderStatusWaitQuality": "寰呰川妫�",
+                "OrderStatusWaitReceive": "寰呮敹璐�"
             },
             "x-enum-varnames": [
                 "OrderStatusConfirmed",
                 "OrderStatusReceived",
                 "OrderStatusStored",
-                "OrderStatusCompleted"
+                "OrderStatusCompleted",
+                "OrderStatusCanceled",
+                "OrderStatusWaitReceive",
+                "OrderStatusPartReceive",
+                "OrderStatusWaitQuality"
             ]
         },
         "purchase.PriceAdjustmentType": {
@@ -3580,7 +4040,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "invoiceAmount": {
                     "description": "宸叉敹绁ㄩ噾棰�",
@@ -3623,7 +4084,7 @@
                     ]
                 },
                 "principal": {
-                    "description": "閲囪喘璐熻矗浜�",
+                    "description": "浠撳簱璐熻矗浜�",
                     "type": "string"
                 },
                 "purchaseType": {
@@ -3631,7 +4092,8 @@
                 },
                 "purchaseTypeId": {
                     "description": "閲囪喘绫诲瀷id",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "quantity": {
                     "description": "閲囪喘鏁伴噺",
@@ -3653,6 +4115,10 @@
                     "description": "绛剧害鏃ユ湡",
                     "type": "string"
                 },
+                "sourceOrder": {
+                    "description": "鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮�",
+                    "type": "string"
+                },
                 "status": {
                     "description": "鐘舵��",
                     "allOf": [
@@ -3666,7 +4132,8 @@
                 },
                 "supplierId": {
                     "description": "渚涘簲鍟唅d",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "totalPrice": {
                     "description": "浠风◣鍚堣",
@@ -3683,6 +4150,10 @@
                     "description": "鏀惰揣浠撳簱",
                     "type": "string"
                 },
+                "warehouseAddress": {
+                    "description": "鏀惰揣浠撳簱鍦板潃",
+                    "type": "string"
+                },
                 "wholeDiscount": {
                     "description": "鏁村崟鎶樻墸鍊�",
                     "type": "number"
@@ -3694,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"
                 }
             }
         },
@@ -3744,7 +4268,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "name": {
                     "description": "閲囪喘绫诲瀷",
@@ -3778,6 +4303,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": {
@@ -3789,6 +4342,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"
+                    }
                 }
             }
         },
@@ -3805,7 +4378,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "name": {
                     "description": "閲囪喘鍚嶇О",
@@ -3813,6 +4387,10 @@
                 },
                 "number": {
                     "description": "閲囪喘缂栧彿",
+                    "type": "string"
+                },
+                "orderSource": {
+                    "description": "鍗曟嵁鏉ユ簮",
                     "type": "string"
                 },
                 "phone": {
@@ -3831,9 +4409,14 @@
                         }
                     ]
                 },
+                "principal": {
+                    "description": "浠撳簱璐熻矗浜�",
+                    "type": "string"
+                },
                 "purchaseTypeId": {
                     "description": "閲囪喘绫诲瀷id",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "quantity": {
                     "description": "閲囪喘鏁伴噺",
@@ -3851,6 +4434,10 @@
                     "description": "绛剧害鏃ユ湡",
                     "type": "string"
                 },
+                "sourceOrder": {
+                    "description": "鏉ユ簮鍗曟嵁",
+                    "type": "string"
+                },
                 "status": {
                     "description": "鐘舵��",
                     "allOf": [
@@ -3861,11 +4448,20 @@
                 },
                 "supplierId": {
                     "description": "渚涘簲鍟唅d",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "totalPrice": {
                     "description": "浠风◣鍚堣",
                     "type": "number"
+                },
+                "warehouse": {
+                    "description": "鏀惰揣浠撳簱",
+                    "type": "string"
+                },
+                "warehouseAddress": {
+                    "description": "鏀惰揣浠撳簱鍦板潃",
+                    "type": "string"
                 },
                 "wholeDiscount": {
                     "description": "鏁村崟鎶樻墸鍊�",
@@ -3881,12 +4477,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": "閲囪喘绫诲瀷",
@@ -3899,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"
                 }
             }
         },
@@ -3938,13 +4604,57 @@
                 }
             }
         },
+        "request.Product": {
+            "type": "object",
+            "properties": {
+                "categoryName": {
+                    "type": "string"
+                },
+                "deliveryTime": {
+                    "type": "integer"
+                },
+                "modelNumber": {
+                    "type": "string"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "purchasePrice": {
+                    "type": "number"
+                },
+                "shippingDuration": {
+                    "type": "integer"
+                },
+                "specifications": {
+                    "type": "string"
+                },
+                "supplier": {
+                    "type": "string"
+                },
+                "supplierId": {
+                    "type": "integer"
+                },
+                "supplierName": {
+                    "type": "string"
+                },
+                "supplierNumber": {
+                    "type": "string"
+                },
+                "unit": {
+                    "type": "string"
+                }
+            }
+        },
         "request.ProductCreate": {
             "type": "object",
             "properties": {
                 "list": {
                     "type": "array",
                     "items": {
-                        "$ref": "#/definitions/test.Product"
+                        "$ref": "#/definitions/request.Product"
                     }
                 }
             }
@@ -3971,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": {
@@ -3983,6 +4746,51 @@
                 },
                 "total": {
                     "type": "integer"
+                }
+            }
+        },
+        "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"
                 }
             }
         },
@@ -4023,6 +4831,10 @@
                 "purchasePrice": {
                     "type": "number"
                 },
+                "remark": {
+                    "description": "鎻忚堪",
+                    "type": "string"
+                },
                 "shippingDuration": {
                     "type": "integer"
                 },
@@ -4061,6 +4873,15 @@
                 "data": {},
                 "msg": {
                     "type": "string"
+                }
+            }
+        },
+        "srm_model_common_request.GetById": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
                 }
             }
         },
@@ -4135,66 +4956,6 @@
                 }
             }
         },
-        "test.Product": {
-            "type": "object",
-            "properties": {
-                "created_at": {
-                    "type": "string"
-                },
-                "deliveryTime": {
-                    "type": "integer"
-                },
-                "id": {
-                    "description": "涓婚敭ID",
-                    "type": "integer"
-                },
-                "maximumStock": {
-                    "type": "integer"
-                },
-                "minimumStock": {
-                    "type": "integer"
-                },
-                "modelNumber": {
-                    "type": "string"
-                },
-                "name": {
-                    "type": "string"
-                },
-                "number": {
-                    "type": "string"
-                },
-                "productType": {
-                    "type": "string"
-                },
-                "purchasePrice": {
-                    "type": "number"
-                },
-                "remark": {
-                    "type": "string"
-                },
-                "shippingDuration": {
-                    "type": "integer"
-                },
-                "specifications": {
-                    "type": "string"
-                },
-                "supplier": {
-                    "$ref": "#/definitions/test.Supplier"
-                },
-                "supplierId": {
-                    "type": "integer"
-                },
-                "supplierName": {
-                    "type": "string"
-                },
-                "unit": {
-                    "type": "string"
-                },
-                "updated_at": {
-                    "type": "string"
-                }
-            }
-        },
         "test.Supplier": {
             "type": "object",
             "properties": {
@@ -4227,7 +4988,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "industry": {
                     "type": "string"
@@ -4258,6 +5020,63 @@
                 }
             }
         },
+        "test.SupplierMaterial": {
+            "type": "object",
+            "properties": {
+                "categoryName": {
+                    "description": "浜у搧绫诲埆鍚嶇О",
+                    "type": "string"
+                },
+                "created_at": {
+                    "type": "string"
+                },
+                "deliveryTime": {
+                    "description": "渚涜揣鏃堕暱",
+                    "type": "integer"
+                },
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
+                },
+                "maximumStock": {
+                    "type": "integer"
+                },
+                "minimumStock": {
+                    "type": "integer"
+                },
+                "modelNumber": {
+                    "type": "string"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "purchasePrice": {
+                    "type": "number"
+                },
+                "shippingDuration": {
+                    "description": "鐗╂祦鏃堕暱",
+                    "type": "integer"
+                },
+                "specifications": {
+                    "type": "string"
+                },
+                "supplier": {
+                    "$ref": "#/definitions/test.Supplier"
+                },
+                "supplierId": {
+                    "type": "integer"
+                },
+                "unit": {
+                    "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
+                }
+            }
+        },
         "test.SupplierType": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0