zhangqian
2024-04-07 bd33bea0f3b44e608fcb4d9aa9d1f51a2f5bcf17
docs/docs.go
@@ -5323,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": [
@@ -6974,6 +7008,66 @@
                }
            }
        },
        "/api/salesDetails/confirmOutput": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "确认发货",
                "parameters": [
                    {
                        "description": "明细编码",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$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"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/delete": {
            "delete": {
                "produces": [
@@ -7051,6 +7145,96 @@
                }
            }
        },
        "/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": [
@@ -7059,7 +7243,7 @@
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取产品库存信息",
                "summary": "获取产品发货信息",
                "parameters": [
                    {
                        "type": "string",
@@ -10619,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"
@@ -11960,8 +12150,14 @@
                "profit": {
                    "type": "string"
                },
                "specs": {
                    "type": "string"
                },
                "total": {
                    "type": "number"
                },
                "type": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
@@ -11988,6 +12184,10 @@
        "model.Quotation": {
            "type": "object",
            "properties": {
                "amountTotal": {
                    "description": "价格合计",
                    "type": "number"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
@@ -15392,6 +15592,41 @@
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "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"
                }
            }
        },
@@ -19286,6 +19521,18 @@
                        "$ref": "#/definitions/response.WorkOrderInfo"
                    }
                },
                "outsourcingInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.OutsourcingInfo"
                    }
                },
                "productInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.SalesDetailsProductInfo"
                    }
                },
                "purchaseInfo": {
                    "type": "array",
                    "items": {
@@ -19395,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": {
@@ -19435,7 +19725,18 @@
            "type": "object",
            "properties": {
                "amount": {
                    "description": "订单数量",
                    "type": "integer"
                },
                "finishAmount": {
                    "description": "完成数量",
                    "type": "integer"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "purchaseName": {
                    "type": "string"
@@ -19443,10 +19744,18 @@
                "purchaseNumber": {
                    "type": "string"
                },
                "specs": {
                    "description": "物料规格",
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "supplierName": {
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                }
            }
@@ -19576,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"
                }
            }
        },
@@ -19760,8 +20144,16 @@
        "response.WorkOrderInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "订单数量",
                    "type": "integer"
                },
                "endTime": {
                    "type": "string"
                },
                "finishAmount": {
                    "description": "完成数量",
                    "type": "integer"
                },
                "orderId": {
                    "type": "string"
@@ -19769,10 +20161,21 @@
                "orderStatus": {
                    "type": "string"
                },
                "productId": {
                    "type": "string"
                },
                "productName": {
                    "type": "string"
                },
                "specs": {
                    "description": "物料规格",
                    "type": "string"
                },
                "startTime": {
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                },
                "workOrderId": {
@@ -19782,6 +20185,20 @@
                    "type": "string"
                }
            }
        },
        "v1.GetWarehouseProductInfoReq": {
            "type": "object",
            "properties": {
                "groupByWarehouse": {
                    "type": "boolean"
                },
                "saleDetailID": {
                    "type": "integer"
                },
                "saleDetailNumber": {
                    "type": "string"
                }
            }
        }
    }
}`