| | |
| | | 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: |
| | |
| | | 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: 组织机构代码 |
| | | 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: 组织机构代码 |
| | | 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 |
| | |
| | | - 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 |
| | |
| | | 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 |
| | |
| | | warehouse: |
| | | description: 收货仓库 |
| | | type: string |
| | | warehouseAddress: |
| | | description: 收货仓库地址 |
| | | type: string |
| | | wholeDiscount: |
| | | description: 整单折扣值 |
| | | type: number |
| | |
| | | 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: |
| | |
| | | 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: 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: |
| | |
| | | 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: 联系人电话 |
| | |
| | | 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 |
| | |
| | | - $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 |
| | |
| | | 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: |
| | |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchaserequest.Purchase' |
| | | type: object |
| | | request.GetById: |
| | | properties: |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | type: object |
| | | request.IdsReq: |
| | | properties: |
| | |
| | | $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: {} |
| | |
| | | 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: |
| | |
| | | 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: |
| | |
| | | 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: |
| | |
| | | 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: |
| | |
| | | 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 |
| | |
| | | - 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: |
| | |
| | | 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: |
| | |
| | | name: data |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.GetById' |
| | | $ref: '#/definitions/srm_model_common_request.GetById' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | - in: query |
| | | name: unit |
| | | type: string |
| | | - description: token |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | 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: |
| | |
| | | in: query |
| | | name: pageSize |
| | | type: integer |
| | | - description: 供应商id |
| | | in: query |
| | | name: supplierId |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | in: query |
| | | name: pageSize |
| | | type: integer |
| | | - description: 供应商id |
| | | in: query |
| | | name: supplierId |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | 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: 采购单ID |
| | | in: path |
| | | name: id |
| | | - description: 参数 |
| | | in: body |
| | | name: data |
| | | required: true |
| | | type: integer |
| | | schema: |
| | | $ref: '#/definitions/purchaserequest.SubmitPurchase' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | name: fileId |
| | | type: integer |
| | | - description: 主键ID |
| | | example: "0" |
| | | in: query |
| | | name: id |
| | | type: integer |
| | | type: string |
| | | - in: query |
| | | name: industry |
| | | type: string |
| | |
| | | summary: 用id查询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: 用编码查询Supplier |
| | | tags: |
| | | - Supplier |
| | | /s/getSupplierList: |
| | | get: |
| | | consumes: |
| | |
| | | name: fileId |
| | | type: integer |
| | | - description: 主键ID |
| | | example: "0" |
| | | in: query |
| | | name: id |
| | | type: integer |
| | | type: string |
| | | - in: query |
| | | name: industry |
| | | type: string |