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/swagger.yaml | 806 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 806 insertions(+), 0 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 37c765c..de94251 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -393,6 +393,360 @@ description: 鏍堝悕 type: string type: object + constvar.BoolType: + enum: + - 1 + - 2 + type: integer + x-enum-comments: + BoolTypeFalse: "false" + BoolTypeTrue: "true" + x-enum-varnames: + - BoolTypeTrue + - BoolTypeFalse + constvar.OutsourcingOrderStatus: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + type: integer + 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: + enum: + - 0 + - 1 + - 2 + type: integer + x-enum-comments: + RecordStatusActive: 鍚敤 + RecordStatusCreate: 鏂板缓 + RecordStatusInactive: 鍋滅敤 + x-enum-varnames: + - RecordStatusCreate + - RecordStatusActive + - RecordStatusInactive + contextx.Response: + properties: + code: + type: integer + data: {} + msg: + type: string + type: object + gorm.DeletedAt: + properties: + time: + type: string + valid: + description: Valid is true if Time is not NULL + type: boolean + type: object + models.OutsourcingEnterprise: + 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: + allOf: + - $ref: '#/definitions/constvar.RecordStatus' + description: 鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤 + supplyCapacity: + description: 渚涜揣鑳藉姏 + type: string + supplyRange: + description: 渚涜揣鑼冨洿 + type: string + tel: + description: 鑱旂郴鏂瑰紡 + type: string + updatedAt: + type: string + type: object + models.OutsourcingOrder: + 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: + allOf: + - $ref: '#/definitions/constvar.OutsourcingOrderStatus' + description: 鐘舵�� + updatedAt: + type: string + type: object + models.OutsourcingOrderProduct: + 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 + type: object + outsourcingrequest.ChangeStatus: + properties: + outsourcingOrderNumber: + description: 濮斿璁㈠崟缂栫爜 + type: string + reason: + type: string + status: + $ref: '#/definitions/constvar.OutsourcingOrderStatus' + type: object + outsourcingrequest.ConfirmDeliveryList: + properties: + outsourcingOrderDeliveryDetailsIds: + description: 鍙戣揣璁板綍id + items: + type: integer + type: array + outsourcingOrderID: + description: 濮斿璁㈠崟ID + type: integer + warehouseId: + description: 浠撳簱id + type: string + type: object + outsourcingrequest.GetDeliveryList: + properties: + isReceived: + allOf: + - $ref: '#/definitions/constvar.BoolType' + description: 鏄惁纭鏀惰揣 1 宸茬‘璁� 2鏈‘璁� 浼�0鎴栦笉浼犺幏鍙栧叏閮� + outsourcingOrderID: + description: 濮斿璁㈠崟ID + type: integer + type: object + outsourcingrequest.GetInventoryInputDetails: + properties: + outsourcingOrderID: + description: 濮斿璁㈠崟ID + type: integer + type: object + outsourcingrequest.GetMaterialApplyList: + properties: + keyword: + description: 鍏抽敭瀛� + type: string + number: + description: 濮斿璁㈠崟缂栫爜 + type: string + page: + description: 椤电爜 + type: integer + pageSize: + description: 姣忛〉澶у皬 + type: integer + type: object + outsourcingrequest.MaterialApply: + properties: + amount: + type: number + materialName: + type: string + materialNumber: + type: string + outsourcingOrderNumber: + type: string + specs: + type: string + type: + type: string + unit: + type: string + type: object + outsourcingrequest.OutsourcingEnterprise: + 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: + allOf: + - $ref: '#/definitions/constvar.RecordStatus' + description: 鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤 + supplyCapacity: + description: 渚涜揣鑳藉姏 + type: string + supplyRange: + description: 渚涜揣鑼冨洿 + type: string + tel: + description: 鑱旂郴鏂瑰紡 + type: string + required: + - enterpriseType + - name + - number + type: object + outsourcingrequest.OutsourcingEnterpriseOverview: + properties: + close: + description: 鍋滅敤鏁伴噺 + type: integer + open: + description: 鍚敤鏁伴噺 + type: integer + total: + description: 鎬婚噺 + type: integer + type: object + outsourcingrequest.OutsourcingOrderAssign: + properties: + enterpriseID: + type: integer + orderID: + type: integer + orderIDs: + items: + type: integer + type: array + required: + - enterpriseID + type: object + outsourcingrequest.OutsourcingOrderOverview: + properties: + hasAssigned: + description: 宸插垎閰嶆暟閲� + type: integer + total: + description: 鎬婚噺 + type: integer + waitAssigned: + description: 寰呭垎閰嶆暟閲� + type: integer + type: object + outsourcingrequest.SaveMaterialApply: + properties: + applyList: + items: + $ref: '#/definitions/outsourcingrequest.MaterialApply' + type: array + type: object purchase.OrderStatus: enum: - 1 @@ -1171,6 +1525,28 @@ updated_at: type: string type: object + utils.Response: + properties: + code: + type: integer + data: {} + msg: + type: string + type: object + utils.ResponseList: + properties: + code: + type: integer + data: {} + msg: + type: string + page: + type: integer + pageSize: + type: integer + total: + type: integer + type: object info: contact: {} description: This is a sample Server pets @@ -1858,6 +2234,436 @@ summary: 鏇存柊Member tags: - Member + /outsourcing/enterprise/add: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.OutsourcingEnterprise' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/contextx.Response' + summary: 浼佷笟鏂板 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/enterprise/list: + get: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - description: 鐘舵�� 0 鏂板缓 1 鍚敤 2鍋滅敤 + enum: + - 0 + - 1 + - 2 + in: query + name: status + type: integer + x-enum-comments: + RecordStatusActive: 鍚敤 + RecordStatusCreate: 鏂板缓 + RecordStatusInactive: 鍋滅敤 + x-enum-varnames: + - RecordStatusCreate + - RecordStatusActive + - RecordStatusInactive + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.OutsourcingEnterprise' + type: array + type: object + summary: 浼佷笟鍒楄〃 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/enterprise/overview: + get: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + $ref: '#/definitions/outsourcingrequest.OutsourcingEnterpriseOverview' + type: object + summary: 浼佷笟缁熻 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/enterprise/productList: + get: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - in: query + name: enterpriseID + required: true + type: integer + - in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.OutsourcingOrderProduct' + type: array + type: object + summary: 濮斿浼佷笟渚涜揣鍘嗗彶 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/enterprise/update: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.OutsourcingEnterprise' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/contextx.Response' + summary: 浼佷笟淇敼 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/assign: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.OutsourcingOrderAssign' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/contextx.Response' + summary: 濮斿璁㈠崟鍒嗛厤浼佷笟 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/changeStatus: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.ChangeStatus' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.Response' + summary: 淇敼鐘舵�� + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/confirmReceipt: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.ConfirmDeliveryList' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.ResponseList' + summary: 濮斿鍏ュ簱 纭鍏ュ簱 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/deliveryList: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.GetDeliveryList' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.ResponseList' + summary: 鑾峰彇鍙戣揣鍒楄〃 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/getInventoryInputDetails: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.GetInventoryInputDetails' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.ResponseList' + summary: 鑾峰彇濮斿鍏ュ簱鏄庣粏 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/getMaterialApplyList: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.GetMaterialApplyList' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.ResponseList' + summary: 鑾峰彇鐗╂枡鐢宠鍗� + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/list: + get: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.OutsourcingOrder' + type: array + type: object + summary: 濮斿璁㈠崟鍒楄〃 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/overview: + get: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + $ref: '#/definitions/outsourcingrequest.OutsourcingOrderOverview' + type: object + summary: 璁㈠崟缁熻 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/productList: + get: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - in: query + name: keyword + type: string + - in: query + name: outsourcingOrderId + required: true + type: integer + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.OutsourcingOrderProduct' + type: array + type: object + summary: 濮斿璁㈠崟浜у搧鍒楄〃 + tags: + - 濮斿浼佷笟绠$悊 + /outsourcing/order/saveMaterialApply: + post: + parameters: + - description: token + in: header + name: Authorization + required: true + type: string + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/outsourcingrequest.SaveMaterialApply' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.Response' + summary: 淇濆瓨鐗╂枡鐢宠鍗� + tags: + - 濮斿浼佷笟绠$悊 /p/createProduct: post: consumes: -- Gitblit v1.8.0