selfcheer
2024-07-19 1572f45e72cc0fa15c029f9ee2a08474104435e6
docs/docs.go
@@ -417,6 +417,95 @@
                }
            }
        },
        "/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": [
@@ -1298,72 +1387,6 @@
                }
            }
        },
        "/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": [
@@ -1396,431 +1419,6 @@
                        "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"
                        }
                    }
                }
@@ -4663,58 +4261,34 @@
                }
            }
        },
        "constvar.BoolType": {
        "constvar.MiniDictType": {
            "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
                7
            ],
            "x-enum-comments": {
                "OutsourcingOrderStatusAssigned": "已分配委外商",
                "OutsourcingOrderStatusClose": "关闭",
                "OutsourcingOrderStatusCreate": "新建待分配委外商",
                "OutsourcingOrderStatusDeliveryFinish": "发货完成",
                "OutsourcingOrderStatusFinish": "生产完成",
                "OutsourcingOrderStatusMaterialApplying": "物料申请中/待领料审核",
                "OutsourcingOrderStatusMaterialExamineRefused": "领料审核拒绝",
                "OutsourcingOrderStatusProducing": "生产中",
                "OutsourcingOrderStatusReceiveFinish": "收货完成",
                "OutsourcingOrderStatusWaitProduce": "待生产"
                "EarlyWarningDay": "预警天数",
                "InspectionWayType": "质检方式类型",
                "MiniDictTypeBomVersionType": "Bom版本类型",
                "MiniDictTypePlcBrand": "PLC品牌",
                "OutsourcingSupplierCreditGrade": "信用等级",
                "OutsourcingSupplierRange": "供货范围",
                "OutsourcingSupplierType": "委外供应商类型"
            },
            "x-enum-varnames": [
                "OutsourcingOrderStatusCreate",
                "OutsourcingOrderStatusAssigned",
                "OutsourcingOrderStatusWaitProduce",
                "OutsourcingOrderStatusMaterialApplying",
                "OutsourcingOrderStatusMaterialExamineRefused",
                "OutsourcingOrderStatusProducing",
                "OutsourcingOrderStatusFinish",
                "OutsourcingOrderStatusDeliveryFinish",
                "OutsourcingOrderStatusReceiveFinish",
                "OutsourcingOrderStatusClose"
                "MiniDictTypePlcBrand",
                "MiniDictTypeBomVersionType",
                "EarlyWarningDay",
                "InspectionWayType",
                "OutsourcingSupplierType",
                "OutsourcingSupplierCreditGrade",
                "OutsourcingSupplierRange"
            ]
        },
        "constvar.RecordStatus": {
@@ -4756,6 +4330,32 @@
                "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"
                }
            }
        },
@@ -4820,225 +4420,6 @@
                    "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"
                }
            }
@@ -5118,54 +4499,6 @@
                "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"
                    }
                }
            }
        },
@@ -6328,6 +5661,42 @@
                    "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": {