1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-611dfe3c"],{"0ccb":function(e,t,r){var a=r("e330"),o=r("50c4"),n=r("577e"),i=r("1148"),l=r("1d80"),s=a(i),u=a("".slice),c=Math.ceil,d=function(e){return function(t,r,a){var i,d,p=n(l(t)),m=o(r),f=p.length,h=void 0===a?" ":n(a);return m<=f||""==h?p:(i=m-f,d=s(h,c(i/h.length)),d.length>i&&(d=u(d,0,i)),e?p+d:d+p)}};e.exports={start:d(!1),end:d(!0)}},"34cc":function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));var a=r("b775");function o(e){return Object(a["a"])({url:"/system/attDetailByMonth/list",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/system/attDetailByMonth/getDetail",method:"get",params:e})}function i(e){return Object(a["a"])({url:"/system/attDetailByMonth/export",method:"get",responseType:"blob",params:e})}},"4d90":function(e,t,r){"use strict";var a=r("23e7"),o=r("0ccb").start,n=r("9a0c");a({target:"String",proto:!0,forced:n},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5294:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"选择月份",prop:"attCurrentMonth"}},[r("el-date-picker",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择月份",type:"month","value-format":"yyyy-MM"},model:{value:e.queryParams.attCurrentMonth,callback:function(t){e.$set(e.queryParams,"attCurrentMonth",t)},expression:"queryParams.attCurrentMonth"}})],1),r("el-form-item",{attrs:{label:"部门",prop:"orgId"}},[r("treeselect",{staticStyle:{width:"240px"},attrs:{options:e.deptOptions,normalizer:e.normalizer,placeholder:"选择部门"},on:{select:e.handleSelect},model:{value:e.queryParams.orgId,callback:function(t){e.$set(e.queryParams,"orgId",t)},expression:"queryParams.orgId"}})],1),r("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入姓名",clearable:"",maxlength:"20"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.name,callback:function(t){e.$set(e.queryParams,"name",t)},expression:"queryParams.name"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("查询")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.reset}},[e._v("重置")]),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["att:detail:export"],expression:"['att:detail:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出数据")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{data:e.tableData,"row-key":"id"}},[r("el-table-column",{attrs:{label:"序号",align:"center",width:"80",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s((e.queryParams.pageNum-1)*e.queryParams.pageSize+t.$index+1))])]}}])}),r("el-table-column",{attrs:{label:"姓名",align:"center",prop:"name",sortable:""}}),r("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName",sortable:""}}),r("el-table-column",{attrs:{label:"考勤月份",align:"center",prop:"attCurrentMonth",sortable:""}}),r("el-table-column",{attrs:{label:"应出勤天数",align:"center",prop:"requiredDays",sortable:""}}),r("el-table-column",{attrs:{label:"正常打卡天数",align:"center",prop:"normalNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.normalNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title1)}}},[e._v(" "+e._s(t.row.normalNum)+" ")]):r("div",[e._v(e._s(t.row.normalNum))])]}}])}),r("el-table-column",{attrs:{label:"迟到次数",align:"center",prop:"lateNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.lateNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title2)}}},[e._v(" "+e._s(t.row.lateNum)+" ")]):r("div",[e._v(e._s(t.row.lateNum))])]}}])}),r("el-table-column",{attrs:{label:"早退次数",align:"center",prop:"earlyNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.earlyNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title3)}}},[e._v(" "+e._s(t.row.earlyNum)+" ")]):r("div",[e._v(e._s(t.row.earlyNum))])]}}])}),r("el-table-column",{attrs:{label:"旷工次数",align:"center",prop:"skippingNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.skippingNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title4)}}},[e._v(" "+e._s(t.row.skippingNum)+" ")]):r("div",[e._v(e._s(t.row.skippingNum))])]}}])}),r("el-table-column",{attrs:{label:"打卡地异常次数",align:"center",prop:"addressErrorNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.addressErrorNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title5)}}},[e._v(" "+e._s(t.row.addressErrorNum)+" ")]):r("div",[e._v(e._s(t.row.addressErrorNum))])]}}])}),r("el-table-column",{attrs:{label:"出入异常次数",align:"center",prop:"einErrorNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.einErrorNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title6)}}},[e._v(" "+e._s(t.row.einErrorNum)+" ")]):r("div",[e._v(e._s(t.row.einErrorNum))])]}}])}),r("el-table-column",{attrs:{label:"请假天数",align:"center",prop:"leaveNum",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.leaveNum?r("div",{staticStyle:{color:"#02a7f0",cursor:"pointer"},on:{click:function(r){return e.openRecord(t.row,e.title7)}}},[e._v(" "+e._s(t.row.leaveNum)+" ")]):r("div",[e._v(e._s(t.row.leaveNum))])]}}])})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),r("el-dialog",{attrs:{title:e.title,visible:e.showRecord,width:"1200px",height:"1000px","append-to-body":""},on:{"update:visible":function(t){e.showRecord=t},close:e.cancelRecord}},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryFormRecord",attrs:{model:e.queryRecord,size:"small",inline:!0,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"选择考勤时间段"}},[r("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQueryRecord}},[e._v("查询")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetRecord}},[e._v("重置")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingTwo,expression:"loadingTwo"}],attrs:{data:e.tableDataRecord,width:"900px",height:"600px","row-key":"id"}},[r("el-table-column",{attrs:{label:"序号",align:"center",width:"80",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s((e.queryRecord.pageNum-1)*e.queryRecord.pageSize+t.$index+1))])]}}])}),e._e(),r("el-table-column",{attrs:{label:"姓名",align:"center",prop:"name",width:"80",sortable:""}}),r("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName",sortable:""}}),r("el-table-column",{attrs:{label:"考勤日期",align:"center",prop:"attCurrent",width:"100",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.formatDate(t.row.attCurrent)))])]}}])},[e._v("\\ ")]),r("el-table-column",{attrs:{label:"上班打卡时间",align:"center",prop:"goWorkTime",width:"140",sortable:""}}),r("el-table-column",{attrs:{label:"上班状态",align:"center",prop:"goWorkStatus",width:"100",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.goWorkStatus?r("span",[e._v(e._s("正常"))]):e._e(),2==t.row.goWorkStatus?r("span",[e._v(e._s("迟到"))]):e._e(),3==t.row.goWorkStatus?r("span",[e._v(e._s("旷工"))]):e._e(),4==t.row.goWorkStatus?r("span",[e._v(e._s("早退"))]):e._e(),5==t.row.goWorkStatus?r("span",[e._v(e._s("轮休"))]):e._e(),6==t.row.goWorkStatus?r("span",[e._v(e._s("请假"))]):e._e(),7==t.row.goWorkStatus?r("span",[e._v(e._s("临时外出"))]):e._e(),8==t.row.goWorkStatus?r("span",[e._v(e._s("出入异常"))]):e._e(),9==t.row.goWorkStatus?r("span",[e._v(e._s("打卡地异常"))]):r("span",[e._v(e._s())])]}}])}),r("el-table-column",{attrs:{label:"上班打卡地址",align:"center",prop:"goWorkAddress",sortable:""}}),r("el-table-column",{attrs:{label:"下班打卡时间",align:"center",prop:"offWorkTime",width:"140",sortable:""}}),r("el-table-column",{attrs:{label:"下班状态",align:"center",prop:"offWorkStatus",width:"100",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.offWorkStatus?r("span",[e._v(e._s("正常"))]):e._e(),2==t.row.offWorkStatus?r("span",[e._v(e._s("迟到"))]):e._e(),3==t.row.offWorkStatus?r("span",[e._v(e._s("旷工"))]):e._e(),4==t.row.offWorkStatus?r("span",[e._v(e._s("早退"))]):e._e(),5==t.row.offWorkStatus?r("span",[e._v(e._s("轮休"))]):e._e(),6==t.row.offWorkStatus?r("span",[e._v(e._s("请假"))]):e._e(),7==t.row.offWorkStatus?r("span",[e._v(e._s("临时外出"))]):e._e(),8==t.row.offWorkStatus?r("span",[e._v(e._s("出入异常"))]):e._e(),9==t.row.offWorkStatus?r("span",[e._v(e._s("打卡地异常"))]):r("span",[e._v(e._s())])]}}])}),r("el-table-column",{attrs:{label:"下班打卡地址",align:"center",prop:"offWorkAddress",sortable:""}})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalTwo>0,expression:"totalTwo>0"}],attrs:{total:e.totalTwo,page:e.queryRecord.pageNum,limit:e.queryRecord.pageSize},on:{"update:page":function(t){return e.$set(e.queryRecord,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryRecord,"pageSize",t)},pagination:e.getListRecord}})],1)],1)},o=[],n=(r("99af"),r("d3b7"),r("25f0"),r("4d90"),r("34cc")),i=r("fcb7"),l=r("989b"),s=r("ca17"),u=r.n(s),c=(r("542c"),r("5f87"),{name:"Post",components:{Treeselect:u.a},data:function(){return{showAttribute:!1,loading:!1,loadingTwo:!1,ids:[],deptOptions:[],showSearch:!0,showRecord:!1,maxLength:100,total:0,totalTwo:0,tableData:[],tableDataRecord:[],title:"",title1:"打卡记录",title2:"迟到记录",title3:"早退记录",title4:"旷工记录",title5:"打卡地异常记录",title6:"出入异常记录",title7:"请假记录",open:!1,dateRange:[],startDate:void 0,endDate:void 0,queryParams:{pageNum:1,pageSize:10,attCurrentMonth:void 0,name:void 0,orgName:void 0,orgId:void 0},queryRecord:{pageNum:1,pageSize:10,userId:void 0,attStatis:void 0,attCurrent:void 0},pickerOptions:{disabledDate:this.disabledDate}}},computed:{},created:function(){this.getMonth(),this.getDeptList(),this.$route.query.param&&(console.log(this.$route.query.param),this.queryParams.attCurrentMonth=this.$route.query.param),this.getList()},mounted:function(){},methods:{disabledDate:function(e){var t=this.queryRecord.attCurrent+"-01",r=new Date(t),a=new Date(r.getFullYear(),r.getMonth(),1),o=new Date(r.getFullYear(),r.getMonth()+1,0);return e<a||e>o},getMonth:function(){var e=new Date,t={year:e.getFullYear(),month:e.getMonth(),day:e.getDate()},r=t.year+"-"+(t.month>=10?t.month:"0"+t.month);this.$set(this.queryParams,"attCurrentMonth",r.toString())},formatDate:function(e){var t=new Date(e),r=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),n=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"],i=n[t.getDay()];return"".concat(r,"-").concat(a,"-").concat(o," ").concat(i)},getDeptList:function(){var e=this;Object(i["d"])().then((function(t){e.deptOptions=e.handleTree(t.data,"id")}))},normalizer:function(e){return e.children&&!e.children.length&&delete e.children,{id:e.id,label:e.orgName,children:e.children}},handleSelect:function(e,t){console.log("Selected:",e),this.queryParams.orgName=e.orgName},getList:function(){var e=this;this.loading=!0,Object(n["c"])(this.queryParams).then((function(t){e.tableData=t.rows,e.total=t.total,e.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},reset:function(){this.queryForm={},this.resetForm("queryForm"),this.getList()},resetRecord:function(){this.dateRange=[],this.resetForm("queryFormRecord"),this.getListRecord()},openRecord:function(e,t){this.id=e.id,this.title=t,this.queryRecord.userId=e.userId,this.queryRecord.attCurrent=e.attCurrentMonth,"打卡记录"==t?this.queryRecord.attStatis=1:"迟到记录"==t?this.queryRecord.attStatis=2:"早退记录"==t?this.queryRecord.attStatis=4:"旷工记录"==t?this.queryRecord.attStatis=3:"打卡地异常记录"==t?this.queryRecord.attStatis=9:"出入异常记录"==t?this.queryRecord.attStatis=8:"请假记录"==t&&(this.queryRecord.attStatis=6),this.showRecord=!0,this.getListRecord()},getListRecord:function(){var e=this;this.loadingTwo=!0,Object(n["b"])(this.addDateRange(this.queryRecord,this.dateRange)).then((function(t){e.tableDataRecord=t.rows,e.totalTwo=t.total,e.loadingTwo=!1}))},handleQueryRecord:function(){this.queryRecord.pageNum=1,this.getListRecord()},cancelRecord:function(){this.showRecord=!1,this.resetRecord()},handleExport:function(){Object(n["a"])(this.queryParams).then((function(e){Object(l["a"])({fileName:"月异常报表_".concat((new Date).getTime(),".xlsx"),fileData:e,fileType:"application/vnd.ms-excel;charset=utf-8"})}))}}}),d=c,p=(r("f7a5"),r("2877")),m=Object(p["a"])(d,a,o,!1,null,"70cd119f",null);t["default"]=m.exports},"9a0c":function(e,t,r){var a=r("342f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(a)},d6aa:function(e,t,r){},f7a5:function(e,t,r){"use strict";r("d6aa")},fcb7:function(e,t,r){"use strict";r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"e",(function(){return l})),r.d(t,"b",(function(){return s}));var a=r("b775");function o(e){return Object(a["a"])({url:"/system/org/list",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/system/org/"+e,method:"get"})}function i(e){return Object(a["a"])({url:"/system/org",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/system/org",method:"put",data:e})}function s(e){return Object(a["a"])({url:"/system/org/"+e,method:"delete"})}}}]); |