gz-att-web/gz-att/static/js/chunk-766b7fdd.9115d0b3.js

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-766b7fdd"],{"0ccb":function(t,e,a){var r=a("e330"),o=a("50c4"),n=a("577e"),s=a("1148"),i=a("1d80"),l=r(s),u=r("".slice),c=Math.ceil,d=function(t){return function(e,a,r){var s,d,p=n(i(e)),h=o(a),m=p.length,g=void 0===r?" ":n(r);return h<=m||""==g?p:(s=h-m,d=l(g,c(s/g.length)),d.length>s&&(d=u(d,0,s)),t?p+d:d+p)}};t.exports={start:d(!1),end:d(!0)}},"11e6":function(t,e,a){},"4d90":function(t,e,a){"use strict";var r=a("23e7"),o=a("0ccb").start,n=a("9a0c");r({target:"String",proto:!0,forced:n},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"9a0c":function(t,e,a){var r=a("342f");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},c40f:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"选择月份:",prop:"attCurrentMonth"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择月份",type:"month","value-format":"yyyy-MM",clearable:!1},on:{change:t.handleChange},model:{value:t.searchAttCurrentMonth,callback:function(e){t.searchAttCurrentMonth=e},expression:"searchAttCurrentMonth"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("查询")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.reset}},[t._v("重置")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",attrs:{data:t.tableData,"row-key":"id"}},[a("el-table-column",{attrs:{label:"序号",align:"center",width:"80",type:"index"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s((t.queryParams.pageNum-1)*t.queryParams.pageSize+e.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"月份",align:"center",prop:"attCurrentMonth",sortable:""}}),a("el-table-column",{attrs:{label:"异常数量",align:"center",prop:"errorCount",sortable:""}}),a("el-table-column",{attrs:{label:"已处理数量",align:"center",prop:"finishCount",sortable:""}}),a("el-table-column",{attrs:{label:"未处理数量",align:"center",prop:"noFinishCount",sortable:""}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.noFinishCount?a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return t.handleData(e.row)}}},[t._v("处理")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:t.title,visible:t.showRecord,width:"1200px",height:"1000px","append-to-body":""},on:{"update:visible":function(e){t.showRecord=e},close:t.cancelRecord}},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],ref:"queryFormRecord",attrs:{model:t.queryRecord,size:"small",inline:!0,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"选择考勤时间段"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQueryRecord}},[t._v("查询")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetRecord}},[t._v("重置")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingTwo,expression:"loadingTwo"}],attrs:{data:t.tableDataRecord,width:"900px",height:"600px","row-key":"id"}},[a("el-table-column",{attrs:{label:"序号",align:"center",width:"80",type:"index"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s((t.queryRecord.pageNum-1)*t.queryRecord.pageSize+e.$index+1))])]}}])}),t._e(),a("el-table-column",{attrs:{label:"姓名",align:"center",prop:"name",width:"80",sortable:""}}),a("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName",sortable:""}}),a("el-table-column",{attrs:{label:"考勤日期",align:"center",prop:"attCurrent",width:"100",sortable:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.formatDate(e.row.attCurrent)))])]}}])},[t._v("\\ ")]),a("el-table-column",{attrs:{label:"上班打卡时间",align:"center",prop:"goWorkTime",width:"140",sortable:""}}),a("el-table-column",{attrs:{label:"上班状态",align:"center",prop:"goWorkStatus",width:"100",sortable:""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.goWorkStatus?a("span",[t._v(t._s("正常"))]):t._e(),2==e.row.goWorkStatus?a("span",[t._v(t._s("迟到"))]):t._e(),3==e.row.goWorkStatus?a("span",[t._v(t._s("旷工"))]):t._e(),4==e.row.goWorkStatus?a("span",[t._v(t._s("早退"))]):t._e(),5==e.row.goWorkStatus?a("span",[t._v(t._s("轮休"))]):t._e(),6==e.row.goWorkStatus?a("span",[t._v(t._s("请假"))]):t._e(),7==e.row.goWorkStatus?a("span",[t._v(t._s("临时外出"))]):t._e(),8==e.row.goWorkStatus?a("span",[t._v(t._s("出入异常"))]):t._e(),9==e.row.goWorkStatus?a("span",[t._v(t._s("打卡地异常"))]):a("span",[t._v(t._s())])]}}])}),a("el-table-column",{attrs:{label:"上班打卡地址",align:"center",prop:"goWorkAddress",sortable:""}}),a("el-table-column",{attrs:{label:"下班打卡时间",align:"center",prop:"offWorkTime",width:"140",sortable:""}}),a("el-table-column",{attrs:{label:"下班状态",align:"center",prop:"offWorkStatus",width:"100",sortable:""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.offWorkStatus?a("span",[t._v(t._s("正常"))]):t._e(),2==e.row.offWorkStatus?a("span",[t._v(t._s("迟到"))]):t._e(),3==e.row.offWorkStatus?a("span",[t._v(t._s("旷工"))]):t._e(),4==e.row.offWorkStatus?a("span",[t._v(t._s("早退"))]):t._e(),5==e.row.offWorkStatus?a("span",[t._v(t._s("轮休"))]):t._e(),6==e.row.offWorkStatus?a("span",[t._v(t._s("请假"))]):t._e(),7==e.row.offWorkStatus?a("span",[t._v(t._s("临时外出"))]):t._e(),8==e.row.offWorkStatus?a("span",[t._v(t._s("出入异常"))]):t._e(),9==e.row.offWorkStatus?a("span",[t._v(t._s("打卡地异常"))]):a("span",[t._v(t._s())])]}}])}),a("el-table-column",{attrs:{label:"下班打卡地址",align:"center",prop:"offWorkAddress",sortable:""}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.totalTwo>0,expression:"totalTwo>0"}],attrs:{total:t.totalTwo,page:t.queryRecord.pageNum,limit:t.queryRecord.pageSize},on:{"update:page":function(e){return t.$set(t.queryRecord,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryRecord,"pageSize",e)},pagination:t.getListRecord}})],1)],1)},o=[],n=(a("99af"),a("14d9"),a("d3b7"),a("25f0"),a("4d90"),a("b775"));function s(t){return Object(n["a"])({url:"/system/attExceptionHandle/list",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/system/attDetailByMonth/getDetail",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/system/attDetailByMonth/export",method:"get",responseType:"blob",params:t})}var u=a("989b"),c=(a("5f87"),{name:"Post",dicts:["sys_normal_disable","sys_voltage_level","sys_org_name","sys_pro_type","sys_pro_status","sys_yz_manage","sys_sg_manage","sys_jl_manage","sys_device_type"],components:{},data:function(){return{showAttribute:!1,loading:!0,loadingTwo:!0,ids:[],showSearch:!0,showRecord:!1,maxLength:100,searchAttCurrentMonth:void 0,total:0,totalTwo:0,tableData:[],tableDataRecord:[],title:"",title1:"打卡记录",title2:"迟到记录",title3:"早退记录",title4:"旷工记录",title5:"打卡地异常记录",title6:"出入异常记录",title7:"请假记录",open:!1,dateRange:[],queryParams:{pageNum:1,pageSize:10,attCurrentMonth:void 0,name:void 0,orgName:void 0},queryRecord:{pageNum:1,pageSize:10,userId:void 0,attStatis:void 0}}},computed:{},created:function(){var t=new Date;t.setMonth(t.getMonth()-1),this.searchAttCurrentMonth=t,this.$route.query.param&&(console.log(this.$route.query.param),this.queryParams.attCurrentMonth=this.$route.query.param),this.getList()},mounted:function(){},methods:{handleChange:function(t){if(!t){console.log(t);var e=new Date;e.setMonth(e.getMonth()-1),this.searchAttCurrentMonth=e,this.getList()}},formatDateTwo:function(t){var e=new Date(t),a=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0");return"".concat(a,"-").concat(r)},formatDate:function(t){var e=new Date(t),a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),n=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"],s=n[e.getDay()];return"".concat(a,"-").concat(r,"-").concat(o," ").concat(s)},getList:function(){var t=this;this.loading=!0,this.queryParams.attCurrentMonth=this.formatDateTwo(this.searchAttCurrentMonth),console.log(this.queryParams.attCurrentMonth),s(this.queryParams).then((function(e){t.tableData=e.rows,t.total=e.total,t.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},reset:function(){this.queryForm={},this.resetForm("queryForm"),this.getList()},handleData:function(t){this.$router.push({path:"/exceptionHandle/errorForm",query:{attCurrentMonth:t.attCurrentMonth}})},resetRecord:function(){this.dateRange=[],this.resetForm("queryFormRecord"),this.getListRecord()},openRecord:function(t,e){this.id=t.id,this.title=e,this.queryRecord.userId=t.userId,"打卡记录"==e?this.queryRecord.attStatis=1:"迟到记录"==e?this.queryRecord.attStatis=2:"早退记录"==e?this.queryRecord.attStatis=4:"旷工记录"==e?this.queryRecord.attStatis=3:"打卡地异常记录"==e?this.queryRecord.attStatis=9:"出入异常记录"==e?this.queryRecord.attStatis=8:"请假记录"==e&&(this.queryRecord.attStatis=6),this.showRecord=!0,this.getListRecord()},getListRecord:function(){var t=this;this.loadingTwo=!0,i(this.addDateRange(this.queryRecord,this.dateRange)).then((function(e){t.tableDataRecord=e.rows,t.totalTwo=e.total,t.loadingTwo=!1}))},handleQueryRecord:function(){this.queryRecord.pageNum=1,this.getListRecord()},cancelRecord:function(){this.showRecord=!1,this.resetRecord()},handleExport:function(){l(this.queryParams).then((function(t){Object(u["a"])({fileName:"月异常报表_".concat((new Date).getTime(),".xlsx"),fileData:t,fileType:"application/vnd.ms-excel;charset=utf-8"})}))}}}),d=c,p=(a("c88d"),a("2877")),h=Object(p["a"])(d,r,o,!1,null,"53383522",null);e["default"]=h.exports},c88d:function(t,e,a){"use strict";a("11e6")}}]);