| | |
| | | import { securityApply } from "@/api/accreditationRecords/accreditationRecords"; |
| | | import { getList } from "@/api/securityGuard/securityGuard"; |
| | | import { getDeptLazyTree } from "@/api/system/dept"; |
| | | import { getInformationDetails } from "@/api/securityUnit/securityUnit"; |
| | | import { getRoleTree, getRoleDetail } from "@/api/system/role"; |
| | | import { mapGetters } from "vuex"; |
| | | import website from "@/config/website"; |
| | |
| | | } |
| | | |
| | | if (ok) { |
| | | //调用接口进行账户重复校验 |
| | | checkAccount(value, callback); |
| | | // console.log(this.nowCell,123456); |
| | | if(this.type==1 || this.nowCell==2){ |
| | | //修改不校验身份证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为身份证设备读取 |
| | | // 表格数据 |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "发证日期", |
| | | // prop: "paperTime", |
| | | // hide: true, |
| | | // type: "date", |
| | | // format: "yyyy-MM-dd", |
| | | // valueFormat: "yyyy-MM-dd", |
| | | // }, |
| | | { |
| | | label: "保安证书照片", |
| | | prop: "email", |
| | |
| | | tip: "上传jpg,png格式图片,大小不超过2M", |
| | | span: 12, |
| | | }, |
| | | // { |
| | | // label: "籍贯", |
| | | // prop: "nativeplace", |
| | | // }, |
| | | { |
| | | label: "民族", |
| | | prop: "nation", |
| | |
| | | }; |
| | | updatePaperTime(data); |
| | | }, |
| | | rowClickSelf(row) { |
| | | this.$router.push({ |
| | | path: "/securityUnitChild", |
| | | query: { fromSecunityGuardId: row }, |
| | | }); |
| | | rowClickSelf(deptId) { |
| | | var data = { |
| | | departmentid:deptId |
| | | } |
| | | getInformationDetails(data).then((res) => { |
| | | var obj = res.data.data; |
| | | var data = JSON.stringify(obj); |
| | | this.$router.push({ |
| | | path: "/securityUnitChild", |
| | | query: { data: data }, |
| | | }); |
| | | }) |
| | | }, |
| | | nodeClick(data) { |
| | | this.treeDeptId = data.id; |
| | |
| | | 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; |