| | |
| | | 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: |
| | |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | invoiceAmount: |
| | | description: 已收票金额 |
| | | type: number |
| | |
| | | - $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 |
| | |
| | | signingDate: |
| | | description: 签约日期 |
| | | type: string |
| | | sourceOrder: |
| | | description: 来源单据 |
| | | type: string |
| | | status: |
| | | allOf: |
| | | - $ref: '#/definitions/purchase.OrderStatus' |
| | |
| | | $ref: '#/definitions/test.Supplier' |
| | | supplierId: |
| | | description: 供应商id |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | totalPrice: |
| | | description: 价税合计 |
| | | type: number |
| | |
| | | type: string |
| | | warehouse: |
| | | description: 收货仓库 |
| | | type: string |
| | | warehouseAddress: |
| | | description: 收货仓库地址 |
| | | type: string |
| | | wholeDiscount: |
| | | description: 整单折扣值 |
| | |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | name: |
| | | description: 采购类型 |
| | | type: string |
| | |
| | | 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: |
| | |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | name: |
| | | description: 采购名称 |
| | | type: string |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/purchase.PriceAdjustmentType' |
| | | description: 价格调整类型 |
| | | principal: |
| | | description: 仓库负责人 |
| | | type: string |
| | | purchaseTypeId: |
| | | description: 采购类型id |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | quantity: |
| | | description: 采购数量 |
| | | type: number |
| | |
| | | signingDate: |
| | | description: 签约日期 |
| | | type: string |
| | | sourceOrder: |
| | | description: 来源单据 |
| | | type: string |
| | | status: |
| | | allOf: |
| | | - $ref: '#/definitions/purchase.OrderStatus' |
| | | description: 状态 |
| | | supplierId: |
| | | description: 供应商id |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | totalPrice: |
| | | description: 价税合计 |
| | | type: number |
| | | warehouse: |
| | | description: 收货仓库 |
| | | type: string |
| | | warehouseAddress: |
| | | description: 收货仓库地址 |
| | | type: string |
| | | wholeDiscount: |
| | | description: 整单折扣值 |
| | | type: number |
| | |
| | | properties: |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | name: |
| | | description: 采购类型 |
| | | type: string |
| | |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchaserequest.Purchase' |
| | | type: object |
| | | request.GetById: |
| | | properties: |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | type: object |
| | | request.IdsReq: |
| | | properties: |
| | |
| | | type: integer |
| | | purchasePrice: |
| | | type: number |
| | | remark: |
| | | description: 描述 |
| | | type: string |
| | | shippingDuration: |
| | | type: integer |
| | | specifications: |
| | |
| | | data: {} |
| | | msg: |
| | | type: string |
| | | type: object |
| | | srm_model_common_request.GetById: |
| | | properties: |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | type: object |
| | | system.System: |
| | | properties: |
| | |
| | | type: integer |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | example: "0" |
| | | type: string |
| | | industry: |
| | | type: string |
| | | name: |
| | |
| | | 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: |
| | |
| | | name: data |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.GetById' |
| | | $ref: '#/definitions/srm_model_common_request.GetById' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | summary: 预览Contract |
| | | tags: |
| | | - Contract |
| | | /purchase/getOperationInfo/{id}: |
| | | 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/getWarehouseInfo: |
| | | get: |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 采购单ID |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: integer |
| | | 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/purchase: |
| | | post: |
| | | consumes: |
| | |
| | | name: fileId |
| | | type: integer |
| | | - description: 主键ID |
| | | example: "0" |
| | | in: query |
| | | name: id |
| | | type: integer |
| | | type: string |
| | | - in: query |
| | | name: industry |
| | | type: string |
| | |
| | | name: fileId |
| | | type: integer |
| | | - description: 主键ID |
| | | example: "0" |
| | | in: query |
| | | name: id |
| | | type: integer |
| | | type: string |
| | | - in: query |
| | | name: industry |
| | | type: string |