From a2299a6d4a6f99e9c11132138f5d3e9ec68f03ea Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 06 六月 2025 19:19:34 +0800
Subject: [PATCH] 开发更新

---
 admin/src/views/client/components/staffEdit.vue |   53 +++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 47 insertions(+), 6 deletions(-)

diff --git a/admin/src/views/client/components/staffEdit.vue b/admin/src/views/client/components/staffEdit.vue
index f74bff5..ffe8cd5 100644
--- a/admin/src/views/client/components/staffEdit.vue
+++ b/admin/src/views/client/components/staffEdit.vue
@@ -1,9 +1,9 @@
 <template>
-  <GlobalWindow :title="title" width="900px" :visible.sync="visible" :confirm-working="isWorking" @confirm="confirm">
-    <el-form :model="form" ref="form" :rules="rules">
+  <GlobalWindow :title="title" width="820px" :visible.sync="visible" :confirm-working="isWorking" @confirm="confirm">
+    <el-form :model="form" ref="form" label-position="top" :rules="rules">
       <div class="list">
         <el-form-item label="瀹㈡埛鍚嶇О" prop="customerId">
-          <el-select v-model="form.customerId" clearable filterable>
+          <el-select v-model="form.customerId" :disabled="form.id || customerId != ''" clearable filterable>
             <el-option v-for="item in clientList" :value="item.id" :label="item.name" />
           </el-select>
         </el-form-item>
@@ -32,7 +32,9 @@
         <el-form-item label="璇佷欢鍙风爜" prop="member.idcardNo">
           <el-input v-model="form.idcardNo" placeholder="璇疯緭鍏�" v-trim />
         </el-form-item>
-        <el-form-item label="閭" prop="email">
+        <el-form-item label="閭" prop="email" :rules="[
+          { required: false, type: 'email', message: '璇疯緭鍏ユ纭殑閭鏍煎紡'}
+        ]">
           <el-input v-model="form.email" placeholder="璇疯緭鍏ラ偖绠�" v-trim />
         </el-form-item>
         <el-form-item label="鎬у埆">
@@ -98,6 +100,7 @@
         idcardNo: '',
         email: '',
       },
+      customerId: '',
       clientList: [],
       // 楠岃瘉瑙勫垯
       rules: staffRules
@@ -123,12 +126,50 @@
     open(title, target) {
       this.title = title
       this.visible = true
+      this.customerId = ''
+      console.log(this.customerId);
+      console.log(this.form.id);
+      
       this.initData()
       // 鏂板缓
       if (target == null) {
         this.$nextTick(() => {
-          this.$refs.form.resetFields()
+          this.form = {
+            id: null,
+            customerId: '',
+            creator: '',
+            createDate: '',
+            editor: '',
+            editDate: '',
+            isdeleted: '',
+            birthday: '',
+            industryId: '',
+            type: '1',
+            idcardDecode: '',
+            sex: '',
+            status: '',
+            memberName: '',
+
+            lastLoginDate: '',
+            loginNum: '',
+            userId: '',
+
+            accountBank: '',
+            accountNo: '',
+            accountPhone: '',
+            creditCard: '',
+            fpType: '',
+            accountAddr: '',
+            // identityType: '0',
+            name: "",
+            phone: "",
+            highCheckor: 0,
+            idcardType: 0,
+            idcardNo: '',
+            email: '',
+          }
         })
+        // this.$refs.form.resetFields()
         return
       }
       // 缂栬緫
@@ -174,4 +215,4 @@
     }
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3