From e63c9d7f5f5c0819ee949697aec753895cc88ab5 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 17 四月 2024 20:46:35 +0800 Subject: [PATCH] 委外供应商管理和委外订单管理从aps迁移到srm --- docs/docs.go | 1225 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1,225 insertions(+), 0 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 9ebef61..faba80d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1140,6 +1140,692 @@ } } }, + "/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/productList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "濮斿浼佷笟绠$悊" + ], + "summary": "濮斿浼佷笟渚涜揣鍘嗗彶", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "name": "enterpriseID", + "in": "query", + "required": true + }, + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.OutsourcingOrderProduct" + } + } + } + } + ] + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/outsourcing/order/assign": { + "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.OutsourcingOrderAssign" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/outsourcing/order/changeStatus": { + "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.ChangeStatus" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.Response" + } + } + } + } + }, + "/outsourcing/order/confirmReceipt": { + "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.ConfirmDeliveryList" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.ResponseList" + } + } + } + } + }, + "/outsourcing/order/deliveryList": { + "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.GetDeliveryList" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.ResponseList" + } + } + } + } + }, + "/outsourcing/order/getInventoryInputDetails": { + "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.GetInventoryInputDetails" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.ResponseList" + } + } + } + } + }, + "/outsourcing/order/getMaterialApplyList": { + "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.GetMaterialApplyList" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.ResponseList" + } + } + } + } + }, + "/outsourcing/order/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" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.OutsourcingOrder" + } + } + } + } + ] + } + } + } + } + }, + "/outsourcing/order/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.OutsourcingOrderOverview" + } + } + } + ] + } + } + } + } + }, + "/outsourcing/order/productList": { + "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", + "name": "outsourcingOrderId", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/utils.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.OutsourcingOrderProduct" + } + } + } + } + ] + } + } + } + } + }, + "/outsourcing/order/saveMaterialApply": { + "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.SaveMaterialApply" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/utils.Response" + } + } + } + } + }, "/p/createProduct": { "post": { "security": [ @@ -3977,6 +4663,512 @@ } } }, + "constvar.BoolType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-comments": { + "BoolTypeFalse": "false", + "BoolTypeTrue": "true" + }, + "x-enum-varnames": [ + "BoolTypeTrue", + "BoolTypeFalse" + ] + }, + "constvar.OutsourcingOrderStatus": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "x-enum-comments": { + "OutsourcingOrderStatusAssigned": "宸插垎閰嶅澶栧晢", + "OutsourcingOrderStatusClose": "鍏抽棴", + "OutsourcingOrderStatusCreate": "鏂板缓寰呭垎閰嶅澶栧晢", + "OutsourcingOrderStatusDeliveryFinish": "鍙戣揣瀹屾垚", + "OutsourcingOrderStatusFinish": "鐢熶骇瀹屾垚", + "OutsourcingOrderStatusMaterialApplying": "鐗╂枡鐢宠涓�/寰呴鏂欏鏍�", + "OutsourcingOrderStatusMaterialExamineRefused": "棰嗘枡瀹℃牳鎷掔粷", + "OutsourcingOrderStatusProducing": "鐢熶骇涓�", + "OutsourcingOrderStatusReceiveFinish": "鏀惰揣瀹屾垚", + "OutsourcingOrderStatusWaitProduce": "寰呯敓浜�" + }, + "x-enum-varnames": [ + "OutsourcingOrderStatusCreate", + "OutsourcingOrderStatusAssigned", + "OutsourcingOrderStatusWaitProduce", + "OutsourcingOrderStatusMaterialApplying", + "OutsourcingOrderStatusMaterialExamineRefused", + "OutsourcingOrderStatusProducing", + "OutsourcingOrderStatusFinish", + "OutsourcingOrderStatusDeliveryFinish", + "OutsourcingOrderStatusReceiveFinish", + "OutsourcingOrderStatusClose" + ] + }, + "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" + } + } + }, + "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" + } + } + }, + "models.OutsourcingOrder": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "deliveryDate": { + "type": "string" + }, + "enterpriseID": { + "description": "渚涘簲鍟咺D", + "type": "integer" + }, + "enterpriseName": { + "description": "渚涘簲鍟嗗悕绉�", + "type": "string" + }, + "enterpriseType": { + "description": "渚涘簲鍟嗙被鍨�", + "type": "string" + }, + "id": { + "type": "integer" + }, + "number": { + "description": "璁㈠崟缂栧彿", + "type": "string" + }, + "productQuantity": { + "description": "浜у搧鏁伴噺", + "type": "integer" + }, + "projectId": { + "type": "string" + }, + "projectOrderID": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "salesDetailsNumber": { + "type": "string" + }, + "signTime": { + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/constvar.OutsourcingOrderStatus" + } + ] + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.OutsourcingOrderProduct": { + "type": "object", + "properties": { + "amount": { + "type": "integer" + }, + "bomID": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "enterpriseID": { + "description": "渚涘簲鍟咺D", + "type": "integer" + }, + "finishAmount": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "outsourcingOrderID": { + "type": "integer" + }, + "productId": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "specs": { + "type": "string" + }, + "type": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "outsourcingrequest.ChangeStatus": { + "type": "object", + "properties": { + "outsourcingOrderNumber": { + "description": "濮斿璁㈠崟缂栫爜", + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.OutsourcingOrderStatus" + } + } + }, + "outsourcingrequest.ConfirmDeliveryList": { + "type": "object", + "properties": { + "outsourcingOrderDeliveryDetailsIds": { + "description": "鍙戣揣璁板綍id", + "type": "array", + "items": { + "type": "integer" + } + }, + "outsourcingOrderID": { + "description": "濮斿璁㈠崟ID", + "type": "integer" + }, + "warehouseId": { + "description": "浠撳簱id", + "type": "string" + } + } + }, + "outsourcingrequest.GetDeliveryList": { + "type": "object", + "properties": { + "isReceived": { + "description": "鏄惁纭鏀惰揣 1 宸茬‘璁� 2鏈‘璁� 浼�0鎴栦笉浼犺幏鍙栧叏閮�", + "allOf": [ + { + "$ref": "#/definitions/constvar.BoolType" + } + ] + }, + "outsourcingOrderID": { + "description": "濮斿璁㈠崟ID", + "type": "integer" + } + } + }, + "outsourcingrequest.GetInventoryInputDetails": { + "type": "object", + "properties": { + "outsourcingOrderID": { + "description": "濮斿璁㈠崟ID", + "type": "integer" + } + } + }, + "outsourcingrequest.GetMaterialApplyList": { + "type": "object", + "properties": { + "keyword": { + "description": "鍏抽敭瀛�", + "type": "string" + }, + "number": { + "description": "濮斿璁㈠崟缂栫爜", + "type": "string" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + } + } + }, + "outsourcingrequest.MaterialApply": { + "type": "object", + "properties": { + "amount": { + "type": "number" + }, + "materialName": { + "type": "string" + }, + "materialNumber": { + "type": "string" + }, + "outsourcingOrderNumber": { + "type": "string" + }, + "specs": { + "type": "string" + }, + "type": { + "type": "string" + }, + "unit": { + "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" + } + } + }, + "outsourcingrequest.OutsourcingOrderAssign": { + "type": "object", + "required": [ + "enterpriseID" + ], + "properties": { + "enterpriseID": { + "type": "integer" + }, + "orderID": { + "type": "integer" + }, + "orderIDs": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "outsourcingrequest.OutsourcingOrderOverview": { + "type": "object", + "properties": { + "hasAssigned": { + "description": "宸插垎閰嶆暟閲�", + "type": "integer" + }, + "total": { + "description": "鎬婚噺", + "type": "integer" + }, + "waitAssigned": { + "description": "寰呭垎閰嶆暟閲�", + "type": "integer" + } + } + }, + "outsourcingrequest.SaveMaterialApply": { + "type": "object", + "properties": { + "applyList": { + "type": "array", + "items": { + "$ref": "#/definitions/outsourcingrequest.MaterialApply" + } + } + } + }, "purchase.OrderStatus": { "type": "integer", "enum": [ @@ -5103,6 +6295,39 @@ "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" + } + } } }, "securityDefinitions": { -- Gitblit v1.8.0