1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29a09b8f"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),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 i(e,t,a){var i=o(),l=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var o=Math.easeInOutQuad(u,i,l,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("el-form",{attrs:{inline:!0,model:e.searchForm}},[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.organList,(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.teacherList,(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",{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"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherSalaryComplaints",expression:"'export/teacherSalaryComplaints'"}],staticStyle:{background:"#14928a",border:"1px solid #14928a"},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:"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("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherSalaryComplaints/complaintsDispose",expression:"'teacherSalaryComplaints/complaintsDispose'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("操作")])],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"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 ")])}],o=(a("386d"),a("4328")),i=a.n(o),l=a("bc3a"),s=a.n(l),u=a("5f87"),c=a("333d"),d=a("3908"),m=a("1cc7"),p=a("d8fc"),h={components:{pagination:c["a"]},data:function(){return{searchForm:{search:null,salarySettlementMonth:null,statusEnum:null,teacherId:null,organId:null},teacherList:[],tableList:[],organList:[],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=this;Object(m["ub"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),Object(m["U"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this;this.searchForm.page=this.rules.page,this.searchForm.rows=this.rules.limit,Object(p["s"])(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(u["a"])()},url:t,data:i.a.stringify(a),responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),s()(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);e.$message.error(n.msg)}else{var r=URL.createObjectURL(a),o=document.createElement("a"),i=new Date,l=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),s=l+"课酬申诉";o.href=r,o.setAttribute("download",s),document.body.appendChild(o),o.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))},lookDetail:function(e){var t=this;Object(p["t"])({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["e"])(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())}}},f=h,b=a("2877"),g=Object(b["a"])(f,n,r,!1,null,"2cb29e35",null);t["default"]=g.exports},d8fc:function(e,t,a){"use strict";a.d(t,"l",(function(){return l})),a.d(t,"r",(function(){return s})),a.d(t,"q",(function(){return u})),a.d(t,"m",(function(){return c})),a.d(t,"f",(function(){return d})),a.d(t,"k",(function(){return m})),a.d(t,"b",(function(){return p})),a.d(t,"i",(function(){return h})),a.d(t,"o",(function(){return f})),a.d(t,"h",(function(){return b})),a.d(t,"c",(function(){return g})),a.d(t,"v",(function(){return v})),a.d(t,"g",(function(){return y})),a.d(t,"j",(function(){return S})),a.d(t,"d",(function(){return E})),a.d(t,"u",(function(){return _})),a.d(t,"s",(function(){return F})),a.d(t,"t",(function(){return O})),a.d(t,"e",(function(){return w})),a.d(t,"n",(function(){return I})),a.d(t,"a",(function(){return j})),a.d(t,"p",(function(){return D}));var n=a("b775"),r=a("4328"),o=a.n(r),i="/api-web";function l(e){return Object(n["a"])({url:i+"/sysMessage/queryCountOfUnread",method:"get",params:e})}function s(e){return Object(n["a"])({url:i+"/sysMessage/list",method:"get",params:e})}function u(e){return Object(n["a"])({url:i+"/sysMessage/setRead",method:"post",data:o.a.stringify(e)})}function c(e){return Object(n["a"])({url:i+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function d(e){return Object(n["a"])({url:i+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:o.a.stringify(e)})}function m(e){return Object(n["a"])({url:i+"/vipGroupManage/queryApplyRefundDetail",method:"get",params:e})}function p(e){return Object(n["a"])({url:i+"/vipGroupManage/applyRefundAudit",method:"POST",data:o.a.stringify(e)})}function h(e){return Object(n["a"])({url:i+"/musicGroupQuit/query",method:"get",params:e})}function f(e){return Object(n["a"])({url:i+"/musicGroupQuit/quitMusicGroup",method:"POST",data:o.a.stringify(e)})}function b(e){return Object(n["a"])({url:i+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function g(e){return Object(n["a"])({url:i+"/teacherLeaveRecord/approve",method:"POST",data:o.a.stringify(e)})}function v(e){return Object(n["a"])({url:i+"/vipGroupManage/vipApplyAudit",method:"POST",data:o.a.stringify(e)})}function y(e){return Object(n["a"])({url:i+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function S(e){return Object(n["a"])({url:i+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function E(e){return Object(n["a"])({url:i+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function _(e){return Object(n["a"])({url:i+"/teacherSalaryModifyLog/add",method:"POST",data:o.a.stringify(e)})}function F(e){return Object(n["a"])({url:i+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function O(e){return Object(n["a"])({url:i+"/teacherSalaryComplaints/get",method:"GET",params:e})}function w(e){return Object(n["a"])({url:i+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:o.a.stringify(e)})}function I(e){return Object(n["a"])({url:i+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function j(e){return Object(n["a"])({url:i+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function D(e){return Object(n["a"])({url:i+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}}}]);
|