zhangqian
2024-05-06 8d3f2400195b0ae746e51ed4871e2b0ab621c928
docs/docs.go
@@ -416,6 +416,58 @@
                }
            }
        },
        "/api-wms/v1/forms/doMonthStats": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报表"
                ],
                "summary": "手动跑月度统计库存报表",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DoMonthStats"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.MonthStats"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/forms/getHistory": {
            "post": {
                "produces": [
@@ -541,6 +593,58 @@
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/response.LocationForms"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/forms/monthStats": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报表"
                ],
                "summary": "月度统计库存报表",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetMonthStats"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.MonthStats"
                                            }
                                        }
                                    }
@@ -1039,7 +1143,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.PageInfo"
                            "$ref": "#/definitions/request.GetList"
                        }
                    }
                ],
@@ -1215,6 +1319,51 @@
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/getPersonnelList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "获取人员列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.OperationCondition"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/inventory_order.WorkerInfo"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -3067,6 +3216,17 @@
                "ReservationNever"
            ]
        },
        "inventory_order.WorkerInfo": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "models.Attachment": {
            "type": "object",
            "properties": {
@@ -3384,6 +3544,12 @@
                    "description": "客户前置时间(天)",
                    "type": "number"
                },
                "grossUnit": {
                    "type": "string"
                },
                "grossWeight": {
                    "type": "number"
                },
                "id": {
                    "type": "string"
                },
@@ -3458,9 +3624,24 @@
                        }
                    ]
                },
                "moreUnit": {
                    "type": "boolean"
                },
                "moreUnitList": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "name": {
                    "description": "物料名称",
                    "type": "string"
                },
                "netUnit": {
                    "type": "string"
                },
                "netWeight": {
                    "type": "number"
                },
                "note": {
                    "type": "string"
@@ -3563,9 +3744,93 @@
                }
            }
        },
        "models.MonthStats": {
            "type": "object",
            "properties": {
                "MoreUnitsArr": {
                    "description": "期末其他单位数组",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "amount": {
                    "description": "期末结余数量",
                    "type": "number"
                },
                "beginAmount": {
                    "description": "期初数量",
                    "type": "number"
                },
                "beginMoreUnitsArr": {
                    "description": "期初其他单位数组",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "createTime": {
                    "type": "string"
                },
                "date": {
                    "description": "日期 2024-04",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "inputAmount": {
                    "description": "入库数量",
                    "type": "number"
                },
                "inputMoreUnitsArr": {
                    "description": "入库其他单位数组",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "outputAmount": {
                    "description": "出库数量",
                    "type": "number"
                },
                "outputMoreUnitsArr": {
                    "description": "出库其他单位数组",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                },
                "weight": {
                    "description": "重量",
                    "type": "number"
                }
            }
        },
        "models.Operation": {
            "type": "object",
            "properties": {
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "auditDate": {
                    "type": "string"
                },
@@ -3581,7 +3846,7 @@
                    "type": "string"
                },
                "companyID": {
                    "type": "integer"
                    "type": "string"
                },
                "companyName": {
                    "type": "string"
@@ -3593,6 +3858,12 @@
                    "type": "string"
                },
                "createTime": {
                    "type": "string"
                },
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
@@ -3625,6 +3896,12 @@
                "logisticWeight": {
                    "description": "物流重量",
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
                    "description": "单号",
@@ -3709,6 +3986,12 @@
                    "description": "ProductName string          ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:产品名称\"` + "`" + ` //产品名称",
                    "type": "number"
                },
                "auxiliaryAmount": {
                    "type": "number"
                },
                "auxiliaryUnit": {
                    "type": "string"
                },
                "createTime": {
                    "type": "string"
                },
@@ -3754,6 +4037,12 @@
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                },
                "totalGrossWeight": {
                    "type": "number"
                },
                "totalNetWeight": {
                    "type": "number"
                },
                "updateTime": {
                    "type": "string"
@@ -3884,6 +4173,20 @@
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "models.UnitItems": {
            "type": "object",
            "properties": {
                "amount": {
                    "type": "number"
                },
                "floating": {
                    "type": "boolean"
                },
                "unit": {
                    "type": "string"
                }
            }
@@ -4053,13 +4356,19 @@
        "request.AddOperation": {
            "type": "object",
            "properties": {
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "comment": {
                    "description": "备注",
                    "type": "string"
                },
                "companyID": {
                    "description": "公司ID-客户",
                    "type": "integer"
                    "type": "string"
                },
                "companyName": {
                    "description": "公司名称-客户名称",
@@ -4071,6 +4380,12 @@
                },
                "contacterName": {
                    "description": "联系人姓名-非必填",
                    "type": "string"
                },
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
@@ -4092,6 +4407,12 @@
                "logisticWeight": {
                    "description": "物流重量",
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
                    "description": "单号",
@@ -4277,6 +4598,14 @@
                }
            }
        },
        "request.DoMonthStats": {
            "type": "object",
            "properties": {
                "token": {
                    "type": "string"
                }
            }
        },
        "request.FinishLocationProductAmount": {
            "type": "object",
            "properties": {
@@ -4370,6 +4699,22 @@
                }
            }
        },
        "request.GetList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetLocationForms": {
            "type": "object",
            "properties": {
@@ -4418,6 +4763,25 @@
                    "type": "integer"
                },
                "type": {
                    "type": "integer"
                }
            }
        },
        "request.GetMonthStats": {
            "type": "object",
            "properties": {
                "date": {
                    "type": "string"
                },
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
@@ -4526,6 +4890,14 @@
                    "description": "ProductName string          ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:产品名称\"` + "`" + ` //产品名称",
                    "type": "number"
                },
                "auxiliaryAmount": {
                    "description": "辅助数量",
                    "type": "number"
                },
                "auxiliaryUnit": {
                    "description": "辅助单位",
                    "type": "string"
                },
                "fromLocationId": {
                    "description": "Unit        string          ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:单位\"` + "`" + `                    //单位\nProduct models.Material ` + "`" + `json:\"product\" gorm:\"foreignKey:ProductId;references:ID\"` + "`" + `",
                    "type": "integer"
@@ -4537,6 +4909,14 @@
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                },
                "totalGrossWeight": {
                    "description": "总毛重",
                    "type": "number"
                },
                "totalNetWeight": {
                    "description": "总净重",
                    "type": "number"
                }
            }
        },
@@ -4787,6 +5167,12 @@
        "request.UpdateOperation": {
            "type": "object",
            "properties": {
                "accountant": {
                    "type": "string"
                },
                "accountantId": {
                    "type": "string"
                },
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
@@ -4801,7 +5187,7 @@
                },
                "companyID": {
                    "description": "公司ID-客户",
                    "type": "integer"
                    "type": "string"
                },
                "companyName": {
                    "description": "公司名称-客户名称",
@@ -4813,6 +5199,12 @@
                },
                "contacterName": {
                    "description": "联系人姓名-非必填",
                    "type": "string"
                },
                "custodian": {
                    "type": "string"
                },
                "custodianId": {
                    "type": "string"
                },
                "details": {
@@ -4835,6 +5227,12 @@
                    "description": "物流重量",
                    "type": "number"
                },
                "manager": {
                    "type": "string"
                },
                "managerId": {
                    "type": "string"
                },
                "number": {
                    "description": "单号",
                    "type": "string"