1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29a09b8f"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var s=o(),i=e-s,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var o=Math.easeInOutQuad(u,s,i,t);r(o),u<t?a(e):n&&"function"===typeof n&&n()};c()}},"64d9":function(e,t,n){"use strict";n.r(t);var a=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("save-form",{attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[n("el-form-item",{attrs:{prop:"organId"}},[n("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 n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",[n("el-select",{attrs:{placeholder:"老师姓名",clearable:"",filterable:""},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}},e._l(e.selects.teachers,(function(e,t){return n("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",[n("el-select",{attrs:{placeholder:"状态",clearable:""},model:{value:e.searchForm.statusEnum,callback:function(t){e.$set(e.searchForm,"statusEnum",t)},expression:"searchForm.statusEnum"}},[n("el-option",{attrs:{label:"待处理",value:"PENDING"}}),e._v(" "),n("el-option",{attrs:{label:"已完成",value:"DONE"}}),e._v(" "),n("el-option",{attrs:{label:"已同意",value:"AGREED"}}),e._v(" "),n("el-option",{attrs:{label:"已拒绝",value:"DENIED"}}),e._v(" "),n("el-option",{attrs:{label:"已撤回",value:"WITHDRAWN"}})],1)],1),e._v(" "),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{clearable:!0,type:"month","value-format":"yyyy-MM",placeholder:"选择归属年月"},model:{value:e.searchForm.salarySettlementMonth,callback:function(t){e.$set(e.searchForm,"salarySettlementMonth",t)},expression:"searchForm.salarySettlementMonth"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1),e._v(" "),n("el-form-item",[n("auth",{attrs:{auths:"export/teacherSalaryComplaints"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],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:"teacherId",label:"老师编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"realName",label:"老师姓名"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"salarySettlementMonth",width:"150",label:"课酬归属时间"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"updateTime",width:"150",label:"申诉提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.updateTime)))]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"statusEnum",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("statusEnum")(t.row.statusEnum)))]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"operatorRealName",label:"申诉处理者"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("auth",{attrs:{auths:"teacherSalaryComplaints/complaintsDispose"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.lookDetail(t.row)}}},[e._v("课酬申诉")])],1)],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)],1),e._v(" "),n("el-dialog",{attrs:{title:"课酬申诉",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",[n("el-form",{ref:"visibleForm",staticClass:"visibleForm",attrs:{model:e.visibleForm}},[n("el-form-item",{attrs:{label:"申诉内容",rules:[{required:!0,message:"请填写申诉内容",trigger:"blur"}],prop:"reason"}},[n("el-input",{attrs:{type:"textarea",rows:5,disabled:"PENDING"!=e.visibleForm.statusEnum},model:{value:e.visibleForm.reason,callback:function(t){e.$set(e.visibleForm,"reason","string"===typeof t?t.trim():t)},expression:"visibleForm.reason"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"处理意见",rules:[{required:!0,message:"请填写处理意见",trigger:"blur"}],prop:"handingSuggestion"}},[n("el-input",{attrs:{type:"textarea",rows:5,disabled:"PENDING"!=e.visibleForm.statusEnum},model:{value:e.visibleForm.handingSuggestion,callback:function(t){e.$set(e.visibleForm,"handingSuggestion","string"===typeof t?t.trim():t)},expression:"visibleForm.handingSuggestion"}})],1),e._v(" "),"PENDING"!=e.visibleForm.statusEnum?n("el-form-item",{attrs:{label:"处理结果"}},[e._v("\n "+e._s(e._f("statusEnum")(e.visibleForm.statusEnum))+"\n ")]):e._e()],1)],1),e._v(" "),"PENDING"==e.visibleForm.statusEnum?n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){return e.subreset("DENIED")}}},[e._v("拒绝")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.subreset("AGREED")}}},[e._v("同意")])],1):e._e()])],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 课酬申诉\n ")])}],o=(n("386d"),n("96cf"),n("3b8d")),s=n("4328"),i=n.n(s),l=n("bc3a"),u=n.n(l),c=n("5f87"),d=n("333d"),m=n("3908"),h=n("d8fc"),p={components:{pagination:d["a"]},data:function(){return{searchForm:{search:null,salarySettlementMonth:null,statusEnum:null,teacherId:null,organId:null},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogVisible:!1,visibleForm:{reason:null,handingSuggestion:null,teacherId:null,salarySettlementMonth:null,statusEnum:null,id:null}}},created:function(){},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:return e.next=4,this.$store.dispatch("setTeachers");case 4:this.init();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){this.getList()},getList:function(){var e=this;this.searchForm.page=this.rules.page,this.searchForm.rows=this.rules.limit,Object(h["p"])(this.searchForm).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.searchForm={search:null,salarySettlementMonth:null,statusEnum:null,teacherId:null,organId:null},this.search()},onExport:function(){var e=this,t="/api-web/export/teacherSalaryComplaints",n=this.searchForm,a={method:"post",headers:{Authorization:Object(c["b"])(),tenantId:Object(c["a"])()},url:t,data:i.a.stringify(n),responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),u()(a).then((function(t){var n=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(n).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var r=URL.createObjectURL(n),o=document.createElement("a"),s=new Date,i=s.getFullYear()+""+(s.getMonth()+1)+s.getDate()+s.getHours()+s.getMinutes(),l=i+"课酬申诉.xls";o.href=r,o.setAttribute("download",l),document.body.appendChild(o),o.click()}})),m["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),m["a"].endLoading()}))})).catch((function(){}))},lookDetail:function(e){var t=this;Object(h["q"])({id:e.id}).then((function(e){200==e.code&&(t.visibleForm={reason:e.data.reason,handingSuggestion:e.data.handingSuggestion,teacherId:e.data.teacherId,salarySettlementMonth:e.data.salarySettlementMonth,statusEnum:e.data.statusEnum,id:e.data.id},t.dialogVisible=!0)}))},subreset:function(e){var t=this;this.$refs["visibleForm"].validate((function(n){if(n){var a={reason:t.visibleForm.reason,handingSuggestion:t.visibleForm.handingSuggestion,currentReduceSalary:t.visibleForm.reduceSalary,salarySettlementMonth:t.visibleForm.salarySettlementMonth,teacherId:t.visibleForm.teacherId,statusEnum:e,id:t.visibleForm.id};Object(h["d"])(a).then((function(e){200==e.code&&(t.dialogVisible=!1,t.$message.success("处理成功"),t.getList())}))}}))}},filters:{statusEnum:function(e){var t={PENDING:"待处理",DONE:"已完成",AGREED:"已同意",DENIED:"已拒绝",WITHDRAWN:"已撤回"};return t[e]}},watch:{dialogVisible:function(e){e||(this.visibleForm={reason:null,handingSuggestion:null,teacherId:null,salarySettlementMonth:null,statusEnum:null,id:null},this.$refs["visibleForm"].resetFields())}}},f=p,b=n("2877"),g=Object(b["a"])(f,a,r,!1,null,"34b72d62",null);t["default"]=g.exports},d8fc:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"n",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"l",(function(){return m})),n.d(t,"g",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"s",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"i",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"r",(function(){return y})),n.d(t,"p",(function(){return S})),n.d(t,"q",(function(){return E})),n.d(t,"d",(function(){return _})),n.d(t,"k",(function(){return F})),n.d(t,"a",(function(){return w})),n.d(t,"m",(function(){return O}));var a=n("b775"),r=n("4328"),o=n.n(r),s="/api-web";function i(e){return Object(a["a"])({url:s+"/sysMessage/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:s+"/sysMessage/setRead",method:"post",data:o.a.stringify(e)})}function u(e){return Object(a["a"])({url:s+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function c(e){return Object(a["a"])({url:s+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:o.a.stringify(e)})}function d(e){return Object(a["a"])({url:s+"/musicGroupQuit/query",method:"get",params:e})}function m(e){return Object(a["a"])({url:s+"/musicGroupQuit/quitMusicGroup",method:"POST",data:e,requestType:"json"})}function h(e){return Object(a["a"])({url:s+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function p(e){return Object(a["a"])({url:s+"/teacherLeaveRecord/approve",method:"POST",data:o.a.stringify(e)})}function f(e){return Object(a["a"])({url:s+"/vipGroupManage/vipApplyAudit",method:"POST",data:o.a.stringify(e)})}function b(e){return Object(a["a"])({url:s+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function g(e){return Object(a["a"])({url:s+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function v(e){return Object(a["a"])({url:s+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function y(e){return Object(a["a"])({url:s+"/teacherSalaryModifyLog/add",method:"POST",data:o.a.stringify(e)})}function S(e){return Object(a["a"])({url:s+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function E(e){return Object(a["a"])({url:s+"/teacherSalaryComplaints/get",method:"GET",params:e})}function _(e){return Object(a["a"])({url:s+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:o.a.stringify(e)})}function F(e){return Object(a["a"])({url:s+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function w(e){return Object(a["a"])({url:s+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function O(e){return Object(a["a"])({url:s+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}}}]);
|