gz-att-web/gz-att/static/js/chunk-d0634d9a.e34f96f7.js

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d0634d9a"],{"0099":function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"b",(function(){return l})),a.d(e,"d",(function(){return s}));var r=a("b775");a("0afd");function o(t){return Object(r["a"])({url:"/system/attDetails/getDetailsList",method:"get",params:t})}function n(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 s(t){return Object(r["a"])({url:"/system/attDetails/updateAttDetailsDataExamine",method:"put",data:t})}},"0ccb":function(t,e,a){var r=a("e330"),o=a("50c4"),n=a("577e"),l=a("1148"),s=a("1d80"),i=r(l),u=r("".slice),c=Math.ceil,d=function(t){return function(e,a,r){var l,d,f=n(s(e)),p=o(a),m=f.length,h=void 0===r?" ":n(r);return p<=m||""==h?f:(l=p-m,d=i(h,c(l/h.length)),d.length>l&&(d=u(d,0,l)),t?f+d:d+f)}};t.exports={start:d(!1),end:d(!0)}},"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)},a302: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":"68px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"userName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入姓名",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.userName,callback:function(e){t.$set(t.queryParams,"userName",e)},expression:"queryParams.userName"}})],1),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),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),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.handleQuery}},[t._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")]),a("el-button",{attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:t.handleExport}},[t._v("导出")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.openDialog}},[t._v("批量修改")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("right-toolbar",{attrs:{showSearch:t.showSearch},on:{"update:showSearch":function(e){t.showSearch=e},"update:show-search":function(e){t.showSearch=e},queryTable:t.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.typeList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),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:"userName"}}),a("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"考勤日期",align:"center",prop:"attCurrentDay",width:"180","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.formatDate(e.row.attCurrentDay)))])]}}])}),a("el-table-column",{attrs:{label:"上班打卡时间",align:"center",prop:"toWorkAttCurrentTime",width:"180"}}),a("el-table-column",{attrs:{label:"上班状态",align:"center",prop:"toWorkAttStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.toWorkAttStatus?a("div",[t._v("未打卡")]):t._e(),1==e.row.toWorkAttStatus?a("div",[t._v("正常")]):t._e(),2==e.row.toWorkAttStatus?a("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==e.row.toWorkAttStatus?a("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==e.row.toWorkAttStatus?a("div",[t._v("早退")]):t._e(),5==e.row.toWorkAttStatus?a("div",[t._v("轮休")]):t._e(),6==e.row.toWorkAttStatus?a("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==e.row.toWorkAttStatus?a("div",[t._v("临时外出")]):t._e(),8==e.row.toWorkAttStatus?a("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==e.row.toWorkAttStatus?a("div",[t._v("打卡地异常")]):t._e(),10==e.row.toWorkAttStatus?a("div",[t._v("出差")]):t._e(),11==e.row.toWorkAttStatus?a("div",[t._v("法定节假日")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"toWorkAttAddress","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"异常备注",align:"center",prop:"toWorkErrorRemake","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"下班打卡时间",align:"center",prop:"offWorkAttCurrentTime",width:"180"}}),a("el-table-column",{attrs:{label:"下班状态",align:"center",prop:"offWorkAttStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.offWorkAttStatus?a("div",[t._v("未打卡")]):t._e(),1==e.row.offWorkAttStatus?a("div",[t._v("正常")]):t._e(),2==e.row.offWorkAttStatus?a("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==e.row.offWorkAttStatus?a("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==e.row.offWorkAttStatus?a("div",[t._v("早退")]):t._e(),5==e.row.offWorkAttStatus?a("div",[t._v("轮休")]):t._e(),6==e.row.offWorkAttStatus?a("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==e.row.offWorkAttStatus?a("div",[t._v("临时外出")]):t._e(),8==e.row.offWorkAttStatus?a("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==e.row.offWorkAttStatus?a("div",[t._v("打卡地异常")]):t._e(),10==e.row.offWorkAttStatus?a("div",[t._v("出差")]):t._e(),11==e.row.offWorkAttStatus?a("div",[t._v("法定节假日")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"offWorkAttAddress","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"异常备注",align:"center",prop:"offWorkErrorRemake","show-overflow-tooltip":!0}})],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:"批量修改",visible:t.open,width:"1200px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.dialogList,width:"100%",height:"500px"}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"55",align:"center",fixed:""}}),a("el-table-column",{attrs:{label:"姓名",align:"center",prop:"userName",fixed:""}}),a("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName","show-overflow-tooltip":!0,width:"150",fixed:""}}),a("el-table-column",{attrs:{label:"考勤日期",align:"center",prop:"attCurrentDay","show-overflow-tooltip":!0,width:"180",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.formatDate(e.row.attCurrentDay)))])]}}])}),a("el-table-column",{attrs:{label:"修改上班时间",align:"center",prop:"toWorkAttCurrentTime",width:"240"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-date-picker",{staticStyle:{width:"95%"},attrs:{clearable:!1,type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择上班时间"},model:{value:e.row.toWorkAttCurrentTime,callback:function(a){t.$set(e.row,"toWorkAttCurrentTime",a)},expression:"scope.row.toWorkAttCurrentTime"}})]}}])}),a("el-table-column",{attrs:{label:"修改上班状态",align:"center",prop:"toWorkAttStatus",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{staticStyle:{width:"95%"},attrs:{placeholder:"修改后上班状态"},model:{value:e.row.toWorkAttStatus,callback:function(a){t.$set(e.row,"toWorkAttStatus",a)},expression:"scope.row.toWorkAttStatus"}},t._l(t.dict.type.att_status,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]}}])}),a("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"toWorkAttAddress","show-overflow-tooltip":!0,width:"180"}}),a("el-table-column",{attrs:{label:"原因说明",align:"center",prop:"toErrorRemake",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{type:"textarea",maxlength:"100"},model:{value:e.row.toErrorRemake,callback:function(a){t.$set(e.row,"toErrorRemake",a)},expression:"scope.row.toErrorRemake"}})]}}])}),a("el-table-column",{attrs:{label:"修改下班时间",align:"center",prop:"offWorkAttCurrentTime",width:"240"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-date-picker",{staticStyle:{width:"95%"},attrs:{clearable:!1,type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择下班时间"},model:{value:e.row.offWorkAttCurrentTime,callback:function(a){t.$set(e.row,"offWorkAttCurrentTime",a)},expression:"scope.row.offWorkAttCurrentTime"}})]}}])}),a("el-table-column",{attrs:{label:"修改下班状态",align:"center",prop:"offWorkAttStatus",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{staticStyle:{width:"95%"},attrs:{placeholder:"修改后下班状态"},model:{value:e.row.offWorkAttStatus,callback:function(a){t.$set(e.row,"offWorkAttStatus",a)},expression:"scope.row.offWorkAttStatus"}},t._l(t.dict.type.att_status,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]}}])}),a("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"offWorkAttAddress","show-overflow-tooltip":!0,width:"180"}}),a("el-table-column",{attrs:{label:"原因说明",align:"center",prop:"offErrorRemake",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{type:"textarea",maxlength:"100"},model:{value:e.row.offErrorRemake,callback:function(a){t.$set(e.row,"offErrorRemake",a)},expression:"scope.row.offErrorRemake"}})]}}])})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitEdit}},[t._v("确 定")]),a("el-button",{on:{click:t.cancel}},[t._v("取 消")])],1)],1)],1)},o=[],n=a("5530"),l=(a("99af"),a("c740"),a("14d9"),a("d3b7"),a("4d90"),a("159b"),a("0099")),s=a("fcb7"),i=a("ca17"),u=a.n(i),c=(a("542c"),{name:"Dict",dicts:["att_status"],components:{Treeselect:u.a},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,typeList:[],title:"",open:!1,dialogList:[],dateRange:[],deptOptions:[],queryParams:{pageNum:1,pageSize:10,userName:void 0,orgId:void 0,attStatus:void 0}}},created:function(){this.getWeekDates(),this.getDeptList(),this.getList()},methods:{getWeekDates:function(){var t=new Date,e=t.getDay(),a=0===e?-6:1-e,r=new Date(t);r.setDate(r.getDate()+a);var o=new Date(r);o.setDate(o.getDate()+6),this.dateRange[0]=r.toISOString().split("T")[0],this.dateRange[1]=o.toISOString().split("T")[0]},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=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"],l=n[e.getDay()];return"".concat(a,"-").concat(r,"-").concat(o," ").concat(l)},getDeptList:function(){var t=this;Object(s["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}},getList:function(){var t=this;this.loading=!0,console.log(this.dateRange),this.dateRange&&this.dateRange.length>0?(this.queryParams.startDate=this.dateRange[0],this.queryParams.endDate=this.dateRange[1]):(this.queryParams.startDate=void 0,this.queryParams.endDate=void 0),Object(l["a"])(this.queryParams).then((function(e){t.typeList=e.rows,t.total=e.total,t.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.getWeekDates(),this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(t){this.dialogList=t},openDialog:function(){console.log(this.dialogList),this.dialogList.length>0?this.open=!0:this.$message({message:"请先勾选数据!",type:"warning"})},submitEdit:function(){var t=this,e=[],a=this.dialogList.findIndex((function(t){return!t.toErrorRemake||""==t.toErrorRemake||!t.offErrorRemake||""==t.offErrorRemake}));console.log(a),this.$modal.msgSuccess("修改申请提交成功,耐心等待审批,请勿重复提交!"),a>-1?this.$message({message:"原因说明不可为空!",type:"warning"}):(this.dialogList.forEach((function(t){var a={userId:t.userId,orgId:t.orgId,attCurrentDay:t.attCurrentDay,toWorkAttCurrentTime:t.toWorkAttCurrentTime,toWorkAttStatus:t.toWorkAttStatus,toErrorRemake:t.toErrorRemake,offWorkAttCurrentTime:t.offWorkAttCurrentTime,offWorkAttStatus:t.offWorkAttStatus,offErrorRemake:t.offErrorRemake};e.push(a)})),Object(l["c"])(e).then((function(e){200==e.code?(t.$modal.msgSuccess("修改申请提交成功,耐心等待审批,请勿重复提交!"),t.dialogList=[],t.open=!1,t.getList()):t.$message({message:"修改申请提交失败!",type:"warning"})})))},cancel:function(){this.open=!1},handleExport:function(){this.download("system/dict/type/export",Object(n["a"])({},this.queryParams),"type_".concat((new Date).getTime(),".xlsx"))}}}),d=c,f=a("2877"),p=Object(f["a"])(d,r,o,!1,null,null,null);e["default"]=p.exports},fcb7:function(t,e,a){"use strict";a.d(e,"d",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return l})),a.d(e,"e",(function(){return s})),a.d(e,"b",(function(){return i}));var r=a("b775");function o(t){return Object(r["a"])({url:"/system/org/list",method:"get",params:t})}function n(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 s(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"})}}}]);