From 9d28c1fd6d86efb09c2d776336d2c07c45461b0c Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 07 Jan 2022 11:43:34 +0800
Subject: [PATCH] 主要管理人员,保安员编辑bug 修复
---
src/views/securityGuard/securityGuard.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index 1397dd2..cf22a33 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -584,8 +584,14 @@
}
if (ok) {
- //调用接口进行账户重复校验
- checkAccount(value, callback);
+ if(this.type==1){
+ //修改不校验身份证hao
+ callback();
+ }else{
+ //调用接口进行账户重复校验
+ checkAccount(value, callback);
+ }
+
} else {
callback(new Error("身份证错误"));
}
@@ -644,6 +650,7 @@
// let optionHeight = +this.windowHeight - (+heard[0].clientHeight + +usNum);
return {
sort: "",
+ type:2,
sortName: "",
nowCell: "", //空为手动,2为身份证设备读取
// 表格数据
@@ -2532,6 +2539,12 @@
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;
--
Gitblit v1.9.3