From cdb38521ea1f662b53bafb87412c38dfd0d5e11d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 19 四月 2024 17:06:12 +0800 Subject: [PATCH] 更新文档 --- docs/swagger.yaml | 1144 +++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 1,061 insertions(+), 83 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 2d47c09..5a769cb 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,4 +1,45 @@ definitions: + code.CodeAuto: + properties: + AutoLength: + type: integer + Desc: + type: string + PrefixMethod: + type: integer + PrefixValue: + type: string + SuffixMethod: + type: integer + type: object + code.CodeRule: + properties: + Desc: + type: string + Length: + type: integer + Name: + type: string + type: object + code.CodeStandard: + properties: + AutoRule: + $ref: '#/definitions/code.CodeAuto' + ID: + type: string + List: + items: + $ref: '#/definitions/code.CodeRule' + type: array + Method: + type: integer + Name: + type: string + Status: + type: string + Type: + type: string + type: object config.CORS: properties: mode: @@ -352,6 +393,179 @@ description: 鏍堝悕 type: string type: object + constvar.MiniDictType: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + type: integer + x-enum-comments: + EarlyWarningDay: 棰勮澶╂暟 + InspectionWayType: 璐ㄦ鏂瑰紡绫诲瀷 + MiniDictTypeBomVersionType: Bom鐗堟湰绫诲瀷 + MiniDictTypePlcBrand: PLC鍝佺墝 + OutsourcingSupplierCreditGrade: 淇$敤绛夌骇 + OutsourcingSupplierRange: 渚涜揣鑼冨洿 + OutsourcingSupplierType: 濮斿渚涘簲鍟嗙被鍨� + x-enum-varnames: + - MiniDictTypePlcBrand + - MiniDictTypeBomVersionType + - EarlyWarningDay + - InspectionWayType + - OutsourcingSupplierType + - OutsourcingSupplierCreditGrade + - OutsourcingSupplierRange + 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 + model.MiniDict: + properties: + createdAt: + type: string + id: + type: integer + isDefault: + type: boolean + name: + type: string + type: + $ref: '#/definitions/constvar.MiniDictType' + updatedAt: + type: string + value: + type: string + 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 + 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 purchase.OrderStatus: enum: - 1 @@ -359,19 +573,28 @@ - 3 - 4 - 5 + - 6 + - 7 + - 8 type: integer x-enum-comments: OrderStatusCanceled: 宸插彇娑� OrderStatusCompleted: 宸插畬鎴� OrderStatusConfirmed: 寰呯‘璁� + OrderStatusPartReceive: 閮ㄥ垎鏀惰揣 OrderStatusReceived: 寰呭叆搴� OrderStatusStored: 宸插叆搴� + OrderStatusWaitQuality: 寰呰川妫� + OrderStatusWaitReceive: 寰呮敹璐� x-enum-varnames: - OrderStatusConfirmed - OrderStatusReceived - OrderStatusStored - OrderStatusCompleted - OrderStatusCanceled + - OrderStatusWaitReceive + - OrderStatusPartReceive + - OrderStatusWaitQuality purchase.PriceAdjustmentType: enum: - 1 @@ -401,7 +624,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string invoiceAmount: description: 宸叉敹绁ㄩ噾棰� type: number @@ -431,13 +655,14 @@ - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 浠锋牸璋冩暣绫诲瀷 principal: - description: 閲囪喘璐熻矗浜� + description: 浠撳簱璐熻矗浜� type: string purchaseType: $ref: '#/definitions/purchase.PurchaseType' purchaseTypeId: description: 閲囪喘绫诲瀷id - type: integer + example: "0" + type: string quantity: description: 閲囪喘鏁伴噺 type: number @@ -453,6 +678,9 @@ signingDate: description: 绛剧害鏃ユ湡 type: string + sourceOrder: + description: 鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮� + type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' @@ -461,7 +689,8 @@ $ref: '#/definitions/test.Supplier' supplierId: description: 渚涘簲鍟唅d - type: integer + example: "0" + type: string totalPrice: description: 浠风◣鍚堣 type: number @@ -473,6 +702,9 @@ warehouse: description: 鏀惰揣浠撳簱 type: string + warehouseAddress: + description: 鏀惰揣浠撳簱鍦板潃 + type: string wholeDiscount: description: 鏁村崟鎶樻墸鍊� type: number @@ -480,6 +712,42 @@ allOf: - $ref: '#/definitions/purchase.WholeDiscountType' description: 鏁村崟鎶樻墸绫诲瀷 + type: object + purchase.PurchaseProductConfirm: + properties: + amount: + type: number + created_at: + type: string + id: + description: 涓婚敭ID + example: "0" + type: string + 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 type: object purchase.PurchaseProducts: properties: @@ -496,7 +764,7 @@ type: number productId: description: 浜у搧id - type: string + type: integer purchaseId: description: 閲囪喘id type: integer @@ -515,7 +783,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘绫诲瀷 type: string @@ -539,6 +808,25 @@ x-enum-varnames: - WholeDiscountTypePercent - WholeDiscountTypeDiscount + purchase_wms.SrmGetWarehouseInfoResponse: + properties: + info: + items: + $ref: '#/definitions/purchase_wms.SrmWarehouseInfo' + type: array + type: object + purchase_wms.SrmWarehouseInfo: + properties: + address: + description: 浠撳簱鍦板潃 + type: string + name: + description: 浠撳簱鍚� + type: string + principal: + description: 浠撳簱璐熻矗浜� + type: string + type: object purchaserequest.AddPurchase: properties: productList: @@ -547,6 +835,19 @@ type: array purchase: $ref: '#/definitions/purchaserequest.Purchase' + type: object + purchaserequest.GetQualityInspectionInfo: + properties: + purchaseNumber: + type: string + status: + items: + type: integer + type: array + times: + items: + type: string + type: array type: object purchaserequest.Purchase: properties: @@ -558,12 +859,16 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘鍚嶇О type: string number: description: 閲囪喘缂栧彿 + type: string + orderSource: + description: 鍗曟嵁鏉ユ簮 type: string phone: description: 鑱旂郴浜虹數璇� @@ -575,9 +880,13 @@ allOf: - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 浠锋牸璋冩暣绫诲瀷 + principal: + description: 浠撳簱璐熻矗浜� + type: string purchaseTypeId: description: 閲囪喘绫诲瀷id - type: integer + example: "0" + type: string quantity: description: 閲囪喘鏁伴噺 type: number @@ -590,16 +899,26 @@ signingDate: description: 绛剧害鏃ユ湡 type: string + sourceOrder: + description: 鏉ユ簮鍗曟嵁 + type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' description: 鐘舵�� supplierId: description: 渚涘簲鍟唅d - type: integer + example: "0" + type: string totalPrice: description: 浠风◣鍚堣 type: number + warehouse: + description: 鏀惰揣浠撳簱 + type: string + warehouseAddress: + description: 鏀惰揣浠撳簱鍦板潃 + type: string wholeDiscount: description: 鏁村崟鎶樻墸鍊� type: number @@ -608,11 +927,39 @@ - $ref: '#/definitions/purchase.WholeDiscountType' description: 鏁村崟鎶樻墸绫诲瀷 type: object + purchaserequest.PurchaseProductConfirmInfo: + 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 + type: object purchaserequest.PurchaseType: properties: id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘绫诲瀷 type: string @@ -623,6 +970,24 @@ description: 鎺掑簭 type: integer type: object + purchaserequest.SaveQualityInspectionInfo: + properties: + ids: + items: + type: integer + type: array + purchaseId: + type: integer + status: + type: integer + type: object + purchaserequest.SubmitPurchase: + properties: + id: + type: integer + status: + $ref: '#/definitions/purchase.OrderStatus' + type: object purchaserequest.UpdatePurchase: properties: productList: @@ -631,12 +996,6 @@ type: array purchase: $ref: '#/definitions/purchaserequest.Purchase' - type: object - request.GetById: - properties: - id: - description: 涓婚敭ID - type: integer type: object request.IdsReq: properties: @@ -702,6 +1061,43 @@ $ref: '#/definitions/test.SupplierType' type: array type: object + response.InWarehouseInfo: + 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 + type: object + response.OperationInfo: + properties: + inWarehouseInfos: + items: + $ref: '#/definitions/response.InWarehouseInfo' + type: array + productInfos: + items: + $ref: '#/definitions/response.ProductInfo' + type: array + type: object response.PageResult: properties: list: {} @@ -711,6 +1107,39 @@ type: integer total: type: integer + type: object + response.ProductInfo: + 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 type: object response.PurchaseProducts: properties: @@ -738,6 +1167,9 @@ type: integer purchasePrice: type: number + remark: + description: 鎻忚堪 + type: string shippingDuration: type: integer specifications: @@ -764,6 +1196,12 @@ data: {} msg: type: string + type: object + srm_model_common_request.GetById: + properties: + id: + description: 涓婚敭ID + type: integer type: object system.System: properties: @@ -834,7 +1272,8 @@ type: integer id: description: 涓婚敭ID - type: integer + example: "0" + type: string industry: type: string name: @@ -905,12 +1344,119 @@ 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 + v1.GetMiniDictList: + properties: + type: + $ref: '#/definitions/constvar.MiniDictType' + type: object + v1.MiniDict: + properties: + isDefault: + type: boolean + name: + type: string + value: + type: string + type: object + v1.SaveMiniDict: + properties: + list: + items: + $ref: '#/definitions/v1.MiniDict' + type: array + type: + $ref: '#/definitions/constvar.MiniDictType' + type: object info: contact: {} description: This is a sample Server pets title: Swagger Example API version: 0.0.1 paths: + /code/getAutoCode: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/code.CodeStandard' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + additionalProperties: true + type: object + type: object + summary: 鑾峰彇鑷姩缂栫爜 + tags: + - 缂栫爜 + /code/getCodeList: + get: + parameters: + - in: query + name: codeStandID + type: string + - in: query + name: name + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: type + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/code.CodeStandard' + type: array + type: object + summary: 鑾峰彇缂栫爜鍒楄〃 + tags: + - 缂栫爜 /con/createContract: post: consumes: @@ -982,39 +1528,6 @@ security: - ApiKeyAuth: [] summary: 鎵归噺鍒犻櫎Contract - tags: - - Contract - /con/downloadContract: - get: - consumes: - - application/json - parameters: - - in: query - name: created_at - type: string - - in: query - name: fileName - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - in: query - name: supplierID - type: integer - - in: query - name: updated_at - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"涓嬭浇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 涓嬭浇Contract tags: - Contract /con/findContract: @@ -1101,7 +1614,85 @@ summary: 鍒嗛〉鑾峰彇Contract鍒楄〃 tags: - Contract - /con/previewContract: + /con/updateContract: + put: + consumes: + - application/json + parameters: + - description: 鏇存柊Contract + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Contract' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鏇存柊Contract + tags: + - Contract + /dict/getMiniDictList: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/v1.GetMiniDictList' + - description: token + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/utils.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/model.MiniDict' + type: array + type: object + summary: 鑾峰彇杩蜂綘瀛楀吀鍒楄〃 + tags: + - 鏁版嵁瀛楀吀 + /dict/saveMiniDict: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/v1.SaveMiniDict' + - description: token + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/utils.Response' + summary: 鏇存柊杩蜂綘瀛楀吀 + tags: + - 鏁版嵁瀛楀吀 + /downloadContract: get: consumes: - application/json @@ -1126,35 +1717,12 @@ - application/json responses: "200": - description: '{"success":true,"data":{},"msg":"棰勮鎴愬姛"}' + description: '{"success":true,"data":{},"msg":"涓嬭浇鎴愬姛"}' schema: type: string security: - ApiKeyAuth: [] - summary: 棰勮Contract - tags: - - Contract - /con/updateContract: - put: - consumes: - - application/json - parameters: - - description: 鏇存柊Contract - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Contract' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鏇存柊Contract + summary: 涓嬭浇Contract tags: - Contract /i/createIndustry: @@ -1563,6 +2131,129 @@ 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/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: + - 濮斿浼佷笟绠$悊 /p/createProduct: post: consumes: @@ -1596,7 +2287,7 @@ name: data required: true schema: - $ref: '#/definitions/request.GetById' + $ref: '#/definitions/srm_model_common_request.GetById' produces: - application/json responses: @@ -1709,6 +2400,11 @@ - in: query name: unit type: string + - description: token + in: header + name: Authorization + required: true + type: string produces: - application/json responses: @@ -1812,6 +2508,195 @@ summary: 鏇存柊Product tags: - Product + /previewContract: + get: + consumes: + - application/json + parameters: + - in: query + name: created_at + type: string + - in: query + name: fileName + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: supplierID + type: integer + - in: query + name: updated_at + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"棰勮鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 棰勮Contract + tags: + - Contract + /purchase/allProductInWarehouse: + post: + consumes: + - application/json + parameters: + - description: 鍙傛暟 + in: body + name: data + required: true + schema: + $ref: '#/definitions/purchaserequest.PurchaseProductConfirmInfo' + produces: + - application/json + responses: + "200": + description: 鑾峰彇纭淇℃伅 + schema: + $ref: '#/definitions/response.Response' + security: + - ApiKeyAuth: [] + summary: 鍏ㄩ儴鍚堟牸鍏ュ簱 + tags: + - Purchase + /purchase/getOperationInfo/{id}: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: 鑾峰彇鎿嶄綔淇℃伅 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/response.OperationInfo' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇鎿嶄綔淇℃伅 + tags: + - Purchase + /purchase/getPurchaseProductConfirmInfo/{number}: + get: + consumes: + - application/json + parameters: + - description: 閲囪喘鍗曠紪鐮� + in: path + name: number + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鑾峰彇纭淇℃伅 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase.PurchaseProductConfirm' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇纭淇℃伅 + tags: + - Purchase + /purchase/getPurchaseQualityInspectionInfo: + post: + consumes: + - application/json + parameters: + - description: 鍙傛暟 + in: body + name: data + required: true + schema: + $ref: '#/definitions/purchaserequest.GetQualityInspectionInfo' + produces: + - application/json + responses: + "200": + description: 鑾峰彇纭淇℃伅 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase.PurchaseProductConfirm' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇閲囪喘璐ㄦ淇℃伅淇℃伅 + tags: + - Purchase + /purchase/getWarehouseInfo: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: 鑾峰彇閲囪喘绫诲瀷鍒楄〃 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase_wms.SrmGetWarehouseInfoResponse' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇浠撳簱鍒楄〃 + tags: + - Purchase + /purchase/newSubmit: + post: + consumes: + - application/json + parameters: + - description: 鍙傛暟 + in: body + name: data + required: true + schema: + $ref: '#/definitions/purchaserequest.SubmitPurchase' + produces: + - application/json + responses: + "200": + description: 鏂扮増鎻愪氦 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 鏂扮増鎻愪氦 + tags: + - Purchase /purchase/purchase: post: consumes: @@ -1939,6 +2824,10 @@ in: query name: pageSize type: integer + - description: 渚涘簲鍟唅d + in: query + name: supplierId + type: integer produces: - application/json responses: @@ -2030,6 +2919,10 @@ in: query name: pageSize type: integer + - description: 渚涘簲鍟唅d + in: query + name: supplierId + type: integer produces: - application/json responses: @@ -2049,16 +2942,77 @@ summary: 鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛� tags: - QualityInspect + /purchase/savePurchaseProductConfirm: + post: + consumes: + - application/json + parameters: + - description: list + in: body + name: data + required: true + schema: + items: + $ref: '#/definitions/purchaserequest.PurchaseProductConfirmInfo' + type: array + produces: + - application/json + responses: + "200": + description: 纭鏀惰揣 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 纭鏀惰揣 + tags: + - Purchase + /purchase/savePurchaseQualityInspectionInfo: + post: + consumes: + - application/json + parameters: + - description: 鍙傛暟 + in: body + name: data + required: true + schema: + $ref: '#/definitions/purchaserequest.SaveQualityInspectionInfo' + produces: + - application/json + responses: + "200": + description: 鑾峰彇纭淇℃伅 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase.PurchaseProductConfirm' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 淇濆瓨閲囪喘璐ㄦ淇℃伅淇℃伅 + tags: + - Purchase /purchase/submit: post: consumes: - application/json parameters: - - description: 閲囪喘鍗旾D - in: path - name: id + - description: 鍙傛暟 + in: body + name: data required: true - type: integer + schema: + $ref: '#/definitions/purchaserequest.SubmitPurchase' produces: - application/json responses: @@ -2198,9 +3152,10 @@ name: fileId type: integer - description: 涓婚敭ID + example: "0" in: query name: id - type: integer + type: string - in: query name: industry type: string @@ -2240,6 +3195,28 @@ summary: 鐢╥d鏌ヨSupplier tags: - Supplier + /s/getSupplierByNumber/{number}: + get: + consumes: + - application/json + parameters: + - description: 渚涘簲鍟嗙紪鐮� + in: path + name: number + required: true + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鐢ㄧ紪鐮佹煡璇upplier + tags: + - Supplier /s/getSupplierList: get: consumes: @@ -2273,9 +3250,10 @@ name: fileId type: integer - description: 涓婚敭ID + example: "0" in: query name: id - type: integer + type: string - in: query name: industry type: string -- Gitblit v1.8.0