zhangqian
2024-04-07 bd33bea0f3b44e608fcb4d9aa9d1f51a2f5bcf17
docs/docs.go
@@ -4947,10 +4947,7 @@
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/product.WorkOrderInfo"
                                            }
                                            "$ref": "#/definitions/response.Info"
                                        }
                                    }
                                }
@@ -5032,6 +5029,12 @@
                        "type": "string",
                        "description": "产品编码",
                        "name": "productNumber",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "报价单编码",
                        "name": "quotationNumber",
                        "in": "query"
                    }
                ],
@@ -5320,6 +5323,40 @@
                }
            }
        },
        "/api/quotation/statistics": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Quotation"
                ],
                "summary": "报价单统计",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "integer"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/quotation/update": {
            "put": {
                "produces": [
@@ -5553,6 +5590,15 @@
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        },
                        "collectionFormat": "csv",
                        "name": "principleIds",
                        "in": "query"
                    },
                    {
@@ -6962,7 +7008,7 @@
                }
            }
        },
        "/api/salesDetails/createOperation": {
        "/api/salesDetails/confirmOutput": {
            "post": {
                "produces": [
                    "application/json"
@@ -6970,15 +7016,45 @@
                "tags": [
                    "SalesDetails"
                ],
                "summary": "创建产品出库信息",
                "summary": "确认发货",
                "parameters": [
                    {
                        "description": "查询参数",
                        "description": "明细编码",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SalesDetails"
                            "$ref": "#/definitions/request.ConfirmOutput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/confirmOutputOver": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "确认发货",
                "parameters": [
                    {
                        "description": "明细编码",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.ConfirmOutputOver"
                        }
                    }
                ],
@@ -7050,6 +7126,115 @@
                }
            }
        },
        "/api/salesDetails/getApsProjectList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取aps项目列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.Response"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/getDeliveryList": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "发货明细",
                "parameters": [
                    {
                        "description": "明细编码",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/v1.GetWarehouseProductInfoReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/getDeliveryPrepareInfo": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取产品入库信息",
                "parameters": [
                    {
                        "description": "明细编码",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/v1.GetWarehouseProductInfoReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/getDeliveryPrepareInfoByWarehouse": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取产品入库信息按仓库分组",
                "parameters": [
                    {
                        "description": "明细编码",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/v1.GetWarehouseProductInfoReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/getProductInventoryInfo/{number}": {
            "get": {
                "produces": [
@@ -7058,7 +7243,7 @@
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取产品库存信息",
                "summary": "获取产品发货信息",
                "parameters": [
                    {
                        "type": "string",
@@ -7115,6 +7300,36 @@
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/salesDetails/sendSalesDetailsToOtherSystem": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "推送销售明细信息到其他系统",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SalesDetails"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
@@ -9758,6 +9973,96 @@
                }
            }
        },
        "/api/system/getSystemSet": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "系统设置"
                ],
                "summary": "获取系统设置",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/system/saveSystemSet": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "系统设置"
                ],
                "summary": "保存系统设置",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SaveSystemSet"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/system/useSystemSet/{modeType}": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "系统设置"
                ],
                "summary": "使用系统设置",
                "parameters": [
                    {
                        "type": "string",
                        "description": "查询参数",
                        "name": "modeType",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/timeSpent/add": {
            "post": {
                "produces": [
@@ -10498,16 +10803,22 @@
                1,
                2,
                3,
                4
                4,
                5,
                6
            ],
            "x-enum-comments": {
                "InStock": "备货中",
                "OverCLose": "已关闭",
                "OverOutbound": "出库完成",
                "WaitConfirmed": "待确认",
                "WaitDecompose": "待分解",
                "WaitOutbound": "待出库"
            },
            "x-enum-varnames": [
                "WaitConfirmed",
                "WaitDecompose",
                "InStock",
                "WaitOutbound",
                "OverOutbound",
                "OverCLose"
@@ -11815,11 +12126,17 @@
                "amount": {
                    "type": "number"
                },
                "cost": {
                    "type": "string"
                },
                "desc": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "margin": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
@@ -11830,8 +12147,20 @@
                "price": {
                    "type": "number"
                },
                "profit": {
                    "type": "string"
                },
                "specs": {
                    "type": "string"
                },
                "total": {
                    "type": "number"
                },
                "type": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
@@ -11855,6 +12184,10 @@
        "model.Quotation": {
            "type": "object",
            "properties": {
                "amountTotal": {
                    "description": "价格合计",
                    "type": "number"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
@@ -12365,6 +12698,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotation": {
                    "$ref": "#/definitions/model.Quotation"
@@ -13301,6 +13637,23 @@
                }
            }
        },
        "model.SystemSet": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "modeType": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            }
        },
        "model.TimeSpent": {
            "type": "object",
            "properties": {
@@ -13362,6 +13715,10 @@
                    "type": "string"
                },
                "realName": {
                    "type": "string"
                },
                "subUserIds": {
                    "description": "下属员工用户id,用逗号分开",
                    "type": "string"
                },
                "userType": {
@@ -13436,32 +13793,6 @@
                    "type": "string"
                },
                "Unit": {
                    "type": "string"
                }
            }
        },
        "product.WorkOrderInfo": {
            "type": "object",
            "properties": {
                "EndTime": {
                    "type": "string"
                },
                "OrderId": {
                    "type": "string"
                },
                "OrderStatus": {
                    "type": "string"
                },
                "ProductName": {
                    "type": "string"
                },
                "StartTime": {
                    "type": "string"
                },
                "WorkOrderId": {
                    "type": "string"
                },
                "WorkOrderStatus": {
                    "type": "string"
                }
            }
@@ -14497,11 +14828,17 @@
        "request.AddSalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
@@ -14543,6 +14880,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
@@ -15255,6 +15595,41 @@
                }
            }
        },
        "request.ConfirmOutput": {
            "type": "object",
            "properties": {
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.ConfirmOutputProducts"
                    }
                },
                "saleDetailNumber": {
                    "type": "string"
                }
            }
        },
        "request.ConfirmOutputOver": {
            "type": "object",
            "properties": {
                "saleDetailNumber": {
                    "type": "string"
                }
            }
        },
        "request.ConfirmOutputProducts": {
            "type": "object",
            "properties": {
                "number": {
                    "description": "产品编号",
                    "type": "string"
                },
                "outputAmount": {
                    "description": "本次发货数量",
                    "type": "number"
                }
            }
        },
        "request.Contact": {
            "type": "object",
            "properties": {
@@ -15582,6 +15957,9 @@
        "request.GetContractList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -15647,6 +16025,12 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "principalIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "sourceId": {
                    "type": "integer"
@@ -16066,11 +16450,17 @@
        "request.SalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
@@ -16112,6 +16502,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
@@ -16245,6 +16638,17 @@
                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
                        }
                    ]
                }
            }
        },
        "request.SaveSystemSet": {
            "type": "object",
            "properties": {
                "sets": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SystemSet"
                    }
                }
            }
        },
@@ -19108,6 +19512,35 @@
                }
            }
        },
        "response.Info": {
            "type": "object",
            "properties": {
                "makeInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.WorkOrderInfo"
                    }
                },
                "outsourcingInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.OutsourcingInfo"
                    }
                },
                "productInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.SalesDetailsProductInfo"
                    }
                },
                "purchaseInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.Purchase"
                    }
                }
            }
        },
        "response.IsInvoiceResponse": {
            "type": "object",
            "properties": {
@@ -19209,6 +19642,49 @@
                }
            }
        },
        "response.OutsourcingInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "订单数量",
                    "type": "integer"
                },
                "endTime": {
                    "type": "string"
                },
                "finishAmount": {
                    "description": "完成数量",
                    "type": "integer"
                },
                "outsourcingId": {
                    "description": "委外订单id",
                    "type": "string"
                },
                "outsourcingStatus": {
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "specs": {
                    "description": "物料规格",
                    "type": "string"
                },
                "startTime": {
                    "type": "string"
                },
                "supplierName": {
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                }
            }
        },
        "response.PlanResponse": {
            "type": "object",
            "properties": {
@@ -19242,6 +19718,45 @@
                    "items": {
                        "$ref": "#/definitions/model.Province"
                    }
                }
            }
        },
        "response.Purchase": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "订单数量",
                    "type": "integer"
                },
                "finishAmount": {
                    "description": "完成数量",
                    "type": "integer"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "purchaseName": {
                    "type": "string"
                },
                "purchaseNumber": {
                    "type": "string"
                },
                "specs": {
                    "description": "物料规格",
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "supplierName": {
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                }
            }
        },
@@ -19325,6 +19840,18 @@
                }
            }
        },
        "response.Response": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "response.SaleChanceResponse": {
            "type": "object",
            "properties": {
@@ -19358,6 +19885,81 @@
                    "items": {
                        "$ref": "#/definitions/model.SaleType"
                    }
                }
            }
        },
        "response.SalesDetailsProductInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "订单数量",
                    "type": "number"
                },
                "cost": {
                    "description": "产品成本",
                    "type": "string"
                },
                "deliveryAmount": {
                    "description": "发货数量",
                    "type": "integer"
                },
                "finishAmount": {
                    "description": "完成数量",
                    "type": "integer"
                },
                "makeAmount": {
                    "description": "制造数量",
                    "type": "integer"
                },
                "makeFinishAmount": {
                    "description": "制造完成数量",
                    "type": "integer"
                },
                "margin": {
                    "description": "毛利率",
                    "type": "string"
                },
                "outsourcingAmount": {
                    "description": "委外数量",
                    "type": "integer"
                },
                "outsourcingFinishAmount": {
                    "description": "委外完成数量",
                    "type": "integer"
                },
                "price": {
                    "description": "产品价格",
                    "type": "number"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "profit": {
                    "description": "毛利",
                    "type": "string"
                },
                "purchaseAmount": {
                    "description": "采购数量",
                    "type": "integer"
                },
                "purchaseFinishAmount": {
                    "description": "采购完成数量",
                    "type": "integer"
                },
                "specs": {
                    "description": "物料规格",
                    "type": "string"
                },
                "total": {
                    "description": "产品总价",
                    "type": "number"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                }
            }
        },
@@ -19538,6 +20140,65 @@
                    }
                }
            }
        },
        "response.WorkOrderInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "订单数量",
                    "type": "integer"
                },
                "endTime": {
                    "type": "string"
                },
                "finishAmount": {
                    "description": "完成数量",
                    "type": "integer"
                },
                "orderId": {
                    "type": "string"
                },
                "orderStatus": {
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "specs": {
                    "description": "物料规格",
                    "type": "string"
                },
                "startTime": {
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                },
                "workOrderId": {
                    "type": "string"
                },
                "workOrderStatus": {
                    "type": "string"
                }
            }
        },
        "v1.GetWarehouseProductInfoReq": {
            "type": "object",
            "properties": {
                "groupByWarehouse": {
                    "type": "boolean"
                },
                "saleDetailID": {
                    "type": "integer"
                },
                "saleDetailNumber": {
                    "type": "string"
                }
            }
        }
    }
}`