From 4c3428168c42e4e126e0d576b0e15f01ade2ad9c Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 13 Jan 2026 15:21:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 uniapps/work-wx/src/subPackages/deviceRegistration/add.vue |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue b/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
index 97e8ce7..e15b689 100644
--- a/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
+++ b/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
@@ -260,12 +260,18 @@
       @confirm="onPurchaseDate"
       @cancel="showPurchaseDate = false"
     />
+    <!-- 所属区域 -->
+     <u-cascader 
+        show="show"
+        v-model="value"
+        :data="areaData"
+    ></u-cascader>
     </u-form>
 </view>
 </template>
 <script setup>
-import { aircraftInfoSaveApi,uploadFileApi } from '@/api/index'
-import { ref, computed } from 'vue'
+import { aircraftInfoSaveApi,uploadFileApi,areaDataApi } from '@/api/index'
+import { ref, computed, onMounted } from 'vue'
 import dayjs from 'dayjs'
 
 const formRef = ref(null);
@@ -445,6 +451,16 @@
         });
     });
 }
+// 获取所属单位
+const isShowRegion = ref(false)
+const areaData = ref([])
+function getAreaData() {
+    areaDataApi().then(res => {
+        if (res.data.code === 200) {
+            areaData.value = res.data.data
+        }
+    })
+}
 // 提交图片
 function afterReadImage(event) {
     // 获取上传的文件对象
@@ -526,6 +542,9 @@
         // 这里可以添加额外的失败处理逻辑
     }
 }
+onMounted(() => {
+    getAreaData()
+})
 </script>
 <style scoped lang="scss">
 .deviceRegistration {

--
Gitblit v1.9.3