1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c7e34be"],{1855:function(t,e,a){},"1e85":function(t,e,a){"use strict";a("9f5d")},"2dab":function(t,e,a){},5023:function(t,e,a){},5112:function(t,e,a){"use strict";a("b596")},7624:function(t,e,a){},"7a47":function(t,e,a){"use strict";a.r(e);var s=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)))])]),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)])},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("产品服务\n ")])}],i=a("c7eb"),r=(a("96cf"),a("1da1")),l=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)},c=[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("云教室扣费标准")])}],u=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)},p=[],d=a("1976"),v=a("61f7"),_=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=[],f=a("b85c"),b=a("658f"),h=a.n(b),y={props:{tableList:{type:Array,default:[]},orderNo:{type:String},codeUrl:{type:String}},components:{VueQr:h.a},data:function(){return{payForm:{payType:null},selectStudentMoney:0,orderTimer:null,initTimer:null}},mounted:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){var e,a,s,n,r=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this.tableList||[],a=Object(f["a"])(e);try{for(a.s();!(s=a.n()).done;)n=s.value,this.selectStudentMoney+=parseFloat(n.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"])(Object(i["a"])().mark((function t(){var e=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.orderTimer=setInterval(Object(r["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().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)}},w=y,C=(a("5112"),a("2877")),g=Object(C["a"])(w,_,m,!1,null,"c196bea8",null),x=g.exports,k={props:["amount"],components:{payment:x},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"])(Object(i["a"])().mark((function t(){return Object(i["a"])().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"])(Object(i["a"])().mark((function e(a){var s,n,r,l,o,c,u,p,_,m,f,b;return Object(i["a"])().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(s=e.sent,console.log(s.data.amount,s.data.orderNo),0!=s.data.amount||!s.data.orderNo){e.next=11;break}return t.$message.success("您已成功缴费"),t.onPaymentClose(!0),t.$listeners.getList(),e.abrupt("return");case 11:n=t.payForm,r=s.data.payMap,l=r.orderNo,o=r.sign,c=r.amount,u=r.orderBody,p=r.orderSubject,_=r.tenantId,m=r.returnUrl,f=r.alipayAppId,b=r.wxAppId,t.orderNo=l,t.codeUrl=Object(v["e"])()+"/#/payCenter?orderNo="+l+"&sign="+o+"&amount="+c+"&payType="+n.payType+"&orderBody="+u+"&orderSubject="+p+"&platform=tenantRecharge&tenantId="+_+"&returnUrl="+m+"&type="+s.data.type+"&wxAppId="+b+"&alipayAppId="+f,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"])(Object(i["a"])().mark((function e(s){return Object(i["a"])().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}))}}},S=k,j=(a("a762"),Object(C["a"])(S,u,p,!1,null,"22c35446",null)),O=j.exports,I={props:["tenant"],name:"cloudRecharge",components:{rechargeModel:O},data:function(){return{cloudVisible:!1,form:{amount:null},tableData:[],stand:0}},mounted:function(){if(this.tenant){var t,e,a,s,n=null===(t=this.tenant)||void 0===t||null===(e=t.config)||void 0===e?void 0:e.config;n=n?JSON.parse(n):{};var i=(null===(a=n)||void 0===a||null===(s=a.cloud_room_rule)||void 0===s?void 0:s.cloud_room_config)||{};for(var r in i)2==r&&(this.stand=i[r]),this.tableData.push({num:r,minute:i[r]})}},methods:{onRecharge:function(){var t=this;this.$refs.form.validate(function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(a){return Object(i["a"])().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()}}},F=I,M=(a("1e85"),Object(C["a"])(F,o,c,!1,null,"05dc954c",null)),E=M.exports,$=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=[],P=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)},T=[],U=a("5530"),N=a("15fd"),L=a("e65b"),D=a("5f87"),R=["contractPrice","originalPrice"],A={props:["value","tenantInfo"],components:{payment:x,previewProtocol:L["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"])(Object(i["a"])().mark((function t(){var e,a,s,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.value&&(e=this.tenantInfo,a=e.contractPrice,s=e.originalPrice,n=Object(N["a"])(e,R),this.tableList=[Object(U["a"])(Object(U["a"])({},n),{},{num:this.value,rechargeAmount:this.value*s,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"])(Object(i["a"])().mark((function e(a){var s,n,r,l,o,c,u,p,_,m,f,b;return Object(i["a"])().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(D["a"])(),val:t.value});case 5:if(s=e.sent,0!=s.data.amount||!s.data.orderNo){e.next=11;break}return t.$message.success("您已成功缴费"),t.onPaymentClose(!0),t.$listeners.getList(),e.abrupt("return");case 11:n=t.payForm,r=s.data.payMap,l=r.orderNo,o=r.sign,c=r.amount,u=r.orderBody,p=r.orderSubject,_=r.tenantId,m=r.returnUrl,f=r.alipayAppId,b=r.wxAppId,t.orderNo=l,t.codeUrl=Object(v["e"])()+"/#/payCenter?orderNo="+l+"&sign="+o+"&amount="+c+"&payType="+n.payType+"&orderBody="+u+"&orderSubject="+p+"&platform=tenant&tenantId="+_+"&returnUrl="+m+"&type="+s.data.type+"&wxAppId="+b+"&alipayAppId="+f,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"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().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"])(Object(i["a"])().mark((function e(s){return Object(i["a"])().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}))}}},B=A,q=(a("9d47"),Object(C["a"])(B,P,T,!1,null,"1a9421d2",null)),z=q.exports,Y=a("267e"),J={props:["tenant"],name:"serviceRenew",components:{serviceModel:z},data:function(){return{paymentMode:Y["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,s=this.tenant;this.tenantInfo={platformServeName:s.platformServeName,studentUpLimit:s.studentUpLimit,contractPrice:(null===(t=s.productInfo)||void 0===t?void 0:t.contractPrice)||0,originalPrice:(null===(e=s.productInfo)||void 0===e?void 0:e.originalPrice)||0,expiryUnit:null===(a=s.productInfo)||void 0===a?void 0:a.expiryUnit}}},methods:{onRecharge:function(){var t=this;this.$refs.form.validate(function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(a){return Object(i["a"])().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()}}},W=J,H=(a("bc76"),Object(C["a"])(W,$,V,!1,null,"3c61ef60",null)),Q=H.exports,G=a("a21b"),K=a("ec8a"),X=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,s){return a("tr",{key:e.name,staticClass:"el-table__row"},[0==s?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,s){return a("tr",{key:e.name,staticClass:"el-table__row"},[0==s?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,s){return a("tr",{key:e.name,staticClass:"el-table__row"},[0==s?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)},Z=[],tt=a("2909"),et=[{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}],at=[{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}],st=[{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}],nt={data:function(){return{tableData:Object(tt["a"])(et),table2:Object(tt["a"])(at),table3:Object(tt["a"])(st)}},methods:{}},it=nt,rt=(a("d81a"),Object(C["a"])(it,X,Z,!1,null,"3bc2d25e",null)),lt=rt.exports,ot=a("5a0c"),ct=a.n(ot),ut={components:{cloudRecharge:E,serviceRenew:Q,version:lt},name:"productService",data:function(){return{activeIndex:"2",dataInfo:Object(l["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:K["a"],__init:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().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?ct()(e.data.expiryDateEnd).format("YYYY-MM-DD"):null,this.dataInfo.validRemaining=e.data.validRemaining||0,t.next=9,Object(G["h"])({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")}}},pt=ut,dt=(a("9e4e0"),Object(C["a"])(pt,s,n,!1,null,"59d1fb6c",null));e["default"]=dt.exports},"9d47":function(t,e,a){"use strict";a("1855")},"9e4e0":function(t,e,a){"use strict";a("7624")},"9f5d":function(t,e,a){},a762:function(t,e,a){"use strict";a("f65d")},b596:function(t,e,a){},bc76:function(t,e,a){"use strict";a("2dab")},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 s=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)])},n=[],i=a("c7eb"),r=(a("96cf"),a("1da1")),l={props:{fileContent:{type:String,default:""},look:{type:Boolean,default:!1}},data:function(){return{}},mounted:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().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=l,c=(a("ddcd"),a("2877")),u=Object(c["a"])(o,s,n,!1,null,"57395335",null);e["a"]=u.exports},f65d:function(t,e,a){}}]);
|