From 2ab9e3e914b6c29a3ab34d7b73113e751e113f0f Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期五, 20 十月 2023 10:46:37 +0800
Subject: [PATCH] Merge branch 'dev' into songshankun/adjust-style

---
 src/api/warehouseManage/warehouse.js |   54 +++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 47 insertions(+), 7 deletions(-)

diff --git a/src/api/warehouseManage/warehouse.js b/src/api/warehouseManage/warehouse.js
index b68f3f9..94ce3d5 100644
--- a/src/api/warehouseManage/warehouse.js
+++ b/src/api/warehouseManage/warehouse.js
@@ -18,16 +18,16 @@
 // 鍒犻櫎浠撳簱
 export function deleteWarehouse(data) {
   return request({
-    url: "/api-wms/v1/warehouse/warehouse/"+data.id,
+    url: "/api-wms/v1/warehouse/warehouse/" + data.id,
     method: "delete",
     data
   })
 }
-// 鏇存柊浠撳簱 
+// 鏇存柊浠撳簱
 export function updateWarehouse(data) {
   return request({
-    url: "/api-wms/v1/warehouse/warehouse/"+data.id,
-    method: "put",
+    url: "/api-wms/v1/warehouse/updateWarehouse",
+    method: "post",
     data
   })
 }
@@ -48,16 +48,56 @@
 // 鍒犻櫎涓氬姟绫诲瀷
 export function deleteOperationType(data) {
   return request({
-    url: "/api-wms/v1/operationType/operationType/"+data.id,
+    url: "/api-wms/v1/operationType/operationType/" + data.id,
     method: "delete",
     data
   })
 }
-// 鏇存柊涓氬姟绫诲瀷 
+// 鏇存柊涓氬姟绫诲瀷
 export function updateOperationType(data) {
   return request({
-    url: "/api-wms/v1/operationType/operationType/"+data.id,
+    url: "/api-wms/v1/operationType/operationType/" + data.id,
     method: "put",
     data
   })
 }
+// 浣嶇疆  鍒楄〃
+export function getLocationList(data) {
+  return request({
+    url: "/api-wms/v1/location/getLocationList",
+    method: "post",
+    data
+  })
+}
+// 鍒涘缓浣嶇疆
+export function addLocation(data) {
+  return request({
+    url: "/api-wms/v1/location/addLocation",
+    method: "post",
+    data
+  })
+}
+// 鍒犻櫎浣嶇疆
+export function deleteLocation(data) {
+  return request({
+    url: "/api-wms/v1/location/deleteLocation/" + data.id,
+    method: "delete",
+    data
+  })
+}
+// 浣嶇疆 璇︽儏
+export function getLocationDetails(data) {
+  return request({
+    url: "/api-wms/v1/location/getLocationDetails/" + data.id,
+    method: "get",
+    data
+  })
+}
+// 鏇存柊浣嶇疆
+export function updateLocation(data) {
+  return request({
+    url: "/api-wms/v1/location/updateLocation",
+    method: "post",
+    data
+  })
+}

--
Gitblit v1.8.0