1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f253ab2"],{"0099":function(t,o,e){"use strict";e.d(o,"a",(function(){return a})),e.d(o,"c",(function(){return i})),e.d(o,"b",(function(){return n})),e.d(o,"d",(function(){return l}));var r=e("b775");e("0afd");function a(t){return Object(r["a"])({url:"/system/attDetails/getDetailsList",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/system/attDetails",method:"put",data:t})}function n(t){return Object(r["a"])({url:"/system/attDetails/getAttUpdateList",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/system/attDetails/updateAttDetailsDataExamine",method:"put",data:t})}},ed45:function(t,o,e){"use strict";e.d(o,"d",(function(){return a})),e.d(o,"c",(function(){return i})),e.d(o,"a",(function(){return n})),e.d(o,"g",(function(){return l})),e.d(o,"b",(function(){return s})),e.d(o,"f",(function(){return u})),e.d(o,"e",(function(){return c}));var r=e("b775");function a(t){return Object(r["a"])({url:"/system/dict/type/list",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/system/dict/type/"+t,method:"get"})}function n(t){return Object(r["a"])({url:"/system/dict/type",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/dict/type",method:"put",data:t})}function s(t){return Object(r["a"])({url:"/system/dict/type/"+t,method:"delete"})}function u(){return Object(r["a"])({url:"/system/dict/type/refreshCache",method:"delete"})}function c(){return Object(r["a"])({url:"/system/dict/type/optionselect",method:"get"})}},f303:function(t,o,e){"use strict";e.r(o);var r=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"app-container"},[e("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"}},[e("el-form-item",{attrs:{label:"日期"}},[e("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:t.dateRange,callback:function(o){t.dateRange=o},expression:"dateRange"}})],1),e("el-form-item",{attrs:{label:"部门",prop:"orgId"}},[e("treeselect",{staticStyle:{width:"240px"},attrs:{options:t.deptOptions,normalizer:t.normalizer,placeholder:"选择部门"},model:{value:t.queryParams.orgId,callback:function(o){t.$set(t.queryParams,"orgId",o)},expression:"queryParams.orgId"}})],1),e("el-form-item",{attrs:{label:"姓名",prop:"userName"}},[e("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入姓名",clearable:""},nativeOn:{keyup:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.handleQuery(o)}},model:{value:t.queryParams.userName,callback:function(o){t.$set(t.queryParams,"userName",o)},expression:"queryParams.userName"}})],1),e("el-form-item",{attrs:{label:"状态筛选",prop:"attStatus"}},[e("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"状态",clearable:""},model:{value:t.queryParams.attStatus,callback:function(o){t.$set(t.queryParams,"attStatus",o)},expression:"queryParams.attStatus"}},t._l(t.dict.type.att_status,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),e("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")]),e("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["att:attDetailsUpdate:exam"],expression:"['att:attDetailsUpdate:exam']"}],attrs:{type:"success",icon:"el-icon-s-check",size:"mini"},on:{click:t.openDialog}},[t._v("批量审批")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.typeList},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",width:"55",align:"center",selectable:t.selectable}}),e("el-table-column",{attrs:{label:"序号",align:"center",width:"80",type:"index"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("span",[t._v(t._s((t.queryParams.pageNum-1)*t.queryParams.pageSize+o.$index+1))])]}}])}),e("el-table-column",{attrs:{label:"审批状态",align:"center",prop:"reviewerStatus"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.reviewerStatus?e("div",[t._v("待审核")]):t._e(),1==o.row.reviewerStatus?e("div",[t._v("已审核")]):t._e(),2==o.row.reviewerStatus?e("div",[t._v("已拒绝")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"姓名",align:"center",prop:"userName"}}),e("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{label:"考勤日期",align:"center",prop:"attCurrentDay","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{label:"上班打卡时间",align:"center",prop:"toWorkOriginalAttCurrentTime",width:"180"}}),e("el-table-column",{attrs:{label:"上班状态",align:"center",prop:"toWorkOriginalAttStatus"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.toWorkOriginalAttStatus?e("div",[t._v("未打卡")]):t._e(),1==o.row.toWorkOriginalAttStatus?e("div",[t._v("正常")]):t._e(),2==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==o.row.toWorkOriginalAttStatus?e("div",[t._v("早退")]):t._e(),5==o.row.toWorkOriginalAttStatus?e("div",[t._v("轮休")]):t._e(),6==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==o.row.toWorkOriginalAttStatus?e("div",[t._v("临时外出")]):t._e(),8==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==o.row.toWorkOriginalAttStatus?e("div",[t._v("打卡地异常")]):t._e(),10==o.row.toWorkOriginalAttStatus?e("div",[t._v("出差")]):t._e(),11==o.row.toWorkOriginalAttStatus?e("div",[t._v("法定节假日")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"toWorkAttAddress","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{label:"修改后时间",align:"center",prop:"toWorkAttCurrentTime","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{label:"修改后状态",align:"center",prop:"toWorkAttStatus","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("未打卡")]):t._e(),1==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("正常")]):t._e(),2==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#F1A4AD"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("迟到")]):t._e(),3==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#29C9C9"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("旷工")]):t._e(),4==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("早退")]):t._e(),5==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("轮休")]):t._e(),6==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#14ACF0"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("请假")]):t._e(),7==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("临时外出")]):t._e(),8==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#DD1E36"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("出入异常")]):t._e(),9==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("打卡地异常")]):t._e(),10==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("出差")]):t._e(),11==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("法定节假日")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"下班打卡时间",align:"center",prop:"offWorkOriginalAttCurrentTime",width:"180"}}),e("el-table-column",{attrs:{label:"下班状态",align:"center",prop:"offWorkOriginalAttStatus"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.offWorkOriginalAttStatus?e("div",[t._v("未打卡")]):t._e(),1==o.row.offWorkOriginalAttStatus?e("div",[t._v("正常")]):t._e(),2==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==o.row.offWorkOriginalAttStatus?e("div",[t._v("早退")]):t._e(),5==o.row.offWorkOriginalAttStatus?e("div",[t._v("轮休")]):t._e(),6==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==o.row.offWorkOriginalAttStatus?e("div",[t._v("临时外出")]):t._e(),8==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==o.row.offWorkOriginalAttStatus?e("div",[t._v("打卡地异常")]):t._e(),10==o.row.offWorkOriginalAttStatus?e("div",[t._v("出差")]):t._e(),11==o.row.offWorkOriginalAttStatus?e("div",[t._v("法定节假日")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"offWorkAttAddress","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{label:"修改后时间",align:"center",prop:"offWorkAttCurrentTime","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{label:"修改后状态",align:"center",prop:"offWorkAttStatus","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("未打卡")]):t._e(),1==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("正常")]):t._e(),2==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#F1A4AD"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("迟到")]):t._e(),3==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#29C9C9"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("旷工")]):t._e(),4==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("早退")]):t._e(),5==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("轮休")]):t._e(),6==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#14ACF0"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("请假")]):t._e(),7==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("临时外出")]):t._e(),8==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#DD1E36"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("出入异常")]):t._e(),9==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("打卡地异常")]):t._e(),10==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("出差")]):t._e(),11==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("法定节假日")]):t._e()]}}])})],1),e("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(o){return t.$set(t.queryParams,"pageNum",o)},"update:limit":function(o){return t.$set(t.queryParams,"pageSize",o)},pagination:t.getList}}),e("el-dialog",{attrs:{title:"批量审批",visible:t.open,width:"1300px","append-to-body":""},on:{"update:visible":function(o){t.open=o}}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.dialogList,width:"100%",height:"500px"}},[e("el-table-column",{attrs:{label:"序号",type:"index",width:"55",align:"center"}}),e("el-table-column",{attrs:{label:"姓名",align:"center",prop:"userName"}}),e("el-table-column",{attrs:{label:"所属部门",align:"center",prop:"orgName","show-overflow-tooltip":!0,width:"150"}}),e("el-table-column",{attrs:{label:"考勤日期",align:"center",prop:"attCurrentDay","show-overflow-tooltip":!0,width:"120"}}),e("el-table-column",{attrs:{label:"上班打卡时间",align:"center",prop:"toWorkOriginalAttCurrentTime",width:"150"}}),e("el-table-column",{attrs:{label:"上班状态",align:"center",prop:"toWorkOriginalAttStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.toWorkOriginalAttStatus?e("div",[t._v("未打卡")]):t._e(),1==o.row.toWorkOriginalAttStatus?e("div",[t._v("正常")]):t._e(),2==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==o.row.toWorkOriginalAttStatus?e("div",[t._v("早退")]):t._e(),5==o.row.toWorkOriginalAttStatus?e("div",[t._v("轮休")]):t._e(),6==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==o.row.toWorkOriginalAttStatus?e("div",[t._v("临时外出")]):t._e(),8==o.row.toWorkOriginalAttStatus?e("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==o.row.toWorkOriginalAttStatus?e("div",[t._v("打卡地异常")]):t._e(),10==o.row.toWorkOriginalAttStatus?e("div",[t._v("出差")]):t._e(),11==o.row.toWorkOriginalAttStatus?e("div",[t._v("法定节假日")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"toWorkAttAddress","show-overflow-tooltip":!0,width:"150"}}),e("el-table-column",{attrs:{label:"修改后时间",align:"center",prop:"toWorkAttCurrentTime","show-overflow-tooltip":!0,width:"150"}}),e("el-table-column",{attrs:{label:"修改后状态",align:"center",prop:"toWorkAttStatus","show-overflow-tooltip":!0,width:"120"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("未打卡")]):t._e(),1==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("正常")]):t._e(),2==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#F1A4AD"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("迟到")]):t._e(),3==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#29C9C9"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("旷工")]):t._e(),4==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("早退")]):t._e(),5==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("轮休")]):t._e(),6==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#14ACF0"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("请假")]):t._e(),7==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("临时外出")]):t._e(),8==o.row.toWorkAttStatus?e("div",{staticStyle:{color:"#DD1E36"},on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("出入异常")]):t._e(),9==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("打卡地异常")]):t._e(),10==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("出差")]):t._e(),11==o.row.toWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.toErrorRemake)}}},[t._v("法定节假日")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"下班打卡时间",align:"center",prop:"offWorkOriginalAttCurrentTime",width:"150"}}),e("el-table-column",{attrs:{label:"下班状态",align:"center",prop:"offWorkOriginalAttStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.offWorkOriginalAttStatus?e("div",[t._v("未打卡")]):t._e(),1==o.row.offWorkOriginalAttStatus?e("div",[t._v("正常")]):t._e(),2==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#F1A4AD"}},[t._v("迟到")]):t._e(),3==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#29C9C9"}},[t._v("旷工")]):t._e(),4==o.row.offWorkOriginalAttStatus?e("div",[t._v("早退")]):t._e(),5==o.row.offWorkOriginalAttStatus?e("div",[t._v("轮休")]):t._e(),6==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#14ACF0"}},[t._v("请假")]):t._e(),7==o.row.offWorkOriginalAttStatus?e("div",[t._v("临时外出")]):t._e(),8==o.row.offWorkOriginalAttStatus?e("div",{staticStyle:{color:"#DD1E36"}},[t._v("出入异常")]):t._e(),9==o.row.offWorkOriginalAttStatus?e("div",[t._v("打卡地异常")]):t._e(),10==o.row.offWorkOriginalAttStatus?e("div",[t._v("出差")]):t._e(),11==o.row.offWorkOriginalAttStatus?e("div",[t._v("法定节假日")]):t._e()]}}])}),e("el-table-column",{attrs:{label:"打卡地址",align:"center",prop:"offWorkAttAddress","show-overflow-tooltip":!0,width:"150"}}),e("el-table-column",{attrs:{label:"修改后时间",align:"center",prop:"offWorkAttCurrentTime","show-overflow-tooltip":!0,width:"150"}}),e("el-table-column",{attrs:{label:"修改后状态",align:"center",prop:"offWorkAttStatus","show-overflow-tooltip":!0,width:"120"},scopedSlots:t._u([{key:"default",fn:function(o){return[0==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("未打卡")]):t._e(),1==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("正常")]):t._e(),2==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#F1A4AD"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("迟到")]):t._e(),3==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#29C9C9"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("旷工")]):t._e(),4==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("早退")]):t._e(),5==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("轮休")]):t._e(),6==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#14ACF0"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("请假")]):t._e(),7==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("临时外出")]):t._e(),8==o.row.offWorkAttStatus?e("div",{staticStyle:{color:"#DD1E36"},on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("出入异常")]):t._e(),9==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("打卡地异常")]):t._e(),10==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("出差")]):t._e(),11==o.row.offWorkAttStatus?e("div",{on:{click:function(e){return t.reasonDialog(o.row.offErrorRemake)}}},[t._v("法定节假日")]):t._e()]}}])})],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.submitEdit}},[t._v("同 意")]),e("el-button",{on:{click:t.refuse}},[t._v("拒 绝")])],1)],1),e("el-dialog",{attrs:{title:t.title,visible:t.openReason,width:"500px","append-to-body":""},on:{"update:visible":function(o){t.openReason=o}}},[e("el-form",{ref:"form",attrs:{model:t.reasonStr,"label-width":"500px"}},[e("el-col",{attrs:{span:24}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:4},value:t.reasonStr,disabled:!0}})],1)],1),e("div",{staticClass:"dialog-footer",staticStyle:{"margin-top":"65px"},attrs:{slot:"footer",align:"center"},slot:"footer"},[e("el-button",{on:{click:t.cancelRecord}},[t._v("取消")])],1)],1)],1)},a=[],i=e("5530"),n=(e("14d9"),e("d3b7"),e("159b"),e("ed45"),e("0099")),l=e("fcb7"),s=e("ca17"),u=e.n(s),c=(e("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,openReason:!1,dialogList:[],dateRange:this.getDefaultDateRange(),reasonStr:void 0,deptOptions:[],queryParams:{pageNum:1,pageSize:10,userName:void 0,orgId:void 0,attStatus:void 0}}},created:function(){this.$route.query.param&&(console.log(this.$route.query.param),this.queryParams.userName=this.$route.query.param),this.getDeptList(),this.getList()},methods:{getDefaultDateRange:function(){var t=new Date,o=new Date(t.toISOString().split("T")[0]),e=new Date(t.toISOString().split("T")[0]);return[o,e]},getDeptList:function(){var t=this;Object(l["d"])().then((function(o){t.deptOptions=t.handleTree(o.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(n["b"])(this.queryParams).then((function(o){t.typeList=o.rows,t.total=o.total,t.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},selectable:function(t){return"0"==t.reviewerStatus},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,o=[];this.dialogList.forEach((function(t){var e={userId:t.userId,orgId:t.orgId,attCurrentDay:t.attCurrentDay,reviewerStatus:1};o.push(e)})),Object(n["d"])(o).then((function(o){200==o.code?(t.$modal.msgSuccess("审批成功!"),t.dialogList=[],t.open=!1,t.getList()):t.$message({message:"审批失败!",type:"warning"})}))},refuse:function(){var t=this,o=[];this.dialogList.forEach((function(t){var e={userId:t.userId,orgId:t.orgId,attCurrentDay:t.attCurrentDay,reviewerStatus:2};o.push(e)})),Object(n["d"])(o).then((function(o){200==o.code?(t.$modal.msgSuccess("审批成功!"),t.dialogList=[],t.open=!1,t.getList()):t.$message({message:"审批失败!",type:"warning"})}))},reasonDialog:function(t){this.reasonStr=t,this.openReason=!0,this.title="原因说明"},cancelRecord:function(){this.openReason=!1},handleExport:function(){this.download("system/dict/type/export",Object(i["a"])({},this.queryParams),"type_".concat((new Date).getTime(),".xlsx"))}}}),f=c,d=e("2877"),v=Object(d["a"])(f,r,a,!1,null,null,null);o["default"]=v.exports},fcb7:function(t,o,e){"use strict";e.d(o,"d",(function(){return a})),e.d(o,"c",(function(){return i})),e.d(o,"a",(function(){return n})),e.d(o,"e",(function(){return l})),e.d(o,"b",(function(){return s}));var r=e("b775");function a(t){return Object(r["a"])({url:"/system/org/list",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/system/org/"+t,method:"get"})}function n(t){return Object(r["a"])({url:"/system/org",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/org",method:"put",data:t})}function s(t){return Object(r["a"])({url:"/system/org/"+t,method:"delete"})}}}]); |