chunk-2114df12.95ecd3ba.js 37 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2114df12"],{"024d":function(t,e,a){"use strict";a("97f2")},"05e2":function(t,e,a){"use strict";a("9016")},"1e85":function(t,e,a){"use strict";a("9f5d")},"2dabb":function(t,e,a){},"4af3":function(t,e,a){"use strict";a("e710")},5023:function(t,e,a){},5112:function(t,e,a){"use strict";a("b596")},"7a47":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("div",{staticClass:"descriptions-container"},[a("div",{staticClass:"descriptions"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("span",{staticClass:"balance"},[t._v(t._s(t._f("moneyFormat")(t.dataInfo.balance)))]),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("已排线上课预计服务费用总和,课程结束后扣减")]),t._v(" "),a("i",{staticClass:"el-icon-warning-outline micon el-tooltip",staticStyle:{"font-size":"18px",color:"#3d3d3d",top:"2px",position:"relative"}})])],1),t._v(" "),a("el-col",{staticClass:"subTitle",attrs:{span:24}},[a("i",{staticClass:"iconfont icon-yunjiaoshiyue"}),t._v("云教室余额(元) "),a("el-button",{attrs:{plain:"",round:"",size:"mini"},on:{click:t.onDetail}},[t._v("扣费记录 "),a("i",{staticClass:"el-icon-arrow-right"})])],1)],1)],1),t._v(" "),a("div",{staticClass:"descriptions"},[a("el-row",[a("el-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:24}},[a("span",{staticClass:"balance",staticStyle:{"font-size":"26px","margin-right":"0"}},[t._v(t._s(t.dataInfo.serverName))]),a("span",{staticClass:"version",on:{click:function(e){t.versionVisible=!0}}},[a("i",{staticClass:"icon_version"}),t._v("版本对比")])]),t._v(" "),a("el-col",{staticClass:"lastTime",attrs:{span:24}},[a("div",{staticStyle:{"padding-right":"20px",display:"flex","padding-top":"5px"}},[a("i",{staticClass:"iconfont icon-banbenhuiyuantubiao"}),t._v("\n 剩余"),a("span",{staticClass:"days"},[t._v(t._s(t.dataInfo.validRemaining))]),t._v("天("+t._s(t.dataInfo.expiryDateEnd)+"到期)\n ")]),t._v(" "),a("span",{staticStyle:{"padding-top":"5px","padding-left":"30px"}},[t._v("\n (学员上限) "),a("span",{staticClass:"color"},[t._v(t._s(t.dataInfo.studentNum)+"/"+t._s(t.dataInfo.studentUpLimit))]),t._v("人\n ")])])],1)],1)]),t._v(" "),t.versionVisible?a("el-dialog",{attrs:{title:"版本对比",visible:t.versionVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(e){t.versionVisible=e}}},[a("version",{on:{close:function(e){t.versionVisible=!1}}})],1):t._e(),t._v(" "),a("tab-router",{ref:"tab",model:{value:t.activeIndex,callback:function(e){t.activeIndex=e},expression:"activeIndex"}},[t.permission("/serviceRenew")?a("el-tab-pane",{attrs:{label:"服务续费",lazy:"",name:"1"}},[1==t.activeIndex&&t.tenantInfo?a("service-renew",{attrs:{tenant:t.tenantInfo},on:{getList:t.__init}}):t._e()],1):t._e(),t._v(" "),t.permission("/cloudRecharge")?a("el-tab-pane",{attrs:{label:"云教室充值",lazy:"",name:"2"}},[2==t.activeIndex&&t.tenantInfo?a("cloud-recharge",{attrs:{tenant:t.tenantInfo},on:{getList:t.__init}}):t._e()],1):t._e()],1)],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("产品服务\n ")])}],r=(a("96cf"),a("1da1")),i=a("ade3"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cloudRecharge"},[a("div",{staticClass:"descriptions-container"},[t._m(0),t._v(" "),a("div",{staticClass:"descriptions"},[t._m(1),t._v(" "),a("div",{staticClass:"tips"},[a("p",{staticStyle:{"padding-bottom":"10px"}},[t._v("以1v1课程,即老师学员1对1教学,45分钟课程为例,每分钟收费标准"+t._s(t.stand)+"元,则该课程结束后将扣除云教室费用45分钟*"+t._s(t.stand)+"元/分钟="+t._s(45*t.stand)+"元")]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"云教室扣费标准"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.num)+"人\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"云教室扣费标准"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.minute)+"元/分钟\n ")]}}])})],1)],1)])]),t._v(" "),a("el-form",{ref:"form",attrs:{inline:"",model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"充值金额",prop:"amount",rules:[{required:!0,message:"请输入充值金额",trigger:"blur"},{required:!0,validator:t.validPrice,trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入充值金额",oninput:"value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value",type:"number"},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}},[a("div",{attrs:{slot:"append"},slot:"append"},[t._v("元")])])],1),t._v(" "),a("el-form-item",[t.$helpers.permission("tenantInfo/recharge")?a("el-button",{attrs:{type:"primary"},on:{click:t.onRecharge}},[t._v("确认充值")]):t._e()],1)],1),t._v(" "),t.cloudVisible?a("el-dialog",{attrs:{title:"服务订单",visible:t.cloudVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(e){t.cloudVisible=e}}},[a("rechargeModel",t._g({attrs:{amount:t.form.amount},on:{close:function(e){t.cloudVisible=!1}}},t.$listeners))],1):t._e()],1)},l=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"descriptions"},[a("div",{staticClass:"title"},[a("i",{staticClass:"icon_rule"}),t._v("云教室扣费规则")]),t._v(" "),a("div",{staticClass:"tips",staticStyle:{"line-height":"30px"}},[t._v("\n 1.系统根据线上课课程人数(含老师)进行扣费;"),a("br"),t._v("\n 2.每节线上课平台赠送10分钟免费时长,分别为课前5分钟及课后5分钟,赠送时长不计算费用;"),a("br"),t._v("\n 3.扣费金额按排课人数计算,无论实际到课人数是否为排课人数,都会按照排课人数扣费;"),a("br"),t._v("\n 4.课程结束后费用立即结算;"),a("br"),t._v("\n 5.云教室余额不足时,老师及学员将无法进入云教室,为了保障老师及学员能够正常上课,请及时对云教室进行充值。\n ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("i",{staticClass:"icon_biaozhun"}),t._v("云教室扣费标准")])}],c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chioseWrap"},[a("el-form",{ref:"payForm",attrs:{inline:!0,model:t.payForm}},[a("el-form-item",{attrs:{prop:"payType",rules:[{required:!0,message:"请选择支付方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择支付方式"},model:{value:t.payForm.payType,callback:function(e){t.$set(t.payForm,"payType","string"===typeof e?e.trim():e)},expression:"payForm.payType"}},[a("el-option",{attrs:{label:"支付宝支付",value:"alipay_qr"}}),t._v(" "),a("el-option",{attrs:{label:"微信支付",value:"wx_pub"}})],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"产品名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"充值金额(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("hasMoneyFormat")(e.row.rechargeAmount))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"支付价格(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{color:"red"}},[t._v(t._s(t._f("hasMoneyFormat")(e.row.amount)))])]}}])})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.$listeners.close()}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onMemberPay}},[t._v("确 定")])],1),t._v(" "),t.payMentVisible?a("el-dialog",{attrs:{title:"支付二维码",visible:t.payMentVisible,"before-close":t.onClose,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.payMentVisible=e}}},[a("payment",t._g({attrs:{tableList:t.tableList,orderNo:t.orderNo,codeUrl:t.codeUrl},on:{close:t.onPaymentClose}},t.$listeners))],1):t._e()],1)},u=[],d=a("1976"),p=a("61f7"),v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chioseWrap"},[a("p",[t._v("请在30分钟完成扫码支付")]),t._v(" "),a("vue-qr",{staticStyle:{width:"250px"},attrs:{text:t.codeUrl,margin:0}})],1)},m=[],_=a("b85c"),f=a("658f"),b=a.n(f),h={props:{tableList:{type:Array,default:[]},orderNo:{type:String},codeUrl:{type:String}},components:{VueQr:b.a},data:function(){return{payForm:{payType:null},selectStudentMoney:0,orderTimer:null,initTimer:null}},mounted:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,n,s,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this.tableList||[],a=Object(_["a"])(e);try{for(a.s();!(n=a.n()).done;)s=n.value,this.selectStudentMoney+=parseFloat(s.amount)}catch(i){a.e(i)}finally{a.f()}this.initTimer=setTimeout((function(){r.getPaymentStatus()}),3e3);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{getPaymentStatus:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.orderTimer=setInterval(Object(r["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["d"])({orderNo:e.orderNo});case 3:a=t.sent,a.data&&(clearInterval(e.orderTimer),e.$message.success("您已成功缴费"),e.$listeners.getList(),e.$emit("close",!0)),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),clearInterval(e.orderTimer);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),5e3);case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},beforeDestroy:function(){clearTimeout(this.initTimer),clearInterval(this.orderTimer)}},y=h,g=(a("5112"),a("2877")),w=Object(g["a"])(y,v,m,!1,null,"c196bea8",null),C=w.exports,x={props:["amount"],components:{payment:C},data:function(){return{payForm:{payType:null},pay_channel:null,selectStudentMoney:0,payMentVisible:!1,codeUrl:null,orderNo:null,tableList:[]}},mounted:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.amount&&(this.tableList=[{name:"云教室充值",rechargeAmount:this.amount,amount:this.amount}]);case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{onMemberPay:function(){var t=this;this.$refs.payForm.validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(a){var n,s,r,i,o,l,c,u,v,m,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=21;break}return e.prev=1,e.next=4,Object(d["c"])({amount:t.amount});case 4:if(n=e.sent,console.log(n.data.amount,n.data.orderNo),0!=n.data.amount||!n.data.orderNo){e.next=11;break}return t.$message.success("您已成功缴费"),t.onPaymentClose(!0),t.$listeners.getList(),e.abrupt("return");case 11:s=t.payForm,r=n.data.payMap,i=r.orderNo,o=r.sign,l=r.amount,c=r.orderBody,u=r.orderSubject,v=r.tenantId,m=r.returnUrl,_=r.notifyUrl,t.orderNo=i,t.codeUrl=Object(p["d"])()+"/#/payCenter?orderNo="+i+"&sign="+o+"&amount="+l+"&payType="+s.payType+"&orderBody="+c+"&orderSubject="+u+"&platform=tenantRecharge&tenantId="+v+"&returnUrl="+m+"&notifyUrl="+_,console.log(t.codeUrl,"codeUrl"),t.payMentVisible=!0,e.next=21;break;case 19:e.prev=19,e.t0=e["catch"](1);case 21:case"end":return e.stop()}}),e,null,[[1,19]])})));return function(t){return e.apply(this,arguments)}}())},onClose:function(t){this.onPaymentClose(!1,t)},onPaymentClose:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1?arguments[1]:void 0;if(e)return this.payMentVisible=!1,void this.$emit("close");this.$confirm("是否支付完成?","提示",{confirmButtonText:"已完成支付",cancelButtonText:"未完成支付",type:"warning"}).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:"function"==typeof a&&a(),t.payMentVisible=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){"function"==typeof a&&a(),t.payMentVisible=!1}))}}},k=x,S=(a("05e2"),Object(g["a"])(k,c,u,!1,null,"ae45a37c",null)),F=S.exports,M={props:["tenant"],name:"cloudRecharge",components:{rechargeModel:F},data:function(){return{cloudVisible:!1,form:{amount:null},tableData:[],stand:0}},mounted:function(){if(this.tenant){var t,e,a,n,s=null===(t=this.tenant)||void 0===t||null===(e=t.config)||void 0===e?void 0:e.config;s=s?JSON.parse(s):{};var r=(null===(a=s)||void 0===a||null===(n=a.cloud_room_rule)||void 0===n?void 0:n.cloud_room_config)||{};for(var i in r)2==i&&(this.stand=r[i]),this.tableData.push({num:i,minute:r[i]})}},methods:{onRecharge:function(){var t=this;this.$refs.form.validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a&&(t.cloudVisible=!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},validPrice:function(t,e,a){""==e&&"string"==typeof e||null==e?a(new Error("请输入金额")):e<=0?a(new Error("输入金额必须大于0")):e>=1e5?a(new Error("输入金额必须小于100000")):a()}}},I=M,E=(a("1e85"),Object(g["a"])(I,o,l,!1,null,"05dc954c",null)),R=E.exports,j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"serviceRenew"},[a("div",{staticClass:"descriptions-container"},[a("div",{staticClass:"descriptions"},[a("div",{staticClass:"title"},[a("i",{staticClass:"iconfont icon-yunjiaoshibanben"}),t._v(t._s(t.tenantInfo.platformServeName)+"\n ")]),t._v(" "),a("el-row",{staticStyle:{padding:"0 20px 20px"}},[a("el-col",{staticClass:"border",attrs:{span:6}},[a("el-row",[a("el-col",{attrs:{span:24}},[t._v("学员上限:"),a("span",[t._v(t._s(t._f("numberFormat")(t.tenantInfo.studentUpLimit))+"人")])]),t._v(" "),a("el-col",{attrs:{span:24}},[t._v("原价:"),a("span",{staticClass:"color"},[t._v(t._s(t._f("hasMoneyFormat")(t.tenantInfo.originalPrice)))])])],1)],1),t._v(" "),a("el-col",{attrs:{span:16,offset:2}},[a("el-row",[a("el-col",{attrs:{span:24}},[t._v(" ")]),t._v(" "),a("el-col",{attrs:{span:24}},[t._v("合同价:"),a("span",{staticClass:"color"},[t._v(t._s(t._f("moneyFormat")(t.tenantInfo.contractPrice))+"元/"+t._s(t.unitSuffix))])])],1)],1)],1)],1)]),t._v(" "),a("el-form",{ref:"form",attrs:{inline:"",model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"续费期限",prop:"val",rules:[{required:!0,message:"请输入续费期限",trigger:"blur"},{required:!0,validator:t.validPrice,trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入续费期限",type:"number"},on:{input:function(e){t.form.val=e.replace(/[^\d]/g,"")}},model:{value:t.form.val,callback:function(e){t.$set(t.form,"val",e)},expression:"form.val"}},[a("div",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.unitSuffix))])])],1),t._v(" "),a("el-form-item",[t.$helpers.permission("tenantInfo/renew")?a("el-button",{attrs:{type:"primary"},on:{click:t.onRecharge}},[t._v("确认续费")]):t._e()],1)],1),t._v(" "),t.serviceVisible?a("el-dialog",{attrs:{title:"服务订单",visible:t.serviceVisible,width:"1000px"},on:{"update:visible":function(e){t.serviceVisible=e}}},[a("serviceModel",t._g({attrs:{value:t.form.val,tenantInfo:t.tenantInfo},on:{close:function(e){t.serviceVisible=!1}}},t.$listeners))],1):t._e()],1)},$=[],V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chioseWrap"},[a("el-form",{ref:"payForm",attrs:{inline:!0,model:t.payForm}},[a("el-form-item",{attrs:{prop:"payType",rules:[{required:!0,message:"请选择支付方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择支付方式"},model:{value:t.payForm.payType,callback:function(e){t.$set(t.payForm,"payType","string"===typeof e?e.trim():e)},expression:"payForm.payType"}},[a("el-option",{attrs:{label:"支付宝支付",value:"alipay_qr"}}),t._v(" "),a("el-option",{attrs:{label:"微信支付",value:"wx_pub"}})],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%","margin-bottom":"15px"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"platformServeName",label:"产品名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员上限"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("numberFormat")(e.row.studentUpLimit))+"人\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"付费模式"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("memberEnumType")(e.row.expiryUnit))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"num",label:"数量"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"原价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("hasMoneyFormat")(e.row.rechargeAmount))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"支付价格(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{color:"red"}},[t._v(t._s(t._f("hasMoneyFormat")(e.row.value)))])]}}])})],1),t._v(" "),a("el-form-item",{attrs:{prop:"checked",rules:[{required:!0,message:"请阅读并同意协议",trigger:"change"}]}},[a("el-checkbox",{on:{change:t.onCheckChange},model:{value:t.payForm.checked,callback:function(e){t.$set(t.payForm,"checked",e)},expression:"payForm.checked"}}),t._v(" "),a("span",{staticStyle:{color:"#606266","padding-left":"5px",cursor:"pointer"},on:{click:t.onCheckBox}},[t._v("我已阅读并同意")]),t._v(" "),a("span",{staticStyle:{color:"#01C1B5",cursor:"pointer"},on:{click:function(e){return e.stopPropagation(),t.onLookContract(e)}}},[t._v("《产品及服务协议》")])],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.$listeners.close()}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onMemberPay}},[t._v("确 定")])],1),t._v(" "),a("el-dialog",{attrs:{title:"查看协议",visible:t.lookVisible,width:"415px","append-to-body":""},on:{"update:visible":function(e){t.lookVisible=e}}},[t.lookVisible?a("previewProtocol",{attrs:{look:!0,fileContent:t.fileContent},on:{close:function(e){t.lookVisible=!1}}}):t._e()],1),t._v(" "),t.payMentVisible?a("el-dialog",{attrs:{title:"支付二维码",visible:t.payMentVisible,"before-close":t.onClose,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.payMentVisible=e}}},[a("payment",t._g({attrs:{tableList:t.tableList,orderNo:t.orderNo,codeUrl:t.codeUrl},on:{close:t.onPaymentClose}},t.$listeners))],1):t._e()],1)},O=[],P=a("5530"),T=a("15fd"),U=a("e65b"),N=a("5f87"),L={props:["value","tenantInfo"],components:{payment:C,previewProtocol:U["a"]},data:function(){return{payForm:{payType:null,checked:null},fileContent:null,lookVisible:!1,pay_channel:null,selectStudentMoney:0,payMentVisible:!1,codeUrl:null,orderNo:null,tableList:[]}},mounted:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.value&&(e=this.tenantInfo,a=e.contractPrice,n=e.originalPrice,s=Object(T["a"])(e,["contractPrice","originalPrice"]),this.tableList=[Object(P["a"])(Object(P["a"])({},s),{},{num:this.value,rechargeAmount:this.value*n,value:this.value*a})]);case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{onCheckChange:function(){this.payForm.checked||(this.payForm.checked=null)},onCheckBox:function(){this.payForm.checked?this.payForm.checked=null:this.payForm.checked=!0},onMemberPay:function(){var t=this;this.$refs.payForm.validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(a){var n,s,r,i,o,l,c,u,v,m,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=21;break}return e.prev=1,console.log(t.value,"this.value"),e.next=5,Object(d["e"])({id:Object(N["a"])(),val:t.value});case 5:if(n=e.sent,0!=n.data.amount||!n.data.orderNo){e.next=11;break}return t.$message.success("您已成功缴费"),t.onPaymentClose(!0),t.$listeners.getList(),e.abrupt("return");case 11:s=t.payForm,r=n.data.payMap,i=r.orderNo,o=r.sign,l=r.amount,c=r.orderBody,u=r.orderSubject,v=r.tenantId,m=r.returnUrl,_=r.notifyUrl,t.orderNo=i,t.codeUrl=Object(p["d"])()+"/#/payCenter?orderNo="+i+"&sign="+o+"&amount="+l+"&payType="+s.payType+"&orderBody="+c+"&orderSubject="+u+"&platform=tenant&tenantId="+v+"&returnUrl="+m+"&notifyUrl="+_,console.log(t.codeUrl,"codeUrl"),t.payMentVisible=!0,e.next=21;break;case 19:e.prev=19,e.t0=e["catch"](1);case 21:case"end":return e.stop()}}),e,null,[[1,19]])})));return function(t){return e.apply(this,arguments)}}())},onClose:function(t){this.onPaymentClose(!1,t)},onLookContract:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.fileContent){t.next=11;break}return t.prev=1,e=this.$helpers.tenantId,t.next=5,Object(d["a"])({id:e,type:1,renewCount:this.value});case 5:a=t.sent,this.fileContent=a.data,t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](1);case 11:this.lookVisible=!0;case 12:case"end":return t.stop()}}),t,this,[[1,9]])})));function e(){return t.apply(this,arguments)}return e}(),onPaymentClose:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1?arguments[1]:void 0;if(e)return this.payMentVisible=!1,void this.$emit("close");this.$confirm("是否支付完成?","提示",{confirmButtonText:"已完成支付",cancelButtonText:"未完成支付",type:"warning"}).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:"function"==typeof a&&a(),t.payMentVisible=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){"function"==typeof a&&a(),t.payMentVisible=!1}))}}},D=L,B=(a("4af3"),Object(g["a"])(D,V,O,!1,null,"20446a09",null)),q=B.exports,z=a("267e"),A={props:["tenant"],name:"serviceRenew",components:{serviceModel:q},data:function(){return{paymentMode:z["paymentMode"],serviceVisible:!1,form:{val:null},tenantInfo:{platformServeName:null,studentUpLimit:0,contractPrice:0,originalPrice:0,expiryUnit:"YEAR"}}},computed:{unitSuffix:function(){return this.paymentMode[this.tenantInfo.expiryUnit]||"年"}},mounted:function(){if(this.tenant){var t,e,a,n=this.tenant;this.tenantInfo={platformServeName:n.platformServeName,studentUpLimit:n.studentUpLimit,contractPrice:(null===(t=n.productInfo)||void 0===t?void 0:t.contractPrice)||0,originalPrice:(null===(e=n.productInfo)||void 0===e?void 0:e.originalPrice)||0,expiryUnit:null===(a=n.productInfo)||void 0===a?void 0:a.expiryUnit}}},methods:{onRecharge:function(){var t=this;this.$refs.form.validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a&&(t.serviceVisible=!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},validPrice:function(t,e,a){""==e&&"string"==typeof e||null==e?a(new Error("请输入金额")):e<=0?a(new Error("输入金额必须大于0")):e>=1e5?a(new Error("输入金额必须小于100000")):a()}}},Y=A,J=(a("bc76"),Object(g["a"])(Y,j,$,!1,null,"3c61ef60",null)),W=J.exports,H=a("a21b"),Q=a("ec8a"),G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","header-cell-style":{background:"#EDEEF0",color:"#444"}},scopedSlots:t._u([{key:"append",fn:function(){return[a("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("colgroup",[a("col",{attrs:{name:"el-table_5_column_1",width:"180"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_2",width:"151"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_3",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_4",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_5",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_6",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_7",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_8",width:"105"}}),t._v(" "),a("col",{attrs:{name:"gutter",width:"8"}})]),t._v(" "),a("thead",{staticClass:"has-gutter"},[a("tr",[a("th",{staticClass:"is-center",staticStyle:{background:"#EDEEF0",color:"#444"}},[t._v("\n 服务\n ")]),t._v(" "),a("th",{staticClass:"is-center",staticStyle:{background:"#EDEEF0",color:"#444"}},[t._v("\n 功能\n ")]),t._v(" "),a("th",{staticClass:"is-center",staticStyle:{background:"#EDEEF0",color:"#444"},attrs:{colspan:"3"}},[t._v("\n 基础版\n ")]),t._v(" "),a("th",{staticClass:"is-center",staticStyle:{background:"#EDEEF0",color:"#444"},attrs:{colspan:"3"}},[t._v("\n 专业版\n ")])])])]),t._v(" "),a("div",{staticStyle:{height:"500px","overflow-y":"auto"}},[a("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("colgroup",[a("col",{attrs:{name:"el-table_5_column_1",width:"180"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_2",width:"151"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_3",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_4",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_5",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_6",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_7",width:"105"}}),t._v(" "),a("col",{attrs:{name:"el-table_5_column_8",width:"105"}})]),t._v(" "),a("tbody",[t._l(t.tableData,(function(e,n){return a("tr",{key:e.name,staticClass:"el-table__row"},[0==n?a("td",{staticClass:"is-center",attrs:{rowspan:"8",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.id))])]):t._e(),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"3"}},[a("div",{staticClass:"cell"},[a("i",{class:e.baseStatus?"el-icon-check":"el-icon-close"})])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"3"}},[a("div",{staticClass:"cell"},[a("i",{class:e.status?"el-icon-check":"el-icon-close"})])])])})),t._v(" "),t._l(t.table2,(function(e,n){return a("tr",{key:e.name,staticClass:"el-table__row"},[0==n?a("td",{staticClass:"is-center",attrs:{rowspan:"7",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.id))])]):t._e(),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"3"}},[a("div",{staticClass:"cell"},[a("i",{class:e.baseStatus?"el-icon-check":"el-icon-close"})])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"3"}},[a("div",{staticClass:"cell"},[a("i",{class:e.status?"el-icon-check":"el-icon-close"})])])])})),t._v(" "),t._l(t.table3,(function(e,n){return a("tr",{key:e.name,staticClass:"el-table__row"},[0==n?a("td",{staticClass:"is-center",attrs:{rowspan:"11",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.id))])]):t._e(),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"3"}},[a("div",{staticClass:"cell"},[a("i",{class:e.baseStatus?"el-icon-check":"el-icon-close"})])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"3"}},[a("div",{staticClass:"cell"},[a("i",{class:e.status?"el-icon-check":"el-icon-close"})])])])})),t._v(" "),a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("招生人数")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("0~1000人版")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("0~2000人版")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("0~3000人版")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("0~1000人版")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("0~2000人版")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("0~3000人版")])])]),t._v(" "),a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"is-center",attrs:{rowspan:"2",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("零售价")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("月度")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(1860)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(2160)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(2460)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(2340)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(2640)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(2940)))])])]),t._v(" "),a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v("年度")])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(18600)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(21600)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(24600)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(23400)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(26400)))])]),t._v(" "),a("td",{staticClass:"is-center",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell amount"},[t._v(t._s(t._f("hasMoneyFormat")(29400)))])])])],2)])])]},proxy:!0}])})],1)},K=[],X=a("2909"),Z=[{id:"团控宝",span:8,name:"乐团管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"VIP课管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"网管课管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"审批管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"商品管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"内容管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"多分部管理",baseStatus:!0,status:!0},{id:"团控宝",span:8,name:"多合作单位管理",baseStatus:!0,status:!0}],tt=[{id:"团易宝",span:7,name:"乐团学员报名缴费",baseStatus:!0,status:!0},{id:"团易宝",span:7,name:"乐团新增学员续费",baseStatus:!0,status:!0},{id:"团易宝",span:7,name:"乐团临时加课缴费",baseStatus:!0,status:!0},{id:"团易宝",span:7,name:"零星收费",baseStatus:!0,status:!0},{id:"团易宝",span:7,name:"优惠券",baseStatus:!0,status:!0},{id:"团易宝",span:7,name:"分部分润管理",baseStatus:!0,status:!0},{id:"团易宝",span:7,name:"收款账户管理",baseStatus:!0,status:!0}],et=[{id:"团运宝",span:11,name:"异常业务监控",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"运营预警",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"乐团巡查",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"经营报表",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"课酬报表",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"回款统计",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"学员考勤报表",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"账户余额明细",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"课程余额明细",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"VIP/网管课耗报表",baseStatus:!1,status:!0},{id:"团运宝",span:11,name:"自定义报表",baseStatus:!1,status:!0}],at={data:function(){return{tableData:Object(X["a"])(Z),table2:Object(X["a"])(tt),table3:Object(X["a"])(et)}},methods:{}},nt=at,st=(a("d81a"),Object(g["a"])(nt,G,K,!1,null,"3bc2d25e",null)),rt=st.exports,it=a("5a0c"),ot=a.n(it),lt={components:{cloudRecharge:R,serviceRenew:W,version:rt},name:"productService",data:function(){return{activeIndex:"2",dataInfo:Object(i["a"])({serverName:null,expiryDate:null,expiryDateEnd:null,studentNum:0,studentUpLimit:0,validRemaining:0,balance:0,frozenAmount:0},"balance",0),versionVisible:!1,tenantInfo:null}},mounted:function(){this.__init()},methods:{permission:Q["a"],__init:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["b"])();case 3:return e=t.sent,this.dataInfo=e.data||{},this.dataInfo.expiryDateEnd=e.data.expiryDateEnd?ot()(e.data.expiryDateEnd).format("YYYY-MM-DD"):null,this.dataInfo.validRemaining=e.data.validRemaining||0,t.next=9,Object(H["g"])({id:this.$helpers.tenantId});case 9:a=t.sent,this.tenantInfo=a.data,t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](0);case 15:case"end":return t.stop()}}),t,this,[[0,13]])})));function e(){return t.apply(this,arguments)}return e}(),onDetail:function(){this.$router.push("/systemManager/chargingRecord")}}},ct=lt,ut=(a("024d"),Object(g["a"])(ct,n,s,!1,null,"2dfe2e49",null));e["default"]=ut.exports},9016:function(t,e,a){},"97f2":function(t,e,a){},"9f5d":function(t,e,a){},b596:function(t,e,a){},bc76:function(t,e,a){"use strict";a("2dabb")},c9ae:function(t,e,a){},d81a:function(t,e,a){"use strict";a("5023")},ddcd:function(t,e,a){"use strict";a("c9ae")},e65b:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"scroll"},[a("div",{domProps:{innerHTML:t._s(t.fileContent)}})]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.look?t._e():a("el-button",{on:{click:function(e){return t.$listeners.close()}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确 认")])],1)])},s=[],r=(a("96cf"),a("1da1")),i={props:{fileContent:{type:String,default:""},look:{type:Boolean,default:!1}},data:function(){return{}},mounted:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),methods:{addSubmit:function(){this.look?this.$listeners.close():this.$emit("onSubmit")}}},o=i,l=(a("ddcd"),a("2877")),c=Object(l["a"])(o,n,s,!1,null,"57395335",null);e["a"]=c.exports},e710:function(t,e,a){}}]);