(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-677a0b8c"],{"049d":function(e,t,a){"use strict";var n=a("d2be"),i=a.n(n);i.a},"0aed":function(e,t,a){"use strict";a("aaba");var n=a("bf16"),i=a("86d4"),r=a("238a"),s=a("f6b4"),l=a("cb3d"),o=a("8714"),c=l("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var p=l(e),m=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=m?!r((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!t})):void 0;if(!m||!h||"replace"===e&&!u||"split"===e&&!d){var f=/./[p],_=a(s,p,""[e],(function(e,t,a,n,i){return t.exec===o?m&&!i?{done:!0,value:f.call(t,a,n)}:{done:!0,value:e.call(a,t,n)}:{done:!1}})),v=_[0],b=_[1];n(String.prototype,e,v),i(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"129d":function(e,t,a){"use strict";var n=a("46fc"),i=a.n(n);i.a},"2ed6":function(e,t,a){"use strict";var n=a("7b0d"),i=a.n(n);i.a},"2fd4":function(e,t,a){var n=a("fb68"),i=a("75c4"),r=a("cb3d")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},"46fc":function(e,t,a){},7108:function(e,t,a){"use strict";var n=a("7e23"),i=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var r=a.call(e,t);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"7b0d":function(e,t,a){},8714:function(e,t,a){"use strict";var n=a("f1fe"),i=RegExp.prototype.exec,r=String.prototype.replace,s=i,l="lastIndex",o=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[l]||0!==t[l]}(),c=void 0!==/()??/.exec("")[1],u=o||c;u&&(s=function(e){var t,a,s,u,d=this;return c&&(a=new RegExp("^"+d.source+"$(?!\\s)",n.call(d))),o&&(t=d[l]),s=i.call(d,e),o&&s&&(d[l]=d.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],a,(function(){for(u=1;u "+e._s(e.subject_item)+" > 新办")]),a("div",{staticClass:"filter"},[a("el-form",{staticStyle:{position:"relative"},attrs:{"label-width":"75px",inline:!0,size:"small"}},[a("el-form-item",{attrs:{label:"培训项目"}},[e.subject_id?a("Subject",{key:e.key,attrs:{subject_id:e.subject_id},on:{subChange:e.subChange}}):e._e()],1),a("el-form-item",{attrs:{label:"姓名","label-width":"40px"}},[a("el-input",{attrs:{placeholder:"姓名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"联系电话"}},[a("el-input",{attrs:{placeholder:"联系电话"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"公司名称"}},[a("el-input",{attrs:{placeholder:"公司名称"},model:{value:e.form.company,callback:function(t){e.$set(e.form,"company",t)},expression:"form.company"}})],1),a("el-form-item",{attrs:{label:"报名时间"}},[a("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.form.signup_time,callback:function(t){e.$set(e.form,"signup_time",t)},expression:"form.signup_time"}})],1),e.more_search?a("el-form-item",{attrs:{label:"发票类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.form.bill_type,callback:function(t){e.$set(e.form,"bill_type",t)},expression:"form.bill_type"}},[a("el-option",{attrs:{label:"不需要发票",value:0}}),a("el-option",{attrs:{label:"个人发票",value:1}}),a("el-option",{attrs:{label:"公司发票",value:2}})],1)],1):e._e(),e.more_search?a("el-form-item",{attrs:{label:"领证方式",clearable:""}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.receive_card,callback:function(t){e.$set(e.form,"receive_card",t)},expression:"form.receive_card"}},[a("el-option",{attrs:{label:"邮寄",value:1}}),a("el-option",{attrs:{label:"自取",value:0}})],1)],1):e._e(),e.more_search?a("el-form-item",{attrs:{label:"考试设置"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.form.set_exam_time,callback:function(t){e.$set(e.form,"set_exam_time",t)},expression:"form.set_exam_time"}},[a("el-option",{attrs:{label:"已设置考试时间",value:1}}),a("el-option",{attrs:{label:"未设置考试时间",value:0}})],1)],1):e._e(),e.more_search?a("el-form-item",{attrs:{label:"考试时间"}},[a("el-date-picker",{attrs:{clearable:"","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:e.form.exam_time,callback:function(t){e.$set(e.form,"exam_time",t)},expression:"form.exam_time"}})],1):e._e(),e.more_search?a("el-form-item",{attrs:{label:"培训班级"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.class_id,callback:function(t){e.$set(e.form,"class_id",t)},expression:"form.class_id"}},e._l(e.class_list,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.cid}})})),1)],1):e._e(),e.more_search?a("el-form-item",{attrs:{label:"培训时间"}},[a("el-date-picker",{attrs:{clearable:"",type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.train_time1,callback:function(t){e.$set(e.form,"train_time1",t)},expression:"form.train_time1"}})],1):e._e(),a("el-form-item",[a("span",{staticStyle:{"font-size":"12px",color:"#999",cursor:"pointer"},on:{click:function(t){e.more_search=!e.more_search}}},[e._v(" 高级搜索")]),e.more_search?a("i",{staticClass:"el-icon-arrow-up",on:{click:function(t){e.more_search=!e.more_search}}}):a("i",{staticClass:"el-icon-arrow-down",on:{click:function(t){e.more_search=!e.more_search}}})]),a("el-form-item",{},[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.list=[],e.getData()}}},[e._v("搜索")])],1),a("el-divider")],1),a("el-tabs",{on:{"tab-click":e.tabClick},model:{value:e.order_status,callback:function(t){e.order_status=t},expression:"order_status"}},[a("el-tab-pane",{attrs:{name:"-3",label:"报名列表"}}),a("el-tab-pane",{attrs:{name:"-1",label:"待上传资料"}}),a("el-tab-pane",{attrs:{name:"0",label:"审核中"}}),a("el-tab-pane",{attrs:{name:"-2",label:"审核未通过"}}),a("el-tab-pane",{attrs:{name:"1",label:"待付款"}}),a("el-tab-pane",{attrs:{name:"2",label:"已付款,待培训"}}),a("el-tab-pane",{attrs:{name:"3",label:"已培训,待考试"}}),a("el-tab-pane",{attrs:{name:"7",label:"考试完成"}}),a("el-tab-pane",{attrs:{name:"9",label:"已取消"}})],1)],1),a("div",{staticClass:"divider"},[a("el-button",{attrs:{size:"small",type:"success"},on:{click:function(t){return e.setStatus(1,"审核通过")}}},[e._v("通过审核")]),a("el-button",{attrs:{size:"small",type:"info"},on:{click:function(t){return e.setStatus(-2,"审核不通过")}}},[e._v("审核不通过")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setStatus(2,"已付款")}}},[e._v("已付款")]),a("el-button",{attrs:{size:"small",type:"warning"},on:{click:function(t){return e.setStatus(3,"已培训,待考试")}}},[e._v("已培训,待考试")]),a("el-button",{attrs:{size:"small",type:"success"},on:{click:function(t){return e.setStatus(7,"考试完成")}}},[e._v("考试完成")]),a("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(t){return e.setStatus(9,"已取消")}}},[e._v("已取消")]),a("el-divider",{attrs:{direction:"vertical"}}),e._v("\n \n \n \n  \n "),a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"mini",plain:"",icon:"el-icon-printer"},on:{click:e.print}}),e._v("\n   \n "),a("el-dropdown",{staticStyle:{float:"right","margin-right":"5px"},attrs:{trigger:"click"}},[a("el-button",{attrs:{type:"primary",size:"mini",plain:"",icon:"el-icon-finished"}}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("div",{staticClass:"checkList"},e._l(e.itemList,(function(t,n){return a("p",{key:n},[a("el-checkbox",{attrs:{label:t.name},model:{value:t.checked,callback:function(a){e.$set(t,"checked",a)},expression:"item.checked"}})],1)})),0)])],1),e._v("\n   \n "),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{size:"small",type:"info"},on:{click:function(t){return e.download("apply")}}},[e._v("导出学员申报资料")]),e._v("\n   \n "),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{size:"small",type:"success"},on:{click:function(t){return e.download("exam")}}},[e._v("导出考勤表与申报考试表")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setTime(2)}}},[e._v("设置考试时间")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setTime(1)}}},[e._v("设置培训时间")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{fit:!0,data:e.list,border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",fixed:"left",width:"40"}}),e._l(e.itemList,(function(t,n){return[t.checked&&"支付状态"==t.name?a("el-table-column",{key:n,attrs:{width:t.width,prop:t.value,label:t.name,"class-name":t.value},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.pay_status_1?a("span",{staticClass:"paydone"},[e._v("已支付")]):a("span",{staticClass:"unpay"},[e._v("未支付")])]}}],null,!0)}):e._e(),t.checked&&"支付金额"==t.name?a("el-table-column",{key:n,attrs:{width:t.width,prop:t.value,label:t.name,"class-name":t.value},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"payprice"},[e._v(e._s(t.row.price))])]}}],null,!0)}):e._e(),t.checked&&"学时证明"==t.name?a("el-table-column",{key:n,attrs:{width:t.width,prop:t.value,label:t.name,"class-name":t.value},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classhour_cert_url?a("a",{attrs:{target:"_blank",href:t.row.classhour_cert_url}},[e._v("已生成")]):e._e()]}}],null,!0)}):e._e(),t.checked&&"状态"==t.name?a("el-table-column",{key:n,attrs:{width:t.width,prop:t.value,label:t.name,"class-name":t.value},scopedSlots:e._u([{key:"default",fn:function(t){return[-2==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"warning"}},[e._v(e._s(t.row.order_status_1))]):e._e(),-1==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"warning"}},[e._v(e._s(t.row.order_status_1))]):e._e(),0==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"warning"}},[e._v(e._s(t.row.order_status_1))]):e._e(),1==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"danger"}},[e._v(e._s(t.row.order_status_1))]):e._e(),2==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"primary"}},[e._v(e._s(t.row.order_status_1))]):e._e(),7==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"success"}},[e._v(e._s(t.row.order_status_1))]):e._e(),3==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"warning"}},[e._v(e._s(t.row.order_status_1))]):e._e(),9==t.row.order_status?a("el-button",{attrs:{size:"mini",type:"danger"}},[e._v(e._s(t.row.order_status_1))]):e._e()]}}],null,!0)}):e._e(),t.checked&&"状态"!=t.name&&"学时证明"!=t.name&&"支付状态"!=t.name&&"支付金额"!=t.name?a("el-table-column",{key:n,attrs:{width:t.width,prop:t.value,label:t.name,"show-overflow-tooltip":!0}}):e._e()]})),a("el-table-column",{attrs:{prop:"zip",width:"220",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return e.$router.push({path:"/sign/detail",query:{id:t.row.id}})}}},[e._v("详情")]),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return e.$router.push({path:"/sign/edit",query:{id:t.row.id}})}}},[e._v("编辑")]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.mark(t.row.id,t.row.remark)}}},[e._v("备注")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.del(t.row.id)}}},[e._v("删除")])]}}])})],2),a("Page",{ref:"pageButton",attrs:{total:e.total},on:{pageChange:e.gopage}}),a("el-dialog",{attrs:{title:e.text,visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-date-picker",{directives:[{name:"show",rawName:"v-show",value:1==e.date_type,expression:"date_type == 1"}],attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.time1,callback:function(t){e.time1=t},expression:"time1"}}),a("el-date-picker",{directives:[{name:"show",rawName:"v-show",value:2==e.date_type,expression:"date_type == 2"}],attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.time2,callback:function(t){e.time2=t},expression:"time2"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1)],1)},i=[],r=(a("9a33"),a("cc57"),a("9973")),s=a("fa7e"),l={components:{Page:r["a"],Subject:s["a"]},data:function(){return{key:1,checkList:[],itemList:[{name:"姓名",value:"name",checked:!0,width:"70px"},{name:"联系电话",value:"phone",checked:!0,width:"120px"},{name:"状态",value:"order_status_1",checked:!0,width:"130px"},{name:"支付状态",value:"pay_status_1",checked:!0},{name:"支付金额",value:"price",checked:!0},{name:"管理员备注",value:"remark",checked:!0,width:"150px"},{name:"报名类型",value:"subject_item0",checked:!0,width:"120px"},{name:"作业类别",value:"subject_item1",checked:!0,width:"150px"},{name:"准操项目",value:"subject_item2",checked:!0,width:"200px"},{name:"培训类型",value:"train_type",checked:!0,width:"90px"},{name:"学时证明",value:"classhour_cert_url",checked:!0,width:"90px"},{name:"培训时间",value:"train_time",checked:!0,width:"200px"},{name:"考试时间",value:"exam_time",checked:!0,width:"150px"},{name:"报名时间",value:"signup_time",checked:!0,width:"150px"},{name:"公司名称",value:"company",checked:!0,width:"200px"},{name:"更新时间",value:"ctime",checked:!1,width:"170px"},{name:"发票类型",value:"bill_type_1",checked:!1,width:"120px"},{name:"领证方式",value:"receive_card",checked:!1},{name:"实名认证",value:"verify_1",checked:!0},{name:"ID",value:"id",checked:!1}],class_list:[],text:"批量设置培训时间",date_type:1,time1:null,time2:"",form:{train_type:"新办",subject_item:"",order_status:"",page:1,page_size:20},activeName:"1",total:1,list:[],order_status:"-3",ids:[],dialogVisible:!1,url:"",loading:!1,subject_id:"",subject_item:"",download_loading:!1,more_search:!1}},methods:{gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var e=this,t=this.form;t.train_time1&&(t.train_time=t.train_time1.join(",")),this.loading=!0,"-3"!=this.order_status?t.order_status=this.order_status:t.order_status="",this.$api.getSignList(t).then((function(t){for(var a=t.data.data.list,n=0;n0?this.$confirm("确定修改状态为"+t,"提示",{type:"warning"}).then((function(){a.$api.updateSignStu({id:s,order_status:e}).then((function(e){e.data.code?a.$message.error(e.data.message):(a.$message({message:"修改成功",type:"success"}),a.getData())}))})):this.$message.error("请选择数据")},setTime:function(e){for(var t=[],a=this.ids,n=0;n0?(this.date_type=e,1==e?(this.dialogVisible=!0,this.text="批量设置培训时间"):2==e?(this.dialogVisible=!0,this.text="批量设置考试时间"):this.save()):this.$message.error("请选择数据")},save:function(){var e=this,t={id:this.select_ids};1==this.date_type?t.train_time=this.time1.join(","):2==this.date_type?t.exam_time=this.time2:t.classhour_cert_status=1,this.$api.updateSign(t).then((function(t){0==t.data.code?(e.$message({message:"操作成功",type:"success"}),e.dialogVisible=!1,e.getData()):e.$message.error(t.data.message)}))},print:function(){for(var e=window.open("",""),t="",a="",n=0;n".concat(i.name,"\n ")}for(var r=0;r".concat(s[c.value]||" ","\n ")}t+="".concat(l,"")}var u="\n \n \n \n ".concat(a,"\n \n ").concat(t,"\n
\n ");e.document.write(u),e.window.print()},download:function(e){for(var t=this,a=[],n=this.ids,i=0;i0?(this.download_loading=!0,this.$api.downloadzip(s).then((function(e){var a=document.createElement("a"),n=new Blob([e.data],{type:"application/zip"}),i=URL.createObjectURL(n),r=e.headers["content-disposition"].split("=")[1];a.download=r,a.style.display="none",a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),t.download_loading=!1}))):this.$message.error("请选择数据")}},watch:{$route:function(e){var t=this;this.subject_id=!1,this.$nextTick((function(){t.subject_id=e.path.split("/")[2]})),this.$api.getSubList().then((function(e){for(var a=e.data.data,n=0;n1||""[m](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(i,e,t);var r,s,l,o=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,m=void 0===t?_:t>>>0,v=new RegExp(e.source,u+"g");while(r=c.call(v,i)){if(s=v[f],s>d&&(o.push(i.slice(d,r.index)),r[h]>1&&r.index=m))break;v[f]===r.index&&v[f]++}return d===i[h]?!l&&v.test("")||o.push(""):o.push(i.slice(d)),o[h]>m?o.slice(0,m):o}:"0"[m](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var i=e(this),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,i,n):b.call(String(i),a,n)},function(e,t){var n=u(b,e,this,t,b!==a);if(n.done)return n.value;var c=i(e),p=String(this),m=r(c,RegExp),h=c.unicode,f=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),g=new m(v?c:"^(?:"+c.source+")",f),y=void 0===t?_:t>>>0;if(0===y)return[];if(0===p.length)return null===o(g,p)?[p]:[];var w=0,x=0,k=[];while(x=3&&isNaN(e[0])){var n=this.data.filter((function(t){return t.name==e[0]})),i=n[0].children.filter((function(t){return t.name==e[1]})),r=i[0].children.filter((function(t){return t.name==e[2]}));t=r[0].id}setTimeout((function(){var n=document.querySelector(".el-input__inner").value,i=n.split(" / ");console.log(n),a.$emit("subChange",i,t,e)}),100)}},created:function(){this.getData(),this.value&&(this.value1=this.value),this.subvalue&&(this.value1=this.subvalue.split("|"))}}),s=r,l=(a("049d"),a("4023")),o=Object(l["a"])(s,n,i,!1,null,null,null);t["a"]=o.exports},fc81:function(e,t,a){var n=a("ee21"),i=a("f6b4");e.exports=function(e){return function(t,a){var r,s,l=String(i(t)),o=n(a),c=l.length;return o<0||o>=c?e?"":void 0:(r=l.charCodeAt(o),r<55296||r>56319||o+1===c||(s=l.charCodeAt(o+1))<56320||s>57343?e?l.charAt(o):r:e?l.slice(o,o+2):s-56320+(r-55296<<10)+65536)}}}}]); //# sourceMappingURL=chunk-677a0b8c.8fae6fa8.js.map