1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53af112b"],{"0099":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"b",(function(){return l})),a.d(e,"d",(function(){return n}));var r=a("b775");a("0afd");function s(t){return Object(r["a"])({url:"/system/attDetails/getDetailsList",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/system/attDetails",method:"put",data:t})}function l(t){return Object(r["a"])({url:"/system/attDetails/getAttUpdateList",method:"get",params:t})}function n(t){return Object(r["a"])({url:"/system/attDetails/updateAttDetailsDataExamine",method:"put",data:t})}},"0ccb":function(t,e,a){var r=a("e330"),s=a("50c4"),o=a("577e"),l=a("1148"),n=a("1d80"),i=r(l),u=r("".slice),p=Math.ceil,c=function(t){return function(e,a,r){var l,c,_=o(n(e)),m=s(a),d=_.length,b=void 0===r?" ":o(r);return m<=d||""==b?_:(l=m-d,c=i(b,p(l/b.length)),c.length>l&&(c=u(c,0,l)),t?_+c:c+_)}};t.exports={start:c(!1),end:c(!0)}},3521: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:"wrapper"},[a("el-dialog",{staticStyle:{"margin-top":"5vh"},attrs:{title:t.title,visible:t.open,width:"80%","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(e){t.open=e},close:t.closeDialog}},[a("div",{staticClass:"content"},[a("el-form",{ref:"queryFormRef",staticStyle:{"margin-bottom":"20px"},attrs:{model:t.queryParams,size:"medium",inline:!0,"label-width":"80px"}},[12==t.status?a("el-form-item",{attrs:{label:"选择月份"}},[a("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM",placeholder:"选择月"},model:{value:t.queryParams.month,callback:function(e){t.$set(t.queryParams,"month",e)},expression:"queryParams.month"}})],1):t._e(),a("el-form-item",{attrs:{label:"姓名",prop:"userName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入姓名",clearable:""},model:{value:t.queryParams.userName,callback:function(e){t.$set(t.queryParams,"userName",e)},expression:"queryParams.userName"}})],1),12==t.status?a("el-form-item",{attrs:{label:"部门",prop:"orgId"}},[a("treeselect",{staticStyle:{width:"240px"},attrs:{options:t.deptOptions,normalizer:t.normalizer,placeholder:"选择部门"},model:{value:t.queryParams.orgId,callback:function(e){t.$set(t.queryParams,"orgId",e)},expression:"queryParams.orgId"}})],1):t._e(),12==t.status?a("el-form-item",{attrs:{label:"状态",prop:"attStatus"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"状态",clearable:""},model:{value:t.queryParams.attStatus,callback:function(e){t.$set(t.queryParams,"attStatus",e)},expression:"queryParams.attStatus"}},t._l(t.dict.type.att_status,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e(),a("el-button",{staticStyle:{"margin-top":"3px"},attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:function(e){return t.getTableList(t.currentFunc)}}},[t._v("搜索")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tableRef",attrs:{data:t.tableList,border:"",width:"100%",height:"500px"}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s((t.queryParams.pageNum-1)*t.queryParams.pageSize+e.$index+1)+" ")]}}])}),t._l(t.columnList,(function(e,r){return a("el-table-column",{key:r,attrs:{label:e.t_label,prop:e.t_props,width:e.t_width,align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(r){return["attStatus"===e.t_slot?[0==r.row[e.t_props]?a("div",[t._v("未打卡")]):t._e(),1==r.row[e.t_props]?a("div",[t._v("正常")]):t._e(),2==r.row[e.t_props]?a("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==r.row[e.t_props]?a("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==r.row[e.t_props]?a("div",[t._v("早退")]):t._e(),5==r.row[e.t_props]?a("div",[t._v("轮休")]):t._e(),6==r.row[e.t_props]?a("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==r.row[e.t_props]?a("div",[t._v("临时外出")]):t._e(),8==r.row[e.t_props]?a("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==r.row[e.t_props]?a("div",[t._v("打卡地异常")]):t._e(),10==r.row[e.t_props]?a("div",[t._v("出差")]):t._e(),11==r.row[e.t_props]?a("div",[t._v("法定节假日")]):t._e()]:"attCurrentDay"===e.t_slot?[a("span",[t._v(t._s(t.formatWeekday(r.row[e.t_props])))])]:"examineStatus"===e.t_slot?[0==r.row[e.t_props]?a("span",[t._v(t._s("审核中"))]):t._e(),1==r.row[e.t_props]?a("span",[t._v(t._s("通过"))]):t._e(),2==r.row[e.t_props]?a("span",[t._v(t._s("不通过"))]):t._e(),3==r.row[e.t_props]?a("span",[t._v(t._s("待审核"))]):a("span",[t._v(t._s())])]:[t._v(" "+t._s(r.row[e.t_props]||"-")+" ")]]}}],null,!0)})}))],2),a("pagination",{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:function(e){return t.getTableList(t.currentFunc,t.currentParam)}}})],1)])],1)},s=[],o=a("c7eb"),l=a("1da1"),n=(a("99af"),a("b0c0"),a("d3b7"),a("25f0"),a("4d90"),a("fcb7")),i=a("ca17"),u=a.n(i),p=(a("542c"),a("0099")),c=a("4888"),_=a("5fd4"),m={name:"commonDialog",dicts:["att_status"],components:{Treeselect:u.a},data:function(){return{total:0,loading:!1,status:void 0,queryParams:{month:void 0,pageNum:1,pageSize:10},title:"",open:!1,deptOptions:[],tableList:[],columnList:[],additionalList:[],currentFunc:void 0,currentParam:void 0,proTypeRange:[{label:"变电工程",value:"1"},{label:"线路工程",value:"2"},{label:"电缆工程",value:"3"}]}},mounted:function(){this.getDeptList()},methods:{getMonth:function(){var t=new Date,e={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()},a=e.year+"-"+(e.month>=10?e.month:"0"+e.month);this.$set(this.queryParams,"month",a.toString())},getMonthDate:function(){var t=this.queryParams.month+"-01",e=new Date(t),a=new Date(e.getFullYear(),e.getMonth(),1),r=this.formatDate(a),s=new Date(e.getFullYear(),e.getMonth()+1,0),o=this.formatDate(s);return[r,o]},formatDate:function(t){var e=new Date(t),a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return"".concat(a,"-").concat(r,"-").concat(s)},formatWeekday:function(t){var e=new Date(t),a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0"),o=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"],l=o[e.getDay()];return"".concat(a,"-").concat(r,"-").concat(s," ").concat(l)},getDeptList:function(){var t=this;Object(n["d"])().then((function(e){t.deptOptions=t.handleTree(e.data,"id")}))},normalizer:function(t){return t.children&&!t.children.length&&delete t.children,{id:t.id,label:t.orgName,children:t.children}},getAttDayReportDetailsList:function(t){return Object(l["a"])(Object(o["a"])().mark((function e(){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["a"])(t).then((function(t){return t}));case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})))()},getDetailExceptionAll:function(t){return Object(l["a"])(Object(o["a"])().mark((function e(){var a,r,s,l;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Date,r={year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()},s=r.year+"-"+(r.month>=10?r.month:"0"+r.month),t.month=s.toString(),t.name=t.userName,t.attCurrentMonth=t.month,e.next=8,Object(_["a"])(t).then((function(t){return t}));case 8:return l=e.sent,e.abrupt("return",l);case 10:case"end":return e.stop()}}),e)})))()},getDetailsList:function(t){var e=this;return Object(l["a"])(Object(o["a"])().mark((function a(){var r,s;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return r=e.getMonthDate(),console.log(r),r&&r.length>0?(t.startDate=r[0],t.endDate=r[1]):(t.startDate=void 0,t.endDate=void 0),a.next=5,Object(p["a"])(t).then((function(t){return t}));case 5:return s=a.sent,a.abrupt("return",s);case 7:case"end":return a.stop()}}),a)})))()},setOpen:function(t){switch(console.log(t),this.queryParams={pageNum:1,pageSize:10},this.open=t.open,this.status=t.param.order,t.param.order){case 1:this.title="打卡记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 2:this.title="迟到记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 3:this.title="旷工记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 4:this.title="早退记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 6:this.title="请假记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 8:this.title="出入异常记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 9:this.title="打卡地异常记录",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.currentFunc=this.getAttDayReportDetailsList,this.getTableList(this.getAttDayReportDetailsList,t.param);break;case 10:this.title="已处理异常数据",this.columnList=[{t_props:"name",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"leaveType",t_label:"请假类型"},{t_props:"leaveStartDate",t_label:"请假开始时间"},{t_props:"leaveEndDate",t_label:"请假结束时间"},{t_props:"leaveDuration",t_label:"请假时长(天)"},{t_props:"examineStatus",t_label:"审批状态",t_slot:"examineStatus"}],this.currentFunc=this.getDetailExceptionAll,this.getTableList(this.getDetailExceptionAll,t.param);break;case 11:this.title="未处理异常数据",this.columnList=[{t_props:"name",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"leaveType",t_label:"请假类型"},{t_props:"leaveStartDate",t_label:"请假开始时间"},{t_props:"leaveEndDate",t_label:"请假结束时间"},{t_props:"leaveDuration",t_label:"请假时长(天)"},{t_props:"examineStatus",t_label:"审批状态",t_slot:"examineStatus"}],this.currentFunc=this.getDetailExceptionAll,this.getTableList(this.getDetailExceptionAll,t.param);break;case 12:this.title="当月异常统计",this.columnList=[{t_props:"userName",t_label:"姓名"},{t_props:"orgName",t_label:"所属部门"},{t_props:"attCurrentDay",t_label:"考勤日期",t_slot:"attCurrentDay"},{t_props:"toWorkAttCurrentTime",t_label:"上班打卡时间"},{t_props:"toWorkAttStatus",t_label:"上班状态",t_slot:"attStatus"},{t_props:"toWorkAttAddress",t_label:"打卡地址"},{t_props:"offWorkAttCurrentTime",t_label:"下班打卡时间"},{t_props:"offWorkAttStatus",t_label:"下班状态",t_slot:"attStatus"},{t_props:"offWorkAttAddress",t_label:"打卡地址"}],this.getMonth(),this.currentFunc=this.getDetailsList,this.getTableList(this.getDetailsList,t.param);break}},getTableList:function(t,e){var a=this;return Object(l["a"])(Object(o["a"])().mark((function r(){var s;return Object(o["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e&&Object.assign(a.queryParams,e),r.next=3,t(a.queryParams);case 3:s=r.sent,console.log(s),s.data?(a.tableList=s.data.rows,a.total=s.data.total):(a.total=s.total,a.tableList=s.rows);case 6:case"end":return r.stop()}}),r)})))()},closeDialog:function(){this.queryParams={pageNum:1,pageSize:10}}}},d=m,b=(a("895c"),a("2877")),h=Object(b["a"])(d,r,s,!1,null,"758fd134",null);e["default"]=h.exports},4888:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return o}));var r=a("b775");a("0afd");function s(t){return Object(r["a"])({url:"/system/attDetails/getAttDayReportList",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/system/attDetails/getAttDayReportDetailsList",method:"get",params:t})}},"4d90":function(t,e,a){"use strict";var r=a("23e7"),s=a("0ccb").start,o=a("9a0c");r({target:"String",proto:!0,forced:o},{padStart:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},"5fd4":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return o}));var r=a("b775");function s(t){return Object(r["a"])({url:"/system/homePage/getHomePageData",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/system/attExceptionHandle/getDetailExceptionAll",method:"get",params:t})}},"895c":function(t,e,a){"use strict";a("9906")},9906:function(t,e,a){},"9a0c":function(t,e,a){var r=a("342f");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},fcb7:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"e",(function(){return n})),a.d(e,"b",(function(){return i}));var r=a("b775");function s(t){return Object(r["a"])({url:"/system/org/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/system/org/"+t,method:"get"})}function l(t){return Object(r["a"])({url:"/system/org",method:"post",data:t})}function n(t){return Object(r["a"])({url:"/system/org",method:"put",data:t})}function i(t){return Object(r["a"])({url:"/system/org/"+t,method:"delete"})}}}]); |