From 359f2f3fd0da6d69474cce87353beb54bfdbf90c Mon Sep 17 00:00:00 2001 From: lishihai <dslsh@dscom> Date: 星期四, 20 六月 2024 14:24:52 +0800 Subject: [PATCH] 概述->新建或编辑(出库/入库)信息,编辑的时候显示保存的成本单价和销售单价 --- router/router.go | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/router/router.go b/router/router.go index b759a4c..9376dd6 100644 --- a/router/router.go +++ b/router/router.go @@ -66,6 +66,17 @@ 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") @@ -124,6 +135,7 @@ productAPI.GET("getUserInfo", productController.GetUserInfo) //鑾峰彇鐧诲綍鐢ㄦ埛淇℃伅 productAPI.GET("getUnitInfo", productController.GetUnitInfo) //鑾峰彇鍗曚綅淇℃伅 productAPI.POST("saveUnitDict", productController.SaveUnitDict) //鏇存柊璁¢噺鍗曚綅瀛楀吀 + productAPI.POST("inputProduct", productController.InputProduct) //鏇存柊璁¢噺鍗曚綅瀛楀吀 } @@ -153,9 +165,15 @@ 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) //鎵嬪姩璺戞湀搴︾粺璁″簱瀛樻姤琛� } //閲嶈璐ц鍒� @@ -182,5 +200,15 @@ 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 } -- Gitblit v1.8.0