From 96844c22ef3fba86a55e0af1b51bc1009d6fa950 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期五, 20 十月 2023 11:57:48 +0800
Subject: [PATCH] 1.库存盘点bug修改

---
 router/router.go |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/router/router.go b/router/router.go
index b03a86d..1ac4c3f 100644
--- a/router/router.go
+++ b/router/router.go
@@ -102,7 +102,43 @@
 		productAPI.POST("updateProductCategory", productController.UpdateProductCategory)            //淇敼浜у搧绫诲瀷
 		productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory)      //鍒犻櫎浜у搧绫诲瀷
 
-		productAPI.POST("listOperaton", productController.ListOperation) //鏌ョ湅浜у搧鐨勫巻鍙插嚭鍏ュ簱淇℃伅
+		productAPI.POST("listOperaton", productController.ListOperation)   //鏌ョ湅浜у搧鐨勫巻鍙插嚭鍏ュ簱淇℃伅
+		productAPI.POST("addDisuse", productController.AddDisuse)          //娣诲姞鎶ュ簾淇℃伅
+		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.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)               //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃
+		locationProductAmountAPI.POST("update", locationProductAmountController.Update)           //淇敼搴撳瓨鐩樼偣淇℃伅
+		locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)           //搴旂敤銆侀獙璇佸簱瀛樼洏鐐逛俊鎭�
+		locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //鑾峰彇涓婃灦瑙勫垯
+	}
+
+	//鎶ヨ〃
+	reportFormsController := new(controllers.ReportFormsController)
+	reportFormsAPI := r.Group(urlPrefix + "/forms")
+	{
+		reportFormsAPI.POST("getInventoryForms", reportFormsController.GetInventoryForms) //鑾峰彇搴撳瓨鎶ヨ〃
+		reportFormsAPI.POST("getHistory", reportFormsController.GetHistory)               //鑾峰彇搴撳瓨鍘嗗彶
+		reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms)   //鑾峰彇浣嶇疆鎶ヨ〃
 	}
 
 	return r

--
Gitblit v1.8.0