考试成绩新增是否制证查询,已制证的无法再批量申请,可以单个申请补证
| | |
| | | }) |
| | | } |
| | | |
| | | export const add = (row) => { |
| | | export const submit = (row) => { |
| | | return request({ |
| | | url: '/api/accreditationRecords/submit', |
| | | method: 'post', |
| | |
| | | }) |
| | | } |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/accreditationRecords/save', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/accreditationRecords/update', |
| | |
| | | :type="type" |
| | | >申请修改成绩</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | v-if="row.isPaper==6" |
| | | @click="securityPaperApply(row)" |
| | | :size="size" |
| | | :type="type" |
| | | >补证申请</el-button |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | } from "@/api/examapi/performance"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import { securityApply } from "@/api/accreditationRecords/accreditationRecords"; |
| | | import { securityApply,add} from "@/api/accreditationRecords/accreditationRecords"; |
| | | import Qs from "qs"; |
| | | export default { |
| | | components: { |
| | |
| | | selection: true, |
| | | reserveSelection: true, |
| | | selectable: (row) => { |
| | | if (row.qualified != "0") { |
| | | if (row.qualified != "0" || row.isPaper==6) { |
| | | return false; |
| | | } else { |
| | | return true; |
| | |
| | | dialogClickModal: false, |
| | | // 操作栏宽度 |
| | | menu: true, |
| | | menuWidth: 295, |
| | | menuWidth: 330, |
| | | labelWidth: 120, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | |
| | |
| | | prop: "candidateNo", |
| | | search: true, |
| | | searchSpan: 4, |
| | | hide:true, |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | |
| | | prop: "avatar", |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | width:60, |
| | | }, |
| | | { |
| | | label: "所属公司", |
| | |
| | | slot: true, |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 60, |
| | | width: 80, |
| | | dicData: [ |
| | | { |
| | | label: "发布成绩", |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | }, |
| | | { |
| | | label: "是否制证", |
| | | prop: "isPaper", |
| | | type: "select", |
| | | search: true, |
| | | width: 70, |
| | | searchSpan: 3, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // hide: true, |
| | | display: false, |
| | | dicData: [ |
| | | { |
| | | label: "全部", |
| | | value: 10, |
| | | }, |
| | | { |
| | | label: "已制证", |
| | | value: 6, |
| | | }, |
| | | { |
| | | label: "未制证", |
| | | value: 7, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "有无照片", |
| | |
| | | const data = res.data.data; |
| | | |
| | | data.records.forEach((item) => { |
| | | if (item.isPaper == null || item.isPaper == -1) { |
| | | item.isPaper = ""; |
| | | } |
| | | if (item.theoryGrade == null && item.learnGrade == -1) { |
| | | item.qualified = ""; |
| | | } |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | //补证申请 |
| | | securityPaperApply(row,done,loading){ |
| | | this.$confirm("当前保安员已制证,确定要继续申请制证?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | const data = { |
| | | createUser:this.userInfo.user_id, |
| | | type:2, |
| | | userId:row.userId |
| | | } |
| | | add(data).then( |
| | | () => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }); |
| | | }, |
| | | //缺考标记 |
| | | absent(row, done, loading) { |
| | | this.$confirm("确定缺考标记?", { |
| | |
| | | { |
| | | label: "审核状态", |
| | | search: true, |
| | | searchLabelWidth: 110, |
| | | type: "select", |
| | | searchSpan: 4, searchLabelWidth: 85, |
| | | searchSpan: 4, |
| | | prop: "auditStatus", |
| | | searchValue: 4, |
| | | dicData: [{ |
| | |
| | | type: "select", |
| | | searchSpan: 4, |
| | | prop: "cancel", |
| | | searchValue: 1, searchLabelWidth: 85, |
| | | searchValue: 1, |
| | | searchLabelWidth: 85, |
| | | dicData: [{ |
| | | label: '全部', |
| | | value: 0, |