From 64bb645bbe1a4c2b6699e46f1ef700ed1cd5fef3 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Mon, 23 Jun 2025 17:54:42 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=EF=BC=8C?=
 =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3=E4=BF=AE?=
 =?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/api/kitchen/devices.js                    |  71 ++++-
 .../devicesManage/deviesInfo/index.vue        |  26 +-
 .../devicesManage/deviesPlace/index.vue       | 298 ++++++++++++++++++
 src/views/kitchen/staffManage/staff/index.vue |  10 +-
 4 files changed, 392 insertions(+), 13 deletions(-)
 create mode 100644 src/views/kitchen/devicesManage/deviesPlace/index.vue
diff --git a/src/api/kitchen/devices.js b/src/api/kitchen/devices.js
index eff06044..187276f4 100644
--- a/src/api/kitchen/devices.js
+++ b/src/api/kitchen/devices.js
@@ -76,4 +76,73 @@ export function getKitchenDeviceUsageApi(data) {
         },
         params: data
     })
-}
\ No newline at end of file
+}
+
+
+
+// 查询设备位置列表
+export function getKitchenSubPlaceListApi(data) {
+    return request({
+        url: '/smart-canteen/kitchen_sub_place/list',
+        method: 'get',
+        headers: {
+            "merchant-id":"378915229716713472",
+        },
+        params: data
+    })
+}
+
+
+// 查询设备位置列表-全量
+export function getKitchenSubPlaceListAllApi(data) {
+    return request({
+        url: '/smart-canteen/kitchen_sub_place/listAll',
+        method: 'get',
+        headers: {
+            "merchant-id":"378915229716713472",
+        },
+        params: data
+    })
+}
+ 
+// 设备新增位置
+export function addKitchenSubPlaceApi(data) {
+    return request({
+        url: '/smart-canteen/kitchen_sub_place',
+        method: 'post',
+        headers: {
+            "merchant-id":"378915229716713472",
+        },
+        data: data
+    })
+}
+
+// 修改设备位置
+export function editKitchenSubPlaceApi(data) {
+    return request({
+        url: '/smart-canteen/kitchen_sub_place/edit',
+        method: 'post',
+        headers: {
+            "merchant-id":"378915229716713472",
+        },
+        data: data
+    })
+} 
+
+// 删除设备位置
+export function delKitchenSubPlaceApi(Id) {
+    return request({
+        url: '/smart-canteen/kitchen_sub_place/del/'+Id,
+        method: 'post',
+        headers: {
+            "merchant-id":"378915229716713472",
+        }
+    })
+} 
+
+
+
+
+
+
+
diff --git a/src/views/kitchen/devicesManage/deviesInfo/index.vue b/src/views/kitchen/devicesManage/deviesInfo/index.vue
index d1fa777e..fc9e1a32 100644
--- a/src/views/kitchen/devicesManage/deviesInfo/index.vue
+++ b/src/views/kitchen/devicesManage/deviesInfo/index.vue
@@ -51,7 +51,7 @@
       
       
         
-        
+        
       
          
           
             
             
-                
-                    
+                
+                    
+                        
+                    
                 
              
             
@@ -146,7 +150,7 @@
 
 
 
diff --git a/src/views/kitchen/staffManage/staff/index.vue b/src/views/kitchen/staffManage/staff/index.vue
index 25423502..9e44f0a5 100644
--- a/src/views/kitchen/staffManage/staff/index.vue
+++ b/src/views/kitchen/staffManage/staff/index.vue
@@ -21,10 +21,10 @@
         
         
              
-                
-                  
-                  
-                  
+                
+                  
+                  
+                  
                
         
       
@@ -661,7 +661,7 @@ export default {
             this.accessAuthorityList[index2].deviceName = this.devicesOptions[index].deviceName;
             this.accessAuthorityList[index2].deviceType = this.devicesOptions[index].deviceType;
             this.accessAuthorityList[index2].privilegeValue = 1;
-            this.accessAuthorityList[index2].location = this.devicesOptions[index].subPlace;
+            this.accessAuthorityList[index2].location = this.devicesOptions[index].subPlaceName;
             this.loading2=true
             this.setDisabled()
             this.loading2=false