(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bcff4d7c"],{"09f4":function(e,t,l){"use strict";l.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,l,a){return e/=a/2,e<1?l/2*e*e+t:(e--,-l/2*(e*(e-2)-1)+t)};var a=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 n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,l){var o=n(),u=e-o,i=20,s=0;t="undefined"===typeof t?500:t;var c=function e(){s+=i;var n=Math.easeInOutQuad(s,o,u,t);r(n),s0?"续费":"首充")+"\n ")]):e._e()])]}}])}),e._v(" "),l("el-table-column",{attrs:{width:"150",prop:"memo",label:"备注",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(e){return[l("overflow-text",{attrs:{text:e.row.memo,width:"150px"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",width:"200",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e.permission("/accompanys")?l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.lookCrouse(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),"NORMAL"==t.row.groupStatus&&e.permission("practiceGroupManage/cancelGroup")?l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.closeCrouse(t.row)}}},[e._v("关闭")]):e._e(),e._v(" "),e.permission("practiceGroupManage/updateMemo")?l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.resetMemo(t.row)}}},[e._v("修改备注")]):e._e()],1)]}}])})],1),e._v(" "),l("pagination",{attrs:{"save-key":"accompanyList",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(" "),l("el-dialog",{attrs:{title:"关闭课程组",width:"400px",visible:e.closeVisible},on:{"update:visible":function(t){e.closeVisible=t}}},[l("el-form",{ref:"closeForm",attrs:{model:e.closeForm,"label-position":"right","label-width":"80px;",inline:!0}},[l("el-form-item",{attrs:{label:"是否退费",prop:"isBasck"}},[l("el-radio",{attrs:{label:!0},model:{value:e.closeForm.isBack,callback:function(t){e.$set(e.closeForm,"isBack",t)},expression:"closeForm.isBack"}},[e._v("是")]),e._v(" "),l("el-radio",{attrs:{label:!1},model:{value:e.closeForm.isBack,callback:function(t){e.$set(e.closeForm,"isBack",t)},expression:"closeForm.isBack"}},[e._v("否")])],1),e._v(" "),e.closeForm.isBack?l("el-form-item",{attrs:{label:"退费金额",prop:"money"}},[l("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.closeForm.money,callback:function(t){e.$set(e.closeForm,"money","string"===typeof t?t.trim():t)},expression:"closeForm.money"}})],1):e._e(),e._v(" "),e.closeForm.isBack?l("p",{staticStyle:{color:"red"}},[e._v("\n 退费金额暂不进入账户余额\n ")]):e._e()],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.closeVisible=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:e.submieCloseCrouse}},[e._v("确 定")])],1)],1),e._v(" "),l("el-dialog",{attrs:{title:"备注",width:"400px",visible:e.memoVisible},on:{"update:visible":function(t){e.memoVisible=t}}},[l("el-input",{attrs:{type:"textarea",rows:7,maxlength:255,"show-word-limit":""},model:{value:e.memoForm.memo,callback:function(t){e.$set(e.memoForm,"memo","string"===typeof t?t.trim():t)},expression:"memoForm.memo"}}),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.memoVisible=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:e.subMemo}},[e._v("确 定")])],1)],1)],1)},r=[],n=(l("386d"),l("333d")),o=l("ce96"),u=l("ec8a"),i=l("e3eb"),s=l.n(i),c=l("92e3"),p=l("1cc7"),v=l("bc3a"),b=l.n(v),m=l("5f87"),d=l("3908"),f={components:{pagination:n["a"]},data:function(){return{searchForm:{search:null,status:null,teacherId:null,organIdList:null,firstOrRenew:null,practiceGroupType:null,groupStatus:null},closeForm:{isBack:!1,money:null},memoForm:{memo:"",groupId:""},memoVisible:!1,closeVisible:!1,activeRow:null,organList:[],statusList:[],teacherList:[],tableData:[],practiceGroupType:c["M"],commGroupStatus:c["o"],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=this.$route.query;e.search&&(this.searchForm.search=e.search),this.init()},activated:function(){this.init()},methods:{init:function(){this.$store.dispatch("setBranchs"),this.getList()},permission:function(e,t){return Object(u["a"])(e,t)},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,status:null,teacherId:null,organIdList:null,firstOrRenew:null,practiceGroupType:null,groupStatus:null},(new o["a"]).removeByKey("accompanyList"),this.search()},onStudentExport:function(){var e=this,t={},l="/api-web/export/practiceGroup",a={method:"get",headers:{Authorization:Object(m["b"])(),tenantId:Object(m["a"])()},params:t,url:l,responseType:"blob"};this.$confirm("网管课续费提醒导出?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),b()(a).then((function(t){var l=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(l).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var r=URL.createObjectURL(l),n=document.createElement("a"),o="网管课续费提醒"+(new Date).getTime()+".xls";n.href=r,n.setAttribute("download",o),document.body.appendChild(n),n.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))},onPracticeExport:function(){var e=this,t=this.searchForm,l={search:t.search||null,teacherId:t.teacherId||null,organId:t.organIdList||null,hasEducationalTeacherId:t.hasEducationalTeacherId||null,type:t.firstOrRenew||null,practiceGroupType:t.practiceGroupType||null,groupStatus:t.groupStatus||null},a="/api-web/export/practiceGroupList",r={method:"get",headers:{Authorization:Object(m["b"])(),tenantId:Object(m["a"])()},params:s()(l),url:a,responseType:"blob"};this.$confirm("网管课导出?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),b()(r).then((function(t){var l=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(l).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var r=URL.createObjectURL(l),n=document.createElement("a"),o="网管课"+(new Date).getTime()+".xls";n.href=r,n.setAttribute("download",o),document.body.appendChild(n),n.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))},getList:function(){var e=this,t={search:this.searchForm.search||null,teacherId:this.searchForm.teacherId||null,organId:this.searchForm.organIdList||null,page:this.rules.page,rows:this.rules.limit,hasEducationalTeacherId:this.searchForm.hasEducationalTeacherId||null,type:this.searchForm.firstOrRenew||null,practiceGroupType:this.searchForm.practiceGroupType||null,groupStatus:this.searchForm.groupStatus||null};Object(p["kc"])(t).then((function(t){200==t.code&&(e.tableData=t.data.rows,e.rules.total=t.data.total)}))},lookCrouse:function(e){var t=this.$helpers.dayjs(e.coursesStartDate).format("YYYY-MM-DD"),l=this.$helpers.dayjs(e.coursesExpireDate).format("YYYY-MM-DD");this.$router.push({path:"/business/accompanys",query:{id:e.id,type:e.type,coursesStartDate:t,coursesExpireDate:l}})},closeCrouse:function(e){this.activeRow=e,this.closeVisible=!0},courseVisibleClose:function(){},submieCloseCrouse:function(){var e=this;if(this.closeForm.isBack){if(!this.closeForm.money)return void this.$message.error("请输入退费金额")}else this.closeForm.money=null;Object(p["n"])({groupId:this.activeRow.id,groupType:"PRACTICE",amount:this.closeForm.money}).then((function(t){200==t.code&&(e.$message.success("关闭成功"),e.getList(),e.closeVisible=!1),206==t.code&&e.$confirm(t.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){Object(p["n"])({groupId:e.activeRow.id,groupType:"PRACTICE",refundAmount:e.closeForm.money,confirmReturnActivityGive:!0}).then((function(t){200==t.code&&(e.$message.success("关闭成功"),e.getList(),e.closeVisible=!1)}))}))}))},resetMemo:function(e){this.$set(this.memoForm,"memo",e.memo),this.$set(this.memoForm,"groupId",e.id),this.memoVisible=!0},subMemo:function(){var e=this;Object(p["nc"])(this.memoForm).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.memoVisible=!1,e.getList())}))},newPractice:function(){this.$router.push({path:"/business/newPractice",query:{courseType:"PRACTICE"}})}},watch:{closeVisible:function(e){e||(this.activeRow=null,this.closeForm={isBack:!1,money:null},this.$refs.closeForm.resetFields(),this.closeVisible=!1)}}},h=f,_=(l("2f8e"),l("2877")),y=Object(_["a"])(h,a,r,!1,null,"e205f0e6",null);t["default"]=y.exports},"2f8e":function(e,t,l){"use strict";l("ab8e")},"92e3":function(e,t,l){"use strict";l.d(t,"u",(function(){return i})),l.d(t,"F",(function(){return s})),l.d(t,"s",(function(){return c})),l.d(t,"c",(function(){return p})),l.d(t,"C",(function(){return v})),l.d(t,"S",(function(){return b})),l.d(t,"R",(function(){return m})),l.d(t,"d",(function(){return d})),l.d(t,"J",(function(){return f})),l.d(t,"w",(function(){return h})),l.d(t,"U",(function(){return _})),l.d(t,"t",(function(){return y})),l.d(t,"o",(function(){return E})),l.d(t,"T",(function(){return T})),l.d(t,"M",(function(){return I})),l.d(t,"W",(function(){return g})),l.d(t,"X",(function(){return R})),l.d(t,"L",(function(){return S})),l.d(t,"P",(function(){return w})),l.d(t,"A",(function(){return N})),l.d(t,"l",(function(){return A})),l.d(t,"Q",(function(){return C})),l.d(t,"V",(function(){return L})),l.d(t,"G",(function(){return O})),l.d(t,"m",(function(){return F})),l.d(t,"v",(function(){return x})),l.d(t,"K",(function(){return G})),l.d(t,"f",(function(){return k})),l.d(t,"e",(function(){return M})),l.d(t,"I",(function(){return P})),l.d(t,"H",(function(){return D})),l.d(t,"O",(function(){return $})),l.d(t,"E",(function(){return V})),l.d(t,"a",(function(){return B})),l.d(t,"x",(function(){return U})),l.d(t,"p",(function(){return H})),l.d(t,"n",(function(){return Y})),l.d(t,"q",(function(){return j})),l.d(t,"g",(function(){return K})),l.d(t,"D",(function(){return X})),l.d(t,"r",(function(){return q})),l.d(t,"B",(function(){return W})),l.d(t,"z",(function(){return z})),l.d(t,"y",(function(){return J})),l.d(t,"h",(function(){return Q})),l.d(t,"k",(function(){return Z})),l.d(t,"i",(function(){return ee})),l.d(t,"j",(function(){return te})),l.d(t,"N",(function(){return le})),l.d(t,"b",(function(){return re}));var a=l("b85c"),r=l("3835"),n=l("267e"),o=sessionStorage.getItem("tenantConfig");o=o?JSON.parse(o):{};var u=o.tenantId,i=null,s=null;1==u?(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]):(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],p=[{label:"正常签到",value:1},{label:"异常签到",value:0}],v=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],b=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],m=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],d=[].concat(m,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),f=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],_=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],y=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],E=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],T=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],I=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],g=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],R=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{value:"乐理课回访",label:"乐理课回访"},{value:"网管课回访",label:"网管课回访"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],w=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],N=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],A=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],C=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],L=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],O=ae(n["musicGroupType"]),F=ae(n["classTime"]),x=ae(n["courseViewType"]),G=ae(n["payOrderType"]),k=ae(n["auditType"]),M=ae(n["auditPaymentType"]),P=ae(n["orderServerType"]),D=ae(n["orderAuditType"]),$=ae(n["rewardModeType"]),V=ae(n["musicClassType"]),B=ae(n["ProbationPeriodStatus"]),U=ae(n["downListType"]),H=ae(n["conclusion"]),Y=ae(n["clientType"]),j=ae(n["couponType"]),K=ae(n["backType"]),X=ae(n["memberEnum"]),q=ae(n["coupontypeDetail"]),W=ae(n["issue"]),z=ae(n["feedbackType"]),J=ae(n["feedbackTypeDesc"]),Q=ae(n["campState"]),Z=ae(n["catgGoupType"]),ee=ae(n["catRole"]),te=ae(n["catType"]),le=ae(n["quiteReason"]);function ae(e){var t=[];for(var l in e)t.push({label:e[l],value:l});return t}var re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],l=Object(r["a"])(t,2),n=l[0],o=l[1],u={};if(e&&e.length){var i,s=Object(a["a"])(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;u[c[n]]=c[o]}}catch(p){s.e(p)}finally{s.f()}}return u}},ab8e:function(e,t,l){}}]);