|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | idcardNo: '', | 
|---|
|  |  |  | email: '', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | customerId: '', | 
|---|
|  |  |  | clientList: [], | 
|---|
|  |  |  | // 验证规则 | 
|---|
|  |  |  | rules: staffRules | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 编辑 | 
|---|