(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31f5cb94","chunk-f6657b32","chunk-2d0b9d88","chunk-2d216ba7","chunk-2d0a4474","chunk-2d0bcdcc"],{"0680":function(t,e,n){"use strict";n.r(e),n.d(e,"getDict",(function(){return o}));var r=n("1da1"),a=(n("96cf"),n("4360")),o=function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,a["store"].dispatch("dictionary/getDictionary",e);case 2:return t.abrupt("return",a["store"].getters["dictionary/getDictionary"][e]);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"0b7a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"search-term"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.searchInfo}},[n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入姓名",type:"text",clearable:""},model:{value:t.searchInfo.nickname,callback:function(e){t.$set(t.searchInfo,"nickname",e)},expression:"searchInfo.nickname"}})],1),n("el-form-item",{attrs:{prop:"cardId"}},[n("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入身份证",type:"text",clearable:""},model:{value:t.searchInfo.cardId,callback:function(e){t.$set(t.searchInfo,"cardId",e)},expression:"searchInfo.cardId"}})],1),n("el-form-item",{attrs:{prop:"company"}},[n("el-input",{staticClass:"user-form-item",attrs:{placeholder:"请输入所在企业",type:"text",clearable:""},model:{value:t.searchInfo.company,callback:function(e){t.$set(t.searchInfo,"company",e)},expression:"searchInfo.company"}})],1),n("el-form-item",{attrs:{prop:"submitAt"}},[n("el-date-picker",{staticStyle:{width:"135px"},attrs:{placeholder:"报名日期","value-format":"yyyy-MM-dd",type:"date",align:"left"},model:{value:t.searchInfo.submitAt,callback:function(e){t.$set(t.searchInfo,"submitAt",e)},expression:"searchInfo.submitAt"}})],1),n("el-form-item",{attrs:{prop:"type"}},[n("el-select",{staticStyle:{width:"110px"},attrs:{placeholder:"提交状态"},model:{value:t.searchInfo.status,callback:function(e){t.$set(t.searchInfo,"status",e)},expression:"searchInfo.status"}},[n("el-option",{attrs:{label:"所有状态",value:0}}),n("el-option",{attrs:{label:"待审核",value:1}}),n("el-option",{attrs:{label:"拒绝",value:2}}),n("el-option",{attrs:{label:"审核通过",value:4}}),n("el-option",{attrs:{label:"申请中",value:3}})],1)],1),n("el-form-item",{attrs:{prop:"confirmAt"}},[n("el-date-picker",{staticStyle:{width:"135px"},attrs:{placeholder:"审核日期","value-format":"yyyy-MM-dd",type:"date",align:"left"},model:{value:t.searchInfo.confirmAt,callback:function(e){t.$set(t.searchInfo,"confirmAt",e)},expression:"searchInfo.confirmAt"}})],1),n("el-form-item",{attrs:{prop:"type"}},[n("el-select",{staticStyle:{width:"110px"},model:{value:t.searchInfo.agentId,callback:function(e){t.$set(t.searchInfo,"agentId",e)},expression:"searchInfo.agentId"}},[n("el-option",{attrs:{label:"所有来源",value:0}}),n("el-option",{attrs:{label:"宁德用户",value:1}}),n("el-option",{attrs:{label:"福安用户",value:2}}),n("el-option",{attrs:{label:"柘荣用户",value:3}}),n("el-option",{attrs:{label:"霞浦用户",value:4}})],1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.exportUser}},[t._v("导出excel")])],1)],1)],1),n("el-table",{attrs:{data:t.tableData,border:"",stripe:""}},[n("el-table-column",{attrs:{label:"ID",width:"70",prop:"userId"}}),n("el-table-column",{attrs:{label:"姓名",prop:"nickname",width:"80"}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phone",width:"110"}}),n("el-table-column",{attrs:{label:"身份证",prop:"cardId",width:"165"}}),n("el-table-column",{attrs:{label:"所在企业",prop:"company","min-width":"120"}}),n("el-table-column",{attrs:{label:"学历",prop:"education"}}),n("el-table-column",{attrs:{label:"专业",prop:"major",width:"110"}}),n("el-table-column",{attrs:{label:"报考岗位",prop:"courseName",width:"120",align:"center"}}),n("el-table-column",{attrs:{label:"施工现场实践年限",prop:"years",width:"90",align:"center"}}),n("el-table-column",{attrs:{label:"审核状态",align:"center",width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[r.confirm?n("span",[t._v("已经确认")]):n("span",[t._v(t._s(t._f("toStatus")(r)))])]}}])}),n("el-table-column",{attrs:{label:"报名日期",align:"center",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(t._f("toDate")(r.submitAt)))])]}}])}),n("el-table-column",{attrs:{label:"审核日期",align:"center",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[0==r.confirm?n("span",[t._v("还未审核")]):n("span",[t._v(t._s(t._f("toDate")(r.confirmAt)))])]}}])}),n("el-table-column",{attrs:{label:"用户来源",align:"center",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(t._f("toAgent")(r.agentId)))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.confirmUser(r)}}},[t._v("审核材料")])]}}])})],1),n("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":t.page,"page-size":t.size,"page-sizes":[10,30,50,100],total:t.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},a=[],o=n("5530"),i=(n("d3b7"),n("3ca3"),n("ddb0"),n("d81d"),n("354d")),c=n("a4a2"),u=n("c466"),l=n("2a18"),s=function(t){return 1==t.confirm?"审核通过":1==t.isSubmit?"待审核":2==t.isSubmit?"拒绝":"申请中"},d={name:"Api",data:function(){return{listApi:i["getUserApplyList"],tableData:[],searchInfo:{status:1,agentId:0,createAt:"",company:"",cardId:"",nickname:""}}},watch:{searchInfo:{handler:function(t,e){this.onSubmit()},deep:!0}},filters:{toDate:u["toDate"],toAgent:l["toAgent"],toStatus:s},mixins:[c["default"]],methods:{onSubmit:function(){this.page=1,this.getTableData()},confirmUser:function(t){this.$router.push({name:"xinpei_student_info",query:{applyId:t.applyId}})},exportUser:function(){var t=this;Object(i["getUserApplyList"])(Object(o["a"])({size:1e4},this.searchInfo)).then((function(e){200==e.code&&(t.$message.successMsg("下载完成,生成文件中",2),t.dodownloadUser(e.data.list||[]))}))},dodownloadUser:function(t){Promise.all([n.e("chunk-0b34d52f"),n.e("chunk-53ec1ae2"),n.e("chunk-5164a781"),n.e("chunk-2cf91894")]).then(n.bind(null,"4bf8")).then((function(e){var n=["姓名","身份证号","手机号","学历","岗位","企业名称","报名日期","机构审核状态","用户来源"],r=t.map((function(t){return[t.nickname,t.cardId,t.phone,t.education,t.courseName,t.company,Object(u["toDate"])(t.submitAt),s(t),Object(l["toAgent"])(t.agentId)]}));e.export_json_to_excel({header:n,data:r,filename:"学员材料审核",autoWidth:!0,bookType:"xlsx"})}))}},created:function(){this.getTableData()}},f=d,p=(n("bc00"),n("2877")),m=Object(p["a"])(f,r,a,!1,null,"3f3962e4",null);e["default"]=m.exports},"2a18":function(t,e,n){"use strict";n.r(e),n.d(e,"toUpperCase",(function(){return r})),n.d(e,"toLowerCase",(function(){return a})),n.d(e,"toSQLLine",(function(){return o})),n.d(e,"toHump",(function(){return i})),n.d(e,"toType",(function(){return c})),n.d(e,"toTaskStatus",(function(){return u})),n.d(e,"toAgent",(function(){return l})),n.d(e,"toStage",(function(){return s})),n.d(e,"getStage",(function(){return d})),n.d(e,"toFee",(function(){return f})),n.d(e,"toStatus",(function(){return p})),n.d(e,"toConfirm",(function(){return m})),n.d(e,"toSupply",(function(){return h})),n.d(e,"toFeeType",(function(){return b})),n.d(e,"toPoint",(function(){return g})),n.d(e,"tow60",(function(){return y})),n.d(e,"toLogStage",(function(){return v}));n("ac1f"),n("5319"),n("1276");var r=function(t){return t[0]?t.replace(t[0],t[0].toUpperCase()):""},a=function(t){return t[0]?t.replace(t[0],t[0].toLowerCase()):""},o=function(t){return"ID"==t?"ID":t.replace(/([A-Z])/g,"_$1").toLowerCase()},i=function(t){return t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()}))},c=function(t){var e={1:"指定任务",2:"委托任务",3:"公开任务"};return e[t]||"---"},u=function(t){var e={1:"编辑",2:"发布",3:"完成",0:"作废"};return e[t]||"---"},l=function(t){return 3==t?"柘荣":4==t?"霞浦":1==t?"宁德":2==t?"福安":"其他"},s=function(t){t&&t.id&&(t=d(t));var e=["未知","审核中","待交付","已交付","已完成"];return e[t]},d=function(t){return t.finish?4:t.deliver_time>1?3:t.confirm?2:1},f=function(t){return"¥"+t/100},p=function(t){return 1==t?"正常":"异常"},m=function(t){return 1==t?"确认":"未确认"},h=function(t){return 1==t?"是":"否"},b=function(t){return 1==t?"按比收费":"税点收费"},g=function(t){return t/100+"%"},y=function(t){return t?t.split("?")[0]+"?x-oss-process=image/resize,m_fill,w_60":""},v=function(t){var e={0:"不变",1:"待接单",2:"待交付",3:"已交付",4:"已完成",5:"删除"};return e[t]||"未知"}},"354d":function(t,e,n){"use strict";n.r(e),n.d(e,"getUserApplyList",(function(){return a})),n.d(e,"getUserApplyConfirmList",(function(){return o})),n.d(e,"getUserApplyInfo",(function(){return i})),n.d(e,"confirmUserApplyImg",(function(){return c})),n.d(e,"confirmUserApplyConfirm",(function(){return u})),n.d(e,"getUserApplyUnConfirmList",(function(){return l})),n.d(e,"getTrainExamList",(function(){return s})),n.d(e,"getTrainPlanList",(function(){return d})),n.d(e,"getUserPlanList",(function(){return f})),n.d(e,"getAdminUserPlanList",(function(){return p})),n.d(e,"getAdminOnPlanUserList",(function(){return m})),n.d(e,"postData",(function(){return h})),n.d(e,"getPayLogList",(function(){return b}));var r=n("b775"),a=function(t){return Object(r["default"])({url:"/admin/getUserApplyList",method:"post",data:t})},o=function(t){return Object(r["default"])({url:"/admin/getUserApplyConfirmList",method:"post",data:t})},i=function(t){return Object(r["default"])({url:"/admin/getUserApplyInfo",method:"post",data:t})},c=function(t){return Object(r["default"])({url:"/admin/confirmUserApplyImg",method:"post",data:t})},u=function(t){return Object(r["default"])({url:"/admin/confirmUserApplyConfirm",method:"post",data:t})},l=function(t){return Object(r["default"])({url:"/admin/getUserApplyUnConfirmList",method:"post",data:t})},s=function(t){return Object(r["default"])({url:"/admin/getTrainExamList",method:"post",data:t})},d=function(t){return Object(r["default"])({url:"/admin/getTrainPlanList",method:"post",data:t})},f=function(t){return Object(r["default"])({url:"/admin/getUserPlanList",method:"post",data:t})},p=function(t){return Object(r["default"])({url:"/admin/getAdminUserPlanList",method:"post",data:t})},m=function(t){return Object(r["default"])({url:"/admin/getAdminOnPlanUserList",method:"post",data:t})},h=function(t,e){return Object(r["default"])({url:"/admin/".concat(t),method:"post",data:e})},b=function(t){return Object(r["default"])({url:"/admin/getPayLogList",method:"post",data:t})}},"95ee":function(t,e,n){},a4a2:function(t,e,n){"use strict";n.r(e);var r=n("5530"),a=n("1da1"),o=(n("96cf"),n("4de4"),n("d3b7"),n("159b"),n("d81d"),n("0680"));n("c466"),n("ed08");e["default"]={data:function(){return{page:1,total:10,size:10,tableData:[],searchInfo:{isFinish:0}}},watch:{},methods:{filterDict:function(t,e){var n=this[e+"Options"]&&this[e+"Options"].filter((function(e){return e.value==t}));return n&&n[0]&&n[0].label},getDict:function(t){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["getDict"])(t);case 2:return r=n.sent,e[t+"Options"]=r,n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(t){this.size=t,this.getTableData()},handleCurrentChange:function(t){this.page=t,this.getTableData()},handleSelectAll:function(t){console.log("handleSelectAll",t),this[t].forEach((function(t){t._selected=!0}))},handleSelectNull:function(t){console.log("handleSelectNull",t),this[t].forEach((function(t){t._selected=!1}))},handleChangeItem:function(t,e,n){this[t][e]=n(this[t][e])},getAllTableData:function(t){var e=Object(r["a"])({size:1e4,from:0},this.searchInfo);this.listApi(e).then((function(e){t(e)}))},getTableData:function(){var t=arguments,e=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var a,o,i,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.length>0&&void 0!==t[0]?t[0]:e.page,o=t.length>1&&void 0!==t[1]?t[1]:e.size,i=(a-1)*o,c=Object(r["a"])({size:o,from:i},e.searchInfo),n.next=6,e.listApi(c);case 6:u=n.sent,200==u.code&&(e.tableData=u.data.list.map((function(t){return t.edit=!1,t._selected=!1,t})),e.total=u.data.total);case 8:case"end":return n.stop()}}),n)})))()}}}},bc00:function(t,e,n){"use strict";n("95ee")},c466:function(t,e,n){"use strict";n.r(e),n.d(e,"curDate",(function(){return r})),n.d(e,"formatTimeToStr",(function(){return a})),n.d(e,"toDatetime",(function(){return o})),n.d(e,"toDate",(function(){return i})),n.d(e,"toDateShow",(function(){return c})),n.d(e,"getDate",(function(){return u}));n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0");function r(){var t=(new Date).Format("yyyy-MM-dd");return t.toLocaleString()}function a(t,e){var n=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e&&(n=new Date(t).Format(e)),n.toLocaleString()}function o(t){if(!t)return"2020-01-01 00:00:00";var e=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e.toLocaleString()}function i(t){if(!t)return"2020-01-01";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function c(t){if(!t)return"---";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function u(t){var e=new Date;return e.setDate(e.getDate()+t),i(e)}Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t}}}]);