chunk-34331fd2.571d95f2.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34331fd2"],{3090:function(e,t,r){"use strict";r("d290")},"475f":function(e,t,r){"use strict";var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"quitForm",attrs:{model:e.quitForm,"label-width":"150px",rules:e.quitRules,inline:!0}},[r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"学员姓名"}},[r("span",[e._v(e._s(e.quitForm.studentName))])])],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"乐团名称"}},[r("overflow-text",{attrs:{text:e.quitForm.musicGroupName,width:"150px"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"是否回访",prop:"isVisit"}},[r("el-radio",{attrs:{label:!0,disabled:e.isDisabled},model:{value:e.quitForm.isVisit,callback:function(t){e.$set(e.quitForm,"isVisit","string"===typeof t?t.trim():t)},expression:"quitForm.isVisit"}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isVisit,callback:function(t){e.$set(e.quitForm,"isVisit","string"===typeof t?t.trim():t)},expression:"quitForm.isVisit"}},[e._v("否")])],1),e._v(" "),e.quitForm.isVisit?r("el-form-item",{attrs:{label:"回访时间",rules:[{required:!0,message:"请选择回访时间"}],prop:"visitTime"}},[r("el-date-picker",{staticStyle:{width:"180px !important"},attrs:{disabled:e.isDisabled,align:"right",type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.quitForm.visitTime,callback:function(t){e.$set(e.quitForm,"visitTime","string"===typeof t?t.trim():t)},expression:"quitForm.visitTime"}})],1):e._e()],1),e._v(" "),r("div",[r("el-row",[r("el-form-item",{attrs:{label:"退还课程费用",prop:"isReturnCourseFee",rules:[{required:!0,message:"请选择是否退还课程费用"}]}},[r("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnCourseFee,callback:function(t){e.$set(e.quitForm,"isReturnCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnCourseFee"}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnCourseFee,callback:function(t){e.$set(e.quitForm,"isReturnCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnCourseFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnCourseFee?r("el-form-item",{attrs:{label:"退还课程金额",prop:"courseFee"}},[r("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"",type:"number"},model:{value:e.quitForm.courseFee,callback:function(t){e.$set(e.quitForm,"courseFee","string"===typeof t?t.trim():t)},expression:"quitForm.courseFee"}},[r("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"退还乐器费用",prop:"isReturnMusicalFee",rules:[{required:!0,message:"请选择是否退还乐器费用"}]}},[r("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnMusicalFee,callback:function(t){e.$set(e.quitForm,"isReturnMusicalFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMusicalFee"}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnMusicalFee,callback:function(t){e.$set(e.quitForm,"isReturnMusicalFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMusicalFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnMusicalFee?r("el-form-item",{attrs:{label:"退还乐器金额",prop:"musicalFee"}},[r("el-input",{staticStyle:{width:"180px"},attrs:{type:"number",disabled:""},model:{value:e.quitForm.musicalFee,callback:function(t){e.$set(e.quitForm,"musicalFee","string"===typeof t?t.trim():t)},expression:"quitForm.musicalFee"}},[r("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{rules:[{required:!0,message:"请选择是否退还教辅费用"}],label:"退还教辅费用",prop:"isReturnAccessoriesFee"}},[r("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnAccessoriesFee,callback:function(t){e.$set(e.quitForm,"isReturnAccessoriesFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnAccessoriesFee"}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnAccessoriesFee,callback:function(t){e.$set(e.quitForm,"isReturnAccessoriesFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnAccessoriesFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnAccessoriesFee?r("el-form-item",{attrs:{label:"退还教辅金额",prop:"accessoriesFee"}},[r("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"",type:"number"},model:{value:e.quitForm.accessoriesFee,callback:function(t){e.$set(e.quitForm,"accessoriesFee","string"===typeof t?t.trim():t)},expression:"quitForm.accessoriesFee"}},[r("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),1==e.$helpers.tenantId?r("el-row",[r("el-form-item",{attrs:{label:"退还乐保费用",rules:[{required:!0,message:"请选择是否退还乐保费用"}],prop:"isReturnMaintenanceFee"}},[r("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isReturnMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMaintenanceFee"}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isReturnMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMaintenanceFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnMaintenanceFee?r("el-form-item",{attrs:{label:"退还乐保金额",rules:[{required:!0,message:"请输入乐保金额"}],prop:"maintenanceFee"}},[r("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.maintenanceFee,callback:function(t){e.$set(e.quitForm,"maintenanceFee",t)},expression:"quitForm.maintenanceFee"}},[r("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1):e._e(),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"退团原因",prop:"reasonEnum"}},[r("el-radio-group",{attrs:{disabled:e.isDisabled},model:{value:e.quitForm.reasonEnum,callback:function(t){e.$set(e.quitForm,"reasonEnum",t)},expression:"quitForm.reasonEnum"}},e._l(e.quiteReasonList,(function(t,i){return r("el-radio-button",{key:i,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1)],1),e._v(" "),e.quitForm.schoolStaffAuditReason?r("el-form-item",{attrs:{label:"学校审批",prop:"schoolStaffAuditReason"}},[r("el-input",{staticStyle:{width:"455px !important"},attrs:{disabled:!0,type:"textarea",rows:3},model:{value:e.quitForm.schoolStaffAuditReason,callback:function(t){e.$set(e.quitForm,"schoolStaffAuditReason","string"===typeof t?t.trim():t)},expression:"quitForm.schoolStaffAuditReason"}})],1):e._e(),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"申请理由",prop:"userComment"}},[r("el-input",{staticStyle:{width:"455px !important"},attrs:{type:"textarea",rows:3,disabled:e.isDisabled},model:{value:e.quitForm.userComment,callback:function(t){e.$set(e.quitForm,"userComment","string"===typeof t?t.trim():t)},expression:"quitForm.userComment"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"审批理由",prop:"reason"}},[r("el-input",{staticStyle:{width:"455px !important"},attrs:{disabled:e.isDisabled,type:"textarea",rows:3},model:{value:e.quitForm.reason,callback:function(t){e.$set(e.quitForm,"reason","string"===typeof t?t.trim():t)},expression:"quitForm.reason"}})],1)],1)],1)},s=[],a=r("92e3"),n={props:["quitForm","isDisabled"],mounted:function(){},data:function(){return{quitRules:{isCloudTeacherAmount:[{required:!0,message:"请输入云教练费用"}],cloudTeacherAmount:[{required:!0,message:"请输入云教练金额",trigger:"blur"}],isRefundCourseFee:[{required:!0,message:"请选择是否退还课程费用"}],isRefundInstrumentFee:[{required:!0,message:"选择是否退还乐器费用"}],isRefundTeachingAssistantsFee:[{required:!0,message:"选择是否退还教辅费用"}],isMaintenanceFee:[{required:!0,message:"选择是否退还乐保费用"}],maintenanceFee:[{required:!0,message:"请输入退还乐保金额"}],reason:[{required:!0,message:"请填写退团退费原因"}],isRefundMemberFee:[{required:!0,message:"请选择是否退还会员费用"}],reasonEnum:[{required:!0,message:"请选择退团原因"}]},pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>(new Date).getTime()}},quiteReasonList:a["R"]}}},o=n,u=r("2877"),l=Object(u["a"])(o,i,s,!1,null,"0496e738",null);t["a"]=l.exports},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r("bc3a"),s=r.n(i),a=(r("4328"),r("5f87")),n=r("3908"),o=r("e3eb"),u=r.n(o),l=function(e,t,r,i){var o=t.url,l={method:t.method?t.method:"get",headers:{Authorization:Object(a["b"])(),tenantId:Object(a["a"])()},url:o,responseType:"blob"};"post"==l.method?l.data=t.params:l.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),s()(u()(l)).then((function(r){var s=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(r){if(-1!=r.indexOf("code")){var a=JSON.parse(r);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==a.code?e.$message.success(a.msg):e.$message.error(a.msg),i&&i()}else{var n=URL.createObjectURL(s),o=document.createElement("a"),u=t.fileName||"导出文件.xls";o.href=n,o.setAttribute("download",u),document.body.appendChild(o),o.click(),i&&i()}})),n["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),n["a"].endLoading()}))})).catch((function(){}))}},c4b2:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 退团申请\n "),r("auth",{attrs:{auths:["/WithdrawalApplication/abnormal"]}},[r("filter-search",{attrs:{keys:["visitFlag"],moreKeys:["organId"]},on:{reload:e.reloadSearch}})],1)],1),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.submit,reset:e.onReSet,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"学员(乐团)编号、名称"},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(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},e._l(e.withdrawalStatus,(function(e,t){return r("el-option",{key:t,attrs:{label:e,value:t}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",placeholder:"请选择角色"},model:{value:e.searchForm.currentApproveRole,callback:function(t){e.$set(e.searchForm,"currentApproveRole",t)},expression:"searchForm.currentApproveRole"}},[r("el-option",{attrs:{label:"分部经理",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"乐团主管",value:"2"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/musicGroupQuit",expression:"'export/musicGroupQuit'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),r("div",{staticClass:"btnList"},[r("auth",{attrs:{auths:["musicGroupQuit/batchQuitMusicGroup"]}},[r("el-button",{attrs:{type:"primary"},on:{click:e.quiteTeamAll}},[e._v("批量处理")])],1)],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkSeleabled}}),e._v(" "),r("el-table-column",{attrs:{prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.userId))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"userId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.user.username))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v(e._s(t.row.musicGroup.organName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"musicGroupId",label:"所属乐团"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.musicGroup.name))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"createTime",label:"申请时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.createTime))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"applyUserName",label:"申请人"}}),e._v(" "),r("el-table-column",{attrs:{prop:"createTime",label:"退费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.returnTotalFee?r("p",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.returnTotalFee))+"\n ")]):r("p",[e._v("--")])])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"reasonEnum",label:"退团原因"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v(e._s(e._f("quiteReasonFilter")(t.row.reasonEnum)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"userComment",label:"退团理由"},scopedSlots:e._u([{key:"default",fn:function(e){return r("overflow-text",{attrs:{width:"100%",text:e.row.userComment}})}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"userComment",label:"学校审批理由"},scopedSlots:e._u([{key:"default",fn:function(e){return r("overflow-text",{attrs:{width:"100%",text:e.row.schoolStaffAuditReason?e.row.schoolStaffAuditReason:"--"}})}}])}),e._v(" "),r("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("withdrawalStatus")(t.row.status))+"\n "),"PROCESSING"==t.row.status?r("span",[e._v("("+e._s(1==t.row.currentApproveRole?"分部经理":"乐团主管")+")")]):e._e()])]}}])}),e._v(" "),e.permission("musicGroupQuit/quitMusicGroup/quit")||e.permission("musicGroupQuit/quitMusicGroup/quit-only")||e.permission("visit/add/tuituanliebiao")?r("el-table-column",{attrs:{align:"center",fixed:"right",width:"200px;",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e.permission("musicGroupQuit/quitMusicGroup/quit")&&e.isManage?r("el-button",{attrs:{type:"text",disabled:"PROCESSING"!=t.row.status||"DENIED"==t.row.status||"CANCELED"==t.row.status||"PROCESSING"==t.row.status&&"manage"==e.isManage&&"2"==t.row.currentApproveRole||"PROCESSING"==t.row.status&&"staff"==e.isManage&&"1"==t.row.currentApproveRole},on:{click:function(r){return e.quieTeamMask(t.row)}}},[e._v("立即处理")]):e._e(),e._v(" "),e.permission("musicGroupQuit/quitMusicGroup/quit")&&e.isManage?r("el-button",{attrs:{type:"text",disabled:!("PROCESSING"!=t.row.status||"DENIED"==t.row.status||"CANCELED"==t.row.status||"PROCESSING"==t.row.status&&"manage"==e.isManage&&"2"==t.row.currentApproveRole||"PROCESSING"==t.row.status&&"staff"==e.isManage&&"1"==t.row.currentApproveRole)},on:{click:function(r){return e.quieTeamMask(t.row,"look")}}},[e._v("查看")]):e._e(),e._v(" "),e.permission("visit/add/tuituanliebiao")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.addVisit(t.row)}}},[e._v("新增回访")]):e._e()],1)]}}],null,!1,2342641350)}):e._e()],1),e._v(" "),r("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.FetchList}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.isDisabled?"查看":"立即处理",width:"700px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[e.quitVisible?r("quitModal",{ref:"musicForm",attrs:{quitForm:e.quitForm,isDisabled:e.isDisabled},on:{close:function(t){e.quitVisible=!1},submited:e.FetchList}}):e._e(),e._v(" "),r("p",{staticStyle:{color:"red",paddingleft:"150px"}},[e._v("退费金额暂不进入账户余额")]),e._v(" "),r("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[r("div",[r("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[r("div",{staticClass:"popoverWrap"},[r("p",[e._v("乐团退团退费规则:")]),e._v(" "),r("p",[e._v("退还云教练费用:报名缴费时缴费的云教练费用")]),e._v(" "),r("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),r("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),r("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")]),e._v(" "),1==e.$helpers.tenantId?r("p",[e._v("退还乐保费用:报名缴费时缴费的乐保费用")]):e._e()]),e._v(" "),r("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),e.isDisabled?e._e():r("div",["staff"==e.isManage?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupQuit/quitMusicGroup",expression:"'musicGroupQuit/quitMusicGroup'"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo("PROCESSING")}}},[e._v("提交审核")]):e._e(),e._v(" "),"super"==e.isManage||"manage"==e.isManage?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupQuit/quitMusicGroup",expression:"'musicGroupQuit/quitMusicGroup'"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo("APPROVED")}}},[e._v("同意")]):e._e(),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupQuit/quitMusicGroup",expression:"'musicGroupQuit/quitMusicGroup'"}],attrs:{type:"danger"},on:{click:function(t){return e.submitInfo("DENIED")}}},[e._v("拒绝")])],1)])],1),e._v(" "),r("el-dialog",{attrs:{title:"新增回访",width:"760px",visible:e.visitVisible},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible&&e.detail?r("visit",{attrs:{detail:e.detail},on:{close:function(t){e.visitVisible=!1},submited:e.FetchList}}):e._e()],1)],1)},s=[],a=(r("ac6a"),r("7f7f"),r("c80c")),n=(r("96cf"),r("3b8d")),o=r("db72"),u=r("333d"),l=r("ec8a"),c=r("475f"),m=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"quitForm",attrs:{model:e.quitForm,rules:e.quitRules}},[r("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[r("el-radio",{attrs:{label:"APPROVED"},model:{value:e.quitForm.status,callback:function(t){e.$set(e.quitForm,"status","string"===typeof t?t.trim():t)},expression:"quitForm.status"}},[e._v("通过")]),e._v(" "),r("el-radio",{attrs:{label:"DENIED"},model:{value:e.quitForm.status,callback:function(t){e.$set(e.quitForm,"status","string"===typeof t?t.trim():t)},expression:"quitForm.status"}},[e._v("拒绝")])],1),e._v(" "),r("el-form-item",{attrs:{label:"退团原因",prop:"reason"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请填写退团原因"},model:{value:e.quitForm.reason,callback:function(t){e.$set(e.quitForm,"reason","string"===typeof t?t.trim():t)},expression:"quitForm.reason"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},d=[],p=r("d8fc"),f={props:["detail"],data:function(){return{quitForm:{status:"",isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1,reason:null},quitRules:{status:[{required:!0,message:"请选择审核状态"}],reason:[{required:!0,message:"请填写退团原因"}]}}},methods:{submit:function(){var e=this;this.$refs.quitForm.validate(function(){var t=Object(n["a"])(Object(a["a"])().mark((function t(r){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=13;break}return t.prev=1,t.next=4,e.$confirm("是否确定退团?","提示",{type:"warning"});case 4:return t.next=6,Object(p["l"])(Object(o["a"])({id:e.detail.id},e.quitForm));case 6:e.$emit("close"),e.$emit("submited"),e.$message.success("退团成功"),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](1);case 13:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e){return t.apply(this,arguments)}}())}}},b=f,v=r("2877"),h=Object(v["a"])(b,m,d,!1,null,null,null),F=h.exports,q=r("4edf"),g=r("adb21"),_=r("4328"),y=r.n(_),w=r("38a4"),x=r("e3eb"),R=r.n(x),S=r("267e"),O=(r("98e1"),{search:"",status:null,organId:""}),k={components:{pagination:u["a"],quitModal:c["a"],quitOnlyModal:F,visit:q["a"]},data:function(){return{withdrawalStatus:S["withdrawalStatus"],quitVisible:!1,quitOnlyVisible:!1,visitVisible:!1,detail:null,list:[],searchForm:Object(o["a"])({},O),rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},quitForm:{isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:"",courseViewType:null,hasMaintenance:null,studentName:null,musicGroupName:null,isVisit:!1,userComment:null,schoolStaffAuditReason:null},isManage:!1,isDisabled:!1,multipleSelection:[]}},mounted:function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(){var t,r,i;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this,t=this.$store.getters.isSuperAdmin,r=this.$store.getters.roles,i=this.$store.getters.newRoles,e.next=6,this.$store.dispatch("setBranchs");case 6:t||-1!=i.indexOf(150)?(console.log("isSuperAdmin"),this.isManage="super"):(-1!=r.indexOf("1")&&(this.isManage="manage"),-1!=r.indexOf("2")&&(this.isManage="staff")),-1!=r.indexOf("1")&&-1!=r.indexOf("2")&&(this.isManage="super"),this.FetchList();case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{permission:l["a"],reloadSearch:function(){this.rules.page=1,this.FetchList()},submit:function(){this.rules.page=1,this.FetchList()},onReSet:function(){this.searchForm=Object(o["a"])({},O),this.submit()},quieTeamMask:function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var i=this;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(p["h"])({id:t.id}).then((function(e){var s,a;200==e.code?(i.isDisabled="look"==r,i.musicForm=e.data,i.activeRow=Object(o["a"])(Object(o["a"])({},t),e.data.returnFeeDto),i.quitForm.courseViewType=e.data.musicGroup.courseViewType,i.quitForm.userComment=e.data.userComment,i.quitForm.isVisit=e.data.isVisit,i.quitForm.visitTime=e.data.visitTime,i.quitForm.studentName=null===(s=e.data.user)||void 0===s?void 0:s.username,i.quitForm.musicGroupName=null===(a=e.data.musicGroup)||void 0===a?void 0:a.name,i.quitForm.hasMaintenance=e.data.hasMaintenance,i.quitForm.reason=e.data.reason,i.quitForm.id=e.data.id,i.quitForm.reasonEnum=e.data.reasonEnum,i.quitForm.schoolStaffAuditReason=e.data.schoolStaffAuditReason,i.quitForm=Object(o["a"])(Object(o["a"])({},i.quitForm),e.data.returnFeeDto),console.log(i.quitForm,"this.quitForm"),i.quitVisible=!0):i.$message.error(e.msg)}));case 2:case"end":return e.stop()}}),e)})));function t(t,r){return e.apply(this,arguments)}return t}(),quieTeam:function(e){this.quitOnlyVisible=!0,this.detail=e},addVisit:function(e){this.visitVisible=!0,this.detail=e},FetchList:function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(){var t;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(w["c"])(Object(o["a"])({page:this.rules.page,rows:this.rules.limit,visitFlag:this.$route.query.visitFlag},this.searchForm));case 3:t=e.sent,this.rules.total=t.data.total,this.list=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),onExport:function(){var e=Object.assign({},this.searchForm);Object(g["a"])(this,{url:"/api-web/export/musicGroupQuit",fileName:"退团申请.xls",method:"post",params:y.a.stringify(Object(o["a"])({visitFlag:this.$route.query.visitFlag},e))},"您确定导出退团申请列表?")},submitInfo:function(e){var t=this;this.$confirm("确定此操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n["a"])(Object(a["a"])().mark((function r(){var i;return Object(a["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=t.quitForm,i.status=e,i.returnFeeDto={accessoriesFee:i.accessoriesFee,courseFee:i.courseFee,isReturnAccessoriesFee:i.isReturnAccessoriesFee,isReturnCourseFee:i.isReturnCourseFee,isReturnMaintenanceFee:i.isReturnMaintenanceFee,isReturnMemberFee:i.isReturnMemberFee,isReturnMusicalFee:i.isReturnMusicalFee,maintenanceFee:i.maintenanceFee,memberFee:i.memberFee,musicalFee:i.musicalFee},r.next=5,Object(p["l"])(R()(i)).then((function(e){t.$message.success("处理成功"),t.activeRow=null,t.$refs["musicForm"].$refs.quitForm&&t.$refs["musicForm"].$refs.quitForm.resetFields(),t.quitVisible=!1,t.FetchList()}));case 5:case"end":return r.stop()}}),r)})))).catch((function(e){console.log(e)}))},handleSelectionChange:function(e){this.multipleSelection=e},quiteTeamAll:function(){var e=this;if(this.multipleSelection.length<1)this.$message.error("请至少选择一名学员");else{var t="";this.multipleSelection.forEach((function(e){console.log(e),t+=e.user.username+","})),t+="的退团申请将批量处理",this.$prompt(t,"提示",{distinguishCancelAndClose:!0,confirmButtonText:"同意",cancelButtonText:"拒绝",confirmButtonClass:"el-button--primary",cancelButtonClass:"el-button--danger",closeOnClickModal:!1,inputPattern:/\S/,inputType:"textarea",inputErrorMessage:"请输入审批理由",inputPlaceholder:"请输入审批理由",beforeClose:function(){var t=Object(n["a"])(Object(a["a"])().mark((function t(r,i,s){var n,o;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("confirm"!=r){t.next=16;break}return n=e.multipleSelection.map((function(e){return{id:e.id,status:"APPROVED",reason:i.inputValue}})),t.prev=2,t.next=5,Object(w["a"])(n);case 5:t.sent,e.$message.success("审批成功"),s(),e.FetchList(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](2),console.log(t.t0);case 14:t.next=34;break;case 16:if("cancel"!=r){t.next=33;break}return i.validate(),o=e.multipleSelection.map((function(e){return{id:e.id,status:"DENIED",reason:i.inputValue}})),t.prev=19,t.next=22,Object(w["a"])(o);case 22:t.sent,e.$message.success("审批成功"),s(),e.FetchList(),t.next=31;break;case 28:t.prev=28,t.t1=t["catch"](19),console.log(t.t1);case 31:t.next=34;break;case 33:s();case 34:case"end":return t.stop()}}),t,null,[[2,11],[19,28]])})));function r(e,r,i){return t.apply(this,arguments)}return r}()}).then((function(){})).catch((function(e){console.log(e)}))}},checkSeleabled:function(e){return"PROCESSING"==e.status&&"1"==e.currentApproveRole?1:0}}},M=k,C=(r("3090"),Object(v["a"])(M,i,s,!1,null,"6766c75f",null));t["default"]=C.exports},d290:function(e,t,r){},d8fc:function(e,t,r){"use strict";r.d(t,"o",(function(){return o})),r.d(t,"n",(function(){return u})),r.d(t,"j",(function(){return l})),r.d(t,"e",(function(){return c})),r.d(t,"h",(function(){return m})),r.d(t,"l",(function(){return d})),r.d(t,"g",(function(){return p})),r.d(t,"b",(function(){return f})),r.d(t,"s",(function(){return b})),r.d(t,"f",(function(){return v})),r.d(t,"i",(function(){return h})),r.d(t,"c",(function(){return F})),r.d(t,"r",(function(){return q})),r.d(t,"p",(function(){return g})),r.d(t,"q",(function(){return _})),r.d(t,"d",(function(){return y})),r.d(t,"k",(function(){return w})),r.d(t,"a",(function(){return x})),r.d(t,"m",(function(){return R}));var i=r("b775"),s=r("4328"),a=r.n(s),n="/api-web";function o(e){return Object(i["a"])({url:n+"/sysMessage/list",method:"get",params:e})}function u(e){return Object(i["a"])({url:n+"/sysMessage/setRead",method:"post",data:a.a.stringify(e)})}function l(e){return Object(i["a"])({url:n+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function c(e){return Object(i["a"])({url:n+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:a.a.stringify(e)})}function m(e){return Object(i["a"])({url:n+"/musicGroupQuit/query",method:"get",params:e})}function d(e){return Object(i["a"])({url:n+"/musicGroupQuit/quitMusicGroup",method:"POST",data:e,requestType:"json"})}function p(e){return Object(i["a"])({url:n+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function f(e){return Object(i["a"])({url:n+"/teacherLeaveRecord/approve",method:"POST",data:a.a.stringify(e)})}function b(e){return Object(i["a"])({url:n+"/vipGroupManage/vipApplyAudit",method:"POST",data:a.a.stringify(e)})}function v(e){return Object(i["a"])({url:n+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function h(e){return Object(i["a"])({url:n+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function F(e){return Object(i["a"])({url:n+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function q(e){return Object(i["a"])({url:n+"/teacherSalaryModifyLog/add",method:"POST",data:a.a.stringify(e)})}function g(e){return Object(i["a"])({url:n+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function _(e){return Object(i["a"])({url:n+"/teacherSalaryComplaints/get",method:"GET",params:e})}function y(e){return Object(i["a"])({url:n+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:a.a.stringify(e)})}function w(e){return Object(i["a"])({url:n+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:a.a.stringify(e)})}function x(e){return Object(i["a"])({url:n+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:a.a.stringify(e)})}function R(e){return Object(i["a"])({url:n+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:a.a.stringify(e)})}}}]);