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 | 1793 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 1,755 insertions(+), 38 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index a683fef..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": [ @@ -1389,6 +2075,13 @@ "type": "string", "name": "unit", "in": "query" + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true } ], "responses": { @@ -1606,6 +2299,44 @@ } } }, + "/purchase/allProductInWarehouse": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍏ㄩ儴鍚堟牸鍏ュ簱", + "parameters": [ + { + "description": "鍙傛暟", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo" + } + } + ], + "responses": { + "200": { + "description": "鑾峰彇纭淇℃伅", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/purchase/getOperationInfo/{id}": { "get": { "security": [ @@ -1638,6 +2369,110 @@ "type": "array", "items": { "$ref": "#/definitions/response.OperationInfo" + } + } + } + } + ] + } + } + } + } + }, + "/purchase/getPurchaseProductConfirmInfo/{number}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇纭淇℃伅", + "parameters": [ + { + "type": "string", + "description": "閲囪喘鍗曠紪鐮�", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鑾峰彇纭淇℃伅", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseProductConfirm" + } + } + } + } + ] + } + } + } + } + }, + "/purchase/getPurchaseQualityInspectionInfo": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇閲囪喘璐ㄦ淇℃伅淇℃伅", + "parameters": [ + { + "description": "鍙傛暟", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.GetQualityInspectionInfo" + } + } + ], + "responses": { + "200": { + "description": "鑾峰彇纭淇℃伅", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseProductConfirm" } } } @@ -1681,6 +2516,56 @@ "items": { "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" } + } + } + } + ] + } + } + } + } + }, + "/purchase/newSubmit": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鏂扮増鎻愪氦", + "parameters": [ + { + "description": "鍙傛暟", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.SubmitPurchase" + } + } + ], + "responses": { + "200": { + "description": "鏂扮増鎻愪氦", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" } } } @@ -2119,6 +3004,112 @@ } } }, + "/purchase/savePurchaseProductConfirm": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "纭鏀惰揣", + "parameters": [ + { + "description": "list", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo" + } + } + } + ], + "responses": { + "200": { + "description": "纭鏀惰揣", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/savePurchaseQualityInspectionInfo": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "淇濆瓨閲囪喘璐ㄦ淇℃伅淇℃伅", + "parameters": [ + { + "description": "鍙傛暟", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.SaveQualityInspectionInfo" + } + } + ], + "responses": { + "200": { + "description": "鑾峰彇纭淇℃伅", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseProductConfirm" + } + } + } + } + ] + } + } + } + } + }, "/purchase/submit": { "post": { "security": [ @@ -2138,11 +3129,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": { @@ -3670,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": [ @@ -3677,21 +5176,30 @@ 2, 3, 4, - 5 + 5, + 6, + 7, + 8 ], "x-enum-comments": { "OrderStatusCanceled": "宸插彇娑�", "OrderStatusCompleted": "宸插畬鎴�", "OrderStatusConfirmed": "寰呯‘璁�", + "OrderStatusPartReceive": "閮ㄥ垎鏀惰揣", "OrderStatusReceived": "寰呭叆搴�", - "OrderStatusStored": "宸插叆搴�" + "OrderStatusStored": "宸插叆搴�", + "OrderStatusWaitQuality": "寰呰川妫�", + "OrderStatusWaitReceive": "寰呮敹璐�" }, "x-enum-varnames": [ "OrderStatusConfirmed", "OrderStatusReceived", "OrderStatusStored", "OrderStatusCompleted", - "OrderStatusCanceled" + "OrderStatusCanceled", + "OrderStatusWaitReceive", + "OrderStatusPartReceive", + "OrderStatusWaitQuality" ] }, "purchase.PriceAdjustmentType": { @@ -3809,7 +5317,7 @@ "type": "string" }, "sourceOrder": { - "description": "鏉ユ簮鍗曟嵁", + "description": "鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮�", "type": "string" }, "status": { @@ -3858,6 +5366,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" } } }, @@ -3985,6 +5546,26 @@ } } }, + "purchaserequest.GetQualityInspectionInfo": { + "type": "object", + "properties": { + "purchaseNumber": { + "type": "string" + }, + "status": { + "type": "array", + "items": { + "type": "integer" + } + }, + "times": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "purchaserequest.Purchase": { "type": "object", "properties": { @@ -4097,6 +5678,47 @@ } } }, + "purchaserequest.PurchaseProductConfirmInfo": { + "type": "object", + "properties": { + "amount": { + "type": "number" + }, + "notReceiveAmount": { + "type": "number" + }, + "nowReceiveAmount": { + "type": "number" + }, + "overReceiveAmount": { + "type": "number" + }, + "principal": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "purchaseNumber": { + "type": "string" + }, + "specs": { + "type": "string" + }, + "surplusReceiveAmount": { + "type": "number" + }, + "type": { + "type": "string" + }, + "unit": { + "type": "string" + } + } + }, "purchaserequest.PurchaseType": { "type": "object", "properties": { @@ -4116,6 +5738,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" } } }, @@ -4232,17 +5882,9 @@ } } }, - "response.OperationInfo": { + "response.InWarehouseInfo": { "type": "object", "properties": { - "amount": { - "description": "閲囪喘鏁�", - "type": "number" - }, - "modelNumber": { - "description": "鍨嬪彿", - "type": "string" - }, "name": { "description": "浜у搧鍚嶇О", "type": "string" @@ -4267,32 +5909,29 @@ "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.OperationInfo": { + "type": "object", + "properties": { + "inWarehouseInfos": { + "type": "array", + "items": { + "$ref": "#/definitions/response.InWarehouseInfo" + } + }, + "productInfos": { + "type": "array", + "items": { + "$ref": "#/definitions/response.ProductInfo" + } } } }, @@ -4308,6 +5947,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" } } }, @@ -4611,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