| | |
| | | } |
| | | } |
| | | }, |
| | | "/dict/getMiniDictList": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "数据字典" |
| | | ], |
| | | "summary": "获取迷你字典列表", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/v1.GetMiniDictList" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.MiniDict" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/dict/saveMiniDict": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "数据字典" |
| | | ], |
| | | "summary": "更新迷你字典", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/v1.SaveMiniDict" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/downloadContract": { |
| | | "get": { |
| | | "security": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/enterprise/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "委外企业管理" |
| | | ], |
| | | "summary": "企业新增", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterprise" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/enterprise/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "委外企业管理" |
| | | ], |
| | | "summary": "企业列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "enum": [ |
| | | 0, |
| | | 1, |
| | | 2 |
| | | ], |
| | | "type": "integer", |
| | | "x-enum-comments": { |
| | | "RecordStatusActive": "启用", |
| | | "RecordStatusCreate": "新建", |
| | | "RecordStatusInactive": "停用" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "RecordStatusCreate", |
| | | "RecordStatusActive", |
| | | "RecordStatusInactive" |
| | | ], |
| | | "description": "状态 0 新建 1 启用 2停用", |
| | | "name": "status", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OutsourcingEnterprise" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/enterprise/overview": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "委外企业管理" |
| | | ], |
| | | "summary": "企业统计", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterpriseOverview" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/enterprise/update": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "委外企业管理" |
| | | ], |
| | | "summary": "企业修改", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/outsourcingrequest.OutsourcingEnterprise" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/p/createProduct": { |
| | | "post": { |
| | | "security": [ |
| | |
| | | "type": "string", |
| | | "name": "unit", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "summary": "新版提交", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "summary": "提交采购单", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "constvar.MiniDictType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5, |
| | | 6, |
| | | 7 |
| | | ], |
| | | "x-enum-comments": { |
| | | "EarlyWarningDay": "预警天数", |
| | | "InspectionWayType": "质检方式类型", |
| | | "MiniDictTypeBomVersionType": "Bom版本类型", |
| | | "MiniDictTypePlcBrand": "PLC品牌", |
| | | "OutsourcingSupplierCreditGrade": "信用等级", |
| | | "OutsourcingSupplierRange": "供货范围", |
| | | "OutsourcingSupplierType": "委外供应商类型" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "MiniDictTypePlcBrand", |
| | | "MiniDictTypeBomVersionType", |
| | | "EarlyWarningDay", |
| | | "InspectionWayType", |
| | | "OutsourcingSupplierType", |
| | | "OutsourcingSupplierCreditGrade", |
| | | "OutsourcingSupplierRange" |
| | | ] |
| | | }, |
| | | "constvar.RecordStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 0, |
| | | 1, |
| | | 2 |
| | | ], |
| | | "x-enum-comments": { |
| | | "RecordStatusActive": "启用", |
| | | "RecordStatusCreate": "新建", |
| | | "RecordStatusInactive": "停用" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "RecordStatusCreate", |
| | | "RecordStatusActive", |
| | | "RecordStatusInactive" |
| | | ] |
| | | }, |
| | | "contextx.Response": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "gorm.DeletedAt": { |
| | | "type": "object", |
| | | "properties": { |
| | | "time": { |
| | | "type": "string" |
| | | }, |
| | | "valid": { |
| | | "description": "Valid is true if Time is not NULL", |
| | | "type": "boolean" |
| | | } |
| | | } |
| | | }, |
| | | "model.MiniDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "createdAt": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "isDefault": { |
| | | "type": "boolean" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "$ref": "#/definitions/constvar.MiniDictType" |
| | | }, |
| | | "updatedAt": { |
| | | "type": "string" |
| | | }, |
| | | "value": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "models.OutsourcingEnterprise": { |
| | | "type": "object", |
| | | "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": { |
| | | "description": "状态 0 新建 1 启用 2停用", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.RecordStatus" |
| | | } |
| | | ] |
| | | }, |
| | | "supplyCapacity": { |
| | | "description": "供货能力", |
| | | "type": "string" |
| | | }, |
| | | "supplyRange": { |
| | | "description": "供货范围", |
| | | "type": "string" |
| | | }, |
| | | "tel": { |
| | | "description": "联系方式", |
| | | "type": "string" |
| | | }, |
| | | "updatedAt": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.OutsourcingEnterprise": { |
| | | "type": "object", |
| | | "required": [ |
| | | "enterpriseType", |
| | | "name", |
| | | "number" |
| | | ], |
| | | "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": { |
| | | "description": "状态 0 新建 1 启用 2停用", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.RecordStatus" |
| | | } |
| | | ] |
| | | }, |
| | | "supplyCapacity": { |
| | | "description": "供货能力", |
| | | "type": "string" |
| | | }, |
| | | "supplyRange": { |
| | | "description": "供货范围", |
| | | "type": "string" |
| | | }, |
| | | "tel": { |
| | | "description": "联系方式", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.OutsourcingEnterpriseOverview": { |
| | | "type": "object", |
| | | "properties": { |
| | | "close": { |
| | | "description": "停用数量", |
| | | "type": "integer" |
| | | }, |
| | | "open": { |
| | | "description": "启用数量", |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "description": "总量", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "purchase.OrderStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "type": "string" |
| | | }, |
| | | "sourceOrder": { |
| | | "description": "来源单据", |
| | | "description": "来源单据 ,销售明细编码", |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.SubmitPurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/purchase.OrderStatus" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.UpdatePurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.OperationInfo": { |
| | | "response.InWarehouseInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "description": "采购数", |
| | | "type": "number" |
| | | }, |
| | | "modelNumber": { |
| | | "description": "型号", |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | |
| | | "description": "负责人", |
| | | "type": "string" |
| | | }, |
| | | "purchasePrice": { |
| | | "description": "单价", |
| | | "type": "number" |
| | | }, |
| | | "sendAmount": { |
| | | "description": "发货数", |
| | | "type": "integer" |
| | | }, |
| | | "specifications": { |
| | | "description": "规格", |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "description": "总价", |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "description": "单位", |
| | | "type": "string" |
| | | }, |
| | | "warehouseName": { |
| | | "description": "仓库名", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.OperationInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "inWarehouseInfos": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/response.InWarehouseInfo" |
| | | } |
| | | }, |
| | | "productInfos": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/response.ProductInfo" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | "total": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "response.ProductInfo": { |
| | | "type": "object", |
| | | "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": "string" |
| | | } |
| | | } |
| | | }, |
| | | "utils.Response": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "utils.ResponseList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "v1.GetMiniDictList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "type": { |
| | | "$ref": "#/definitions/constvar.MiniDictType" |
| | | } |
| | | } |
| | | }, |
| | | "v1.MiniDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "isDefault": { |
| | | "type": "boolean" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | }, |
| | | "value": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "v1.SaveMiniDict": { |
| | | "type": "object", |
| | | "properties": { |
| | | "list": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/v1.MiniDict" |
| | | } |
| | | }, |
| | | "type": { |
| | | "$ref": "#/definitions/constvar.MiniDictType" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "securityDefinitions": { |