chunk-3f1c2d92.107a09a2.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f1c2d92"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(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,r){var i=o(),s=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var o=Math.easeInOutQuad(u,i,s,t);n(o),u<t?a(e):r&&"function"===typeof r&&r()};c()}},1263:function(e,t,r){},"72f3":function(e,t,r){},"82a3":function(e,t,r){"use strict";r("1263")},"937b":function(e,t,r){"use strict";r("72f3")},b2c8:function(e,t,r){"use strict";r("b535")},b535:function(e,t,r){},c3c0:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("location-hash",{model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[r("el-tabs",{attrs:{type:"card"},model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[e.permissionList.journalItem?r("el-tab-pane",{attrs:{label:"系统通知",lazy:"",name:"SYSTEM"}},[r("list",{attrs:{type:e.activeIndex}})],1):e._e(),e._v(" "),e.permissionList.studentComplain?r("el-tab-pane",{attrs:{label:"学生申诉",lazy:"",name:"STUDENT"}},[r("list",{attrs:{type:e.activeIndex}})],1):e._e(),e._v(" "),e.permissionList.leaveOperation?r("el-tab-pane",{attrs:{label:"请假处理",lazy:"",name:"LEAVE"}},[r("list",{attrs:{type:e.activeIndex}})],1):e._e(),e._v(" "),e.permissionList.vipApply?r("el-tab-pane",{attrs:{label:"VIP申请审核",lazy:"",name:"VIPAPPLY"}},[r("list",{attrs:{type:e.activeIndex}})],1):e._e()],1)],1)],1)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("系统日志\n ")])}],o=r("ec8a"),i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[r("el-form-item",{attrs:{prop:"readStatus"}},[r("el-select",{attrs:{clearable:"",placeholder:"日志状态"},model:{value:e.searchForm.readStatus,callback:function(t){e.$set(e.searchForm,"readStatus","string"===typeof t?t.trim():t)},expression:"searchForm.readStatus"}},[r("el-option",{attrs:{label:"已读",value:1}}),e._v(" "),r("el-option",{attrs:{label:"未读",value:0}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{label:"申请人",prop:"userId",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-badge",{staticStyle:{"vertical-align":"sub"},attrs:{"is-dot":!t.row.readStatus}}),e._v(" "),t.row.user?r("span",[e._v(e._s(t.row.user.username))]):e._e(),e._v(" "),r("span",{staticStyle:{color:"red"}},[e._v("\n ("),r("copy-text",[e._v(e._s(t.row.userId))]),e._v(")\n ")],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"申请时间",prop:"createOn"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"内容",prop:"content"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{width:"100%",text:e.row.content}})]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onLook(t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogSystem,width:"400px"},on:{"update:visible":function(t){e.dialogSystem=t}}},[r("el-row",[r("el-col",{attrs:{span:24}},[e._v(e._s(e.dialogDetail.content))])],1),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSystem=!1}}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogStudent,width:"500px"},on:{"update:visible":function(t){e.dialogStudent=t}}},[e.dialogStudent?r("student-model",{attrs:{dialogDetail:e.dialogDetail},on:{close:function(t){e.dialogStudent=!1}}}):e._e()],1),e._v(" "),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogLeave,width:"800px"},on:{"update:visible":function(t){e.dialogLeave=t}}},[e.dialogLeave?r("leave-model",{attrs:{dialogDetail:e.dialogDetail},on:{close:function(t){e.dialogLeave=!1}}}):e._e()],1),e._v(" "),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVipApply,width:"500px"},on:{"update:visible":function(t){e.dialogVipApply=t}}},[e.dialogVipApply?r("vip-apply-model",{attrs:{dialogDetail:e.dialogDetail},on:{close:function(t){e.dialogVipApply=!1}}}):e._e()],1)],1)},s=[],l=(r("96cf"),r("1da1")),u=r("333d"),c=r("d8fc"),m=r("267e"),p=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.studentForm?r("el-form",{ref:"studentForm",staticClass:"studentForm",attrs:{model:e.rateForm,"label-width":"110px"}},["REJECT"==e.studentForm.complaints.status?r("el-alert",{staticClass:"alert",attrs:{title:"已拒绝","show-icon":"",center:"",closable:!1,type:"error"}}):e._e(),e._v(" "),"PASS"==e.studentForm.complaints.status?r("el-alert",{staticClass:"alert",attrs:{title:"已同意","show-icon":"",center:"",closable:!1,type:"success"}}):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"发起投诉时间"}},[r("el-input",{attrs:{disabled:""},model:{value:e.studentForm.courseSchedule.createTime,callback:function(t){e.$set(e.studentForm.courseSchedule,"createTime","string"===typeof t?t.trim():t)},expression:"studentForm.courseSchedule.createTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"学员姓名"}},[r("el-input",{attrs:{disabled:""},model:{value:e.studentForm.complaints.user.username,callback:function(t){e.$set(e.studentForm.complaints.user,"username","string"===typeof t?t.trim():t)},expression:"studentForm.complaints.user.username"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"课程名称"}},[r("el-input",{attrs:{disabled:""},model:{value:e.studentForm.courseSchedule.name,callback:function(t){e.$set(e.studentForm.courseSchedule,"name","string"===typeof t?t.trim():t)},expression:"studentForm.courseSchedule.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"课程时间"}},[r("el-input",{attrs:{disabled:""},model:{value:e.studentForm.courseSchedule.classDate,callback:function(t){e.$set(e.studentForm.courseSchedule,"classDate","string"===typeof t?t.trim():t)},expression:"studentForm.courseSchedule.classDate"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"老师名称"}},[r("el-input",{attrs:{disabled:""},model:{value:e.studentForm.courseSchedule.teacher.username,callback:function(t){e.$set(e.studentForm.courseSchedule.teacher,"username","string"===typeof t?t.trim():t)},expression:"studentForm.courseSchedule.teacher.username"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"投诉理由"}},[r("el-input",{attrs:{type:"textarea",disabled:""},model:{value:e.studentForm.complaints.reason,callback:function(t){e.$set(e.studentForm.complaints,"reason","string"===typeof t?t.trim():t)},expression:"studentForm.complaints.reason"}})],1),e._v(" "),r("el-alert",{staticClass:"alert",attrs:{title:"责任比",closable:!1,type:"info"}}),e._v(" "),r("el-form-item",{attrs:{label:"老师比例",prop:"teacherRate",rules:[{required:!0,message:"请输入老师比例",trigger:"blur"},{required:!0,validator:e.validateRate,trigger:"blur"}]}},[r("el-input",{attrs:{type:"number",disabled:"ING"!==e.studentForm.complaints.status,placeholder:"请输入内容"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.rateForm.teacherRate,callback:function(t){e.$set(e.rateForm,"teacherRate",e._n(t))},expression:"rateForm.teacherRate"}},[r("template",{slot:"append"},[e._v("%")])],2)],1),e._v(" "),r("el-form-item",{attrs:{label:"学生比例",prop:"studentRate",rules:[{required:!0,message:"请输入学生比例",trigger:"blur"},{required:!0,validator:e.validateRate,trigger:"blur"}]}},[r("el-input",{attrs:{type:"number",disabled:"ING"!==e.studentForm.complaints.status,placeholder:"请输入内容"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.rateForm.studentRate,callback:function(t){e.$set(e.rateForm,"studentRate",e._n(t))},expression:"rateForm.studentRate"}},[r("template",{slot:"append"},[e._v("%")])],2)],1)],1):e._e(),e._v(" "),e.studentForm&&"ING"===e.studentForm.complaints.status?r("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/courseScheduleCommplaintAudit",expression:"'courseSchedule/courseScheduleCommplaintAudit'"}],staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSubmit("studentForm","submit")}}},[e._v("确 定")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.onSubmit("studentForm","reject")}}},[e._v("拒 绝")])],1):e._e()],1)},d=[],f=function(e,t,r){""==t&&"string"==typeof t||null==t?r(new Error("请输入比例")):t<0||t>100?r(new Error("比例必须在0~100之间")):r()},v={props:["dialogDetail"],data:function(){return{validateRate:f,studentForm:null,rateForm:{studentRate:null,teacherRate:null}}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.dialogDetail.memo,t=t?JSON.parse(t):null,t){e.next=5;break}return this.$message.error("参数有误"),e.abrupt("return");case 5:return e.next=7,Object(c["i"])({courseScheduleComplaintsId:t.courseScheduleComplaintsId}).then((function(e){var t=e.data;if(200==e.code){r.studentForm=t;var a=t.complaints;"ING"!=a.status&&(r.rateForm.teacherRate=a.teacherLiabilityRatio,r.rateForm.studentRate=a.studentLiabilityRatio)}}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t,r){var a,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={id:this.studentForm.complaints.id},"reject"==r?this.$confirm("您确定拒绝吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a.status="REJECT",a.studentLiabilityRatio=0,a.teacherLiabilityRatio=0,e.next=5,n.onComm(a);case 5:case"end":return e.stop()}}),e)})))).catch((function(){})):this.$refs[t].validate(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=6;break}return a.status="PASS",a.studentLiabilityRatio=n.rateForm.studentRate,a.teacherLiabilityRatio=n.rateForm.teacherRate,e.next=6,n.onComm(a);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),onComm:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["e"])(t).then((function(e){200==e.code?(r.$message.success("处理成功"),r.$listeners.close()):r.$message.error(e.msg)}));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{"rateForm.teacherRate":function(e,t){e&&(this.rateForm.studentRate=parseInt(100-e))},"rateForm.studentRate":function(e,t){e&&(this.rateForm.teacherRate=parseInt(100-e))}}},b=v,h=(r("b2c8"),r("2877")),g=Object(h["a"])(b,p,d,!1,null,"cddfe5fe",null),y=g.exports,_=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"leaveForm",staticClass:"leaveForm",attrs:{model:e.leaveForm,"label-width":"100px"}},["REJECT"==e.leaveForm.status?r("el-alert",{staticClass:"alert",attrs:{title:"已拒绝","show-icon":"",center:"",closable:!1,type:"error"}}):e._e(),e._v(" "),"PASS"==e.leaveForm.status?r("el-alert",{staticClass:"alert",attrs:{title:"已同意","show-icon":"",center:"",closable:!1,type:"success"}}):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"开始时间"}},[r("el-input",{attrs:{disabled:""},model:{value:e.leaveForm.startTime,callback:function(t){e.$set(e.leaveForm,"startTime","string"===typeof t?t.trim():t)},expression:"leaveForm.startTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"结束时间"}},[r("el-input",{attrs:{disabled:""},model:{value:e.leaveForm.endTime,callback:function(t){e.$set(e.leaveForm,"endTime","string"===typeof t?t.trim():t)},expression:"leaveForm.endTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",disabled:""},model:{value:e.leaveForm.remark,callback:function(t){e.$set(e.leaveForm,"remark","string"===typeof t?t.trim():t)},expression:"leaveForm.remark"}})],1)],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.vipCourse,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{label:"编号",width:"100px",prop:"before.id"}}),e._v(" "),r("el-table-column",{attrs:{label:"类型",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("VIP"==t.row.before.type?"VIP课":"乐团课")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"班名",width:"140px"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("tooltip",{attrs:{content:e.row.before.name}})]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"调整前日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimer")(t.row.before.classDate))+"\n "+e._s(e._f("getFormatTime")(t.row.before.startClassTime,t.row.before.endClassTime))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"调整后日期"},scopedSlots:e._u([{key:"default",fn:function(t){return"VIP"==t.row.before.type?[e._v("\n "+e._s(e._f("formatTimer")(t.row.after.classDate))+"\n "+e._s(e._f("getFormatTime")(t.row.after.startClassTime,t.row.after.endClassTime))+"\n ")]:void 0}}],null,!0)})],1),e._v(" "),r("el-table",{staticStyle:{width:"100%","padding-top":"10px"},attrs:{data:e.musicGroupCourse,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{label:"乐团编号",prop:"before.musicGroupId"}}),e._v(" "),r("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("VIP"==t.row.before.type?"VIP课":"乐团课")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"班名"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("tooltip",{attrs:{content:e.row.before.name}})]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"调整前日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimer")(t.row.before.classDate))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("getFormatTime")(t.row.before.startClassTime,t.row.before.endClassTime))+"\n ")]}}])})],1),e._v(" "),"ING"==e.leaveForm.status?r("div",{directives:[{name:"permission",rawName:"v-permission",value:"teacherLeaveRecord/approve",expression:"'teacherLeaveRecord/approve'"}],staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSubmit("leaveForm","PASS")}}},[e._v("确 定")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.onSubmit("leaveForm","REJECT")}}},[e._v("拒 绝")])],1):e._e()],1)},F=[],S=(r("ac6a"),r("a5b0")),w=r("5a0c"),x=r.n(w),k={props:["dialogDetail"],components:{Tooltip:S["a"]},data:function(){return{leaveForm:{},musicGroupCourse:[],vipCourse:[]}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.dialogDetail.memo,t=t?JSON.parse(t):null,t){e.next=5;break}return this.$message.error("参数有误"),e.abrupt("return");case 5:return e.next=7,Object(c["g"])({id:t.leaveRecordId}).then((function(e){var t=e.data;if(200==e.code){r.leaveForm=t;var a=t.coursesScheduleJson?JSON.parse(t.coursesScheduleJson):[],n=[],o=[];a.forEach((function(e){"VIP"==e.before.type?o.push(e):n.push(e)})),r.musicGroupCourse=n,r.vipCourse=o}}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t,r){var a,n,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={id:this.leaveForm.id,status:r,userId:this.leaveForm.userId},n="PASS"==r?"同意":"拒绝",this.$confirm("您确定".concat(n,"该请假申请吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["b"])(a).then((function(e){200==e.code?(o.$message.success("处理成功"),o.$listeners.close()):o.$message.error(e.msg)}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){}));case 3:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},filters:{getFormatTime:function(e,t){return x()(e).format("HH")+":"+x()(e).format("mm")+"-"+x()(t).format("HH")+":"+x()(t).format("mm")}}},T=k,C=(r("937b"),Object(h["a"])(T,_,F,!1,null,"d926220a",null)),R=C.exports,O=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"vipForm",staticClass:"vipForm",attrs:{model:e.vipForm,"label-width":"110px"}},["REJECT"==e.vipForm.auditStatus?r("el-alert",{staticClass:"alert",attrs:{title:"已拒绝","show-icon":"",center:"",closable:!1,type:"error"}}):e._e(),e._v(" "),"PASS"==e.vipForm.auditStatus?r("el-alert",{staticClass:"alert",attrs:{title:"已同意","show-icon":"",center:"",closable:!1,type:"success"}}):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"开始时间"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.createTime,callback:function(t){e.$set(e.vipForm,"createTime","string"===typeof t?t.trim():t)},expression:"vipForm.createTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"老师姓名"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.userName,callback:function(t){e.$set(e.vipForm,"userName","string"===typeof t?t.trim():t)},expression:"vipForm.userName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线上课数"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.onlineClassesNum,callback:function(t){e.$set(e.vipForm,"onlineClassesNum","string"===typeof t?t.trim():t)},expression:"vipForm.onlineClassesNum"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线上课单价"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.onlineClassesUnitPrice,callback:function(t){e.$set(e.vipForm,"onlineClassesUnitPrice","string"===typeof t?t.trim():t)},expression:"vipForm.onlineClassesUnitPrice"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线上课课酬"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.onlineTeacherSalary,callback:function(t){e.$set(e.vipForm,"onlineTeacherSalary","string"===typeof t?t.trim():t)},expression:"vipForm.onlineTeacherSalary"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线下课数"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.offlineClassesNum,callback:function(t){e.$set(e.vipForm,"offlineClassesNum","string"===typeof t?t.trim():t)},expression:"vipForm.offlineClassesNum"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线下课单价"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.offlineClassesUnitPrice,callback:function(t){e.$set(e.vipForm,"offlineClassesUnitPrice","string"===typeof t?t.trim():t)},expression:"vipForm.offlineClassesUnitPrice"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线下课课酬"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.offlineTeacherSalary,callback:function(t){e.$set(e.vipForm,"offlineTeacherSalary","string"===typeof t?t.trim():t)},expression:"vipForm.offlineTeacherSalary"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"科目名"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.subjectName,callback:function(t){e.$set(e.vipForm,"subjectName","string"===typeof t?t.trim():t)},expression:"vipForm.subjectName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"活动名称"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.vipGroupActivityName,callback:function(t){e.$set(e.vipForm,"vipGroupActivityName","string"===typeof t?t.trim():t)},expression:"vipForm.vipGroupActivityName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"商品价格"}},[r("el-input",{attrs:{disabled:""},model:{value:e.vipForm.totalPrice,callback:function(t){e.$set(e.vipForm,"totalPrice","string"===typeof t?t.trim():t)},expression:"vipForm.totalPrice"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"原因",prop:"memo",rules:[{required:!0,message:"请输入原因",trigger:"blur"}]}},[r("el-input",{attrs:{type:"textarea",disabled:"ING"!==e.vipForm.auditStatus},model:{value:e.vipForm.memo,callback:function(t){e.$set(e.vipForm,"memo","string"===typeof t?t.trim():t)},expression:"vipForm.memo"}})],1)],1),e._v(" "),"ING"===e.vipForm.auditStatus?r("div",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/vipApplyAudit",expression:"'vipGroupManage/vipApplyAudit'"}],staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSubmit("vipForm","PASS")}}},[e._v("确 定")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.onSubmit("vipForm","REJECT")}}},[e._v("拒 绝")])],1):e._e()],1)},j=[],I=r("7e78"),$={props:["dialogDetail"],data:function(){return{vipForm:{}}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.dialogDetail.memo,t=t?JSON.parse(t):null,t){e.next=5;break}return this.$message.error("参数有误"),e.abrupt("return");case 5:return e.next=7,Object(I["y"])({vipGroupId:t.vipGroupId}).then((function(e){var t=e.data;200==e.code&&(r.vipForm=t)}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t,r){var a,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={vipGroupId:this.vipForm.id,reason:this.vipForm.memo,auditStatus:r},this.$refs[t].validate(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&(o="PASS"==r?"同意":"拒绝",n.$confirm("您确定".concat(o,"申请吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["q"])(a).then((function(e){200==e.code?(n.$message.success("处理成功"),n.$listeners.close()):n.$message.error(e.msg)}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}},E=$,A=(r("82a3"),Object(h["a"])(E,O,j,!1,null,"8018d522",null)),L=A.exports,P={components:{pagination:u["a"],StudentModel:y,LeaveModel:R,vipApplyModel:L},props:["type"],data:function(){return{dialogSystem:!1,dialogStudent:!1,dialogLeave:!1,dialogVipApply:!1,dialogTitle:null,dialogDetail:{},searchForm:{search:null,group:"SYSTEM",readStatus:0},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=this.$route.query;this.searchForm.group=e.opt||this.type,this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.pageInfo,r=Object.assign({},this.searchForm),r.rows=t.limit,r.page=t.page,e.next=6,Object(c["m"])(r).then((function(e){200==e.code&&(a.tableList=e.data.rows,t.total=e.data.total)}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onLook:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(1==t.readStatus){e.next=4;break}return e.next=3,Object(c["l"])({id:t.id});case 3:t.readStatus=1;case 4:this.dialogTitle=m["journalType"][t.group],this.dialogDetail=t,e.t0=t.group,e.next="SYSTEM"===e.t0?9:"STUDENT"===e.t0?11:"LEAVE"===e.t0?13:"VIPAPPLY"===e.t0?15:17;break;case 9:return this.dialogSystem=!0,e.abrupt("break",17);case 11:return this.dialogStudent=!0,e.abrupt("break",17);case 13:return this.dialogLeave=!0,e.abrupt("break",17);case 15:return this.dialogVipApply=!0,e.abrupt("break",17);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},N=P,D=Object(h["a"])(N,i,s,!1,null,null,null),G=D.exports,q={name:"journal",components:{List:G},data:function(){var e=this.$route.query;return{activeIndex:e.opt||"SYSTEM",permissionList:{journalItem:Object(o["a"])("/journalItem"),studentComplain:Object(o["a"])("/studentComplain"),musicGroupCourse:Object(o["a"])("/musicGroupCourse"),leaveOperation:Object(o["a"])("/leaveOperation"),vipApply:Object(o["a"])("/vipApply")}}},mounted:function(){},methods:{}},V=q,M=Object(h["a"])(V,a,n,!1,null,null,null);t["default"]=M.exports},d8fc:function(e,t,r){"use strict";r.d(t,"m",(function(){return s})),r.d(t,"l",(function(){return l})),r.d(t,"i",(function(){return u})),r.d(t,"e",(function(){return c})),r.d(t,"g",(function(){return m})),r.d(t,"b",(function(){return p})),r.d(t,"q",(function(){return d})),r.d(t,"f",(function(){return f})),r.d(t,"h",(function(){return v})),r.d(t,"c",(function(){return b})),r.d(t,"p",(function(){return h})),r.d(t,"n",(function(){return g})),r.d(t,"o",(function(){return y})),r.d(t,"d",(function(){return _})),r.d(t,"j",(function(){return F})),r.d(t,"a",(function(){return S})),r.d(t,"k",(function(){return w}));var a=r("b775"),n=r("4328"),o=r.n(n),i="/api-web";function s(e){return Object(a["a"])({url:i+"/sysMessage/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/sysMessage/setRead",method:"post",data:o.a.stringify(e)})}function u(e){return Object(a["a"])({url:i+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function c(e){return Object(a["a"])({url:i+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:o.a.stringify(e)})}function m(e){return Object(a["a"])({url:i+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function p(e){return Object(a["a"])({url:i+"/teacherLeaveRecord/approve",method:"POST",data:o.a.stringify(e)})}function d(e){return Object(a["a"])({url:i+"/vipGroupManage/vipApplyAudit",method:"POST",data:o.a.stringify(e)})}function f(e){return Object(a["a"])({url:i+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function v(e){return Object(a["a"])({url:i+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function b(e){return Object(a["a"])({url:i+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function h(e){return Object(a["a"])({url:i+"/teacherSalaryModifyLog/add",method:"POST",data:o.a.stringify(e)})}function g(e){return Object(a["a"])({url:i+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function y(e){return Object(a["a"])({url:i+"/teacherSalaryComplaints/get",method:"GET",params:e})}function _(e){return Object(a["a"])({url:i+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:o.a.stringify(e)})}function F(e){return Object(a["a"])({url:i+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function S(e){return Object(a["a"])({url:i+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}function w(e){return Object(a["a"])({url:i+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:o.a.stringify(e)})}},ec8a:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("6762"),r("2fdb"),r("28a5");function a(e,t){var r=window.localStorage.getItem("permission");return r=r.split(","),t=t||null,!(!r.includes(e)||t)||!(!r.includes(e)||!r.includes(t))}}}]);