| | |
| | | } |
| | | } |
| | | }, |
| | | "/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/productList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "委外企业管理" |
| | | ], |
| | | "summary": "委外企业供货历史", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "name": "enterpriseID", |
| | | "in": "query", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OutsourcingOrderProduct" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/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" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/assign": { |
| | | "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.OutsourcingOrderAssign" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/changeStatus": { |
| | | "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.ChangeStatus" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/confirmReceipt": { |
| | | "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.ConfirmDeliveryList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/deliveryList": { |
| | | "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.GetDeliveryList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/getInventoryInputDetails": { |
| | | "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.GetInventoryInputDetails" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/getMaterialApplyList": { |
| | | "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.GetMaterialApplyList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/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" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OutsourcingOrder" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/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.OutsourcingOrderOverview" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/productList": { |
| | | "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", |
| | | "name": "outsourcingOrderId", |
| | | "in": "query", |
| | | "required": true |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/utils.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OutsourcingOrderProduct" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/outsourcing/order/saveMaterialApply": { |
| | | "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.SaveMaterialApply" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/utils.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/p/createProduct": { |
| | | "post": { |
| | | "security": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "constvar.BoolType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2 |
| | | ], |
| | | "x-enum-comments": { |
| | | "BoolTypeFalse": "false", |
| | | "BoolTypeTrue": "true" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "BoolTypeTrue", |
| | | "BoolTypeFalse" |
| | | ] |
| | | }, |
| | | "constvar.OutsourcingOrderStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 0, |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5, |
| | | 6, |
| | | 7, |
| | | 8, |
| | | 9 |
| | | ], |
| | | "x-enum-comments": { |
| | | "OutsourcingOrderStatusAssigned": "已分配委外商", |
| | | "OutsourcingOrderStatusClose": "关闭", |
| | | "OutsourcingOrderStatusCreate": "新建待分配委外商", |
| | | "OutsourcingOrderStatusDeliveryFinish": "发货完成", |
| | | "OutsourcingOrderStatusFinish": "生产完成", |
| | | "OutsourcingOrderStatusMaterialApplying": "物料申请中/待领料审核", |
| | | "OutsourcingOrderStatusMaterialExamineRefused": "领料审核拒绝", |
| | | "OutsourcingOrderStatusProducing": "生产中", |
| | | "OutsourcingOrderStatusReceiveFinish": "收货完成", |
| | | "OutsourcingOrderStatusWaitProduce": "待生产" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "OutsourcingOrderStatusCreate", |
| | | "OutsourcingOrderStatusAssigned", |
| | | "OutsourcingOrderStatusWaitProduce", |
| | | "OutsourcingOrderStatusMaterialApplying", |
| | | "OutsourcingOrderStatusMaterialExamineRefused", |
| | | "OutsourcingOrderStatusProducing", |
| | | "OutsourcingOrderStatusFinish", |
| | | "OutsourcingOrderStatusDeliveryFinish", |
| | | "OutsourcingOrderStatusReceiveFinish", |
| | | "OutsourcingOrderStatusClose" |
| | | ] |
| | | }, |
| | | "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" |
| | | } |
| | | } |
| | | }, |
| | | "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" |
| | | } |
| | | } |
| | | }, |
| | | "models.OutsourcingOrder": { |
| | | "type": "object", |
| | | "properties": { |
| | | "createdAt": { |
| | | "type": "string" |
| | | }, |
| | | "deletedAt": { |
| | | "$ref": "#/definitions/gorm.DeletedAt" |
| | | }, |
| | | "deliveryDate": { |
| | | "type": "string" |
| | | }, |
| | | "enterpriseID": { |
| | | "description": "供应商ID", |
| | | "type": "integer" |
| | | }, |
| | | "enterpriseName": { |
| | | "description": "供应商名称", |
| | | "type": "string" |
| | | }, |
| | | "enterpriseType": { |
| | | "description": "供应商类型", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "description": "订单编号", |
| | | "type": "string" |
| | | }, |
| | | "productQuantity": { |
| | | "description": "产品数量", |
| | | "type": "integer" |
| | | }, |
| | | "projectId": { |
| | | "type": "string" |
| | | }, |
| | | "projectOrderID": { |
| | | "type": "string" |
| | | }, |
| | | "reason": { |
| | | "type": "string" |
| | | }, |
| | | "salesDetailsNumber": { |
| | | "type": "string" |
| | | }, |
| | | "signTime": { |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "description": "状态", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.OutsourcingOrderStatus" |
| | | } |
| | | ] |
| | | }, |
| | | "updatedAt": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "models.OutsourcingOrderProduct": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "integer" |
| | | }, |
| | | "bomID": { |
| | | "type": "string" |
| | | }, |
| | | "createdAt": { |
| | | "type": "string" |
| | | }, |
| | | "deletedAt": { |
| | | "$ref": "#/definitions/gorm.DeletedAt" |
| | | }, |
| | | "enterpriseID": { |
| | | "description": "供应商ID", |
| | | "type": "integer" |
| | | }, |
| | | "finishAmount": { |
| | | "type": "integer" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "outsourcingOrderID": { |
| | | "type": "integer" |
| | | }, |
| | | "productId": { |
| | | "type": "string" |
| | | }, |
| | | "productName": { |
| | | "type": "string" |
| | | }, |
| | | "specs": { |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "type": "string" |
| | | }, |
| | | "unit": { |
| | | "type": "string" |
| | | }, |
| | | "updatedAt": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.ChangeStatus": { |
| | | "type": "object", |
| | | "properties": { |
| | | "outsourcingOrderNumber": { |
| | | "description": "委外订单编码", |
| | | "type": "string" |
| | | }, |
| | | "reason": { |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/constvar.OutsourcingOrderStatus" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.ConfirmDeliveryList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "outsourcingOrderDeliveryDetailsIds": { |
| | | "description": "发货记录id", |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | }, |
| | | "outsourcingOrderID": { |
| | | "description": "委外订单ID", |
| | | "type": "integer" |
| | | }, |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.GetDeliveryList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "isReceived": { |
| | | "description": "是否确认收货 1 已确认 2未确认 传0或不传获取全部", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BoolType" |
| | | } |
| | | ] |
| | | }, |
| | | "outsourcingOrderID": { |
| | | "description": "委外订单ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.GetInventoryInputDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | | "outsourcingOrderID": { |
| | | "description": "委外订单ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.GetMaterialApplyList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "description": "关键字", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "description": "委外订单编码", |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.MaterialApply": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "number" |
| | | }, |
| | | "materialName": { |
| | | "type": "string" |
| | | }, |
| | | "materialNumber": { |
| | | "type": "string" |
| | | }, |
| | | "outsourcingOrderNumber": { |
| | | "type": "string" |
| | | }, |
| | | "specs": { |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "type": "string" |
| | | }, |
| | | "unit": { |
| | | "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" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.OutsourcingOrderAssign": { |
| | | "type": "object", |
| | | "required": [ |
| | | "enterpriseID" |
| | | ], |
| | | "properties": { |
| | | "enterpriseID": { |
| | | "type": "integer" |
| | | }, |
| | | "orderID": { |
| | | "type": "integer" |
| | | }, |
| | | "orderIDs": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.OutsourcingOrderOverview": { |
| | | "type": "object", |
| | | "properties": { |
| | | "hasAssigned": { |
| | | "description": "已分配数量", |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "description": "总量", |
| | | "type": "integer" |
| | | }, |
| | | "waitAssigned": { |
| | | "description": "待分配数量", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "outsourcingrequest.SaveMaterialApply": { |
| | | "type": "object", |
| | | "properties": { |
| | | "applyList": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/outsourcingrequest.MaterialApply" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "purchase.OrderStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "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" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "securityDefinitions": { |