| | |
| | | <el-form-item label="证件号码" prop="member.idcardNo"> |
| | | <el-input v-model="form.member.idcardNo" placeholder="请输入" v-trim /> |
| | | </el-form-item> |
| | | <el-form-item label="邮箱" prop="email"> |
| | | <el-form-item label="邮箱" prop="member.email" :rules="[ |
| | | { required: false, type: 'email', message: '请输入正确的邮箱格式'} |
| | | ]"> |
| | | <el-input v-model="form.member.email" placeholder="请输入邮箱" v-trim /> |
| | | </el-form-item> |
| | | </template> |
| | |
| | | // 编辑 |
| | | this.$nextTick(() => { |
| | | if (title == '编辑客户') { |
| | | this.getClient() |
| | | this.getClient(target.id) |
| | | detailById(target.id).then(res => { |
| | | this.form = res |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | getClient() { |
| | | getClient(customerId) { |
| | | fetchList({ |
| | | capacity: 9999, |
| | | page: 1, |
| | | model: {} |
| | | model: {customerId} |
| | | }).then(res => { |
| | | this.clientList = res.records |
| | | }) |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |