From 69f0410081da54e6cea8a04a07fd0119a8edc623 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 30 三月 2024 11:38:42 +0800 Subject: [PATCH] 采购单修改 --- docs/swagger.yaml | 980 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 750 insertions(+), 230 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5610a5e..37c765c 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: @@ -308,26 +349,19 @@ description: 鐜鍊� type: string grpc-admin-url: - description: grpc鏈嶅姟鍦板潃 + description: admin grpc鏈嶅姟鍦板潃 + type: string + grpc-port: + description: 瀵瑰鎻愪緵鏈嶅姟grpc绔彛 type: string grpc-url: - description: grpc鏈嶅姟鍦板潃 + description: aps grpc鏈嶅姟鍦板潃 type: string - iplimit-count: - type: integer - iplimit-time: - type: integer - oss-type: - description: Oss绫诲瀷 + grpc-wms-url: + description: wms grpc鏈嶅姟鍦板潃 type: string router-prefix: type: string - use-multipoint: - description: 澶氱偣鐧诲綍鎷︽埅 - type: boolean - use-redis: - description: 浣跨敤redis - type: boolean type: object config.Zap: properties: @@ -365,17 +399,29 @@ - 2 - 3 - 4 + - 5 + - 6 + - 7 + - 8 type: integer x-enum-comments: + OrderStatusCanceled: 宸插彇娑� OrderStatusCompleted: 宸插畬鎴� - OrderStatusConfirmed: 宸蹭笅鍗� - OrderStatusReceived: 宸插埌璐� + OrderStatusConfirmed: 寰呯‘璁� + OrderStatusPartReceive: 閮ㄥ垎鏀惰揣 + OrderStatusReceived: 寰呭叆搴� OrderStatusStored: 宸插叆搴� + OrderStatusWaitQuality: 寰呰川妫� + OrderStatusWaitReceive: 寰呮敹璐� x-enum-varnames: - OrderStatusConfirmed - OrderStatusReceived - OrderStatusStored - OrderStatusCompleted + - OrderStatusCanceled + - OrderStatusWaitReceive + - OrderStatusPartReceive + - OrderStatusWaitQuality purchase.PriceAdjustmentType: enum: - 1 @@ -405,7 +451,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string invoiceAmount: description: 宸叉敹绁ㄩ噾棰� type: number @@ -435,13 +482,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 @@ -457,6 +505,9 @@ signingDate: description: 绛剧害鏃ユ湡 type: string + sourceOrder: + description: 鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮� + type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' @@ -465,7 +516,8 @@ $ref: '#/definitions/test.Supplier' supplierId: description: 渚涘簲鍟唅d - type: integer + example: "0" + type: string totalPrice: description: 浠风◣鍚堣 type: number @@ -477,6 +529,9 @@ warehouse: description: 鏀惰揣浠撳簱 type: string + warehouseAddress: + description: 鏀惰揣浠撳簱鍦板潃 + type: string wholeDiscount: description: 鏁村崟鎶樻墸鍊� type: number @@ -484,6 +539,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: @@ -519,7 +610,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘绫诲瀷 type: string @@ -543,6 +635,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: @@ -551,6 +662,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: @@ -562,12 +686,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: 鑱旂郴浜虹數璇� @@ -579,9 +707,13 @@ allOf: - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 浠锋牸璋冩暣绫诲瀷 + principal: + description: 浠撳簱璐熻矗浜� + type: string purchaseTypeId: description: 閲囪喘绫诲瀷id - type: integer + example: "0" + type: string quantity: description: 閲囪喘鏁伴噺 type: number @@ -594,16 +726,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 @@ -612,11 +754,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 @@ -626,6 +796,24 @@ sort: 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: @@ -650,11 +838,40 @@ $ref: '#/definitions/test.Industry' type: array type: object + request.Product: + properties: + categoryName: + type: string + deliveryTime: + type: integer + modelNumber: + type: string + name: + type: string + number: + type: string + purchasePrice: + type: number + shippingDuration: + type: integer + specifications: + type: string + supplier: + type: string + supplierId: + type: integer + supplierName: + type: string + supplierNumber: + type: string + unit: + type: string + type: object request.ProductCreate: properties: list: items: - $ref: '#/definitions/test.Product' + $ref: '#/definitions/request.Product' type: array type: object request.SupplierStatus: @@ -671,6 +888,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: {} @@ -680,6 +934,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: @@ -707,6 +994,9 @@ type: integer purchasePrice: type: number + remark: + description: 鎻忚堪 + type: string shippingDuration: type: integer specifications: @@ -733,6 +1023,12 @@ data: {} msg: type: string + type: object + srm_model_common_request.GetById: + properties: + id: + description: 涓婚敭ID + type: integer type: object system.System: properties: @@ -781,46 +1077,6 @@ uuid: type: string type: object - test.Product: - properties: - created_at: - type: string - deliveryTime: - type: integer - id: - description: 涓婚敭ID - type: integer - maximumStock: - type: integer - minimumStock: - type: integer - modelNumber: - type: string - name: - type: string - number: - type: string - productType: - type: string - purchasePrice: - type: number - remark: - type: string - shippingDuration: - type: integer - specifications: - type: string - supplier: - $ref: '#/definitions/test.Supplier' - supplierId: - type: integer - supplierName: - type: string - unit: - type: string - updated_at: - type: string - type: object test.Supplier: properties: account: @@ -843,7 +1099,8 @@ type: integer id: description: 涓婚敭ID - type: integer + example: "0" + type: string industry: type: string name: @@ -861,6 +1118,45 @@ updated_at: type: string url: + type: string + type: object + test.SupplierMaterial: + properties: + categoryName: + description: 浜у搧绫诲埆鍚嶇О + type: string + created_at: + type: string + deliveryTime: + description: 渚涜揣鏃堕暱 + type: integer + id: + description: 涓婚敭ID + type: integer + maximumStock: + type: integer + minimumStock: + type: integer + modelNumber: + type: string + name: + type: string + number: + type: string + purchasePrice: + type: number + shippingDuration: + description: 鐗╂祦鏃堕暱 + type: integer + specifications: + type: string + supplier: + $ref: '#/definitions/test.Supplier' + supplierId: + type: integer + unit: + type: string + updated_at: type: string type: object test.SupplierType: @@ -881,6 +1177,68 @@ 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: @@ -952,39 +1310,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: @@ -1071,7 +1396,30 @@ 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 + /downloadContract: get: consumes: - application/json @@ -1096,35 +1444,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: @@ -1566,7 +1891,7 @@ name: data required: true schema: - $ref: '#/definitions/test.Product' + $ref: '#/definitions/srm_model_common_request.GetById' produces: - application/json responses: @@ -1607,58 +1932,10 @@ consumes: - application/json parameters: - - in: query - name: created_at - type: string - - in: query - name: deliveryTime - type: integer - description: 涓婚敭ID in: query name: id type: integer - - in: query - name: maximumStock - type: integer - - in: query - name: minimumStock - type: integer - - in: query - name: modelNumber - type: string - - in: query - name: name - type: string - - in: query - name: number - type: string - - in: query - name: productType - type: string - - in: query - name: purchasePrice - type: number - - in: query - name: remark - type: string - - in: query - name: shippingDuration - type: integer - - in: query - name: specifications - type: string - - in: query - name: supplierId - type: integer - - in: query - name: supplierName - type: string - - in: query - name: unit - type: string - - in: query - name: updated_at - type: string produces: - application/json responses: @@ -1677,28 +1954,15 @@ - application/json parameters: - in: query - name: created_at + name: categoryName type: string - in: query name: deliveryTime - type: integer - - in: query - name: endCreatedAt - type: string - - description: 涓婚敭ID - in: query - name: id type: integer - description: 鍏抽敭瀛� in: query name: keyword type: string - - in: query - name: maximumStock - type: integer - - in: query - name: minimumStock - type: integer - in: query name: modelNumber type: string @@ -1717,14 +1981,8 @@ name: pageSize type: integer - in: query - name: productType - type: string - - in: query name: purchasePrice type: number - - in: query - name: remark - type: string - in: query name: shippingDuration type: integer @@ -1732,7 +1990,7 @@ name: specifications type: string - in: query - name: startCreatedAt + name: supplier type: string - in: query name: supplierId @@ -1746,8 +2004,10 @@ - in: query name: unit type: string - - in: query - name: updated_at + - description: token + in: header + name: Authorization + required: true type: string produces: - application/json @@ -1767,28 +2027,15 @@ - application/json parameters: - in: query - name: created_at + name: categoryName type: string - in: query name: deliveryTime - type: integer - - in: query - name: endCreatedAt - type: string - - description: 涓婚敭ID - in: query - name: id type: integer - description: 鍏抽敭瀛� in: query name: keyword type: string - - in: query - name: maximumStock - type: integer - - in: query - name: minimumStock - type: integer - in: query name: modelNumber type: string @@ -1807,14 +2054,8 @@ name: pageSize type: integer - in: query - name: productType - type: string - - in: query name: purchasePrice type: number - - in: query - name: remark - type: string - in: query name: shippingDuration type: integer @@ -1822,7 +2063,7 @@ name: specifications type: string - in: query - name: startCreatedAt + name: supplier type: string - in: query name: supplierId @@ -1835,9 +2076,6 @@ type: string - in: query name: unit - type: string - - in: query - name: updated_at type: string produces: - application/json @@ -1861,7 +2099,7 @@ name: data required: true schema: - $ref: '#/definitions/test.Product' + $ref: '#/definitions/test.SupplierMaterial' produces: - application/json responses: @@ -1874,6 +2112,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: @@ -2001,6 +2428,10 @@ in: query name: pageSize type: integer + - description: 渚涘簲鍟唅d + in: query + name: supplierId + type: integer produces: - application/json responses: @@ -2092,6 +2523,10 @@ in: query name: pageSize type: integer + - description: 渚涘簲鍟唅d + in: query + name: supplierId + type: integer produces: - application/json responses: @@ -2111,16 +2546,77 @@ summary: 鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛� tags: - QualityInspect - /purchase/submit/{id}: + /purchase/savePurchaseProductConfirm: post: consumes: - application/json parameters: - - description: 閲囪喘鍗旾D - in: path - name: id + - description: list + in: body + name: data required: true - type: integer + 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: 鍙傛暟 + in: body + name: data + required: true + schema: + $ref: '#/definitions/purchaserequest.SubmitPurchase' produces: - application/json responses: @@ -2260,9 +2756,10 @@ name: fileId type: integer - description: 涓婚敭ID + example: "0" in: query name: id - type: integer + type: string - in: query name: industry type: string @@ -2302,6 +2799,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: @@ -2335,9 +2854,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