chunk-5b5a1f0c.bf1dc804.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b5a1f0c"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,a){var u=r(),o=e-u,s=20,i=0;t="undefined"===typeof t?500:t;var c=function e(){i+=s;var r=Math.easeInOutQuad(i,u,o,t);n(r),i<t?l(e):a&&"function"===typeof a&&a()};c()}},"0f4d":function(e,t,a){"use strict";a("6180")},"111c":function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var l=a("b775"),n=a("4328"),r=a.n(n),u="/api-web";function o(e){return Object(l["a"])({url:u+"/teacherAttendance/queryTeacherAttendances",method:"post",data:r.a.stringify(e)})}},"447e":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"申诉图片",prop:"url"}},[a("div",{staticStyle:{width:"100%"}},[a("upload",{ref:"uploadImg",staticClass:"uploadImg",model:{value:e.form.url,callback:function(t){e.$set(e.form,"url",t)},expression:"form.url"}})],1)]),e._v(" "),a("el-form-item",{attrs:{label:"申诉内容",prop:"content",rules:[{required:!0,message:"请输入申诉内容"}]}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入申诉内容"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),e._v(" "),a("div",{staticStyle:{"text-align":"right","margin-top":"20px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],1)},n=[],r=a("c7eb"),u=a("5530"),o=(a("96cf"),a("1da1")),s=a("d7a3"),i=a("c7f0"),c=a("5f87"),d={props:["detail"],components:{Upload:i["a"]},data:function(){return{headers:{Authorization:Object(c["b"])()},form:{content:"",url:""}}},methods:{handleSuccess:function(e){this.$set(this.form,"url",e.data.url)},submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(a){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=11;break}return t.prev=1,t.next=4,Object(s["a"])(Object(u["a"])(Object(u["a"])({},e.form),{},{courseScheduleId:e.detail.courseScheduleId,userId:e.detail.teacherId}));case 4:e.$message.success("提交成功"),e.$emit("submited"),e.$emit("close"),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](1);case 11:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}())}}},b=d,v=(a("0f4d"),a("2877")),p=Object(v["a"])(b,l,n,!1,null,null,null);t["a"]=p.exports},6180:function(e,t,a){},"6ecc":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"quitForm",attrs:{model:e.quitForm,rules:e.quitRules}},[a("el-form-item",{attrs:{prop:"disposeContent"}},[a("el-input",{attrs:{type:"textarea",maxlength:"99","show-word-limit":"",placeholder:"请填写处理意见"},model:{value:e.quitForm.disposeContent,callback:function(t){e.$set(e.quitForm,"disposeContent",t)},expression:"quitForm.disposeContent"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},n=[],r=a("c7eb"),u=a("5530"),o=(a("96cf"),a("1da1")),s=a("d7a3"),i={props:["detail"],data:function(){return{quitForm:{disposeContent:""},quitRules:{disposeContent:[{required:!0,message:"请填写处理意见"}]}}},mounted:function(){var e,t,a;null!==(e=this.detail)&&void 0!==e&&null!==(t=e.teacherAttendance)&&void 0!==t&&t.disposeContent&&this.$set(this.quitForm,"disposeContent",this.detail.teacherAttendance.disposeContent),null!==(a=this.detail)&&void 0!==a&&a.disposeContent&&this.$set(this.quitForm,"disposeContent",this.detail.disposeContent)},methods:{submit:function(){var e=this;this.$refs.quitForm.validate(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(a){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=11;break}return t.prev=1,t.next=4,Object(s["c"])(Object(u["a"])({id:e.detail.teacherAttendanceId},e.quitForm));case 4:e.$emit("close"),e.$emit("submited"),e.$message.success("提交成功"),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](1);case 11:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}())}}},c=i,d=a("2877"),b=Object(d["a"])(c,l,n,!1,null,null,null);t["a"]=b.exports},"92e3":function(e,t,a){"use strict";a.d(t,"v",(function(){return s})),a.d(t,"I",(function(){return i})),a.d(t,"t",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"E",(function(){return b})),a.d(t,"bb",(function(){return v})),a.d(t,"Z",(function(){return p})),a.d(t,"d",(function(){return f})),a.d(t,"M",(function(){return m})),a.d(t,"x",(function(){return h})),a.d(t,"db",(function(){return _})),a.d(t,"u",(function(){return T})),a.d(t,"o",(function(){return E})),a.d(t,"cb",(function(){return y})),a.d(t,"Q",(function(){return S})),a.d(t,"fb",(function(){return I})),a.d(t,"gb",(function(){return g})),a.d(t,"P",(function(){return O})),a.d(t,"U",(function(){return A})),a.d(t,"C",(function(){return N})),a.d(t,"l",(function(){return C})),a.d(t,"Y",(function(){return R})),a.d(t,"eb",(function(){return L})),a.d(t,"J",(function(){return w})),a.d(t,"m",(function(){return F})),a.d(t,"w",(function(){return k})),a.d(t,"N",(function(){return x})),a.d(t,"f",(function(){return M})),a.d(t,"e",(function(){return $})),a.d(t,"L",(function(){return j})),a.d(t,"K",(function(){return G})),a.d(t,"T",(function(){return U})),a.d(t,"H",(function(){return P})),a.d(t,"a",(function(){return V})),a.d(t,"y",(function(){return q})),a.d(t,"p",(function(){return D})),a.d(t,"n",(function(){return H})),a.d(t,"q",(function(){return B})),a.d(t,"g",(function(){return Y})),a.d(t,"G",(function(){return Q})),a.d(t,"r",(function(){return X})),a.d(t,"D",(function(){return W})),a.d(t,"B",(function(){return z})),a.d(t,"A",(function(){return K})),a.d(t,"h",(function(){return J})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"S",(function(){return ae})),a.d(t,"O",(function(){return le})),a.d(t,"F",(function(){return ne})),a.d(t,"z",(function(){return re})),a.d(t,"R",(function(){return ue})),a.d(t,"V",(function(){return oe})),a.d(t,"X",(function(){return se})),a.d(t,"s",(function(){return ie})),a.d(t,"ab",(function(){return ce})),a.d(t,"W",(function(){return de})),a.d(t,"b",(function(){return ve}));var l=a("b85c"),n=a("3835"),r=a("267e"),u=sessionStorage.getItem("tenantConfig");u=u?JSON.parse(u):{};var o=u.tenantId,s=null,i=null;1==o?(i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],b=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],v=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],p=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],f=[].concat(p,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),m=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],_=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],T=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],E=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],y=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],S=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],g=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],O=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],A=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],N=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],C=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],R=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],L=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],w=be(r["musicGroupType"]),F=be(r["classTime"]),k=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],x=be(r["payOrderType"]),M=be(r["auditType"]),$=be(r["auditPaymentType"]),j=be(r["orderServerType"]),G=be(r["orderAuditType"]),U=be(r["rewardModeType"]),P=be(r["musicClassType"]),V=be(r["ProbationPeriodStatus"]),q=be(r["downListType"]),D=be(r["conclusion"]),H=be(r["clientType"]),B=be(r["couponType"]),Y=be(r["backType"]),Q=be(r["memberEnum"]),X=be(r["coupontypeDetail"]),W=be(r["issue"]),z=be(r["feedbackType"]),K=be(r["feedbackTypeDesc"]),J=be(r["campState"]),Z=be(r["catgGoupType"]),ee=be(r["catRole"]),te=be(r["catType"]),ae=be(r["quiteReason"]),le=be(r["payUserType"]),ne=be(r["levelStatus"]),re=be(r["evaluateStatus"]),ue=be(r["problemType"]),oe=be(r["schoolUserType"]),se=be(r["shareLiveType"]),ie=be(r["courseEmnu"]),ce=be(r["suggestionType"]),de=be(r["scoreType"]);function be(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(t,2),r=a[0],u=a[1],o={};if(e&&e.length){var s,i=Object(l["a"])(e);try{for(i.s();!(s=i.n()).done;){var c=s.value;o[c[r]]=c[u]}}catch(d){i.e(d)}finally{i.f()}}return o}},c171:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 老师考勤管理\n "),a("filter-search",{attrs:{keys:["attendanceStatus","visitFlag"],moreKeys:["start","end","organId"]},on:{reload:e.reloadSearch}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{clearable:"",placeholder:"课程名称/编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"teacherId"}},[a("remote-search",{attrs:{commit:"setTeachers",isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"courseScheduleType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择课程类型"},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleType"}},e._l(e.courseType,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"jobNature"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"工作类型"},model:{value:e.searchForm.jobNature,callback:function(t){e.$set(e.searchForm,"jobNature","string"===typeof t?t.trim():t)},expression:"searchForm.jobNature"}},e._l(e.jobNature,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"signInStatus"}},[a("el-select",{attrs:{clearable:"",placeholder:"签到状态"},model:{value:e.searchForm.signInStatus,callback:function(t){e.$set(e.searchForm,"signInStatus","string"===typeof t?t.trim():t)},expression:"searchForm.signInStatus"}},[a("el-option",{attrs:{value:1,label:"正常签到"}}),e._v(" "),a("el-option",{attrs:{value:0,label:"异常签到"}}),e._v(" "),a("el-option",{attrs:{value:3,label:"未签到"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"signOutStatus"}},[a("el-select",{attrs:{clearable:"",placeholder:"签退状态"},model:{value:e.searchForm.signOutStatus,callback:function(t){e.$set(e.searchForm,"signOutStatus","string"===typeof t?t.trim():t)},expression:"searchForm.signOutStatus"}},[a("el-option",{attrs:{value:1,label:"正常签退"}}),e._v(" "),a("el-option",{attrs:{value:0,label:"异常签退"}}),e._v(" "),a("el-option",{attrs:{value:3,label:"未签退"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"courseTime"}},[a("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"考勤开始日期","picker-options":{firstDayOfWeek:1},"end-placeholder":"考勤结束日期"},model:{value:e.searchForm.courseTime,callback:function(t){e.$set(e.searchForm,"courseTime","string"===typeof t?t.trim():t)},expression:"searchForm.courseTime"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/queryTeacherAttendances",expression:"'export/queryTeacherAttendances'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.teacherName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.courseScheduleId))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.courseScheduleName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classDate",label:"上课日期"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.startClassTime+"-"+t.row.endClassTime)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseScheduleType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"工作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("jobNature")(t.row.jobNature)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.signInTime)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签到状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v("\n "+e._s(e._f("attendanceType")(t.row.signInStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.signOutTime)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签退状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v("\n "+e._s(e._f("attendanceOutType")(t.row.signOutStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"申诉状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e.$constant.complaintsStatus[t.row.complaintsStatus])+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right",width:"220px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("auth",{attrs:{auths:"teacherAttendance/repealComplaints"}},["FULL_TIME"!=t.row.jobNature&&2==t.row.complaintsStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.unappeal(t.row)}}},[e._v("撤销申诉")]):e._e()],1),e._v(" "),a("auth",{attrs:{auths:"teacherAttendance/addComplaints"}},[null==t.row.complaintsStatus||3==t.row.complaintsStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.appeal(t.row)}}},[e._v("申诉")]):e._e()],1),e._v(" "),a("auth",{attrs:{auths:"teacherAttendance/update"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.hand(t.row)}}},[e._v("处理意见")])],1)]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:"申诉",width:"400px",visible:e.appealVisible},on:{"update:visible":function(t){e.appealVisible=t}}},[e.appealVisible&&e.detail?a("appeal",{attrs:{detail:e.detail},on:{close:function(t){e.appealVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"处理意见",width:"400px",visible:e.handVisible},on:{"update:visible":function(t){e.handVisible=t}}},[e.handVisible&&e.detail?a("hand",{attrs:{detail:e.detail},on:{close:function(t){e.handVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1)])},n=[],r=a("c7eb"),u=(a("96cf"),a("1da1")),o=(a("386d"),a("15fd")),s=a("5530"),i=(a("ac6a"),a("456d"),a("bc3a")),c=a.n(i),d=a("5f87"),b=a("333d"),v=a("3908"),p=(a("4328"),a("e3eb")),f=a.n(p),m=(a("1cc7"),a("111c")),h=a("92e3"),_=a("d7a3"),T=a("447e"),E=a("6ecc"),y=a("ed08"),S=["courseTime"],I=new Date;I=I.getFullYear()+"-"+(I.getMonth()+1)+"-"+I.getDate();var g={components:{pagination:b["a"],appeal:T["a"],hand:E["a"]},data:function(){return{searchForm:{search:null,organId:null,signInStatus:null,signOutStatus:null,jobNature:null,courseTime:[]},detail:null,appealVisible:!1,handVisible:!1,jobNature:h["E"],courseType:h["v"],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{isEmptyQuery:function(){return!Object.keys(f()(Object(s["a"])({},this.searchForm))).length&&!this.teacherAttendanceId},teacherAttendanceId:function(){return this.$route.query.teacherAttendanceId}},created:function(){this.searchForm.courseTime.length<=0&&(this.searchForm.courseTime=[I,I])},mounted:function(){var e=this.$route.query;this.$store.dispatch("setBranchs"),e.organId&&(this.searchForm.organId=e.organId),(e.start||e.end)&&(this.searchForm.courseTime=[e.start,e.end]),this.init()},methods:{init:function(){this.getList()},getSearchValues:function(){var e=this.searchForm,t=e.courseTime,a=Object(o["a"])(e,S),l=Object(s["a"])(Object(s["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit,attendanceStatus:this.$route.query.attendanceStatus,visitFlag:this.$route.query.visitFlag},Object(y["d"])(t,["courseStartDate","courseEndDate"]));return l},reloadSearch:function(){this.isEmptyQuery&&(this.courseTime=[I,I]),notSetTime||(this.searchForm.timer=[I,I]),this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.getSearchValues();this.isEmptyQuery?this.$message.error("请至少选择一个条件"):Object(m["a"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.searchForm.courseTime=[I,I],this.search()},hand:function(e){this.detail=e,this.handVisible=!0},appeal:function(e){this.appealVisible=!0,this.detail=e},unappeal:function(){var e=Object(u["a"])(Object(r["a"])().mark((function e(t){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认撤销申诉?","提示",{type:"warning"});case 3:return e.next=5,Object(_["b"])({courseScheduleId:t.courseScheduleId,userId:t.teacherId});case 5:this.$message.success("撤销成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),onExport:function(){var e=this,t=this.getSearchValues();if(this.isEmptyQuery)this.$message.error("请至少选择一个条件");else{var a="/api-web/export/queryTeacherAttendances",l={method:"POST",headers:{Authorization:Object(d["b"])(),tenantId:Object(d["a"])()},params:t,url:a,responseType:"blob"};this.$confirm("您确定导出考勤列表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){v["a"].startLoading(),c()(l).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),l=new Response(a).text();l.then((function(t){if(-1!=t.indexOf("code")){var l=JSON.parse(t);if(403==l.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(l.msg)}else{var n=URL.createObjectURL(a),r=document.createElement("a"),u="考勤列表"+(new Date).getTime()+".xls";r.href=n,r.setAttribute("download",u),document.body.appendChild(r),r.click()}})),v["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),v["a"].endLoading()}))})).catch((function(){}))}}}},O=g,A=a("2877"),N=Object(A["a"])(O,l,n,!1,null,"2a76e768",null);t["default"]=N.exports},d7a3:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return u}));var l=a("829b"),n=function(e){return Object(l["a"])({url:"/api-web/teacherAttendance/repealComplaints",method:"post",data:e,requestType:"form"})},r=function(e){return Object(l["a"])({url:"/api-web/teacherAttendance/addComplaints",method:"post",data:e,requestType:"form"})},u=function(e){return Object(l["a"])({url:"/api-web/teacherAttendance/update",method:"post",data:e,requestType:"form"})}}}]);