From 1572f45e72cc0fa15c029f9ee2a08474104435e6 Mon Sep 17 00:00:00 2001 From: selfcheer <selfcheer@gmail.com> Date: 星期五, 19 七月 2024 00:48:43 +0800 Subject: [PATCH] 采购单产品列表去掉过滤重复产品的逻辑 --- docs/docs.go | 1839 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 1,677 insertions(+), 162 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index bb1bbe9..5137dbb 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,150 @@ "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/dict/getMiniDictList": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鑾峰彇杩蜂綘瀛楀吀鍒楄〃", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.GetMiniDictList" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.MiniDict" + } + } + } + } + ] + } + } + } + } + }, + "/dict/saveMiniDict": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鏇存柊杩蜂綘瀛楀吀", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SaveMiniDict" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.Response" + } + } + } + } + }, + "/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" } @@ -1089,6 +1229,201 @@ } } }, + "/outsourcing/enterprise/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "濮斿浼佷笟绠$悊" + ], + "summary": "浼佷笟鏂板", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterprise" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/outsourcing/enterprise/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "濮斿浼佷笟绠$悊" + ], + "summary": "浼佷笟鍒楄〃", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "x-enum-comments": { + "RecordStatusActive": "鍚敤", + "RecordStatusCreate": "鏂板缓", + "RecordStatusInactive": "鍋滅敤" + }, + "x-enum-varnames": [ + "RecordStatusCreate", + "RecordStatusActive", + "RecordStatusInactive" + ], + "description": "鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤", + "name": "status", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.OutsourcingEnterprise" + } + } + } + } + ] + } + } + } + } + }, + "/outsourcing/enterprise/overview": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "濮斿浼佷笟绠$悊" + ], + "summary": "浼佷笟缁熻", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterpriseOverview" + } + } + } + ] + } + } + } + } + }, + "/outsourcing/enterprise/update": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "濮斿浼佷笟绠$悊" + ], + "summary": "浼佷笟淇敼", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterprise" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/p/createProduct": { "post": { "security": [ @@ -1151,7 +1486,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/srm_model_common_request.GetById" } } ], @@ -1338,6 +1673,13 @@ "type": "string", "name": "unit", "in": "query" + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true } ], "responses": { @@ -1495,6 +1837,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" + } + } + } + ] } } } @@ -1730,6 +2403,12 @@ "description": "姣忛〉澶у皬", "name": "pageSize", "in": "query" + }, + { + "type": "integer", + "description": "渚涘簲鍟唅d", + "name": "supplierId", + "in": "query" } ], "responses": { @@ -1890,6 +2569,12 @@ "description": "姣忛〉澶у皬", "name": "pageSize", "in": "query" + }, + { + "type": "integer", + "description": "渚涘簲鍟唅d", + "name": "supplierId", + "in": "query" } ], "responses": { @@ -1917,7 +2602,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": [ { @@ -1936,11 +2727,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": { @@ -2176,7 +2969,8 @@ "in": "query" }, { - "type": "integer", + "type": "string", + "example": "0", "description": "涓婚敭ID", "name": "id", "in": "query" @@ -2225,6 +3019,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 +3131,8 @@ "in": "query" }, { - "type": "integer", + "type": "string", + "example": "0", "description": "涓婚敭ID", "name": "id", "in": "query" @@ -2867,6 +3698,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": { @@ -3306,33 +4200,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" } } }, @@ -3377,25 +4261,278 @@ } } }, + "constvar.MiniDictType": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "x-enum-comments": { + "EarlyWarningDay": "棰勮澶╂暟", + "InspectionWayType": "璐ㄦ鏂瑰紡绫诲瀷", + "MiniDictTypeBomVersionType": "Bom鐗堟湰绫诲瀷", + "MiniDictTypePlcBrand": "PLC鍝佺墝", + "OutsourcingSupplierCreditGrade": "淇$敤绛夌骇", + "OutsourcingSupplierRange": "渚涜揣鑼冨洿", + "OutsourcingSupplierType": "濮斿渚涘簲鍟嗙被鍨�" + }, + "x-enum-varnames": [ + "MiniDictTypePlcBrand", + "MiniDictTypeBomVersionType", + "EarlyWarningDay", + "InspectionWayType", + "OutsourcingSupplierType", + "OutsourcingSupplierCreditGrade", + "OutsourcingSupplierRange" + ] + }, + "constvar.RecordStatus": { + "type": "integer", + "enum": [ + 0, + 1, + 2 + ], + "x-enum-comments": { + "RecordStatusActive": "鍚敤", + "RecordStatusCreate": "鏂板缓", + "RecordStatusInactive": "鍋滅敤" + }, + "x-enum-varnames": [ + "RecordStatusCreate", + "RecordStatusActive", + "RecordStatusInactive" + ] + }, + "contextx.Response": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "data": {}, + "msg": { + "type": "string" + } + } + }, + "gorm.DeletedAt": { + "type": "object", + "properties": { + "time": { + "type": "string" + }, + "valid": { + "description": "Valid is true if Time is not NULL", + "type": "boolean" + } + } + }, + "model.MiniDict": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "isDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/constvar.MiniDictType" + }, + "updatedAt": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "models.OutsourcingEnterprise": { + "type": "object", + "properties": { + "address": { + "description": "鍦板潃", + "type": "string" + }, + "contact": { + "description": "鑱旂郴浜�", + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "creditGrade": { + "description": "淇$敤绛夌骇", + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "enterpriseType": { + "description": "浼佷笟绫诲瀷", + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "濮斿浼佷笟缂栧彿鍚嶇О", + "type": "string" + }, + "number": { + "description": "濮斿浼佷笟缂栧彿", + "type": "string" + }, + "organizationCode": { + "description": "缁勭粐鏈烘瀯浠g爜", + "type": "string" + }, + "status": { + "description": "鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤", + "allOf": [ + { + "$ref": "#/definitions/constvar.RecordStatus" + } + ] + }, + "supplyCapacity": { + "description": "渚涜揣鑳藉姏", + "type": "string" + }, + "supplyRange": { + "description": "渚涜揣鑼冨洿", + "type": "string" + }, + "tel": { + "description": "鑱旂郴鏂瑰紡", + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "outsourcingrequest.OutsourcingEnterprise": { + "type": "object", + "required": [ + "enterpriseType", + "name", + "number" + ], + "properties": { + "address": { + "description": "鍦板潃", + "type": "string" + }, + "contact": { + "description": "鑱旂郴浜�", + "type": "string" + }, + "creditGrade": { + "description": "淇$敤绛夌骇", + "type": "string" + }, + "enterpriseType": { + "description": "浼佷笟绫诲瀷", + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "濮斿渚涘簲鍟嗙紪鍙峰悕绉�", + "type": "string" + }, + "number": { + "description": "濮斿渚涘簲鍟嗙紪鍙�", + "type": "string" + }, + "organizationCode": { + "description": "缁勭粐鏈烘瀯浠g爜", + "type": "string" + }, + "status": { + "description": "鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤", + "allOf": [ + { + "$ref": "#/definitions/constvar.RecordStatus" + } + ] + }, + "supplyCapacity": { + "description": "渚涜揣鑳藉姏", + "type": "string" + }, + "supplyRange": { + "description": "渚涜揣鑼冨洿", + "type": "string" + }, + "tel": { + "description": "鑱旂郴鏂瑰紡", + "type": "string" + } + } + }, + "outsourcingrequest.OutsourcingEnterpriseOverview": { + "type": "object", + "properties": { + "close": { + "description": "鍋滅敤鏁伴噺", + "type": "integer" + }, + "open": { + "description": "鍚敤鏁伴噺", + "type": "integer" + }, + "total": { + "description": "鎬婚噺", + "type": "integer" + } + } + }, "purchase.OrderStatus": { "type": "integer", "enum": [ 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": { @@ -3437,7 +4574,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "invoiceAmount": { "description": "宸叉敹绁ㄩ噾棰�", @@ -3480,7 +4618,7 @@ ] }, "principal": { - "description": "閲囪喘璐熻矗浜�", + "description": "浠撳簱璐熻矗浜�", "type": "string" }, "purchaseType": { @@ -3488,7 +4626,8 @@ }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", - "type": "integer" + "type": "string", + "example": "0" }, "quantity": { "description": "閲囪喘鏁伴噺", @@ -3510,6 +4649,10 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "sourceOrder": { + "description": "鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮�", + "type": "string" + }, "status": { "description": "鐘舵��", "allOf": [ @@ -3523,7 +4666,8 @@ }, "supplierId": { "description": "渚涘簲鍟唅d", - "type": "integer" + "type": "string", + "example": "0" }, "totalPrice": { "description": "浠风◣鍚堣", @@ -3540,6 +4684,10 @@ "description": "鏀惰揣浠撳簱", "type": "string" }, + "warehouseAddress": { + "description": "鏀惰揣浠撳簱鍦板潃", + "type": "string" + }, "wholeDiscount": { "description": "鏁村崟鎶樻墸鍊�", "type": "number" @@ -3551,6 +4699,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" } } }, @@ -3574,7 +4775,7 @@ }, "productId": { "description": "浜у搧id", - "type": "string" + "type": "integer" }, "purchaseId": { "description": "閲囪喘id", @@ -3601,7 +4802,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘绫诲瀷", @@ -3635,6 +4837,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": { @@ -3646,6 +4876,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" + } } } }, @@ -3662,7 +4912,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘鍚嶇О", @@ -3670,6 +4921,10 @@ }, "number": { "description": "閲囪喘缂栧彿", + "type": "string" + }, + "orderSource": { + "description": "鍗曟嵁鏉ユ簮", "type": "string" }, "phone": { @@ -3688,9 +4943,14 @@ } ] }, + "principal": { + "description": "浠撳簱璐熻矗浜�", + "type": "string" + }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", - "type": "integer" + "type": "string", + "example": "0" }, "quantity": { "description": "閲囪喘鏁伴噺", @@ -3708,6 +4968,10 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "sourceOrder": { + "description": "鏉ユ簮鍗曟嵁", + "type": "string" + }, "status": { "description": "鐘舵��", "allOf": [ @@ -3718,11 +4982,20 @@ }, "supplierId": { "description": "渚涘簲鍟唅d", - "type": "integer" + "type": "string", + "example": "0" }, "totalPrice": { "description": "浠风◣鍚堣", "type": "number" + }, + "warehouse": { + "description": "鏀惰揣浠撳簱", + "type": "string" + }, + "warehouseAddress": { + "description": "鏀惰揣浠撳簱鍦板潃", + "type": "string" }, "wholeDiscount": { "description": "鏁村崟鎶樻墸鍊�", @@ -3738,12 +5011,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": "閲囪喘绫诲瀷", @@ -3759,6 +5074,34 @@ } } }, + "purchaserequest.SaveQualityInspectionInfo": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + }, + "purchaseId": { + "type": "integer" + }, + "status": { + "type": "integer" + } + } + }, + "purchaserequest.SubmitPurchase": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "status": { + "$ref": "#/definitions/purchase.OrderStatus" + } + } + }, "purchaserequest.UpdatePurchase": { "type": "object", "properties": { @@ -3770,15 +5113,6 @@ }, "purchase": { "$ref": "#/definitions/purchaserequest.Purchase" - } - } - }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" } } }, @@ -3881,6 +5215,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": { @@ -3893,6 +5280,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" } } }, @@ -3933,6 +5365,10 @@ "purchasePrice": { "type": "number" }, + "remark": { + "description": "鎻忚堪", + "type": "string" + }, "shippingDuration": { "type": "integer" }, @@ -3971,6 +5407,15 @@ "data": {}, "msg": { "type": "string" + } + } + }, + "srm_model_common_request.GetById": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" } } }, @@ -4077,7 +5522,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "industry": { "type": "string" @@ -4182,6 +5628,75 @@ "type": "string" } } + }, + "utils.Response": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "data": {}, + "msg": { + "type": "string" + } + } + }, + "utils.ResponseList": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "data": {}, + "msg": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "total": { + "type": "integer" + } + } + }, + "v1.GetMiniDictList": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/constvar.MiniDictType" + } + } + }, + "v1.MiniDict": { + "type": "object", + "properties": { + "isDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "v1.SaveMiniDict": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.MiniDict" + } + }, + "type": { + "$ref": "#/definitions/constvar.MiniDictType" + } + } } }, "securityDefinitions": { -- Gitblit v1.8.0