| | |
| | | <template> |
| | | <basic-container class="desk1"> |
| | | <basic-container |
| | | :class="[ |
| | | 'desk1', |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '' |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <template slot-scope="{ row }" slot="auditStatus"> |
| | | <el-tag class="dtype"> |
| | | {{ |
| | | row.auditStatus == 1 |
| | | ? "待审核" |
| | | : row.auditStatus == 2 |
| | | ? "审核通过" |
| | | : "审核不通过" |
| | | }} |
| | | <i class="zc" v-if="row.auditStatus == 2"></i> |
| | | <i class="yj" v-if="row.auditStatus == 3"></i> |
| | | <i class="gz" v-if="row.auditStatus == 1"></i> |
| | | </el-tag> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | style="display:none" |
| | | style="display: none" |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | v-if="permission.accreditationRecords_paper_export" |
| | | v-if="permission.accreditationRecords_paper_export || check" |
| | | @click="handleExport" |
| | | >制证信息导出 |
| | | >制证申请信息导出 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | | v-if="permission.accreditationRecords_batch_audit || check" |
| | | icon="el-icon-collection-tag" |
| | | @click="handleSecurityAudit" |
| | | >批量审批 |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | v-if="permission.accreditationRecords_paper_exports || check" |
| | | @click="handleExportPaper" |
| | | >证书打印信息导出 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | | v-if="permission.accreditationRecords_batch_audit || check" |
| | | icon="el-icon-collection-tag" |
| | | @click="handleSecurityAudit" |
| | | >批量审批 |
| | | </el-button> |
| | | <!--图例 components--> |
| | | <span> |
| | | <Legend :datas="datalistLIU"></Legend> |
| | | </span> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="category"> |
| | | <el-tag>{{ row.categoryName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="userType"> |
| | | {{ |
| | | row.userType == 6 ? "已制证" : row.userType == 7 ? "未制证" : "" |
| | | }} |
| | | </template> |
| | | <!-- <template slot-scope="{ row }" slot="userType"> |
| | | {{ row.userType == 6 ? "已制证" : row.userType == 7 ? "未制证" : "" }} |
| | | </template> --> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | style="display: none" |
| | |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="证书申请审核" |
| | | :visible.sync="dialogFormVisible" |
| | | modal-append-to-body="false" |
| | | append-to-body="true" |
| | | :close-on-click-model="true" |
| | | > |
| | | <avue-form |
| | | ref="formAudit" |
| | | v-model="Audit" |
| | | :option="optionAudit" |
| | | @reset-change="emptytChange" |
| | | @submit="submit" |
| | | ></avue-form> |
| | | title="证书申请审核" |
| | | :visible.sync="dialogFormVisible" |
| | | modal-append-to-body="false" |
| | | append-to-body="true" |
| | | :close-on-click-model="true" |
| | | > |
| | | <avue-form |
| | | ref="formAudit" |
| | | v-model="Audit" |
| | | :option="optionAudit" |
| | | @reset-change="emptytChange" |
| | | @submit="submit" |
| | | ></avue-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="批量审批" |
| | |
| | | @submit="submitBatchAudit" |
| | | ></avue-form> |
| | | </el-dialog> |
| | | <div style="position: fixed; top: 9999px; width: 100%; height: 100%"> |
| | | <div class="certificate_box" id="certificateDom"> |
| | | <div class="security_main" ref="certificateBox"> |
| | | <div class="security_m_l_titleName widt"> |
| | | {{ certificateObj.realName }} |
| | | </div> |
| | | <div class="security_m_r_o_jg widt">南昌市公安局</div> |
| | | <div class="security_m_l_titlepaperTimenian widt"> |
| | | {{ certificateYear }} |
| | | </div> |
| | | <div class="security_m_l_titlepaperTimeyue widt"> |
| | | {{ certificateMonth }} |
| | | </div> |
| | | <div class="security_m_l_downsecuritynumber widt"> |
| | | {{ certificateObj.securityNumber }} |
| | | </div> |
| | | <div class="security_m_r_o_right widt"> |
| | | {{ certificateObj.realName }} |
| | | </div> |
| | | <div class="security_m_r_o_rightbirthday widt"> |
| | | {{ |
| | | certificateObj.idCardNo |
| | | ? certificateObj.idCardNo.slice(6, 10) + |
| | | "." + |
| | | certificateObj.idCardNo.slice(10, 12) + |
| | | "." + |
| | | certificateObj.idCardNo.slice(12, 14) |
| | | : "" |
| | | }} |
| | | </div> |
| | | <div class="security_m_r_o_rightaddress security_m_r_o_l_r widt"> |
| | | {{ certificateObj.registered }} |
| | | </div> |
| | | <div class="security_m_r_o_rightcardid"> |
| | | {{ certificateObj.idCardNo }} |
| | | </div> |
| | | </div> |
| | | <div style="position: fixed; top: 9999px; width: 100%; height: 100%"> |
| | | <div class="certificate_box" id="certificateDom"> |
| | | <div class="security_main" ref="certificateBox"> |
| | | <div class="security_m_l_titleName widt"> |
| | | {{ certificateObj.realName }} |
| | | </div> |
| | | <div class="security_m_r_o_jg widt">南昌市公安局</div> |
| | | <div class="security_m_l_titlepaperTimenian widt"> |
| | | {{ certificateYear }} |
| | | </div> |
| | | <div class="security_m_l_titlepaperTimeyue widt"> |
| | | {{ certificateMonth }} |
| | | </div> |
| | | <div class="security_m_l_downsecuritynumber widt"> |
| | | {{ certificateObj.securityNumber }} |
| | | </div> |
| | | <div class="security_m_r_o_right widt"> |
| | | {{ certificateObj.realName }} |
| | | </div> |
| | | <div class="security_m_r_o_rightbirthday widt"> |
| | | {{ |
| | | certificateObj.idCardNo |
| | | ? certificateObj.idCardNo.slice(6, 10) + |
| | | "." + |
| | | certificateObj.idCardNo.slice(10, 12) + |
| | | "." + |
| | | certificateObj.idCardNo.slice(12, 14) |
| | | : "" |
| | | }} |
| | | </div> |
| | | <div class="security_m_r_o_rightaddress security_m_r_o_l_r widt"> |
| | | {{ certificateObj.registered }} |
| | | </div> |
| | | <div class="security_m_r_o_rightcardid"> |
| | | {{ certificateObj.idCardNo }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | import { mapGetters } from "vuex"; |
| | | import { mapState } from "vuex"; |
| | | import Qs from "qs"; |
| | | import website from "@/config/website"; |
| | | import { getToken } from "@/util/auth"; |
| | | import Legend from "@/components/liu-legend/Legend"; |
| | | export default { |
| | | components: { |
| | | Legend |
| | | }, |
| | | data() { |
| | | return { |
| | | check:false, |
| | | check: false, |
| | | certificateYear: null, |
| | | certificateMonth: null, |
| | | certificateFlag: false, |
| | |
| | | realName: "", |
| | | securityNumber: "", |
| | | idCardNo: "", |
| | | registered: "", |
| | | registered: "" |
| | | }, |
| | | datalistLIU: [ |
| | | { |
| | | color: "#29C093", |
| | | text: "审核通过" |
| | | }, |
| | | { |
| | | color: "#F34A4A", |
| | | text: "审核不通过" |
| | | }, |
| | | { |
| | | color: "#F48F57", |
| | | text: "待审核" |
| | | } |
| | | ], |
| | | Audit: {}, |
| | | dialogFormVisible: false, |
| | | dialogBatchAudit:false, |
| | | dialogBatchAudit: false, |
| | | optionAudit: { |
| | | height: "auto", |
| | | calcHeight: 30, |
| | |
| | | excelBtn: false, |
| | | menuWidth: 230, |
| | | dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "审核状态", |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择审核类型", |
| | | trigger: "blur", |
| | | }, |
| | | trigger: "blur" |
| | | } |
| | | ], |
| | | dicData: [ |
| | | { |
| | | label: "待审核", |
| | | value: 1, |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "审核不通过", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | value: 3 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "auditDetail", |
| | | }, |
| | | ], |
| | | prop: "auditDetail" |
| | | } |
| | | ] |
| | | }, |
| | | batchAudit: { |
| | | number: 0, |
| | | number: 0 |
| | | }, |
| | | optionBatchAudit: { |
| | | height: "auto", |
| | |
| | | excelBtn: false, |
| | | menuWidth: 380, |
| | | dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "所选保安人数", |
| | |
| | | span: 24, |
| | | value: 0, |
| | | disabled: true, |
| | | labelWidth: 110, |
| | | labelWidth: 110 |
| | | }, |
| | | { |
| | | label: "审核状态", |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择审核类型", |
| | | trigger: "blur", |
| | | }, |
| | | trigger: "blur" |
| | | } |
| | | ], |
| | | dicData: [ |
| | | { |
| | | label: "待审核", |
| | | value: 1, |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "审核不通过", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | value: 3 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "auditDetail", |
| | | }, |
| | | ], |
| | | prop: "auditDetail" |
| | | } |
| | | ] |
| | | }, |
| | | choiceList: [], |
| | | form: {}, |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | |
| | | searchMenuSpan: 6, |
| | | selection: true, |
| | | reserveSelection: true, |
| | | align: "center", |
| | | tip: true, |
| | | border: true, |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | viewBtn: false, |
| | | // selection: true, |
| | | excelBtn: false, |
| | | addBtnText: "发布", |
| | |
| | | saveBtnText: "发布", |
| | | menuWidth: 180, |
| | | dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | searchIndex: 5, //收缩展示数量 |
| | | column: [ |
| | | { |
| | | label: "申请时间", |
| | |
| | | { |
| | | required: true, |
| | | message: "请输入申请时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "姓名", |
| | |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 90, |
| | | searchLabelWidth: 50, |
| | | searchLabelWidth: 50 |
| | | // display: false, |
| | | }, |
| | | // { |
| | | // label: "所属保安公司", |
| | | // label: "企业名称", |
| | | // searchLabelWidth: "110", |
| | | // // prop: "deptName", |
| | | // prop: "deptId", |
| | |
| | | // minWidth: 260, |
| | | // }, |
| | | { |
| | | label: "所属保安公司", |
| | | searchLabelWidth: "110", |
| | | label: "企业名称", |
| | | prop: "deptName", |
| | | // type: "tree", |
| | | // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | |
| | | searchSpan: 5, |
| | | search: true, |
| | | overHidden: true, |
| | | minWidth: 200, |
| | | minWidth: 200 |
| | | }, |
| | | { |
| | | label: "性别", |
| | | prop: "sex", |
| | | width: 60, |
| | | type: "select", |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "身份证号码", |
| | |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | minWidth: 110, |
| | | searchSpan: 4, |
| | | searchSpan: 5 |
| | | }, |
| | | { |
| | | label: "年龄", |
| | | prop: "age", |
| | | width: 50, |
| | | width: 50 |
| | | }, |
| | | { |
| | | label: "照片", |
| | | prop: "avatar", |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | width: 60 |
| | | }, |
| | | { |
| | | label: "保安证编号", |
| | |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | minWidth: 90, |
| | | searchSpan: 3, |
| | | searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | editDisplay: false |
| | | // hide: true, |
| | | }, |
| | | { |
| | |
| | | width: 80, |
| | | // searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | editDisplay: false |
| | | // hide: true, |
| | | }, |
| | | { |
| | |
| | | prop: "applyUnit", |
| | | search: true, |
| | | searchLabelWidth: 120, |
| | | minWidth: 105, |
| | | searchSpan: 4, |
| | | minWidth: 160, |
| | | searchSpan: 5, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | editDisplay: false |
| | | // hide: true, |
| | | }, |
| | | { |
| | |
| | | minWidth: 105, |
| | | // searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | editDisplay: false |
| | | // hide: true, |
| | | }, |
| | | { |
| | |
| | | type: "select", |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | width: 90, |
| | | searchSpan: 3, |
| | | width: 110, |
| | | searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | hide: false, |
| | |
| | | dicData: [ |
| | | { |
| | | label: "待审核", |
| | | value: 1, |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "审核不通过", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | value: 3 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | hide: false, |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "是否制证", |
| | | prop: "userType", |
| | | prop: "status", |
| | | type: "select", |
| | | slot: true, |
| | | search: true, |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | searchSpan: 3, |
| | | searchSpan: 4, |
| | | width: 69, |
| | | dicData: [ |
| | | { |
| | | label: "全部", |
| | | value: 3 |
| | | }, |
| | | { |
| | | label: "已制证", |
| | | value: 6, |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "未制证", |
| | | value: 7, |
| | | }, |
| | | ], |
| | | value: 1 |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | { |
| | | label: "有无照片", |
| | | prop: "isAvatar", |
| | | type: "select", |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | minWidth: 105, |
| | | searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | hide: true, |
| | | display: false, |
| | | dicData: [ |
| | | { |
| | | label: "全部", |
| | | value: 3 |
| | | }, |
| | | { |
| | | label: "有", |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "无", |
| | | value: 2 |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | data: [], |
| | | data: [] |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.accreditationRecords_paper_view, false), |
| | | viewBtn: this.vaildData( |
| | | this.permission.accreditationRecords_paper_view, |
| | | false |
| | | ), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | this.selectionList.forEach(ele => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | userInfo: state => state.user.userInfo |
| | | }) |
| | | }, |
| | | mounted() { |
| | | this.getDeptInfo(this.userInfo.dept_id); |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | // if (this.userInfo.roleName == "办证管理员") { |
| | | // this.search["userType"] = 7; |
| | | // } |
| | | }, |
| | | created() { |
| | | if (this.userInfo.role_name == "办证管理员") { |
| | | this.questionBankSearch["userType"] = 7; |
| | | this.questionBankSearch["status"] = 1; |
| | | this.questionBankSearch["auditStatus"] = 2; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | //判断是否为市局管理员 |
| | | if(this.userInfo.jurisdiction=="1372091709474910209"){ |
| | | this.check = true; |
| | | // this.vaildData(this.permission.accreditationRecords_paper_delete, false); |
| | | }else{ |
| | | if (this.userInfo.jurisdiction == "1372091709474910209") { |
| | | this.check = true; |
| | | // this.vaildData(this.permission.accreditationRecords_paper_delete, false); |
| | | } else { |
| | | this.check = false; |
| | | // this.vaildData(null, false); |
| | | } |
| | |
| | | //获取当前用户部门信息 |
| | | getDeptInfo(deptId) { |
| | | var that = this; |
| | | getDept(deptId).then((res) => { |
| | | getDept(deptId).then(res => { |
| | | var deptCategory = res.data.data.deptCategory; |
| | | deptCategory == 1 |
| | | ? (that.deptCategory = true) |
| | |
| | | path: `/resource/uploadNotice`, |
| | | query: { |
| | | deptId: row.deptId, |
| | | noticeId: row.id, |
| | | }, |
| | | noticeId: row.id |
| | | } |
| | | }); |
| | | }, |
| | | rowSave(row, done, loading) { |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | onEnd: () => { |
| | | this.updateUserInfo(); |
| | | // console.log('打印完成', Date.parse(new Date())); |
| | | }, |
| | | } |
| | | }); |
| | | }, |
| | | getNewTime() { |
| | |
| | | const data = { |
| | | id: this.certificateObj.userId, |
| | | userType: 6, |
| | | paperTime: date, |
| | | paperTime: date |
| | | }; |
| | | updatePaperTime(data); |
| | | this.onLoad(this.page); |
| | |
| | | } |
| | | } |
| | | const data = { |
| | | ids:str, |
| | | auditStatus:row.auditStatus, |
| | | auditDetail:row.auditDetail, |
| | | auditUser:this.userInfo.Id, |
| | | } |
| | | ids: str, |
| | | type: 2, |
| | | auditStatus: row.auditStatus, |
| | | auditDetail: row.auditDetail, |
| | | auditUser: this.userInfo.Id |
| | | }; |
| | | //提交申请 |
| | | batchAudit(data).then( |
| | | () => { |
| | |
| | | that.dialogBatchAudit = false; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功", |
| | | message: "操作成功" |
| | | }); |
| | | //清除选项 |
| | | that.$refs.crud.toggleSelection(); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | if (this.choiceList.length == 0) { |
| | | this.$message({ |
| | | message: "未选择保安员", |
| | | type: "warning", |
| | | type: "warning" |
| | | }); |
| | | return; |
| | | } |
| | |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | submit(row, done, loading) { |
| | | const data = { |
| | | id: row.id, |
| | | type: 2, |
| | | auditStatus: row.auditStatus, |
| | | auditDetail: row.auditDetail, |
| | | auditUser: this.userInfo.Id, |
| | | auditUser: this.userInfo.Id |
| | | }; |
| | | |
| | | audit(data).then( |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | this.choiceList = []; |
| | | for (let k in list) { |
| | | this.choiceList.push({ |
| | | id: list[k].id, |
| | | id: list[k].id |
| | | }); |
| | | } |
| | | }, |
| | |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids); |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | this.$refs.crud.toggleSelection(); |
| | | }); |
| | | }, |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getAccreditationRecords(this.form.id).then((res) => { |
| | | getAccreditationRecords(this.form.id).then(res => { |
| | | this.form = res.data.data; |
| | | }); |
| | | } |
| | |
| | | window.localStorage.getItem("saber-userInfo") |
| | | ).content.dept_id; |
| | | |
| | | const { releaseTimeRange } = this.query; |
| | | // params["jurisdiction"] = this.jurisdiction; |
| | | params["type"] = 2; |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | params["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | //如果是公安管理员 |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | let values = { |
| | | const { releaseTimeRange } = this.query; |
| | | // params["jurisdiction"] = this.jurisdiction; |
| | | params["type"] = 2; |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | params["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | let values = { |
| | | ...params |
| | | }; |
| | | if (releaseTimeRange) { |
| | | values = { |
| | | ...params, |
| | | startTime: releaseTimeRange[0], |
| | | endTime: releaseTimeRange[1], |
| | | ...this.query |
| | | }; |
| | | if (releaseTimeRange) { |
| | | values = { |
| | | ...params, |
| | | startTime: releaseTimeRange[0], |
| | | endTime: releaseTimeRange[1], |
| | | ...this.query, |
| | | }; |
| | | values.releaseTimeRange = null; |
| | | } |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | values.releaseTimeRange = null; |
| | | } |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | //保安员证信息导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出证书制证信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | type: "warning" |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | |
| | | this.questionBankSearch["endTime"] = releaseTimeRange[1]; |
| | | } |
| | | var data = { |
| | | type:2, |
| | | applyUnit:this.questionBankSearch.applyUnit, |
| | | auditStatus:this.questionBankSearch.auditStatus, |
| | | type: 2, |
| | | status: this.questionBankSearch.status, |
| | | applyUnit: this.questionBankSearch.applyUnit, |
| | | auditStatus: this.questionBankSearch.auditStatus, |
| | | deptName: this.questionBankSearch.deptName, |
| | | idCardNo: this.questionBankSearch.idCardNo, |
| | | realName: this.questionBankSearch.realName, |
| | | securityNumber: this.questionBankSearch.securityNumber, |
| | | startTime: this.questionBankSearch.startTime, |
| | | endTime: this.questionBankSearch.endTime, |
| | | isAvatar: this.questionBankSearch.isAvatar |
| | | }; |
| | | // data['Blade-Auth'] = getToken; |
| | | //导出 |
| | |
| | | //如果是培训公司管理员 |
| | | data["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open(`/api/accreditationRecords/export-security-book-paper?${this.website.tokenHeader}=${getToken()}&`+data); |
| | | window.open( |
| | | `/api/accreditationRecords/export-security-book-paper?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }); |
| | | }, |
| | | }, |
| | | //保安员证信息导出 |
| | | handleExportPaper() { |
| | | this.$confirm("是否导出证书打印信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | | if (releaseTimeRange) { |
| | | this.questionBankSearch["startTime"] = releaseTimeRange[0]; |
| | | this.questionBankSearch["endTime"] = releaseTimeRange[1]; |
| | | } |
| | | var data = { |
| | | type: 2, |
| | | status: this.questionBankSearch.status, |
| | | applyUnit: this.questionBankSearch.applyUnit, |
| | | auditStatus: this.questionBankSearch.auditStatus, |
| | | deptName: this.questionBankSearch.deptName, |
| | | idCardNo: this.questionBankSearch.idCardNo, |
| | | realName: this.questionBankSearch.realName, |
| | | securityNumber: this.questionBankSearch.securityNumber, |
| | | startTime: this.questionBankSearch.startTime, |
| | | endTime: this.questionBankSearch.endTime, |
| | | isAvatar: this.questionBankSearch.isAvatar |
| | | }; |
| | | //导出 |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | //如果是保安公司管理员 |
| | | data["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | data["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open( |
| | | `/api/accreditationRecords/export-security-book-papers?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | |
| | | .security_m_r_o_jg { |
| | | position: absolute; |
| | | top: 267px; |
| | | left: 210px; |
| | | top: 272px; |
| | | left: 200px; |
| | | line-height: 40px; |
| | | letter-spacing: 2px; |
| | | } |
| | | |
| | | .dtype { |
| | | width: 100%; |
| | | padding-left: 0px; |
| | | } |
| | | |
| | | .dx { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 6px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #dfdfdf; |
| | | } |
| | | .zc { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 4px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #29c093; |
| | | } |
| | | .yj { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 4px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #f34a4a; |
| | | } |
| | | .gz { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 4px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #f48f57; |
| | | } |
| | | </style> |