1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ca1c5f4","chunk-04468fc4"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=o(),s=e-i,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,i,s,t);a(o),l<t?r(e):n&&"function"===typeof n&&n()};u()}},1672:function(e,t,n){"use strict";n.d(t,"l",(function(){return a})),n.d(t,"r",(function(){return o})),n.d(t,"q",(function(){return i})),n.d(t,"s",(function(){return s})),n.d(t,"p",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"o",(function(){return p})),n.d(t,"m",(function(){return m})),n.d(t,"w",(function(){return b})),n.d(t,"t",(function(){return f})),n.d(t,"j",(function(){return h})),n.d(t,"u",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"e",(function(){return g})),n.d(t,"h",(function(){return _})),n.d(t,"f",(function(){return O})),n.d(t,"v",(function(){return w})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return x})),n.d(t,"a",(function(){return S}));var r=n("829b"),a=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/createCalender",data:e,method:"post"})},i=function(e){return Object(r["a"])({url:"/api-web/musicGroupCalenderRefundPeriod/batchUpdate",data:e,method:"post"})},s=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},c=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},u=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},d=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},p=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},b=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},f=function(e){return Object(r["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},h=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},v=function(e){return Object(r["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},y=function(e){return Object(r["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},g=function(e){return Object(r["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},_=function(e){return Object(r["a"])({url:"/api-web/memberRankSetting/queryTree",method:"get",params:e})},O=function(e){return Object(r["a"])({url:"/api-web/tenantConfig/autoActivationFlag",method:"get",params:e})},w=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},j=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/cancelInactive",method:"post",data:e})},k=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},x=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})},S=function(e){return Object(r["a"])({url:"/api-web/goods/queryPage",method:"get",params:e})}},"65b29":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chioseWrap"},[n("p",[e._v("\n 您将为以下"),n("span",[e._v(e._s(e.tableList.length))]),e._v("位学员激活学练宝,激活金额"),n("span",[e._v(e._s(e._f("moneyFormat")(e.selectStudentMoney)))]),e._v("元\n ")]),e._v(" "),n("el-form",{ref:"payForm",attrs:{inline:!0,model:e.payForm}},[n("el-form-item",{attrs:{prop:"payType",rules:[{required:!0,message:"请选择支付方式",trigger:"change"}]}},[n("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择支付方式"},model:{value:e.payForm.payType,callback:function(t){e.$set(e.payForm,"payType","string"===typeof t?t.trim():t)},expression:"payForm.payType"}},[n("el-option",{attrs:{label:"支付宝支付",value:"alipay_qr"}}),e._v(" "),n("el-option",{attrs:{label:"微信支付",value:"wx_pub"}})],1)],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"memberName",label:"学练宝版本"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"type",label:"周期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("memberEnumType")(t.row.type))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"time",label:"数量"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"缴费金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("hasMoneyFormat")(t.row.amount))+"\n ")]}}])})],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.$listeners.close(),e.$listeners.getList()}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onMemberPay}},[e._v("确 定")])],1),e._v(" "),e.payMentVisible?n("el-dialog",{attrs:{title:"激活学练宝",visible:e.payMentVisible,"before-close":e.onClose,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.payMentVisible=t}}},[n("giveMemberPayment",e._g({attrs:{tableList:e.tableList,orderNo:e.orderNo,codeUrl:e.codeUrl},on:{close:e.onPaymentClose}},e.$listeners))],1):e._e()],1)},a=[],o=n("c7eb"),i=n("b85c"),s=(n("96cf"),n("1da1")),c=n("1672"),l=n("61f7"),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chioseWrap"},[n("p",[e._v("\n 您将为"),n("span",[e._v(e._s(e.tableList.length))]),e._v("位学员激活学练宝"),n("br"),e._v("共需支付"),n("span",[e._v(e._s(e._f("moneyFormat")(e.selectStudentMoney)))]),e._v("元\n ")]),e._v(" "),n("p",[e._v("请扫描二维码支付,支付功能后学员学练宝即刻激活")]),e._v(" "),n("vue-qr",{staticStyle:{width:"250px"},attrs:{text:e.codeUrl,margin:0}})],1)},d=[],p=n("658f"),m=n.n(p),b={props:{tableList:{type:Array,default:[]},orderNo:{type:String},codeUrl:{type:String}},components:{VueQr:m.a},data:function(){return{payForm:{payType:null},selectStudentMoney:0,orderTimer:null}},mounted:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t,n,r,a,s=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.tableList||[],n=Object(i["a"])(t);try{for(n.s();!(r=n.n()).done;)a=r.value,this.selectStudentMoney+=parseFloat(a.amount)}catch(o){n.e(o)}finally{n.f()}this.initTimer=setTimeout((function(){s.getPaymentStatus()}),3e3);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getPaymentStatus:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.orderTimer=setInterval(Object(s["a"])(Object(o["a"])().mark((function e(){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["d"])({orderNo:t.orderNo});case 3:n=e.sent,n.data&&(clearInterval(t.orderTimer),clearTimeout(t.initTimer),t.$message.success("您已成功缴费"),t.$listeners.getList(),t.$emit("close",!0)),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),clearInterval(t.orderTimer);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),5e3);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},beforeDestroy:function(){clearTimeout(this.initTimer),clearInterval(this.orderTimer)}},f=b,h=(n("d5a5"),n("2877")),v=Object(h["a"])(f,u,d,!1,null,"321496fb",null),y=v.exports,g={props:["tableList"],components:{giveMemberPayment:y},data:function(){return{payForm:{payType:null},pay_channel:null,selectStudentMoney:0,payMentVisible:!1,codeUrl:null,orderNo:null}},mounted:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t,n,r,a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.tableList||[],n=Object(i["a"])(t);try{for(n.s();!(r=n.n()).done;)a=r.value,this.selectStudentMoney+=parseFloat(a.amount)}catch(o){n.e(o)}finally{n.f()}case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{onMemberPay:function(){var e=this;this.$refs.payForm.validate(function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(n){var r,a,i,s,u,d,p,m,b,f;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=22;break}return t.prev=1,t.next=4,Object(c["c"])(e.tableList);case 4:if(r=t.sent,console.log(r),0!=r.data.amount||!r.data.orderNo){t.next=11;break}return e.$message.success("您已成功缴费"),e.onPaymentClose(!0),e.$listeners.getList(),t.abrupt("return");case 11:a=e.payForm,i=r.data.payMap,s=i.orderNo,u=i.sign,d=i.amount,p=i.orderBody,m=i.orderSubject,b=i.tenantId,f=i.returnUrl,i.alipayAppId,i.wxAppId,e.orderNo=s,e.codeUrl=Object(l["e"])()+"/#/payCenter?orderNo="+s+"&sign="+u+"&amount="+d+"&payType="+a.payType+"&orderBody="+p+"&orderSubject="+m+"&platform=cloudTeacherOrder&tenantId="+b+"&returnUrl="+f+"&type="+r.data.type,console.log(e.codeUrl,"codeUrl"),e.payMentVisible=!0,t.next=22;break;case 20:t.prev=20,t.t0=t["catch"](1);case 22:case"end":return t.stop()}}),t,null,[[1,20]])})));return function(e){return t.apply(this,arguments)}}())},onClose:function(e){this.onPaymentClose(!1,e)},onPaymentClose:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;if(t)return this.payMentVisible=!1,this.$emit("close"),void this.$emit("getList");this.$confirm("是否支付完成?","提示",{confirmButtonText:"已完成支付",cancelButtonText:"未完成支付",type:"warning"}).then(function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(r){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:"function"==typeof n&&n(),e.payMentVisible=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){"function"==typeof n&&n(),e.payMentVisible=!1}))}}},_=g,O=(n("720f"),Object(h["a"])(_,r,a,!1,null,"58735d67",null));t["a"]=O.exports},"6cfe":function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return f}));var r=n("829b"),a=(n("4328"),"/api-web");function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(r["a"])({url:a+"/memberRankSetting/findByOrganIds?organFeeFlag="+t,method:"post",data:e})}function i(e){return Object(r["a"])({url:a+"/memberRankOrganizationFeeMapper/getMemberRankSetting",method:"post",data:e})}function s(e){return Object(r["a"])({url:a+"/memberRankSetting/add",method:"post",data:e})}function c(e){return Object(r["a"])({url:a+"/memberRankSetting/queryPage",method:"post",data:e})}function l(e){return Object(r["a"])({url:a+"/memberRankSetting/get",method:"get",params:e})}function u(e){return Object(r["a"])({url:a+"/memberRankSetting/update",method:"post",data:e})}function d(e){return Object(r["a"])({url:a+"/memberRankOrganizationFeeMapper/addV2",method:"post",data:e})}function p(e){return Object(r["a"])({url:a+"/memberRankOrganizationFeeMapper/queryPage",method:"get",params:e})}function m(e){return Object(r["a"])({url:a+"/memberRankOrganizationFeeMapper/update",method:"post",data:e,requestType:"json"})}function b(e){return Object(r["a"])({url:a+"/memberRankSetting/categoryTree",method:"get",params:e})}function f(e){return Object(r["a"])({url:a+"/memberRankSetting/del/"+e.id,method:"post"})}},"720f":function(e,t,n){"use strict";n("8223")},7846:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{attrs:{inline:!0,model:e.searchForm}},[n("el-form-item",[n("el-input",{attrs:{clearable:"",placeholder:"学生姓名/编号/电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryCondition(t)}},model:{value:e.searchForm.queryCondition,callback:function(t){e.$set(e.searchForm,"queryCondition","string"===typeof t?t.trim():t)},expression:"searchForm.queryCondition"}})],1),e._v(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[n("el-option",{attrs:{label:"待激活",value:"1"}}),e._v(" "),n("el-option",{attrs:{label:"已取消",value:"4"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"memberRankId"}},[n("el-cascader",{attrs:{options:e.memberRankList,props:{value:"id",label:"name"},"show-all-levels":!1,"collapse-tags":"",clearable:"",placeholder:"请选择学练宝版本"},model:{value:e.searchForm.memberRankId,callback:function(t){e.$set(e.searchForm,"memberRankId","string"===typeof t?t.trim():t)},expression:"searchForm.memberRankId"}})],1),e._v(" "),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","picker-options":{firstDayOfWeek:1},"start-placeholder":"操作开始日期","end-placeholder":"操作结束日期"},model:{value:e.searchForm.operationDate,callback:function(t){e.$set(e.searchForm,"operationDate",t)},expression:"searchForm.operationDate"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),e.$helpers.permission("cloudTeacherOrder/pay/student")?n("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.addMember}},[e._v("激活学练宝")]):e._e(),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"cloudTeacherOrder/cancelInactive",expression:"'cloudTeacherOrder/cancelInactive'"}],staticStyle:{"margin-bottom":"20px","margin-left":"12px"},attrs:{type:"primary"},on:{click:e.resetPay}},[e._v("取消资格")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/now",expression:"'export/now'"}],staticStyle:{"margin-bottom":"20px","margin-left":"12px"},attrs:{type:"primary"},on:{click:e.exportList}},[e._v("导出")]),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",selectable:e.isDisabled,width:"55"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学员编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"memberName",label:"学练宝版本"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"周期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("memberEnumType")(t.row.type))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"time",label:"数量"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"缴费金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("hasMoneyFormat")(t.row.amount))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("statusEnum")(t.row.status))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"取消原因"},scopedSlots:e._u([{key:"default",fn:function(e){return[n("tooltip",{attrs:{content:e.row.cancelReason}})]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作人"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.operatorName)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.operateTime)+"\n ")]}}])})],1),e._v(" "),n("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(" "),e.giveMemberVisible?n("el-dialog",{attrs:{title:"激活学练宝",visible:e.giveMemberVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(t){e.giveMemberVisible=t}}},[n("giveMemberModel",{attrs:{tableList:e.selectStudentList},on:{getList:e.getList,close:function(t){e.giveMemberVisible=!1}}})],1):e._e(),e._v(" "),e.cancelCloudStatus?n("el-dialog",{attrs:{title:"取消资格",visible:e.cancelCloudStatus,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.cancelCloudStatus=t}}},[n("el-form",{ref:"cancelCloudForm",attrs:{model:e.reson,"label-width":"100px"}},[n("el-form-item",{attrs:{prop:"cancelReason",label:"取消原因",rules:[{required:!0,message:"请输入取消原因",trigger:"blur"}]}},[n("el-form-item",[n("el-input",{attrs:{type:"textarea",placeholder:"请输入取消原因",rows:3,maxlength:"200","show-word-limit":""},model:{value:e.reson.cancelReason,callback:function(t){e.$set(e.reson,"cancelReason",t)},expression:"reson.cancelReason"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.cancelCloudStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.submitDateReset}},[e._v("确 定")])],1)],1):e._e()],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 待激活学练宝\n ")])}],o=(n("ac6a"),n("386d"),n("5530")),i=n("15fd"),s=n("c7eb"),c=(n("96cf"),n("1da1")),l=n("333d"),u=n("1672"),d=n("6cfe"),p=n("65b29"),m=n("a5b0"),b=n("ed08"),f=n("adb21"),h=["operationDate","memberRankId"],v=["operationDate","memberRankId"],y={components:{pagination:l["a"],giveMemberModel:p["a"],Tooltip:m["a"]},data:function(){var e=this.$route.query.id;return{musicGroupId:e,giveMemberVisible:!1,searchForm:{memberRankId:[],queryCondition:"",subjectId:"",operationDate:[],status:""},soundList:[],tableList:[],memberRankList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},cancelCloudStatus:!1,reson:{cancelReason:"",ids:""},selectStudentList:[]}},mounted:function(){this.getMemberList(),this.getList()},methods:{getMemberList:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t,n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["h"])();case 3:t=e.sent,n=t.data,this.memberRankList=n||[],e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t,n,r,a,c,l,d;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,n=t.operationDate,r=t.memberRankId,a=Object(i["a"])(t,h),c=null,r&&r.length>0&&(c=r[r.length-1]),l=Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),{},{memberRankId:c},Object(b["c"])(n,["operateStartTime","operateEndTime"],"YYYY-MM-DD")),{},{page:this.rules.page,rows:this.rules.limit}),e.next=7,Object(u["v"])(l);case 7:d=e.sent,this.rules.total=d.data.total,this.tableList=d.data.rows,e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),console.log(e.t0,"e");case 15:u["v"];case 16:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),isDisabled:function(e,t){return 1===e.status},handleSelectionChange:function(e){this.selectStudentList=e||[]},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:"",subjectId:""},this.search()},addMember:function(){this.selectStudentList.length<=0?this.$message.error("至少选择一名学生"):this.giveMemberVisible=!0},resetPay:function(){if(this.selectStudentList.length<=0)this.$message.error("至少选择一名学生");else{this.cancelCloudStatus=!0;var e=[];this.selectStudentList.forEach((function(t){e.push(t.cloudTeacherOrderId)})),this.reson.ids=e.join(",")}},exportList:function(){var e=this.searchForm,t=e.operationDate,n=e.memberRankId,r=Object(i["a"])(e,v),a=null;n&&n.length>0&&(a=n[n.length-1]);var s=Object(o["a"])(Object(o["a"])({},r),{},{memberRankId:a},Object(b["c"])(t,["operateStartTime","operateEndTime"],"YYYY-MM-DD"));Object(f["a"])(this,{url:"/api-web/export/now",fileName:"待激活学练宝.xls",method:"post",params:{exportEnum:"EXPORT_CLOUD_TEACHER_ORDER_INACTIVE",queryInfo:s}},"您确定导出待激活学练宝?")},submitDateReset:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["cancelCloudForm"].validate(function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(n){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=13;break}return e.prev=1,e.next=4,Object(u["b"])(t.reson);case 4:t.$message.success("取消资格成功"),t.cancelCloudStatus=!1,t.reson.cancelReason="",t.getList(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](1),console.log(e.t0,"e");case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},filters:{statusEnum:function(e){var t={1:"待激活",2:"已生效",3:"已退 ",4:"已取消"};return t[e]}}},g=y,_=n("2877"),O=Object(_["a"])(g,r,a,!1,null,null,null);t["default"]=O.exports},8223:function(e,t,n){},adb21:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("bc3a"),a=n.n(r),o=(n("4328"),n("5f87")),i=n("3908"),s=n("e3eb"),c=n.n(s),l=function(e,t,n,r){var s=t.url,l={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:s,responseType:"blob"};"post"==l.method?l.data=t.params:l.params=t.params,e.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),a()(c()(l)).then((function(n){var a=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(a).text();o.then((function(n){if(-1!=n.indexOf("code")){var o=JSON.parse(n);if(403==o.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),r&&r()}else{var i=URL.createObjectURL(a),s=document.createElement("a"),c=t.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",c),document.body.appendChild(s),s.click(),r&&r()}})),i["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},d5a5:function(e,t,n){"use strict";n("e3bd")},e3bd:function(e,t,n){}}]);
|