chunk-29a09b8f.4321b407.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29a09b8f"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=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,a){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?n(e):a&&"function"===typeof a&&a()};c()}},"64d9":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[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",[a("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 a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"状态",clearable:""},model:{value:e.searchForm.statusEnum,callback:function(t){e.$set(e.searchForm,"statusEnum",t)},expression:"searchForm.statusEnum"}},[a("el-option",{attrs:{label:"待处理",value:"PENDING"}}),e._v(" "),a("el-option",{attrs:{label:"已完成",value:"DONE"}}),e._v(" "),a("el-option",{attrs:{label:"已同意",value:"AGREED"}}),e._v(" "),a("el-option",{attrs:{label:"已拒绝",value:"DENIED"}}),e._v(" "),a("el-option",{attrs:{label:"已撤回",value:"WITHDRAWN"}})],1)],1),e._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1),e._v(" "),a("el-form-item",[a("auth",{attrs:{auths:"export/teacherSalaryComplaints"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],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:"teacherId",label:"老师编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"老师姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"salarySettlementMonth",width:"150",label:"课酬归属时间"}}),e._v(" "),a("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(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"operatorRealName",label:"申诉处理者"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"teacherSalaryComplaints/complaintsDispose"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("课酬申诉")])],1)],1)]}}])})],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),e._v(" "),a("el-dialog",{attrs:{title:"课酬申诉",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",[a("el-form",{ref:"visibleForm",staticClass:"visibleForm",attrs:{model:e.visibleForm}},[a("el-form-item",{attrs:{label:"申诉内容",rules:[{required:!0,message:"请填写申诉内容",trigger:"blur"}],prop:"reason"}},[a("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(" "),a("el-form-item",{attrs:{label:"处理意见",rules:[{required:!0,message:"请填写处理意见",trigger:"blur"}],prop:"handingSuggestion"}},[a("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?a("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?a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.subreset("DENIED")}}},[e._v("拒绝")]),e._v(" "),a("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,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 课酬申诉\n ")])}],o=(a("386d"),a("c80c")),s=(a("96cf"),a("3b8d")),i=a("4328"),l=a.n(i),u=a("bc3a"),c=a.n(u),d=a("5f87"),m=a("333d"),h=a("3908"),p=a("d8fc"),f={components:{pagination:m["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(s["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().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(p["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",a=this.searchForm,n={method:"post",headers:{Authorization:Object(d["b"])(),tenantId:Object(d["a"])()},url:t,data:l.a.stringify(a),responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){h["a"].startLoading(),c()(n).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(a).text();n.then((function(t){if(-1!=t.indexOf("code")){var n=JSON.parse(t);if(403==n.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(n.msg)}else{var r=URL.createObjectURL(a),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()}})),h["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),h["a"].endLoading()}))})).catch((function(){}))},lookDetail:function(e){var t=this;Object(p["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(a){if(a){var n={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(p["d"])(n).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())}}},b=f,g=a("2877"),v=Object(g["a"])(b,n,r,!1,null,"34b72d62",null);t["default"]=v.exports},d8fc:function(e,t,a){"use strict";a.d(t,"o",(function(){return i})),a.d(t,"n",(function(){return l})),a.d(t,"j",(function(){return u})),a.d(t,"e",(function(){return c})),a.d(t,"h",(function(){return d})),a.d(t,"l",(function(){return m})),a.d(t,"g",(function(){return h})),a.d(t,"b",(function(){return p})),a.d(t,"s",(function(){return f})),a.d(t,"f",(function(){return b})),a.d(t,"i",(function(){return g})),a.d(t,"c",(function(){return v})),a.d(t,"r",(function(){return y})),a.d(t,"p",(function(){return S})),a.d(t,"q",(function(){return E})),a.d(t,"d",(function(){return _})),a.d(t,"k",(function(){return F})),a.d(t,"a",(function(){return w})),a.d(t,"m",(function(){return O}));var n=a("b775"),r=a("4328"),o=a.n(r),s="/api-web";function i(e){return Object(n["a"])({url:s+"/sysMessage/list",method:"get",params:e})}function l(e){return Object(n["a"])({url:s+"/sysMessage/setRead",method:"post",data:o.a.stringify(e)})}function u(e){return Object(n["a"])({url:s+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function c(e){return Object(n["a"])({url:s+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:o.a.stringify(e)})}function d(e){return Object(n["a"])({url:s+"/musicGroupQuit/query",method:"get",params:e})}function m(e){return Object(n["a"])({url:s+"/musicGroupQuit/quitMusicGroup",method:"POST",data:e,requestType:"json"})}function h(e){return Object(n["a"])({url:s+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function p(e){return Object(n["a"])({url:s+"/teacherLeaveRecord/approve",method:"POST",data:o.a.stringify(e)})}function f(e){return Object(n["a"])({url:s+"/vipGroupManage/vipApplyAudit",method:"POST",data:o.a.stringify(e)})}function b(e){return Object(n["a"])({url:s+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function g(e){return Object(n["a"])({url:s+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function v(e){return Object(n["a"])({url:s+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function y(e){return Object(n["a"])({url:s+"/teacherSalaryModifyLog/add",method:"POST",data:o.a.stringify(e)})}function S(e){return Object(n["a"])({url:s+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function E(e){return Object(n["a"])({url:s+"/teacherSalaryComplaints/get",method:"GET",params:e})}function _(e){return Object(n["a"])({url:s+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:o.a.stringify(e)})}function F(e){return Object(n["a"])({url:s+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function w(e){return Object(n["a"])({url:s+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function O(e){return Object(n["a"])({url:s+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}}}]);