liujiandao
2024-04-09 6dec2342316aecf4084c8f4efb43f33fbb72892f
docs/docs.go
@@ -2116,6 +2116,36 @@
                }
            }
        },
        "/api-wms/v1/product/saveUnitDict": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "数据字典"
                ],
                "summary": "更新计量单位字典",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SaveUnitDict"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/updateDisuse": {
            "post": {
                "produces": [
@@ -2836,6 +2866,33 @@
                "MaterialModeVirtual"
            ]
        },
        "constvar.OperationSource": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4,
                5,
                6
            ],
            "x-enum-comments": {
                "OperationSourceOutsourcing": "委外入库",
                "OperationSourceOutsourcingApply": "委外领料",
                "OperationSourceProduction": "生产入库",
                "OperationSourceProductionApply": "生产领料",
                "OperationSourcePurchase": "采购入库",
                "OperationSourceSaleDelivery": "销售发货"
            },
            "x-enum-varnames": [
                "OperationSourcePurchase",
                "OperationSourceProduction",
                "OperationSourceOutsourcing",
                "OperationSourceProductionApply",
                "OperationSourceOutsourcingApply",
                "OperationSourceSaleDelivery"
            ]
        },
        "constvar.OperationStatus": {
            "type": "integer",
            "enum": [
@@ -3121,6 +3178,18 @@
                },
                "updateTime": {
                    "type": "string"
                },
                "warehouse": {
                    "description": "仓库",
                    "allOf": [
                        {
                            "$ref": "#/definitions/models.Warehouse"
                        }
                    ]
                },
                "warehouseId": {
                    "description": "仓库ID",
                    "type": "integer"
                }
            }
        },
@@ -3480,6 +3549,14 @@
                    "description": "FromLocationID    int                      ` + "`" + `json:\"fromLocationId\"   gorm:\"type:int;not null;comment:源位置id\"` + "`" + `         //源位置id\nFromLocation      Location                 ` + "`" + `json:\"fromLocation\"     gorm:\"foreignKey:FromLocationID;references:Id\"` + "`" + ` //源位置\nToLocationID      int                      ` + "`" + `json:\"toLocationId\"    gorm:\"type:int;not null;comment:目标位置id\"` + "`" + `         //目标位置id\nToLocation        Location                 ` + "`" + `json:\"toLocation\"      gorm:\"foreignKey:ToLocationID;references:Id\"` + "`" + `    //目标位置",
                    "type": "string"
                },
                "operationSource": {
                    "description": "操作来源",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.OperationSource"
                        }
                    ]
                },
                "operationTypeId": {
                    "description": "作业类型id",
                    "type": "integer"
@@ -3495,6 +3572,9 @@
                    "type": "string"
                },
                "receiverPhone": {
                    "type": "string"
                },
                "salesDetailsNumber": {
                    "type": "string"
                },
                "source": {
@@ -3725,9 +3805,6 @@
        },
        "models.Warehouse": {
            "type": "object",
            "required": [
                "code"
            ],
            "properties": {
                "active": {
                    "description": "是否启用,传true就行",
@@ -3743,9 +3820,7 @@
                },
                "code": {
                    "description": "仓库编码",
                    "type": "string",
                    "maxLength": 5,
                    "minLength": 1
                    "type": "string"
                },
                "company": {
                    "$ref": "#/definitions/models.Company"
@@ -3768,7 +3843,7 @@
                    "type": "integer"
                },
                "locationId": {
                    "description": "位置id",
                    "description": "默认位置id",
                    "type": "integer"
                },
                "name": {
@@ -4466,6 +4541,28 @@
                }
            }
        },
        "request.SaveUnitDict": {
            "type": "object",
            "properties": {
                "data": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UnitDict"
                    }
                }
            }
        },
        "request.UnitDict": {
            "type": "object",
            "properties": {
                "isDefault": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateCompany": {
            "type": "object",
            "properties": {