From f72fb9ca31fbf27b4abbc0156e60ea162f58df81 Mon Sep 17 00:00:00 2001
From: dsmzx <dsmzx@123.com>
Date: 星期四, 13 六月 2024 15:30:50 +0800
Subject: [PATCH] 出入库调拨产品明细增加备注字段(同步产品的备注字段)

---
 router/router.go |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/router/router.go b/router/router.go
index 3e6ce21..b3ab526 100644
--- a/router/router.go
+++ b/router/router.go
@@ -21,6 +21,7 @@
 
 	urlPrefix := "/api-wms/v1"
 	r.Use(middleware.JWTAuth())
+	r.Use(middleware.VerifyResetPwd())
 
 	// 缁勭粐绠$悊
 	departmentController := new(controllers.DepartmentController)
@@ -93,6 +94,7 @@
 		operationAPI.GET("getSupplierList", operationController.GetSupplierList)
 		operationAPI.GET("getClientList", operationController.GetClientList)
 		operationAPI.POST("listByCondition", operationController.ListByCondition)
+		operationAPI.GET("getPersonnelList", operationController.GetPersonnelList)
 
 	}
 
@@ -120,6 +122,8 @@
 		productAPI.POST("listHistory", productController.ListHistory)      //浜у搧浣嶇疆鍘嗗彶璁板綍
 		productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //鍙栨秷鎶ュ簾
 		productAPI.GET("getUserInfo", productController.GetUserInfo)       //鑾峰彇鐧诲綍鐢ㄦ埛淇℃伅
+		productAPI.GET("getUnitInfo", productController.GetUnitInfo)       //鑾峰彇鍗曚綅淇℃伅
+		productAPI.POST("saveUnitDict", productController.SaveUnitDict)    //鏇存柊璁¢噺鍗曚綅瀛楀吀
 
 	}
 
@@ -137,20 +141,27 @@
 	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)                     //鎵嬪姩璺戞湀搴︾粺璁″簱瀛樻姤琛�
 	}
 
 	//閲嶈璐ц鍒�

--
Gitblit v1.8.0