(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75d896df"],{"0e48":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticStyle:{width:"50px"}},[e("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:t.fetchData,fields:t.json_fields,"before-finish":t.finishDownload,name:"考勤申请记录.xls"}},[e("el-button",{attrs:{size:"mini",icon:"el-icon-folder-add",plain:""}},[t._v("导出Excel")])],1)],1),e("div",{},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}},[e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.reviewer(t.table_row)}}},[t._v(" 审核 ")])])])],2)],1),e("Drawer",{attrs:{drawerTitle:"审核请假/加班记录",drawerVrisible:t.add_vrisible},on:{drawerClose:t.addClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("审核记录")]),[e("VueForm",{ref:"addForm",attrs:{formObj:t.addForm}})]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.addSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.addClose}},[e("span",[t._v("取消")])])])])],1)])])},u=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("请假/加班申请记录")])])}],a=n("662b"),i=(n("d63a"),n("fcac")),o={data(){return{add_vrisible:!1,addDate:null,options:[],sysOptions:[],loading:!1,addForm:{ruleForm:{status:null,id:null},form_item:[{type:"Select",label:"状态",placeholder:"请输入",width:"100%",prop:"status",options:[{value:2,label:"审核通过"},{value:3,label:"审核驳回"}]}]},table_row:[],activeName:"0",json_fields:{"申请人名称":"createName","申请人手机号":"createTel","请假/加班原因":"reason","类型":{field:"type",callback:t=>{switch(t){case 1:return"请假";case 2:return"加班";default:break}}},"状态":{field:"status",callback:t=>{switch(t){case 1:return"待审核";case 2:return"审核通过";case 3:return"审核驳回";default:break}}},"请假/加班开始时间":"startDate","请假/加班结束时间":"endDate","审核人名称":"reviewerName","审核时间":"reviewerDate"},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"申请人名称",prop:"createName",width:"auto"},{label:"申请人手机号",prop:"createTel",width:"auto"},{label:"请假/加班原因",prop:"reason",width:"auto"},{label:"类型",prop:"type",width:"auto",type:"function",callback:(t,e)=>{switch(t.type){case 1:return"请假";case 2:return"加班";default:break}}},{label:"状态",prop:"status",width:"auto",type:"function",callback:(t,e)=>{switch(t.status){case 1:return"待审核";case 2:return"审核通过";case 3:return"审核驳回";default:break}}},{label:"请假/加班开始时间",prop:"startDate",width:"auto"},{label:"请假/加班结束时间",prop:"endDate",width:"auto"},{label:"审核人名称",prop:"reviewerName",width:"auto"},{label:"审核时间",prop:"reviewerDate",width:"auto"}],table_data:[],url:"attendanceRecordLeaveList",search_item:[{type:"Int",label:"申请人手机号",placeholder:"请输入",prop:"createTel"},{type:"select",label:"类型",placeholder:"请输入",prop:"type",options:[{value:1,label:"请假"},{value:2,label:"加班"}]},{type:"select",label:"状态",placeholder:"请输入",prop:"status",options:[{value:1,label:"待审核"},{value:2,label:"审核通过"},{value:3,label:"审核驳回"}]}],data:{pageNum:1,size:10}}}},methods:{async fetchData(){let t={url:"attendanceRecordLeaveList",data:{pageNum:1,size:100}};const e=await Object(a["a"])(t,this);return e},ExcelLoading(t,e){const n=this.$loading({lock:!0,text:"正在导出Excel"+t,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});n.text=`正在导出Excel ${t}/${e}`,console.log(n.text)},finishDownload(){const t=this.$loading();t.close()},reviewer(t){1!=t.length?this.$message({message:"请选择一条记录审核",type:"error"}):1==t[0].status?(this.add_vrisible=!0,this.addForm.ruleForm.id=t[0].id):this.$message({message:"该记录不可审核",type:"error"})},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1},addSubmit(){let t={...this.addForm.ruleForm};Object(i["e"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})},dateTimeChange(t){this.addForm.ruleForm.openStartDate=t[0],this.addForm.ruleForm.openEndDate=t[1]},tableCheck(t){this.table_row=t},del(t){if(t.length){let t=[];for(let e=0;e{this.$refs.table.tableDelete(t)}).catch(t=>{})}else this.$message.error("请选中需要删除的数据")}}},s=o,d=n("2877"),c=Object(d["a"])(s,r,u,!1,null,null,null);e["default"]=c.exports},"662b":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return a}));n("f2d9");var r=n("2b74");async function u(t,e){let n=[];const u=await Object(r["b"])(t);if(n.push(...u.tableList),u.pageCount>1)for(let a=1;a