| | |
| | | } |
| | | }; |
| | | return { |
| | | nowCell: "1", //1为手动,2为身份证设备读取 |
| | | // 表格数据 |
| | | defaults: {}, |
| | | // 身份证设备数据 |
| | |
| | | } |
| | | const userMap = { |
| | | user: { |
| | | //是否是身份证自动识别进入 |
| | | cell: this.nowCell, |
| | | //指纹↓ |
| | | fingerprint: zhiwen.imgBMP, //图 |
| | | myPicture: zhiwen.featuredata, //特征 |
| | |
| | | } |
| | | // console.log(row); |
| | | // return; |
| | | //是否是身份证自动识别进入 |
| | | row["cell"] = this.nowCell; |
| | | update(row).then( |
| | | () => { |
| | | this.initFlag = false; |
| | |
| | | that.form.sex = data.certType; |
| | | //禁止编辑 |
| | | that.openClosegroup(true); |
| | | //赋值数据 |
| | | // that.obj = { |
| | | // name: data.partyName, |
| | | // national: data.nation, |
| | | // certAddress: data.certAddress, |
| | | // sex: |
| | | // data.certType == 0 |
| | | // ? "未知" |
| | | // : data.certType == 1 |
| | | // ? "男" |
| | | // : data.certType == 2 |
| | | // ? "女" |
| | | // : data.certType == 9 |
| | | // ? "未说明" |
| | | // : "未能识别", |
| | | // imgs: "data:image/bmp;base64," + data.identityPic, |
| | | // yxqend: |
| | | // data.expDate.slice(0, 4) + |
| | | // "-" + |
| | | // data.expDate.slice(4, 6) + |
| | | // "-" + |
| | | // data.expDate.slice(6, 8), |
| | | // yxqstart: |
| | | // data.effDate.slice(0, 4) + |
| | | // "-" + |
| | | // data.effDate.slice(4, 6) + |
| | | // "-" + |
| | | // data.effDate.slice(6, 8), |
| | | // birthday: |
| | | // data.bornDay.slice(0, 4) + |
| | | // "-" + |
| | | // data.bornDay.slice(4, 6) + |
| | | // "-" + |
| | | // data.bornDay.slice(6, 8), |
| | | // id: data.certNumber, |
| | | // qfjg: data.certOrg, |
| | | // }; |
| | | // that.$store.commit("setCardInfor", that.obj); |
| | | // that.$store.commit("setCardidState", true); |
| | | that.nowCell = "2"; |
| | | } else if (resultObj.resultFlag == "-1") { |
| | | if (resultObj.errorMsg == "端口打开失败") { |
| | | console.log("读卡器未连接"); |
| | |
| | | //可以编辑 |
| | | } |
| | | this.openClosegroup(false); |
| | | this.nowCell = "1"; |
| | | }, |
| | | beforeOpen(done, type) { |
| | | var that = this; |