From 60f24769048e3c36f8bdde0ac4649ee6f15df334 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 06 八月 2025 14:59:57 +0800
Subject: [PATCH] '项目管理多选操作'

---
 src/views/system/dept/form.vue |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/src/views/system/dept/form.vue b/src/views/system/dept/form.vue
index 98fd3eb..d189790 100644
--- a/src/views/system/dept/form.vue
+++ b/src/views/system/dept/form.vue
@@ -11,6 +11,7 @@
 const { state } = useDept();
 const props = withDefaults(defineProps<FormProps>(), {
   formInline: () => ({
+    id: "",
     projectCode: "", // 椤圭洰缂栧彿锛堝繀濉級
     projectName: "", // 椤圭洰鍚嶇О锛堝繀濉級
     hangyepinmu: null, // 琛屼笟鍝佺洰锛堝彲閫夛級
@@ -24,7 +25,7 @@
     shifoufenbao: "false", // 鏄惁鍒嗗寘锛堝彲閫夛級
     shifoutuisongxuanchuan: "true", // 鏄惁鎺ㄩ�佸浼狅紙鍙�夛級
     caigourenmingcheng: null, // 閲囪喘浜哄悕绉帮紙鍙�夛級
-    xingzhengquyu: null, // 琛屾斂鍖哄煙锛堝彲閫夛級
+    xingzhengquyu: [], // 琛屾斂鍖哄煙锛堝彲閫夛級
     xingzhengquyuName: null, // 琛屾斂鍖哄煙鍚嶇О锛堝彲閫夛級
     jigoudaima: null, // 鏈烘瀯浠g爜锛堝彲閫夛級
     daimaleixing: null, // 浠g爜绫诲瀷锛堝彲閫夛級
@@ -52,7 +53,9 @@
 function getRef() {
   return ruleFormRef.value;
 }
-
+const handleChange = value => {
+  console.log(value);
+};
 defineExpose({ getRef });
 onMounted(async () => {});
 </script>
@@ -111,7 +114,7 @@
         </el-form-item>
       </re-col>
       <re-col :value="6" :xs="24" :sm="24">
-        <el-form-item label="閲囪喘鏂瑰紡">
+        <el-form-item label="閲囪喘鏂瑰紡" prop="caigoufangshi">
           <el-select
             v-model="newFormInline.caigoufangshi"
             placeholder="璇烽�夋嫨閲囪喘鏂瑰紡"
@@ -138,15 +141,19 @@
       </re-col>
       <re-col :value="6" :xs="24" :sm="24">
         <el-form-item label="瀹氬埗瑙勫垝" prop="dingbiaoguize">
-          <el-checkbox-group
+          <!-- <el-checkbox-group
             v-model="newFormInline.dingbiaoguize"
             placeholder="璇烽�夋嫨鐘舵��"
             clearable
             class="w-[100%]!"
           >
-            <el-checkbox label="鏈�浣庝环" :value="1" />
-            <el-checkbox label="缁煎悎璇勫垎" :value="0" />
-          </el-checkbox-group>
+            <el-checkbox label="鏈�浣庝环" value="鏈�浣庝环" />
+            <el-checkbox label="缁煎悎璇勫垎" value="缁煎悎璇勫垎" />
+          </el-checkbox-group> -->
+          <el-radio-group v-model="newFormInline.dingbiaoguize">
+            <el-radio value="鏈�浣庝环">鏈�浣庝环</el-radio>
+            <el-radio value="缁煎悎璇勫垎">缁煎悎璇勫垎</el-radio>
+          </el-radio-group>
         </el-form-item>
       </re-col>
       <re-col :value="6" :xs="24" :sm="24">
@@ -226,14 +233,14 @@
             class="w-full"
             :options="state.regionList"
             :props="{
-              value: 'id',
+              value: 'code',
               label: 'name',
-              emitPath: false,
               children: 'regions'
             }"
             clearable
             filterable
             placeholder="璇烽�夋嫨鍖哄煙"
+            @change="handleChange"
           />
         </el-form-item>
       </re-col>
@@ -345,7 +352,7 @@
         </el-form-item>
       </re-col>
       <re-col :value="6" :xs="24" :sm="24">
-        <el-form-item label="鑱旂郴浜轰汉" prop="dailiLianxiren">
+        <el-form-item label="鑱旂郴浜�" prop="dailiLianxiren">
           <el-input
             v-model="newFormInline.dailiLianxiren"
             clearable

--
Gitblit v1.9.1