| | |
| | | >个人照片批量上传 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | | v-if="permission.securityGuard_security_apply" |
| | | icon="el-icon-s-promotion" |
| | | @click="handleSecurityApply" |
| | | >制证申请 |
| | | </el-button> |
| | | |
| | | <el-button |
| | | type="danger" |
| | | style="display: none" |
| | | size="small" |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { |
| | | getUser, |
| | |
| | | getUserPractitionersInfo, |
| | | saveOrUpdateUserPractitionersInfo, |
| | | } from "@/api/system/user"; |
| | | import {securityApply} from '@/api/accreditationRecords/accreditationRecords' |
| | | import { getList } from "@/api/securityGuard/securityGuard"; |
| | | import { getDeptLazyTree } from "@/api/system/dept"; |
| | | import { getRoleTree, getRoleDetail } from "@/api/system/role"; |
| | |
| | | } |
| | | }; |
| | | const validatePassPhone = (rule, value, callback) => { |
| | | var test = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; |
| | | var test = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9]|19[0-9])\d{8}$/g; |
| | | if (!test.test(value)) { |
| | | callback(new Error("请输入正确手机号码")); |
| | | } else { |
| | |
| | | children: "children", |
| | | }, |
| | | }, |
| | | choiceList: [], |
| | | option: { |
| | | height: "auto", |
| | | calcHeight: 80, |
| | | tip: false, |
| | | tip: true, |
| | | searchShow: true, |
| | | |
| | | reserveSelection:true, |
| | | selectable: (row) => { |
| | | if (row.hold!=="1") { |
| | | return false; |
| | | } else { |
| | | return true; |
| | | } |
| | | }, |
| | | indexWidth: 55, |
| | | searchMenuSpan: 6, |
| | | stripe: true, |
| | |
| | | prop: "securitynumber", |
| | | hide: true, |
| | | }, |
| | | // { |
| | | // label: "发证日期", |
| | | // prop: "paperTime", |
| | | // hide: true, |
| | | // type: "date", |
| | | // format: "yyyy-MM-dd", |
| | | // valueFormat: "yyyy-MM-dd", |
| | | // }, |
| | | { |
| | | label: "电子邮箱", |
| | | prop: "email", |
| | |
| | | }, |
| | | { |
| | | label: "联系地址", |
| | | prop: "address", |
| | | prop: "address" |
| | | }, |
| | | { |
| | | label: "户口所在地", |
| | | label: "住址", |
| | | prop: "registered", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入住址", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | |
| | | this.onLoad(this.page); |
| | | }); |
| | | }, |
| | | //制证申请 |
| | | handleSecurityApply(){ |
| | | if (this.choiceList.length === 0) { |
| | | this.$message.warning("请勾选至少一位持证保安员"); |
| | | return; |
| | | } |
| | | this.$confirm("共选择制证申请人数"+this.choiceList.length+"人,确定申请制证?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | let cho = this.choiceList; |
| | | console.log(this.choiceList,14521); |
| | | let str = ""; |
| | | for (let k in cho) { |
| | | str += cho[k].id; |
| | | if (k != cho.length - 1) { |
| | | str += ","; |
| | | } |
| | | } |
| | | console.log(str,1132); |
| | | const data = { |
| | | ids:str, |
| | | createUser:this.userInfo.user_id |
| | | } |
| | | return securityApply(data); |
| | | }) |
| | | .then(() => { |
| | | // this.$refs.crud.toggleSelection(); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | if (row.deptId) { |
| | | row.deptId = row.deptId; |
| | |
| | | done(); |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | // this.selectionList = list; |
| | | this.choiceList = []; |
| | | for (let k in list) { |
| | | this.choiceList.push({ |
| | | id: list[k].id, |
| | | }); |
| | | } |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | | this.$refs.crud.toggleSelection(); |
| | | // this.selectionList = []; |
| | | // this.$refs.crud.toggleSelection(); |
| | | }, |
| | | handleDelete() { |
| | | if (this.selectionList.length === 0) { |
| | |
| | | ColumnDeptUpdate.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | that.userInfo.jurisdiction; |
| | | } else { |
| | | } else if (roleAlias == "培训公司管理员") { |
| | | //如果是保安公司管理员 |
| | | params["trainingUnitId"] = that.userInfo.dept_id; |
| | | var columnDept2 = that.findObject(that.option.column, "deptId"); |
| | | columnDept2.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | | var ColumnDeptUpdate2 = that.findObject( |
| | | that.option.group, |
| | | "deptId" |
| | | ); |
| | | ColumnDeptUpdate2.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | | }else { |
| | | var columnDept1 = that.findObject(that.option.column, "deptId"); |
| | | columnDept1.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | height: 800px; |
| | |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |