From e6b7593ab3157fcc63460639ebd0e7937e7592f2 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 02 七月 2024 15:31:02 +0800
Subject: [PATCH] 新建仓库的默认位置名称为仓库名

---
 controllers/warehouse.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/warehouse.go b/controllers/warehouse.go
index f9b54c9..14d63c3 100644
--- a/controllers/warehouse.go
+++ b/controllers/warehouse.go
@@ -55,8 +55,8 @@
 	}
 	//鍒涘缓榛樿浣嶇疆
 	location := &models.Location{
-		Name:              "榛樿浣嶇疆",
-		JointName:         params.Code + "/榛樿浣嶇疆",
+		Name:              params.Name,
+		JointName:         params.Name,
 		Type:              constvar.LocationTypeInternal,
 		ReplenishLocation: true,
 		ParentId:          id,

--
Gitblit v1.8.0