chunk-4e081942.5e8cf0f7.js 24 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e081942"],{"475f":function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"quitForm",attrs:{model:e.quitForm,"label-width":"150px",rules:e.quitRules,inline:!0}},[i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"学员姓名"}},[i("span",[e._v(e._s(e.quitForm.studentName))])])],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"乐团名称"}},[i("overflow-text",{attrs:{text:e.quitForm.musicGroupName,width:"150px"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:"是否回访",prop:"isVisit"}},[i("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(" "),i("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?i("el-form-item",{attrs:{label:"回访时间",rules:[{required:!0,message:"请选择回访回访时间"}]}},[i("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(" "),i("div",[i("el-row",[i("el-form-item",{attrs:{label:"退还课程费用",prop:"isReturnCourseFee",rules:[{required:!0,message:"请选择是否退还课程费用"}]}},[i("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(" "),i("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?i("el-form-item",{attrs:{label:"退还课程金额",prop:"courseFee"}},[i("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"}},[i("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:"退还乐器费用",prop:"isReturnMusicalFee",rules:[{required:!0,message:"请选择是否退还乐器费用"}]}},[i("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(" "),i("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?i("el-form-item",{attrs:{label:"退还乐器金额",prop:"musicalFee"}},[i("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"}},[i("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{rules:[{required:!0,message:"请选择是否退还教辅费用"}],label:"退还教辅费用",prop:"isReturnAccessoriesFee"}},[i("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(" "),i("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?i("el-form-item",{attrs:{label:"退还教辅金额",prop:"accessoriesFee"}},[i("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"}},[i("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),1==e.$helpers.tenantId?i("el-row",[i("el-form-item",{attrs:{label:"退还乐保费用",rules:[{required:!0,message:"请选择是否退还乐保费用"}],prop:"isReturnMaintenanceFee"}},[i("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(" "),i("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?i("el-form-item",{attrs:{label:"退还乐保金额",rules:[{required:!0,message:"请输入乐保金额"}],prop:"maintenanceFee"}},[i("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"}},[i("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1):e._e(),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:"退团原因",prop:"reasonEnum"}},[i("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,s){return i("el-radio-button",{key:s,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:"申请理由",prop:"userComment"}},[i("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(" "),i("el-form-item",{attrs:{label:"审批理由",prop:"reason"}},[i("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)},r=[],a=i("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["N"]}}},o=n,u=i("2877"),l=Object(u["a"])(o,s,r,!1,null,"4b8d088b",null);t["a"]=l.exports},c041:function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return a})),i.d(t,"e",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return u}));var s=i("829b"),r=function(e){return Object(s["a"])({url:"/api-web/musicGroup/queryMusicMemberList",params:e,method:"get"})},a=function(e){return Object(s["a"])({url:"/api-web/cloudCoachPaymentProgram/add",method:"post",data:e})},n=function(e){return Object(s["a"])({url:"/api-web/cloudCoachPaymentProgram/update",method:"post",data:e})},o=function(e){return Object(s["a"])({url:"/api-web/cloudCoachPaymentProgram/queryPage",method:"get",params:e})},u=function(e){return Object(s["a"])({url:"/api-web/studentCloudCoachPaymentDetails/queryPage",method:"get",params:e})}},f636:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-container"},[e._m(0),e._v(" "),i("div",{staticClass:"m-core"},[i("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[i("el-form-item",{attrs:{prop:"search"}},[i("el-input",{attrs:{clearable:"",placeholder:"乐团/学员名称编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},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(" "),i("el-form-item",{attrs:{prop:"organId"}},[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{prop:"hasMember"}},[i("el-select",{staticClass:"multiple",attrs:{placeholder:"会员状态"},model:{value:e.searchForm.hasMember,callback:function(t){e.$set(e.searchForm,"hasMember","string"===typeof t?t.trim():t)},expression:"searchForm.hasMember"}},[i("el-option",{attrs:{label:"已过期",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"即将过期",value:"1"}}),e._v(" "),i("el-option",{attrs:{label:"待生效",value:"2"}}),e._v(" "),i("el-option",{attrs:{label:"生效中",value:"3"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{prop:"visitTime"}},[i("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"回访开始日期","end-placeholder":"回访结束日期"},model:{value:e.searchForm.visitTime,callback:function(t){e.$set(e.searchForm,"visitTime","string"===typeof t?t.trim():t)},expression:"searchForm.visitTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[i("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"所属乐团"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.gotoMusic(t.row.musicGroupName)}}},[e._v("\n "+e._s(t.row.musicGroupName)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"studentId",label:"会员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("hasMemberFilter")(t.row.hasMember))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"memberDay",label:"会员有效期剩余天数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(t.row.memberDay>=0?t.row.memberDay:0)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"memberDay",label:"回访日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.visitTime))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("auth",{attrs:{auths:"visit/add/4465"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.addVisit(t.row)}}},[e._v("新增回访")])],1),e._v(" "),t.row.visitTime?i("auth",{attrs:{auths:"visit/queryPage"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.lookVisit(t.row)}}},[e._v("查看回访")])],1):e._e(),e._v(" "),i("auth",{attrs:{auths:"musicGroupQuit/directQuitMusicGroup4463"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.quitTeam(t.row)}}},[e._v("退团退费")])],1),e._v(" "),i("auth",{attrs:{auths:"musicGroupQuit/directQuitMusicGroup4462"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onekeyquickTeams(t.row)}}},[e._v("退团")])],1)],1)]}}])})],1),e._v(" "),i("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(" "),i("el-dialog",{attrs:{title:"退团信息确认",width:"660px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[i("quiteTeam",{ref:"quitForm",attrs:{quitForm:e.quitForm,activeRow:e.activeRow}}),e._v(" "),i("p",{staticStyle:{color:"red",paddingleft:"150px"}},[e._v("退费金额暂不进入账户余额")]),e._v(" "),i("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[i("div",[i("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[i("div",{staticClass:"popoverWrap"},[i("p",[e._v("乐团退团退费规则:")]),e._v(" "),i("p",[e._v("退还云教练费用:报名缴费时缴费的云教练费用")]),e._v(" "),i("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),i("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),i("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")]),e._v(" "),1==e.tenantId?i("p",[e._v("退还乐保费用:报名缴费时缴费的乐保费用")]):e._e()]),e._v(" "),i("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),i("div",[i("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1),e._v(" "),i("el-dialog",{attrs:{title:"一键退团",width:"660px",visible:e.onekeyQuitVisible},on:{"update:visible":function(t){e.onekeyQuitVisible=t}}},[i("el-form",{ref:"onekeyQuitForm",attrs:{model:e.quitForm,"label-width":"150px",inline:!0}},[i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"学员姓名"}},[i("span",[e._v(e._s(e.quitForm.studentName))])])],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"乐团名称"}},[i("overflow-text",{attrs:{text:e.quitForm.musicGroupName,width:"150px"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:"退团原因",prop:"reasonEnum",rules:[{required:!0,message:"请选择退团原因"}]}},[i("el-radio-group",{attrs:{disabled:!1},model:{value:e.quitForm.reasonEnum,callback:function(t){e.$set(e.quitForm,"reasonEnum",t)},expression:"quitForm.reasonEnum"}},e._l(e.quiteReasonList,(function(t,s){return i("el-radio-button",{key:s,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"审批理由",prop:"reason",rules:[{required:!0,message:"请输入退团理由"}]}},[i("el-input",{staticStyle:{width:"455px !important"},attrs:{disabled:!1,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),e._v(" "),i("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[i("div",[i("el-button",{on:{click:function(t){e.onekeyQuitVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.quieTeams}},[e._v("确 定")])],1)])],1),e._v(" "),i("el-dialog",{attrs:{title:"新增回访",width:"760px",visible:e.visitVisible,"append-to-body":""},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible&&e.activeRow?i("visit",{attrs:{detail:e.activeRow,username:e.activeRow.username,useVisitType:["其它","会员续费"]},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"退团信息确认",width:"660px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[i("quiteTeam",{ref:"quitForm",attrs:{quitForm:e.quitForm,activeRow:e.activeRow}}),e._v(" "),i("p",{staticStyle:{color:"red",paddingleft:"150px"}},[e._v("退费金额暂不进入账户余额")]),e._v(" "),i("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[i("div",[i("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[i("div",{staticClass:"popoverWrap"},[i("p",[e._v("乐团退团退费规则:")]),e._v(" "),i("p",[e._v("退还云教练费用:报名缴费时缴费的云教练费用")]),e._v(" "),i("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),i("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),i("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")]),e._v(" "),1==e.tenantId?i("p",[e._v("退还乐保费用:报名缴费时缴费的乐保费用")]):e._e()]),e._v(" "),i("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),i("div",[i("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1)],1)},r=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("h2",[i("div",{staticClass:"squrt"}),e._v("\n 乐团会员列表\n ")])}],a=(i("386d"),i("5530")),n=i("15fd"),o=(i("96cf"),i("1da1")),u=(i("bc3a"),i("5f87"),i("333d")),l=i("475f"),c=i("1cc7"),m=(i("3908"),i("c041")),d=i("4edf"),p=i("ed08"),v=i("92e3"),b={components:{pagination:u["a"],quiteTeam:l["a"],visit:d["a"]},data:function(){return{searchForm:{search:null,organId:null,hasMember:"0",visitTime:[]},tableList:[{}],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},quitForm:{studentName:null,musicGroupName:null,isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,isRefundMemberFee:null,maintenanceFee:0,reason:""},quitVisible:!1,activeRow:null,visitVisible:!1,tenantId:"",onekeyQuitVisible:!1,quiteReasonList:v["N"]}},created:function(){},mounted:function(){this.tenantId=this.$helpers.tenantId,this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.$route.query.hasMember&&this.$set(this.searchForm,"hasMember",this.$route.query.hasMember),this.getList()},getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,i=t.visitTime,s=Object(n["a"])(t,["visitTime"]),e.prev=1,e.next=4,Object(m["d"])(Object(a["a"])(Object(a["a"])(Object(a["a"])({},s),Object(p["a"])(i,["visitStartTime","visitEndTime"])),{},{page:this.rules.page,rows:this.rules.limit}));case 4:r=e.sent,this.tableList=r.data.rows,this.rules.total=r.data.total,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()},quitTeam:function(e){this.activeRow=e,this.quitVisible=!0,this.quitForm.cloudTeacherAmount=e.cloudTeacherAmount,this.quitForm.studentName=e.username,this.quitForm.musicGroupName=e.musicGroupName},onekeyquickTeams:function(e){this.quitForm.cloudTeacherAmount=e.cloudTeacherAmount,this.quitForm.studentName=e.username,this.quitForm.musicGroupName=e.musicGroupName,this.activeRow=e,this.onekeyQuitVisible=!0},quieTeams:function(){var e=this;this.$refs.onekeyQuitForm.validate((function(t){t&&Object(c["b"])({musicGroupId:e.activeRow.musicGroupId,userId:e.activeRow.userId,reason:e.quitForm.reason,reasonEnum:e.quitForm.reasonEnum,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1,isRefundMemberFee:!1}).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,isRefundMemberFee:null,maintenanceFee:0,reason:"",reasonEnum:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.onekeyQuitVisible=!1)}))}))},chioseType:function(){var e=this;this.$refs["quitForm"].$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow,i={musicGroupId:t.musicGroupId,userId:t.userId,reason:e.quitForm.reason,isRefundCourseFee:e.quitForm.isRefundCourseFee,isRefundInstrumentFee:e.quitForm.isRefundInstrumentFee,isRefundTeachingAssistantsFee:e.quitForm.isRefundTeachingAssistantsFee,maintenanceFee:e.quitForm.maintenanceFee,isRefundMemberFee:e.quitForm.isRefundMemberFee};e.quitForm.isRefundMemberFee?i.cloudTeacherAmount=e.quitForm.cloudTeacherAmount:i.cloudTeacherAmount=0,Object(c["b"])(i).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,isRefundMemberFee:null,maintenanceFee:0,reason:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))},addVisit:function(e){this.visitVisible=!0,this.activeRow=e},gotoMusic:function(e){this.$router.push({path:"/teamList",query:{search:e}})},lookVisit:function(e){this.$router.push({path:"/studentManager/returnVisitList",query:{search:e.userId,typeList:["其它","会员续费"]}})}},watch:{quitVisible:function(e){e||(this.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,maintenanceFee:0,reason:""},this.$refs["quitForm"].$refs["quitForm"].resetFields())}},filters:{hasMemberFilter:function(e){var t=["已过期","即将过期","待生效","生效中"];return t[e]}}},f=b,F=i("2877"),h=Object(F["a"])(f,s,r,!1,null,"68cd6582",null);t["default"]=h.exports}}]);