chunk-2f78dcca.f9c43ab0.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f78dcca"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,n){var s=i(),o=t-s,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var i=Math.easeInOutQuad(u,s,o,e);a(i),u<e?r(t):n&&"function"===typeof n&&n()};c()}},"2b32":function(t,e,n){"use strict";n("f1b0")},"6a3d":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{"update:model":function(e){t.searchForm=e}}},[n("el-form-item",[n("el-input",{attrs:{clearable:"",placeholder:"老师名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"申诉状态"},model:{value:t.searchForm.complaintsStatus,callback:function(e){t.$set(t.searchForm,"complaintsStatus","string"===typeof e?e.trim():e)},expression:"searchForm.complaintsStatus"}},[n("el-option",{attrs:{label:"已拒绝",value:0}}),t._v(" "),n("el-option",{attrs:{label:"已通过",value:1}}),t._v(" "),n("el-option",{attrs:{label:"待处理",value:2}}),t._v(" "),n("el-option",{attrs:{label:"已撤销",value:3}})],1)],1),t._v(" "),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.timer,callback:function(e){t.$set(t.searchForm,"timer","string"===typeof e?e.trim():e)},expression:"searchForm.timer"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",width:"180",prop:"courseScheduleTime",label:"课程时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("p",[t._v("\n "+t._s(e.row.courseScheduleTime)+"\n "+t._s(t._f("timerForMinFormat")(e.row.courseScheduleStartTime))+"-"+t._s(t._f("timerForMinFormat")(e.row.courseScheduleEndTime))+"\n ")])])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"签到状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("p",[t._v(t._s(t._f("attendanceType")(e.row.signInStatus)))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"签退状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("p",[t._v(t._s(t._f("attendanceOutType")(e.row.signOutStatus)))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("complaintsStatusEnum")(e.row.complaintsStatusEnum))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"修复记录"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("updateAttendanceEnum")(e.row.updateAttendanceEnum))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"申诉处理者"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t.permission("teacherAttendance/operation")?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.lookDetail(e.row)}}},[t._v("操作")]):t._e()],1)]}}])})],1),t._v(" "),n("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"考勤申诉",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",[n("el-form",{ref:"visibleForm",staticClass:"visibleForm",attrs:{model:t.visibleForm}},[n("el-form-item",{attrs:{label:"签到时间"}},[t._v("\n "+t._s(t.visibleForm.signInTime)+"\n ")]),t._v(" "),n("el-form-item",{attrs:{label:"签退时间"}},[t._v("\n "+t._s(t.visibleForm.signOutTime)+"\n ")]),t._v(" "),n("el-form-item",{attrs:{label:"申诉图片"}},[n("el-row",t._l(t.visibleForm.srcList,(function(e,r){return n("el-col",{key:r,attrs:{span:6}},[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{fit:"cover",src:e,"preview-src-list":t.visibleForm.srcList}})],1)})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"申诉内容",rules:[{required:!0,message:"请填写申诉内容",trigger:"blur"}],prop:"complaintsContent"}},[n("el-input",{attrs:{type:"textarea",rows:5,disabled:"2"!=t.visibleForm.complaintsStatusEnum},model:{value:t.visibleForm.complaintsContent,callback:function(e){t.$set(t.visibleForm,"complaintsContent","string"===typeof e?e.trim():e)},expression:"visibleForm.complaintsContent"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"处理意见",rules:[{required:!0,message:"请填写处理意见",trigger:"blur"}],prop:"disposeContent"}},[n("el-input",{attrs:{type:"textarea",rows:5,disabled:"2"!=t.visibleForm.complaintsStatusEnum},model:{value:t.visibleForm.disposeContent,callback:function(e){t.$set(t.visibleForm,"disposeContent","string"===typeof e?e.trim():e)},expression:"visibleForm.disposeContent"}})],1),t._v(" "),"2"==t.visibleForm.complaintsStatusEnum?n("el-form-item",{attrs:{label:"请选择需要补正的状态"}},[n("br"),t._v(" "),n("el-checkbox",{attrs:{disabled:"2"!=t.visibleForm.complaintsStatusEnum},model:{value:t.visibleForm.reSignInStatus,callback:function(e){t.$set(t.visibleForm,"reSignInStatus",e)},expression:"visibleForm.reSignInStatus"}},[t._v("签到状态")]),t._v(" "),n("el-checkbox",{attrs:{disabled:"2"!=t.visibleForm.complaintsStatusEnum},model:{value:t.visibleForm.reSignOutStatus,callback:function(e){t.$set(t.visibleForm,"reSignOutStatus",e)},expression:"visibleForm.reSignOutStatus"}},[t._v("签退状态")])],1):t._e()],1)],1),t._v(" "),"2"==t.visibleForm.complaintsStatusEnum?n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/rejectTeacherAttendanceComplaints",expression:"'teacherAttendance/rejectTeacherAttendanceComplaints'"}],on:{click:function(e){return t.subreset("DENIED")}}},[t._v("拒绝")]),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/agreeTeacherAttendanceComplaints",expression:"'teacherAttendance/agreeTeacherAttendanceComplaints'"}],attrs:{type:"primary"},on:{click:function(e){return t.subreset("AGREED")}}},[t._v("同意")])],1):t._e()])],1)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 考勤申诉\n ")])}],i=(n("28a5"),n("386d"),n("96cf"),n("1da1")),s=(n("bc3a"),n("5f87"),n("333d")),o=(n("3908"),n("ec8a")),l=n("d8fc"),u={components:{pagination:s["a"]},data:function(){return{searchForm:{search:null,organId:null,complaintsStatus:null,timer:[]},teacherList:[],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogVisible:!1,visibleForm:{complaintsContent:null,complaintsStatusEnum:null,disposeContent:null,signInStatus:null,signOutStatus:null,teacherAttendanceId:null,reSignInStatus:null,reSignOutStatus:null,url:null}}},created:function(){},mounted:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("setBranchs");case 2:this.init();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{init:function(){this.getList()},permission:function(t){return Object(o["a"])(t)},getList:function(){var t=this,e={};Object.assign(e,this.searchForm),e.timer&&e.timer.length>0&&(e.courseScheduleStartDate=e.timer[0],e.courseScheduleEndDate=e.timer[1]),e.rows=this.rules.limit,e.page=this.rules.page,delete e.timer,Object(l["n"])(e).then((function(e){200==e.code&&(t.rules.total=e.data.total,t.tableList=e.data.rows)}))},search:function(){this.rules.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,complaintsStatus:null,timer:[]},this.search()},subreset:function(t){var e=this;"AGREED"==t?this.$refs["visibleForm"].validate((function(t){if(t){var n={};if(!e.visibleForm.reSignInStatus&&!e.visibleForm.reSignOutStatus)return void e.$message.error("请修正签到状态或签退状态");var r="是否将此课程的";e.visibleForm.reSignInStatus&&(n.signInStatus=1,r+="【签到状态】"),e.visibleForm.reSignOutStatus&&(n.signOutStatus=1,r+="【签退状态】"),r+="修正为正常",n.content=e.visibleForm.disposeContent,n.teacherAttendanceId=e.visibleForm.teacherAttendanceId,e.$confirm(r,"是否",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["a"])(n).then((function(t){200==t.code&&(e.dialogVisible=!1,e.$message.success("同意申诉成功"),e.getList())}))})).catch((function(){}))}})):this.$refs["visibleForm"].validate((function(t){if(t){var n={};n.content=e.visibleForm.disposeContent,n.teacherAttendanceId=e.visibleForm.teacherAttendanceId,e.$confirm("驳回申诉","是否",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["p"])(n).then((function(t){200==t.code&&(e.dialogVisible=!1,e.$message.success("拒绝申诉成功"),e.getList())}))})).catch((function(){}))}}))},lookDetail:function(t){this.visibleForm={complaintsContent:t.complaintsContent,complaintsStatusEnum:t.complaintsStatusEnum,disposeContent:t.disposeContent,signInStatus:t.signInStatus,signOutStatus:t.signOutStatus,signInTime:t.signInTime,signOutTime:t.signOutTime,teacherAttendanceId:t.teacherAttendanceId,reSignInStatus:null,reSignOutStatus:null,srcList:t.url.split(",")},this.dialogVisible=!0}},watch:{dialogVisible:function(t){t||(this.visibleForm={complaintsContent:null,complaintsStatusEnum:null,disposeContent:null,signInStatus:null,signOutStatus:null,teacherAttendanceId:null,reSignInStatus:null,reSignOutStatus:null})}}},c=u,m=(n("2b32"),n("2877")),d=Object(m["a"])(c,r,a,!1,null,"63bc8044",null);e["default"]=d.exports},d8fc:function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"r",(function(){return l})),n.d(e,"q",(function(){return u})),n.d(e,"m",(function(){return c})),n.d(e,"f",(function(){return m})),n.d(e,"k",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"o",(function(){return b})),n.d(e,"h",(function(){return h})),n.d(e,"c",(function(){return v})),n.d(e,"v",(function(){return g})),n.d(e,"g",(function(){return S})),n.d(e,"j",(function(){return y})),n.d(e,"d",(function(){return _})),n.d(e,"u",(function(){return F})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return w})),n.d(e,"e",(function(){return T})),n.d(e,"n",(function(){return C})),n.d(e,"a",(function(){return k})),n.d(e,"p",(function(){return I}));var r=n("b775"),a=n("4328"),i=n.n(a),s="/api-web";function o(t){return Object(r["a"])({url:s+"/sysMessage/queryCountOfUnread",method:"get",params:t})}function l(t){return Object(r["a"])({url:s+"/sysMessage/list",method:"get",params:t})}function u(t){return Object(r["a"])({url:s+"/sysMessage/setRead",method:"post",data:i.a.stringify(t)})}function c(t){return Object(r["a"])({url:s+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:t})}function m(t){return Object(r["a"])({url:s+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:i.a.stringify(t)})}function d(t){return Object(r["a"])({url:s+"/vipGroupManage/queryApplyRefundDetail",method:"get",params:t})}function p(t){return Object(r["a"])({url:s+"/vipGroupManage/applyRefundAudit",method:"POST",data:i.a.stringify(t)})}function f(t){return Object(r["a"])({url:s+"/musicGroupQuit/query",method:"get",params:t})}function b(t){return Object(r["a"])({url:s+"/musicGroupQuit/quitMusicGroup",method:"POST",data:i.a.stringify(t)})}function h(t){return Object(r["a"])({url:s+"/teacherLeaveRecord/queryDetail",method:"get",params:t})}function v(t){return Object(r["a"])({url:s+"/teacherLeaveRecord/approve",method:"POST",data:i.a.stringify(t)})}function g(t){return Object(r["a"])({url:s+"/vipGroupManage/vipApplyAudit",method:"POST",data:i.a.stringify(t)})}function S(t){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:t})}function y(t){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:t})}function _(t){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:t})}function F(t){return Object(r["a"])({url:s+"/teacherSalaryModifyLog/add",method:"POST",data:i.a.stringify(t)})}function O(t){return Object(r["a"])({url:s+"/teacherSalaryComplaints/queryPage",method:"GET",params:t})}function w(t){return Object(r["a"])({url:s+"/teacherSalaryComplaints/get",method:"GET",params:t})}function T(t){return Object(r["a"])({url:s+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:i.a.stringify(t)})}function C(t){return Object(r["a"])({url:s+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:i.a.stringify(t)})}function k(t){return Object(r["a"])({url:s+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:i.a.stringify(t)})}function I(t){return Object(r["a"])({url:s+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:i.a.stringify(t)})}},ec8a:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("6762"),n("2fdb"),n("28a5");function r(t,e){var n=window.localStorage.getItem("permission");return n=n.split(","),e=e||null,!(!n.includes(t)||e)||!(!n.includes(t)||!n.includes(e))}},f1b0:function(t,e,n){}}]);