| | |
| | | } |
| | | |
| | | if (ok) { |
| | | //调用接口进行账户重复校验 |
| | | checkAccount(value, callback); |
| | | if(this.type==1){ |
| | | //修改不校验身份证hao |
| | | callback(); |
| | | }else{ |
| | | //调用接口进行账户重复校验 |
| | | checkAccount(value, callback); |
| | | } |
| | | |
| | | } else { |
| | | callback(new Error("身份证错误")); |
| | | } |
| | |
| | | // let optionHeight = +this.windowHeight - (+heard[0].clientHeight + +usNum); |
| | | return { |
| | | sort: "", |
| | | type:2, |
| | | sortName: "", |
| | | nowCell: "", //空为手动,2为身份证设备读取 |
| | | // 表格数据 |
| | |
| | | var that = this; |
| | | // console.log(type, 123); |
| | | this.beginSFZ(); |
| | | if (["edit"].includes(type)) { |
| | | this.type = 1; |
| | | } |
| | | if (["add"].includes(type)) { |
| | | this.type = 2; |
| | | } |
| | | if (["edit", "view"].includes(type)) { |
| | | getUser(this.form.id).then((res) => { |
| | | this.form = res.data.data; |