| | |
| | | locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList) //获取位置列表树 |
| | | } |
| | | |
| | | // 属性信息 |
| | | attributeController := new(controllers.AttributeController) |
| | | attributeAPI := r.Group(urlPrefix + "/attribute") |
| | | { |
| | | attributeAPI.POST("attribute", attributeController.Add) // 添加属性 |
| | | attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 修改属性 |
| | | attributeAPI.DELETE("delete/:id", attributeController.Delete) // 删除属性 |
| | | attributeAPI.GET("attribute", attributeController.List) // 获取属性 |
| | | //attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 获取属性 |
| | | } |
| | | |
| | | // 业务类型 |
| | | operationTypeController := new(controllers.OperationTypeController) |
| | | operationTypeAPI := r.Group(urlPrefix + "/operationType") |
| | |
| | | operationAPI.GET("getSupplierList", operationController.GetSupplierList) |
| | | operationAPI.GET("getClientList", operationController.GetClientList) |
| | | operationAPI.POST("listByCondition", operationController.ListByCondition) |
| | | operationAPI.GET("getPersonnelList", operationController.GetPersonnelList) |
| | | |
| | | } |
| | | |
| | |
| | | productAPI.GET("getUserInfo", productController.GetUserInfo) //获取登录用户信息 |
| | | productAPI.GET("getUnitInfo", productController.GetUnitInfo) //获取单位信息 |
| | | productAPI.POST("saveUnitDict", productController.SaveUnitDict) //更新计量单位字典 |
| | | productAPI.POST("inputProduct", productController.InputProduct) //更新计量单位字典 |
| | | |
| | | } |
| | | |
| | |
| | | locationProductAmountController := new(controllers.LocationProductAmountController) |
| | | locationProductAmountAPI := r.Group(urlPrefix + "/locationProductAmount") |
| | | { |
| | | locationProductAmountAPI.POST("add", locationProductAmountController.Add) //添加库存盘点信息 |
| | | locationProductAmountAPI.POST("list", locationProductAmountController.List) //查看库存盘点列表 |
| | | locationProductAmountAPI.POST("update", locationProductAmountController.Update) //修改库存盘点信息 |
| | | locationProductAmountAPI.POST("finish", locationProductAmountController.Finish) //应用、验证库存盘点信息 |
| | | locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //获取上架规则 |
| | | locationProductAmountAPI.POST("add", locationProductAmountController.Add) //添加库存盘点信息 |
| | | locationProductAmountAPI.POST("list", locationProductAmountController.List) //查看库存盘点列表 |
| | | locationProductAmountAPI.POST("update", locationProductAmountController.Update) //修改库存盘点信息 |
| | | locationProductAmountAPI.POST("finish", locationProductAmountController.Finish) //应用、验证库存盘点信息 |
| | | locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //获取上架规则 |
| | | locationProductAmountAPI.POST("getLocationProductAmount", locationProductAmountController.GetLocationProductAmount) //获取位置产品信息 |
| | | } |
| | | |
| | | //报表 |
| | | reportFormsController := new(controllers.ReportFormsController) |
| | | reportFormsAPI := r.Group(urlPrefix + "/forms") |
| | | { |
| | | reportFormsAPI.POST("getInventoryForms", reportFormsController.GetInventoryForms) //获取库存报表 |
| | | reportFormsAPI.POST("getHistory", reportFormsController.GetHistory) //获取库存历史 |
| | | reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms) //获取位置报表 |
| | | reportFormsAPI.POST("getInventoryForms", reportFormsController.GetInventoryForms) //获取库存报表 |
| | | reportFormsAPI.POST("downloadInventoryForms", reportFormsController.DownloadInventoryForms) //下载库存报表 |
| | | reportFormsAPI.POST("getHistory", reportFormsController.GetHistory) //获取库存历史 |
| | | reportFormsAPI.POST("downloadHistory", reportFormsController.DownloadHistory) //下载库存报表 |
| | | reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms) //获取位置报表 |
| | | reportFormsAPI.POST("downloadLocationForms", reportFormsController.DownloadLocationForms) //下载位置报表 |
| | | reportFormsAPI.POST("monthStats", reportFormsController.MonthStats) //获取月度统计报表 |
| | | reportFormsAPI.POST("downloadMonthStats", reportFormsController.DownloadMonthStats) //下载月度统计报表 |
| | | reportFormsAPI.POST("doMonthStats", reportFormsController.DoMonthStats) //手动跑月度统计库存报表 |
| | | } |
| | | |
| | | //重订货规则 |
| | |
| | | codeApi.POST("getAutoCode", codeApiController.GetAutoCode) //获取自动编码 |
| | | } |
| | | |
| | | attributeValueController := new(controllers.AttributeValueController) |
| | | attributeValueAPI := r.Group(urlPrefix + "/attributeValue") |
| | | { |
| | | attributeValueAPI.POST("add", attributeValueController.AddAttributeValue) |
| | | attributeValueAPI.POST("update", attributeValueController.UpdateAttributeValue) |
| | | attributeValueAPI.DELETE("delete/:id", attributeValueController.DeleteAttributeValue) //删除 |
| | | attributeValueAPI.POST("list", attributeValueController.ListAttributeValue) |
| | | attributeValueAPI.GET("primary/:id", attributeValueController.PrimaryAttributeValue) //删除 |
| | | } |
| | | |
| | | return r |
| | | } |