| | |
| | | productAPI.POST("listDisuse", productController.ListDisuse) //查看产品的历史出入库信息 |
| | | productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //报废验证 |
| | | productAPI.POST("updateDisuse", productController.UpdateDisuse) //修改报废信息 |
| | | productAPI.POST("listHistory", productController.ListHistory) //产品位置历史记录 |
| | | |
| | | } |
| | | |
| | | // 上架规则 |
| | | locationProductController := new(controllers.LocationProductController) |
| | | locationProductAPI := r.Group(urlPrefix + "/locationProduct") |
| | | { |
| | | locationProductAPI.GET("operationType", locationProductController.List) // 获取上架规则列表 |
| | | locationProductAPI.POST("operationType", locationProductController.Add) // 新增上架规则 |
| | | locationProductAPI.PUT("operationType/:id", locationProductController.Update) // 修改上架规则 |
| | | locationProductAPI.DELETE("operationType/:id", locationProductController.Delete) // 删除上架规则 |
| | | locationProductAPI.POST("list", locationProductController.List) // 获取上架规则列表 |
| | | locationProductAPI.POST("add", locationProductController.Add) // 新增上架规则 |
| | | locationProductAPI.POST("update", locationProductController.Update) // 修改上架规则 |
| | | locationProductAPI.DELETE("delete/:id", locationProductController.Delete) // 删除上架规则 |
| | | } |
| | | |
| | | //库存盘点 |
| | | locationProductAmountController := new(controllers.LocationProductAmountController) |
| | | locationProductAmountAPI := r.Group(urlPrefix + "/locationProductAmount") |
| | | { |
| | | locationProductAmountAPI.POST("add", locationProductAmountController.Add) //添加库存盘点信息 |
| | | locationProductAmountAPI.POST("list", locationProductAmountController.List) //查看库存盘点列表 |
| | | } |
| | | |
| | | //报表 |