From a2302df7ce372249b617e483d83a75f3312fbac2 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 18 三月 2024 16:09:07 +0800
Subject: [PATCH] crm查询采购信息3

---
 docs/docs.go |  702 +++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 569 insertions(+), 133 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 089c556..a683fef 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -16,6 +16,112 @@
     "host": "{{.Host}}",
     "basePath": "{{.BasePath}}",
     "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": [
@@ -128,61 +234,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"
                         }
@@ -328,61 +379,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": [
@@ -414,6 +410,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"
                         }
@@ -1151,7 +1202,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/request.GetById"
+                            "$ref": "#/definitions/srm_model_common_request.GetById"
                         }
                     }
                 ],
@@ -1500,6 +1551,145 @@
                 }
             }
         },
+        "/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/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/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/purchase": {
             "put": {
                 "security": [
@@ -1730,6 +1920,12 @@
                         "description": "姣忛〉澶у皬",
                         "name": "pageSize",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "渚涘簲鍟唅d",
+                        "name": "supplierId",
+                        "in": "query"
                     }
                 ],
                 "responses": {
@@ -1889,6 +2085,12 @@
                         "type": "integer",
                         "description": "姣忛〉澶у皬",
                         "name": "pageSize",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "渚涘簲鍟唅d",
+                        "name": "supplierId",
                         "in": "query"
                     }
                 ],
@@ -2176,7 +2378,8 @@
                         "in": "query"
                     },
                     {
-                        "type": "integer",
+                        "type": "string",
+                        "example": "0",
                         "description": "涓婚敭ID",
                         "name": "id",
                         "in": "query"
@@ -2225,6 +2428,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": {
@@ -2301,7 +2540,8 @@
                         "in": "query"
                     },
                     {
-                        "type": "integer",
+                        "type": "string",
+                        "example": "0",
                         "description": "涓婚敭ID",
                         "name": "id",
                         "in": "query"
@@ -2867,6 +3107,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": {
@@ -3430,7 +3733,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "invoiceAmount": {
                     "description": "宸叉敹绁ㄩ噾棰�",
@@ -3473,7 +3777,7 @@
                     ]
                 },
                 "principal": {
-                    "description": "閲囪喘璐熻矗浜�",
+                    "description": "浠撳簱璐熻矗浜�",
                     "type": "string"
                 },
                 "purchaseType": {
@@ -3481,7 +3785,8 @@
                 },
                 "purchaseTypeId": {
                     "description": "閲囪喘绫诲瀷id",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "quantity": {
                     "description": "閲囪喘鏁伴噺",
@@ -3503,6 +3808,10 @@
                     "description": "绛剧害鏃ユ湡",
                     "type": "string"
                 },
+                "sourceOrder": {
+                    "description": "鏉ユ簮鍗曟嵁",
+                    "type": "string"
+                },
                 "status": {
                     "description": "鐘舵��",
                     "allOf": [
@@ -3516,7 +3825,8 @@
                 },
                 "supplierId": {
                     "description": "渚涘簲鍟唅d",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "totalPrice": {
                     "description": "浠风◣鍚堣",
@@ -3531,6 +3841,10 @@
                 },
                 "warehouse": {
                     "description": "鏀惰揣浠撳簱",
+                    "type": "string"
+                },
+                "warehouseAddress": {
+                    "description": "鏀惰揣浠撳簱鍦板潃",
                     "type": "string"
                 },
                 "wholeDiscount": {
@@ -3567,7 +3881,7 @@
                 },
                 "productId": {
                     "description": "浜у搧id",
-                    "type": "string"
+                    "type": "integer"
                 },
                 "purchaseId": {
                     "description": "閲囪喘id",
@@ -3594,7 +3908,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "name": {
                     "description": "閲囪喘绫诲瀷",
@@ -3628,6 +3943,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": {
@@ -3655,7 +3998,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "name": {
                     "description": "閲囪喘鍚嶇О",
@@ -3663,6 +4007,10 @@
                 },
                 "number": {
                     "description": "閲囪喘缂栧彿",
+                    "type": "string"
+                },
+                "orderSource": {
+                    "description": "鍗曟嵁鏉ユ簮",
                     "type": "string"
                 },
                 "phone": {
@@ -3681,9 +4029,14 @@
                         }
                     ]
                 },
+                "principal": {
+                    "description": "浠撳簱璐熻矗浜�",
+                    "type": "string"
+                },
                 "purchaseTypeId": {
                     "description": "閲囪喘绫诲瀷id",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "quantity": {
                     "description": "閲囪喘鏁伴噺",
@@ -3701,6 +4054,10 @@
                     "description": "绛剧害鏃ユ湡",
                     "type": "string"
                 },
+                "sourceOrder": {
+                    "description": "鏉ユ簮鍗曟嵁",
+                    "type": "string"
+                },
                 "status": {
                     "description": "鐘舵��",
                     "allOf": [
@@ -3711,11 +4068,20 @@
                 },
                 "supplierId": {
                     "description": "渚涘簲鍟唅d",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "totalPrice": {
                     "description": "浠风◣鍚堣",
                     "type": "number"
+                },
+                "warehouse": {
+                    "description": "鏀惰揣浠撳簱",
+                    "type": "string"
+                },
+                "warehouseAddress": {
+                    "description": "鏀惰揣浠撳簱鍦板潃",
+                    "type": "string"
                 },
                 "wholeDiscount": {
                     "description": "鏁村崟鎶樻墸鍊�",
@@ -3736,7 +4102,8 @@
             "properties": {
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "name": {
                     "description": "閲囪喘绫诲瀷",
@@ -3763,15 +4130,6 @@
                 },
                 "purchase": {
                     "$ref": "#/definitions/purchaserequest.Purchase"
-                }
-            }
-        },
-        "request.GetById": {
-            "type": "object",
-            "properties": {
-                "id": {
-                    "description": "涓婚敭ID",
-                    "type": "integer"
                 }
             }
         },
@@ -3874,6 +4232,70 @@
                 }
             }
         },
+        "response.OperationInfo": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "description": "閲囪喘鏁�",
+                    "type": "number"
+                },
+                "modelNumber": {
+                    "description": "鍨嬪彿",
+                    "type": "string"
+                },
+                "name": {
+                    "description": "浜у搧鍚嶇О",
+                    "type": "string"
+                },
+                "number": {
+                    "description": "浜у搧缂栫爜",
+                    "type": "string"
+                },
+                "operationNumber": {
+                    "description": "鍏ュ簱鍗曞彿",
+                    "type": "string"
+                },
+                "overAmount": {
+                    "description": "鍏ュ簱鏁�",
+                    "type": "integer"
+                },
+                "overTime": {
+                    "description": "鍏ュ簱鏃堕棿",
+                    "type": "string"
+                },
+                "principal": {
+                    "description": "璐熻矗浜�",
+                    "type": "string"
+                },
+                "purchasePrice": {
+                    "description": "鍗曚环",
+                    "type": "number"
+                },
+                "sendAmount": {
+                    "description": "鍙戣揣鏁�",
+                    "type": "integer"
+                },
+                "specifications": {
+                    "description": "瑙勬牸",
+                    "type": "string"
+                },
+                "status": {
+                    "type": "integer"
+                },
+                "total": {
+                    "description": "鎬讳环",
+                    "type": "number"
+                },
+                "unit": {
+                    "description": "鍗曚綅",
+                    "type": "string"
+                },
+                "warehouseName": {
+                    "description": "浠撳簱鍚�",
+                    "type": "string"
+                }
+            }
+        },
         "response.PageResult": {
             "type": "object",
             "properties": {
@@ -3926,6 +4348,10 @@
                 "purchasePrice": {
                     "type": "number"
                 },
+                "remark": {
+                    "description": "鎻忚堪",
+                    "type": "string"
+                },
                 "shippingDuration": {
                     "type": "integer"
                 },
@@ -3964,6 +4390,15 @@
                 "data": {},
                 "msg": {
                     "type": "string"
+                }
+            }
+        },
+        "srm_model_common_request.GetById": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
                 }
             }
         },
@@ -4070,7 +4505,8 @@
                 },
                 "id": {
                     "description": "涓婚敭ID",
-                    "type": "integer"
+                    "type": "string",
+                    "example": "0"
                 },
                 "industry": {
                     "type": "string"

--
Gitblit v1.8.0