1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ed00dfb"],{"09f4":function(e,t,l){"use strict";l.d(t,"a",(function(){return u})),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 n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,l){var u=r(),o=e-u,i=20,s=0;t="undefined"===typeof t?500:t;var c=function e(){s+=i;var r=Math.easeInOutQuad(s,u,o,t);n(r),s<t?a(e):l&&"function"===typeof l&&l()};c()}},"331d":function(e,t,l){"use strict";l("6b72")},"6b72":function(e,t,l){},"92e3":function(e,t,l){"use strict";l.d(t,"v",(function(){return i})),l.d(t,"I",(function(){return s})),l.d(t,"t",(function(){return c})),l.d(t,"c",(function(){return v})),l.d(t,"E",(function(){return p})),l.d(t,"bb",(function(){return b})),l.d(t,"Z",(function(){return f})),l.d(t,"d",(function(){return m})),l.d(t,"M",(function(){return d})),l.d(t,"x",(function(){return h})),l.d(t,"db",(function(){return y})),l.d(t,"u",(function(){return S})),l.d(t,"o",(function(){return T})),l.d(t,"cb",(function(){return E})),l.d(t,"Q",(function(){return _})),l.d(t,"fb",(function(){return N})),l.d(t,"gb",(function(){return O})),l.d(t,"P",(function(){return A})),l.d(t,"U",(function(){return I})),l.d(t,"C",(function(){return C})),l.d(t,"l",(function(){return R})),l.d(t,"Y",(function(){return g})),l.d(t,"eb",(function(){return w})),l.d(t,"J",(function(){return L})),l.d(t,"m",(function(){return F})),l.d(t,"w",(function(){return x})),l.d(t,"N",(function(){return M})),l.d(t,"f",(function(){return G})),l.d(t,"e",(function(){return U})),l.d(t,"L",(function(){return P})),l.d(t,"K",(function(){return D})),l.d(t,"T",(function(){return k})),l.d(t,"H",(function(){return $})),l.d(t,"a",(function(){return H})),l.d(t,"y",(function(){return V})),l.d(t,"p",(function(){return B})),l.d(t,"n",(function(){return Y})),l.d(t,"q",(function(){return j})),l.d(t,"g",(function(){return X})),l.d(t,"G",(function(){return J})),l.d(t,"r",(function(){return q})),l.d(t,"D",(function(){return K})),l.d(t,"B",(function(){return W})),l.d(t,"A",(function(){return z})),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,"S",(function(){return le})),l.d(t,"O",(function(){return ae})),l.d(t,"F",(function(){return ne})),l.d(t,"z",(function(){return re})),l.d(t,"R",(function(){return ue})),l.d(t,"V",(function(){return oe})),l.d(t,"X",(function(){return ie})),l.d(t,"s",(function(){return se})),l.d(t,"ab",(function(){return ce})),l.d(t,"W",(function(){return ve})),l.d(t,"b",(function(){return be}));var a=l("b85c"),n=l("3835"),r=l("267e"),u=sessionStorage.getItem("tenantConfig");u=u?JSON.parse(u):{};var o=u.tenantId,i=null,s=null;1==o?(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"},{label:"直播课",value:"LIVE"}]):(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"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],v=[{label:"正常签到",value:1},{label:"异常签到",value:0}],p=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],b=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],m=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),d=[{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:"MALL_BUY",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:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],y=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],S=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],T=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],E=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],_=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],N=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],O=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],A=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],I=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],C=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],R=[{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:"高三"}],g=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],w=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],L=pe(r["musicGroupType"]),F=pe(r["classTime"]),x=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],M=pe(r["payOrderType"]),G=pe(r["auditType"]),U=pe(r["auditPaymentType"]),P=pe(r["orderServerType"]),D=pe(r["orderAuditType"]),k=pe(r["rewardModeType"]),$=pe(r["musicClassType"]),H=pe(r["ProbationPeriodStatus"]),V=pe(r["downListType"]),B=pe(r["conclusion"]),Y=pe(r["clientType"]),j=pe(r["couponType"]),X=pe(r["backType"]),J=pe(r["memberEnum"]),q=pe(r["coupontypeDetail"]),K=pe(r["issue"]),W=pe(r["feedbackType"]),z=pe(r["feedbackTypeDesc"]),Q=pe(r["campState"]),Z=pe(r["catgGoupType"]),ee=pe(r["catRole"]),te=pe(r["catType"]),le=pe(r["quiteReason"]),ae=pe(r["payUserType"]),ne=pe(r["levelStatus"]),re=pe(r["evaluateStatus"]),ue=pe(r["problemType"]),oe=pe(r["schoolUserType"]),ie=pe(r["shareLiveType"]),se=pe(r["courseEmnu"]),ce=pe(r["suggestionType"]),ve=pe(r["scoreType"]);function pe(e){var t=[];for(var l in e)t.push({label:e[l],value:l});return t}var be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],l=Object(n["a"])(t,2),r=l[0],u=l[1],o={};if(e&&e.length){var i,s=Object(a["a"])(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c[r]]=c[u]}}catch(v){s.e(v)}finally{s.f()}}return o}},a004:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"m-container"},[e._m(0),e._v(" "),l("div",{staticClass:"m-core"},[l("div",{staticClass:"btnList",staticStyle:{"margin-bottom":"20px"}},[l("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/vipNewActive",expression:"'/vipNewActive'"}],attrs:{type:"primary"},on:{click:e.gotoNewActive}},[e._v("新建")])],1),e._v(" "),l("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReset}},[l("el-form-item",{attrs:{prop:"search"}},[l("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(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("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 l("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"activityChannel"}},[l("el-select",{staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"活动渠道"},model:{value:e.searchForm.activityChannel,callback:function(t){e.$set(e.searchForm,"activityChannel",t)},expression:"searchForm.activityChannel"}},[l("el-option",{attrs:{label:"乐团小课",value:"1"}}),e._v(" "),l("el-option",{attrs:{label:"常规小课",value:"2"}}),e._v(" "),l("el-option",{attrs:{label:"学生购买",value:"3"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"status"}},[l("el-select",{staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"活动状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[l("el-option",{attrs:{label:"草稿",value:"DRAFT"}}),e._v(" "),l("el-option",{attrs:{label:"正式",value:"PROGRESS"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"enable"}},[l("el-select",{staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"是否启用"},on:{clear:e.resetEnable},model:{value:e.searchForm.enable,callback:function(t){e.$set(e.searchForm,"enable",t)},expression:"searchForm.enable"}},[l("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),l("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"allowOnlineToOffline"}},[l("el-select",{attrs:{placeholder:"请选择课程调整方式",clearable:""},model:{value:e.searchForm.allowOnlineToOffline,callback:function(t){e.$set(e.searchForm,"allowOnlineToOffline","string"===typeof t?t.trim():t)},expression:"searchForm.allowOnlineToOffline"}},e._l(e.vipResetTypeList,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"applyToStudentType"}},[l("el-select",{staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"适用学员"},model:{value:e.searchForm.applyToStudentType,callback:function(t){e.$set(e.searchForm,"applyToStudentType",t)},expression:"searchForm.applyToStudentType"}},[l("el-option",{attrs:{label:"新学员",value:"1"}}),e._v(" "),l("el-option",{attrs:{label:"老学员",value:"0"}}),e._v(" "),l("el-option",{attrs:{label:"会员",value:"2"}}),e._v(" "),l("el-option",{attrs:{label:"非会员",value:"3"}})],1)],1),e._v(" "),l("el-form-item",[l("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")])],1),e._v(" "),l("el-form-item",[l("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),l("div",{staticClass:"tableWrap"},[l("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[l("el-table-column",{attrs:{align:"left",prop:"name",label:"活动名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("copy-text",[e._v(e._s(t.row.id))]),e._v(" "),l("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"left",prop:"id",label:"适用分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"left",prop:"activityType",label:"活动类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("div",[e._v("\n "+e._s(1==t.row.activityChannel?"活动渠道:乐团小课":"")+"\n "+e._s(2==t.row.activityChannel?"活动渠道:常规小课":"")+"\n "+e._s(3==t.row.activityChannel?"活动渠道:学生购买":"")+"\n ")]),e._v(" "),l("p",[e._v("\n 活动类型:"+e._s(t.row.activityType?"会员活动":"课程活动")+"\n ")])])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"type",label:"活动购买"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[t.row.activityType?l("p",[e._v("会员")]):l("p",[e._v(e._s(e._f("courseTypeFormat")(t.row.courseType)))])])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"name",label:"课程形式"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(t.row.vipGroupCategoryNames?t.row.vipGroupCategoryNames:"--")+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"type",label:"赠送类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[t.row.giveCourseType?l("p",[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.giveCourseType))+"\n ")]):l("p",[e._v("--")])])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",width:"150px",label:"活动持续时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("p",[e._v(e._s(t.row.startTime))]),e._v(" "),l("p",[e._v(e._s(t.row.endTime))])])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"活动状态",prop:"status",formatter:e.fommatterStatus}}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"是否启用",prop:"enable",formatter:e.fommatterEnable}}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupActivity/update",expression:"'vipGroupActivity/update'"}],attrs:{type:"text"},on:{click:function(l){return e.look(t.row)}}},[e._v("查看")]),e._v(" "),"PROGRESS"==t.row.status&&t.row.maxCourseNum&&t.row.minCourseNum&&t.row.maxCourseNum>0&&t.row.minCourseNum>0&&t.row.minCourseNum==t.row.maxCourseNum?l("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/activeSenior",expression:"'/activeSenior'"}],attrs:{type:"text"},on:{click:function(l){return e.activeManager(t.row)}}},[e._v("资格管理")]):e._e(),e._v(" "),l("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupActivity/update",expression:"'vipGroupActivity/update'"}],staticStyle:{"margin-left":"0px"},attrs:{type:"text"},on:{click:function(l){return e.reset(t.row)}}},[e._v("修改")]),e._v(" "),"PROGRESS"!=t.row.status?l("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupActivity/delete",expression:"'vipGroupActivity/delete'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[l("p",[e._v("确定删除?")]),e._v(" "),l("div",{staticStyle:{"text-align":"right",margin:"0"}},[l("el-button",{attrs:{type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:function(l){return e.remove(t)}}},[e._v("确定")])],1),e._v(" "),l("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1):e._e()],1)]}}])})],1),e._v(" "),l("pagination",{attrs:{total:e.rules.total,sync:"",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)])},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("h2",[l("div",{staticClass:"squrt"}),e._v("\n 活动管理\n ")])}],r=(l("7cdf"),l("c5f6"),l("386d"),l("ac6a"),l("4917"),l("5530")),u=l("c7eb"),o=(l("96cf"),l("1da1")),i=l("333d"),s=l("7e78"),c=l("3655"),v=l("4328"),p=l.n(v),b=l("adb21"),f=l("e3eb"),m=l.n(f),d=l("92e3"),h=1,y=999,S={name:"vipActiveList",components:{pagination:i["a"],ExportChiose:c["a"]},data:function(){return{vipResetTypeList:d["eb"],labelPosition:"right",tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:{organId:null,enable:null,search:"",applyToStudentType:null,allowOnlineToOffline:null,status:null,activityChannel:null},dialogVisible:!1}},mounted:function(){this.init()},filters:{onlinePip:function(e){var t=JSON.parse(e);if(t&&t.onlineSalarySettlement&&t.onlineSalarySettlement.salarySettlementType)switch(t.onlineSalarySettlement.salarySettlementType){case"RATIO_DISCOUNT":return"线上:比例结算";case"TEACHER_DEFAULT":return"线上:老师默认";case"FIXED_SALARY":return"线上:固定课酬"}},unonlinePip:function(e){var t=JSON.parse(e);if(t&&t.offlineSalarySettlement&&t.offlineSalarySettlement.salarySettlementType)switch(t.offlineSalarySettlement.salarySettlementType){case"RATIO_DISCOUNT":return"线下:比例结算";case"TEACHER_DEFAULT":return"线下:老师默认";case"FIXED_SALARY":return"线下:固定课酬"}},onlineDesc:function(e){var t=JSON.parse(e);if(t&&t.onlineSalarySettlement&&t.onlineSalarySettlement.salarySettlementType)switch(t.onlineSalarySettlement.salarySettlementType){case"RATIO_DISCOUNT":return t.onlineSalarySettlement.settlementValue?"线上:比例结算".concat(t.onlineSalarySettlement.settlementValue,"%"):"线上:比例结算";case"TEACHER_DEFAULT":return"线上:默认课酬";case"FIXED_SALARY":return t.onlineSalarySettlement.settlementValue?"线上:固定课酬".concat(t.onlineSalarySettlement.settlementValue,"/次"):"线上:固定课酬"}},unonlineDesc:function(e){var t=JSON.parse(e);if(t&&t.offlineSalarySettlement&&t.offlineSalarySettlement.salarySettlementType)switch(t.offlineSalarySettlement.salarySettlementType){case"RATIO_DISCOUNT":return t.offlineSalarySettlement.settlementValue?"线下:比例结算".concat(t.offlineSalarySettlement.settlementValue,"%"):"线下:比例结算";case"TEACHER_DEFAULT":return"线下:默认课酬";case"FIXED_SALARY":return t.offlineSalarySettlement.settlementValue?"线下:固定课酬".concat(t.offlineSalarySettlement.settlementValue,"/次"):"线下:固定课酬"}}},methods:{init:function(){var e=Object(o["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setVipGroupCategory");case 2:return e.next=4,this.$store.dispatch("setBranchs");case 4:this.getList();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onExport:function(){var e=Object(o["a"])(Object(u["a"])().mark((function e(){var t,l;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=Object.assign({},this.searchForm),l=Object(r["a"])(Object(r["a"])({},t),{},{page:this.rules.page,rows:this.rules.limit}),e.next=4,Object(b["a"])(this,{url:"/api-web/export/vipGroupActivity",fileName:"活动列表.xls",method:"post",params:p.a.stringify(m()(l))},"您确定活动列表?");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),loadNumber:function(e){var t=e.currentTarget,l=t.value,a=/^((?!0)\d{1,2}|100)$/;return!!l.match(a)||(l="",!1)},onCheckAllBranch:function(){var e=this;this.resetForm.organ=[],this.organList.forEach((function(t){e.resetForm.organ.push(t.id)}))},search:function(){this.rules.page=1,this.getList()},onReset:function(){this.$refs["searchForm"].resetFields(),this.search()},getList:function(){var e=this,t=this.searchForm.enable,l=this.searchForm.search;Object(s["Y"])({organId:this.searchForm.organId,applyToStudentType:this.searchForm.applyToStudentType,allowOnlineToOffline:this.searchForm.allowOnlineToOffline,rows:this.rules.limit,page:this.rules.page,status:this.searchForm.status,activityChannel:this.searchForm.activityChannel,enable:t,search:l}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetEnable:function(e){null},fommatterType:function(e,t){switch(e.type){case"BASE_ACTIVITY":return"基础";case"DISCOUNT":return"折扣";case"GIVE_CLASS":return e.giveClassPaySalaryFlag?"买赠(赠课结算)":"买赠(不结算)"}},fommatterCourseType:function(e){var t=JSON.parse(e.salarySettlementJson),l="";return t&&t.onlineSalarySettlement&&(l+="线上 "),t&&t.offlineSalarySettlement&&(l+="线下"),l},fommatterResetType:function(e){var t=null;return 1==e.allowOnlineToOffline&&(t="无限制"),0==e.allowOnlineToOffline&&(t="线上不可转线下"),2==e.allowOnlineToOffline&&(t="线下不可调为线上"),3==e.allowOnlineToOffline&&(t="线上线下不可互调"),t},formatStudentType:function(e){var t=null;return-1==e.applyToStudentType&&(t="所有学员"),0==e.applyToStudentType&&(t="老学员"),1==e.applyToStudentType&&(t="新学员"),t},fommatterEnable:function(e){switch(e.enable){case!1:return"否";case!0:return"是"}},fommatterStatus:function(e){switch(e.status){case"PROGRESS":return"正式";case"DRAFT":return"草稿"}},reset:function(e){this.$router.push({path:"/operateManager/vipNewActive?type=reset",query:{id:e.id}},(function(e){e.meta.title="修改活动方案"}))},look:function(e){this.$router.push({path:"/operateManager/vipNewActive?type=look",query:{id:e.id}})},activeManager:function(e){this.$router.push({path:"/operateManager/activeSenior",query:{id:e.id}})},remove:function(e){var t=this,l=e.row.id;Object(s["P"])({id:l}).then((function(l){200==l.code&&(t.$message.success("恭喜您删除成功"),t.getList()),e._self.$refs[e.$index].doClose()}))},gotoNewActive:function(){this.$router.push({path:"/operateManager/vipNewActive?type=create"},(function(e){e.meta.title="新建活动方案"}))},closeVipform:function(){this.$refs["vipform"].resetFields(),this.dialogVisible=!1},resetForms:function(){this.$refs.form.resetFields()},handleMinChange:function(){this.$refs.form.validateField("maxCourseNum")},handleMaxChange:function(){this.$refs.form.validateField("minCourseNum")},validateCom:function(e,t,l){var a=Number(t);return Number.isInteger(a)?a<h?l(new Error("输入值必须大于0")):a>y?l(new Error("输入值必须小于999")):l():l(new Error("输入值必须为正整数"))},validateMin:function(e,t,l){var a=Number(t),n=Number(this.courseNumForm.maxCourseNum);return!n||a<=n?l():l(new Error("输入值不得大于最大课时数"))},validateMax:function(e,t,l){var a=Number(t),n=Number(this.courseNumForm.minCourseNum);return!n||a>=n?l():l(new Error("输入值不得小于最小课时数"))},resetStatus:function(e){var t=this,l=e.enable?"停用":"启用";this.$confirm("是否".concat(l,"该活动?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["p"])({id:e.id}).then((function(e){200==e.code&&(t.$message.success("操作成功"),t.getList())}))})).catch((function(){}))}}},T=S,E=(l("331d"),l("2877")),_=Object(E["a"])(T,a,n,!1,null,"0f9c5407",null);t["default"]=_.exports},adb21:function(e,t,l){"use strict";l.d(t,"a",(function(){return s}));var a=l("bc3a"),n=l.n(a),r=(l("4328"),l("5f87")),u=l("3908"),o=l("e3eb"),i=l.n(o),s=function(e,t,l,a){var o=t.url,s={method:t.method?t.method:"get",headers:{Authorization:Object(r["b"])(),tenantId:Object(r["a"])()},url:o,responseType:"blob"};"post"==s.method?s.data=t.params:s.params=t.params,e.$confirm(l||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){u["a"].startLoading(),n()(i()(s)).then((function(l){var n=new Blob([l.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(n).text();r.then((function(l){if(-1!=l.indexOf("code")){var r=JSON.parse(l);if(403==r.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==r.code?e.$message.success(r.msg):e.$message.error(r.msg),a&&a()}else{var u=URL.createObjectURL(n),o=document.createElement("a"),i=t.fileName||"导出文件.xls";o.href=u,o.setAttribute("download",i),document.body.appendChild(o),o.click(),a&&a()}})),u["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),u["a"].endLoading()}))})).catch((function(){}))}}}]);
|