chunk-ed0ee348.c49c4f91.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed0ee348"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var s=i(),o=e-s,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var i=Math.easeInOutQuad(c,s,o,t);a(i),c<t?r(e):n&&"function"===typeof n&&n()};u()}},3288:function(e,t,n){},"622a":function(e,t,n){},"6a3d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("tab-router",{attrs:{type:"card"},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[n("el-tab-pane",{attrs:{label:"考勤申诉(未结算)",lazy:"",name:"1"}},["1"===e.activeIndex?n("progressRequest",{attrs:{isSettle:!1}}):e._e()],1),e._v(" "),n("el-tab-pane",{attrs:{label:"考勤申诉(已结算)",lazy:"",name:"2"}},["2"===e.activeIndex?n("progressRequest",{attrs:{isSettle:!0}}):e._e()],1)],1)],1)])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 考勤申诉\n ")])}],i=n("c80c"),s=(n("96cf"),n("3b8d")),o=n("ec8a"),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{"update:model":function(t){e.searchForm=t}}},[n("el-form-item",[n("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(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",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 n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"申诉状态"},model:{value:e.searchForm.complaintsStatus,callback:function(t){e.$set(e.searchForm,"complaintsStatus","string"===typeof t?t.trim():t)},expression:"searchForm.complaintsStatus"}},[n("el-option",{attrs:{label:"已拒绝",value:0}}),e._v(" "),n("el-option",{attrs:{label:"已通过",value:1}}),e._v(" "),n("el-option",{attrs:{label:"待处理",value:2}}),e._v(" "),n("el-option",{attrs:{label:"已撤销",value:3}})],1)],1),e._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:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"180",prop:"courseScheduleTime",label:"课程时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("p",[e._v("\n "+e._s(t.row.courseScheduleTime)+"\n "+e._s(e._f("timerForMinFormat")(t.row.courseScheduleStartTime))+"-"+e._s(e._f("timerForMinFormat")(t.row.courseScheduleEndTime))+"\n ")])])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"签到状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("p",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))])])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"签退状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("p",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))])])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("complaintsStatusEnum")(t.row.complaintsStatusEnum))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"修复记录"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("updateAttendanceEnum")(t.row.updateAttendanceEnum))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"申诉处理者"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e.permission("teacherAttendance/operation/update")&&2==t.row.complaintsStatusEnum&&!e.settlemented?n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.lookDetail(t.row)}}},[e._v("处理申诉")]):e._e(),e._v(" "),e.permission("teacherAttendance/operation")&&(2!=t.row.complaintsStatusEnum||e.settlemented)?n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.lookDetail(t.row)}}},[e._v("查看")]):e._e()],1)]}}])})],1),e._v(" "),n("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),e._v(" "),n("el-dialog",{attrs:{title:"考勤申诉",visible:e.dialogVisible,width:"500px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",[n("el-form",{ref:"visibleForm",staticClass:"visibleForm",attrs:{model:e.visibleForm,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"签到时间"}},[e._v("\n "+e._s(e.visibleForm.signInTime)+"\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"签退时间"}},[e._v("\n "+e._s(e.visibleForm.signOutTime)+"\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"申诉图片"}},[n("el-row",e._l(e.visibleForm.srcList,(function(t,r){return n("el-col",{key:r,attrs:{span:6}},[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{fit:"cover",src:t,"preview-src-list":e.visibleForm.srcList}})],1)})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"申诉考勤状态"}},["SIGN_IN"==e.visibleForm.complaintsType||"ALL"==e.visibleForm.complaintsType?n("el-checkbox",{attrs:{disabled:"",value:!0}},[e._v("签到状态")]):e._e(),e._v(" "),"SIGN_OUT"==e.visibleForm.complaintsType||"ALL"==e.visibleForm.complaintsType?n("el-checkbox",{attrs:{disabled:"",value:!0}},[e._v("签退状态")]):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"申诉内容",rules:[{required:!0,message:"请填写申诉内容",trigger:"blur"}],prop:"complaintsContent"}},[n("el-input",{attrs:{type:"textarea",rows:4,disabled:"2"!=e.visibleForm.complaintsStatusEnum||e.settlemented},model:{value:e.visibleForm.complaintsContent,callback:function(t){e.$set(e.visibleForm,"complaintsContent","string"===typeof t?t.trim():t)},expression:"visibleForm.complaintsContent"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"处理意见",rules:[{required:!0,message:"请填写处理意见",trigger:"blur"}],prop:"disposeContent"}},[n("el-input",{attrs:{type:"textarea",rows:4,disabled:"2"!=e.visibleForm.complaintsStatusEnum||e.settlemented},model:{value:e.visibleForm.disposeContent,callback:function(t){e.$set(e.visibleForm,"disposeContent","string"===typeof t?t.trim():t)},expression:"visibleForm.disposeContent"}})],1)],1)],1),e._v(" "),"2"!=e.visibleForm.complaintsStatusEnum||e.settlemented?e._e():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(t){return e.subreset("DENIED")}}},[e._v("拒绝")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/agreeTeacherAttendanceComplaints",expression:"'teacherAttendance/agreeTeacherAttendanceComplaints'"}],attrs:{type:"primary"},on:{click:function(t){return e.subreset("AGREED")}}},[e._v("同意")])],1)])],1)},c=[],u=(n("28a5"),n("386d"),n("bc3a"),n("5f87"),n("333d")),m=(n("3908"),n("d8fc")),d={props:["isSettle"],components:{pagination:u["a"]},data:function(){return{searchForm:{settlemented:null,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,complaintsType:null,url:null,srcList:[]}}},created:function(){},mounted:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.init();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),computed:{settlemented:function(){return this.isSettle}},methods:{init:function(){this.getList()},permission:function(e){return Object(o["a"])(e)},getList:function(){var e=this,t={};Object.assign(t,this.searchForm),t.timer&&t.timer.length>0&&(t.courseScheduleStartDate=t.timer[0],t.courseScheduleEndDate=t.timer[1]),t.rows=this.rules.limit,t.page=this.rules.page,t.settlemented=this.settlemented,delete t.timer,Object(m["k"])(t).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.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(e){var t=this;"AGREED"==e?this.$refs["visibleForm"].validate((function(e){if(e){var n={};n.content=t.visibleForm.disposeContent,n.teacherAttendanceId=t.visibleForm.teacherAttendanceId,t.$confirm("您是否同意该申诉?","是否",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["a"])(n).then((function(e){200==e.code&&(t.dialogVisible=!1,t.$message.success("同意申诉成功"),t.getList())}))})).catch((function(){}))}})):this.$refs["visibleForm"].validate((function(e){if(e){var n={};n.content=t.visibleForm.disposeContent,n.teacherAttendanceId=t.visibleForm.teacherAttendanceId,t.$confirm("驳回申诉","是否",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["m"])(n).then((function(e){200==e.code&&(t.dialogVisible=!1,t.$message.success("拒绝申诉成功"),t.getList())}))})).catch((function(){}))}}))},lookDetail:function(e){this.visibleForm={complaintsContent:e.complaintsContent,complaintsStatusEnum:e.complaintsStatusEnum,disposeContent:e.disposeContent,signInStatus:e.signInStatus,signOutStatus:e.signOutStatus,signInTime:e.signInTime,signOutTime:e.signOutTime,teacherAttendanceId:e.teacherAttendanceId,reSignInStatus:null,reSignOutStatus:null,complaintsType:e.complaintsType,srcList:e.url?e.url.split(","):[]},this.dialogVisible=!0}},watch:{dialogVisible:function(e){e||(this.visibleForm={complaintsContent:null,complaintsStatusEnum:null,disposeContent:null,signInStatus:null,signOutStatus:null,teacherAttendanceId:null,reSignInStatus:null,reSignOutStatus:null})}}},p=d,f=(n("c799"),n("2877")),h=Object(f["a"])(p,l,c,!1,null,"44a622c2",null),b=h.exports,v={components:{progressRequest:b},data:function(){return{activeIndex:"1"}},created:function(){},mounted:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),methods:{handleClick:function(e){}},watch:{}},g=v,y=(n("feda"),Object(f["a"])(g,r,a,!1,null,"2bae8483",null));t["default"]=y.exports},c799:function(e,t,n){"use strict";n("622a")},d8fc:function(e,t,n){"use strict";n.d(t,"o",(function(){return o})),n.d(t,"n",(function(){return l})),n.d(t,"j",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"h",(function(){return m})),n.d(t,"l",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"s",(function(){return h})),n.d(t,"f",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return g})),n.d(t,"r",(function(){return y})),n.d(t,"p",(function(){return _})),n.d(t,"q",(function(){return S})),n.d(t,"d",(function(){return F})),n.d(t,"k",(function(){return O})),n.d(t,"a",(function(){return w})),n.d(t,"m",(function(){return T}));var r=n("b775"),a=n("4328"),i=n.n(a),s="/api-web";function o(e){return Object(r["a"])({url:s+"/sysMessage/list",method:"get",params:e})}function l(e){return Object(r["a"])({url:s+"/sysMessage/setRead",method:"post",data:i.a.stringify(e)})}function c(e){return Object(r["a"])({url:s+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function u(e){return Object(r["a"])({url:s+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:i.a.stringify(e)})}function m(e){return Object(r["a"])({url:s+"/musicGroupQuit/query",method:"get",params:e})}function d(e){return Object(r["a"])({url:s+"/musicGroupQuit/quitMusicGroup",method:"POST",data:e,requestType:"json"})}function p(e){return Object(r["a"])({url:s+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function f(e){return Object(r["a"])({url:s+"/teacherLeaveRecord/approve",method:"POST",data:i.a.stringify(e)})}function h(e){return Object(r["a"])({url:s+"/vipGroupManage/vipApplyAudit",method:"POST",data:i.a.stringify(e)})}function b(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function v(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function g(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function y(e){return Object(r["a"])({url:s+"/teacherSalaryModifyLog/add",method:"POST",data:i.a.stringify(e)})}function _(e){return Object(r["a"])({url:s+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function S(e){return Object(r["a"])({url:s+"/teacherSalaryComplaints/get",method:"GET",params:e})}function F(e){return Object(r["a"])({url:s+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:i.a.stringify(e)})}function O(e){return Object(r["a"])({url:s+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:i.a.stringify(e)})}function w(e){return Object(r["a"])({url:s+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:i.a.stringify(e)})}function T(e){return Object(r["a"])({url:s+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:i.a.stringify(e)})}},feda:function(e,t,n){"use strict";n("3288")}}]);