chunk-f518c388.64d23c0d.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f518c388"],{"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(),u=e-i,s=20,l=0;t="undefined"===typeof t?500:t;var c=function e(){l+=s;var o=Math.easeInOutQuad(l,i,u,t);a(o),l<t?r(e):n&&"function"===typeof n&&n()};c()}},1672:function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"n",(function(){return o})),n.d(t,"o",(function(){return i})),n.d(t,"m",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"l",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"s",(function(){return m})),n.d(t,"p",(function(){return b})),n.d(t,"g",(function(){return f})),n.d(t,"q",(function(){return y})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"r",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return O}));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/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},u=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},s=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},l=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},c=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"})},d=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},b=function(e){return Object(r["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},f=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},y=function(e){return Object(r["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},h=function(e){return Object(r["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},v=function(e){return Object(r["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},g=function(e){return Object(r["a"])({url:"/api-web/tenantConfig/autoActivationFlag",method:"get",params:e})},_=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},w=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},O=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})}},"65b2":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:"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("b85c"),i=(n("96cf"),n("1da1")),u=n("1672"),s=n("61f7"),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chioseWrap"},[n("p",[e._v("您将为"),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("元")]),e._v(" "),n("p",[e._v("请扫描二维码支付,支付功能后学员云教练即刻激活")]),e._v(" "),n("vue-qr",{staticStyle:{width:"250px"},attrs:{text:e.codeUrl,margin:0}})],1)},c=[],p=n("658f"),d=n.n(p),m={props:{tableList:{type:Array,default:[]},orderNo:{type:String},codeUrl:{type:String}},components:{VueQr:d.a},data:function(){return{payForm:{payType:null},selectStudentMoney:0,orderTimer:null}},mounted:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.tableList||[],n=Object(o["a"])(t);try{for(n.s();!(r=n.n()).done;)a=r.value,this.selectStudentMoney+=parseFloat(a.amount)}catch(u){n.e(u)}finally{n.f()}this.initTimer=setTimeout((function(){i.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(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.orderTimer=setInterval(Object(i["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["b"])({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)}},b=m,f=(n("d96b"),n("2877")),y=Object(f["a"])(b,l,c,!1,null,"368e77bc",null),h=y.exports,v={props:["tableList"],components:{giveMemberPayment:h},data:function(){return{payForm:{payType:null},pay_channel:null,selectStudentMoney:0,payMentVisible:!1,codeUrl:null,orderNo:null}},mounted:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.tableList||[],n=Object(o["a"])(t);try{for(n.s();!(r=n.n()).done;)a=r.value,this.selectStudentMoney+=parseFloat(a.amount)}catch(i){n.e(i)}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(i["a"])(regeneratorRuntime.mark((function t(n){var r,a,o,i,l,c,p,d,m,b,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=21;break}return t.prev=1,t.next=4,Object(u["a"])(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,o=r.data.payMap,i=o.orderNo,l=o.sign,c=o.amount,p=o.orderBody,d=o.orderSubject,m=o.tenantId,b=o.returnUrl,f=o.notifyUrl,e.orderNo=i,e.codeUrl=Object(s["d"])()+"/#/payCenter?orderNo="+i+"&sign="+l+"&amount="+c+"&payType="+a.payType+"&orderBody="+p+"&orderSubject="+d+"&platform=cloudTeacherOrder&tenantId="+m+"&returnUrl="+b+"&notifyUrl="+f,console.log(e.codeUrl,"codeUrl"),e.payMentVisible=!0,t.next=21;break;case 19:t.prev=19,t.t0=t["catch"](1);case 21:case"end":return t.stop()}}),t,null,[[1,19]])})));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(i["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.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=v,_=(n("d45e"),Object(f["a"])(g,r,a,!1,null,"36506a1d",null));t["a"]=_.exports},"6eaf":function(e,t,n){},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-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("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",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:"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("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()],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("386d"),n("5530")),i=(n("96cf"),n("1da1")),u=n("333d"),s=n("1672"),l=n("65b2"),c={components:{pagination:u["a"],giveMemberModel:l["a"]},data:function(){var e=this.$route.query.id;return{musicGroupId:e,giveMemberVisible:!1,searchForm:{queryCondition:"",subjectId:""},soundList:[],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},selectStudentList:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(s["r"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:t=e.sent,this.rules.total=t.data.total,this.tableList=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:s["r"];case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),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}}},p=c,d=n("2877"),m=Object(d["a"])(p,r,a,!1,null,null,null);t["default"]=m.exports},be28:function(e,t,n){},d45e:function(e,t,n){"use strict";n("6eaf")},d96b:function(e,t,n){"use strict";n("be28")}}]);