| | |
| | | <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> |
| | |
| | | <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="性别"> |
| | |
| | | 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 |
| | | } |
| | | // 编辑 |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |