chunk-0d26fbdc.6ff41c75.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d26fbdc"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,r){var o=i(),l=e-o,s=20,u=0;t="undefined"===typeof t?500:t;var m=function e(){u+=s;var i=Math.easeInOutQuad(u,o,l,t);n(i),u<t?a(e):r&&"function"===typeof r&&r()};m()}},1324:function(e,t,r){"use strict";r("cee5")},"6cfe":function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return s})),r.d(t,"h",(function(){return u})),r.d(t,"a",(function(){return m})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return p}));var a=r("829b"),n=(r("4328"),"/api-web");function i(e){return Object(a["a"])({url:n+"/memberRankSetting/findAll",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/memberRankSetting/add",method:"post",data:e})}function l(e){return Object(a["a"])({url:n+"/memberRankSetting/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:n+"/memberRankSetting/get",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/memberRankSetting/update",method:"post",data:e})}function m(e){return Object(a["a"])({url:n+"/memberRankOrganizationFeeMapper/add",method:"post",data:e})}function c(e){return Object(a["a"])({url:n+"/memberRankOrganizationFeeMapper/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/memberRankOrganizationFeeMapper/update",method:"post",data:e,requestType:"json"})}},7096:function(e,t,r){},9589:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"memberForm",attrs:{model:e.memberForm,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"云教练单位",prop:"period",rules:[{required:!0,message:"请选择云教练单位",trigger:"blur"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"云教练单位",clearable:""},on:{change:e.getMemberList},model:{value:e.memberForm.period,callback:function(t){e.$set(e.memberForm,"period","string"===typeof t?t.trim():t)},expression:"memberForm.period"}},[r("el-option",{attrs:{label:"月度",value:"MONTH"}}),e._v(" "),r("el-option",{attrs:{label:"季度",value:"QUARTERLY"}}),e._v(" "),r("el-option",{attrs:{label:"半年",value:"YEAR_HALF"}}),e._v(" "),r("el-option",{attrs:{label:"年度",value:"YEAR"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"云教练周期",prop:"memberNum",rules:[{required:!0,message:"请输入云教练周期",trigger:"blur"}]}},[r("el-input",{attrs:{type:"number",onKeypress:"return (/[\\d]/.test(String.fromCharCode(event.keyCode)))",placeholder:"请输入云教练周期"},on:{input:e.getMemberList},model:{value:e.memberForm.memberNum,callback:function(t){e.$set(e.memberForm,"memberNum",t)},expression:"memberForm.memberNum"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"缴费金额",prop:"actualAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"},{validator:e.validateMember,trigger:"blur"}]}},[r("el-input",{attrs:{type:"number",placeholder:"请输入缴费金额"},nativeOn:{keyup:function(t){return e.keyupEvent(t)}},model:{value:e.memberForm.actualAmount,callback:function(t){e.$set(e.memberForm,"actualAmount",t)},expression:"memberForm.actualAmount"}},[r("div",{attrs:{slot:"append"},slot:"append"},[e._v("元/人")])])],1),e._v(" "),r("p",{staticStyle:{color:"red",padding:"0 0 20px 100px"}},[e._v("若修改默认金额需审核通过后生效")]),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"remark",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[r("el-input",{attrs:{type:"textarea","show-word-limit":"",max:200,placeholder:"请输入备注"},model:{value:e.memberForm.remark,callback:function(t){e.$set(e.memberForm,"remark","string"===typeof t?t.trim():t)},expression:"memberForm.remark"}})],1)],1)],1)},n=[],i=r("5530"),o=(r("c5f6"),r("ac6a"),r("96cf"),r("1da1")),l=r("c041"),s=r("6cfe"),u=r("a6e9"),m={props:["multipleSelection","type"],data:function(){return{memberForm:{memberNum:null,actualAmount:null,period:null,remark:null},userIds:[],organId:null,rulesForm:null,memberFeeSetting:null}},mounted:function(){if(console.log(this.multipleSelection),"update"==this.type){var e=this.multipleSelection,t=e.memberNum,r=e.actualAmount,a=e.period,n=e.remark,i=e.organId,o=e.id;this.memberForm={memberNum:t,period:a,actualAmount:r,remark:n,id:o},this.organId=i}else this.userIds=this.multipleSelection.map((function(e){return e.userId})),this.organId=this.multipleSelection[0].organId;this.__init()},methods:{__init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,a,n,i,o,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["a"])({group:"DEFAULT"});case 3:return a=e.sent,n="cloud_price_range",a.data.forEach((function(e){if(e.paramName==n){var t=e.paranValue?JSON.parse(e.paranValue):null;t&&(l.rulesForm=t)}})),e.next=8,Object(s["f"])({page:1,rows:10,organId:this.organId});case 8:i=e.sent,o=i.data.rows,null!==(t=o[0])&&void 0!==t&&t.memberFeeSetting||this.$bus.$emit("showguide",["memberList"]),this.memberFeeSetting=null===(r=o[0])||void 0===r?void 0:r.memberFeeSetting,e.next=16;break;case 14:e.prev=14,e.t0=e["catch"](0);case 16:case"end":return e.stop()}}),e,this,[[0,14]])})));function t(){return e.apply(this,arguments)}return t}(),getMemberList:function(){var e=0,t=this.memberForm,r=this.memberFeeSetting;if(r)switch(null===t||void 0===t?void 0:t.period){case"MONTH":e=Number(r.groupPurchaseMonthFee*t.memberNum);break;case"QUARTERLY":e=Number(r.groupPurchaseQuarterlyFee*t.memberNum);break;case"YEAR_HALF":e=Number(r.groupPurchaseHalfYearFee*t.memberNum);break;case"YEAR":e=Number(r.groupPurchaseYearFee*t.memberNum);break}t.memberNum&&t.period&&(this.memberForm.actualAmount=e)},submit:function(){var e=this;this.$refs.memberForm.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(r,e.type,"res"),!r){t.next=19;break}if(t.prev=2,"update"!=e.type){t.next=9;break}return t.next=6,Object(l["e"])(Object(i["a"])(Object(i["a"])({},e.memberForm),{},{organId:e.organId}));case 6:e.$message.success("创建云教练成功"),t.next=12;break;case 9:return t.next=11,Object(l["a"])(Object(i["a"])(Object(i["a"])({},e.memberForm),{},{userIds:e.userIds,organId:e.organId}));case 11:e.$message.success("创建云教练成功");case 12:e.$emit("close"),e.$emit("submited"),t.next=19;break;case 16:t.prev=16,t.t0=t["catch"](2),console.log(t.t0);case 19:case"end":return t.stop()}}),t,null,[[2,16]])})));return function(e){return t.apply(this,arguments)}}())},validateMember:function(e,t,r){var a,n=Number(t),i=0,o=0;switch(null===(a=this.memberForm)||void 0===a?void 0:a.period){case"MONTH":i=Number(this.rulesForm.minMonthFee)*this.memberForm.memberNum,o=Number(this.rulesForm.maxMonthFee)*this.memberForm.memberNum;break;case"QUARTERLY":i=Number(this.rulesForm.minQuarterlyFee)*this.memberForm.memberNum,o=Number(this.rulesForm.maxQuarterlyFee)*this.memberForm.memberNum;break;case"YEAR_HALF":i=Number(this.rulesForm.minHalfYearFee)*this.memberForm.memberNum,o=Number(this.rulesForm.maxHalfYearFee)*this.memberForm.memberNum;break;case"YEAR":i=Number(this.rulesForm.minYearFee)*this.memberForm.memberNum,o=Number(this.rulesForm.maxYearFee)*this.memberForm.memberNum;break}return n>=i&&n<=o?r():r(new Error("定价应在".concat(i,"-").concat(o,"之间")))}}},c=m,p=(r("1324"),r("2877")),d=Object(p["a"])(c,a,n,!1,null,"3b09448b",null);t["a"]=d.exports},a6e9:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var a=r("b775"),n=(r("4328"),"/api-web");function i(e){return Object(a["a"])({url:n+"/sysConfig/list",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},b1ae:function(e,t,r){"use strict";r("7096")},c041:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return s}));var a=r("829b"),n=function(e){return Object(a["a"])({url:"/api-web/musicGroup/queryMusicMemberList",params:e,method:"get"})},i=function(e){return Object(a["a"])({url:"/api-web/cloudCoachPaymentProgram/add",method:"post",data:e})},o=function(e){return Object(a["a"])({url:"/api-web/cloudCoachPaymentProgram/update",method:"post",data:e})},l=function(e){return Object(a["a"])({url:"/api-web/cloudCoachPaymentProgram/queryPage",method:"get",params:e})},s=function(e){return Object(a["a"])({url:"/api-web/studentCloudCoachPaymentDetails/queryPage",method:"get",params:e})}},cee5:function(e,t,r){},d70b:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("el-form",{attrs:{inline:!0,model:e.searchForm}},[r("el-form-item",{attrs:{prop:"period"}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"云教练单位",clearable:""},model:{value:e.searchForm.period,callback:function(t){e.$set(e.searchForm,"period","string"===typeof t?t.trim():t)},expression:"searchForm.period"}},[r("el-option",{attrs:{label:"月度",value:"MONTH"}}),e._v(" "),r("el-option",{attrs:{label:"季度",value:"QUARTERLY"}}),e._v(" "),r("el-option",{attrs:{label:"半年",value:"YEAR_HALF"}}),e._v(" "),r("el-option",{attrs:{label:"年度",value:"YEAR"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"visitTime"}},[r("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","picker-options":{firstDayOfWeek:1},"default-time":["00:00:00","23:59:59"],"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},model:{value:e.searchForm.visitTime,callback:function(t){e.$set(e.searchForm,"visitTime","string"===typeof t?t.trim():t)},expression:"searchForm.visitTime"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"续费编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),r("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.period))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"memberNum",label:"周期数"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"缴费金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualAmount,!0))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"type",label:"已缴费人数/总人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.paymentUserNum)+"/"+e._s(t.row.userNum)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"status",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"创建人",prop:"operatorName"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"创建时间"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["REJECT"==t.row.status&&e.$helpers.permission("cloudCoachPaymentProgram/update")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onUpdate(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),"REJECT"!=t.row.status&&e.$helpers.permission("studentCloudCoachPaymentDetails/queryPage")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onDetail(t.row)}}},[e._v("详情")]):e._e()]}}])})],1),e._v(" "),r("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.recordVisible?r("el-dialog",{attrs:{title:"激活云教练",visible:e.recordVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(t){e.recordVisible=t}}},[r("recordDetail",{attrs:{detail:e.selectDetail},on:{close:function(t){e.recordVisible=!1}}})],1):e._e(),e._v(" "),r("el-dialog",{attrs:{title:"修改云教练缴费",width:"500px",visible:e.memberVisible},on:{"update:visible":function(t){e.memberVisible=t}}},[e.memberVisible?r("createMember",{ref:"addMember",attrs:{type:"update",multipleSelection:e.selectDetail},on:{close:function(t){e.memberVisible=!1},submited:e.getList}}):e._e(),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.memberVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitAddMember}},[e._v("确 定")])],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 云教练缴费记录\n ")])}],i=(r("386d"),r("5530")),o=r("15fd"),l=(r("96cf"),r("1da1")),s=r("333d"),u=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("descriptions",{staticStyle:{"margin-bottom":"20px"},attrs:{column:3}},[r("descriptions-item",{attrs:{label:"云教练单位"}},[e._v(e._s(e._f("memberEnumType")(e.detail.period)))]),e._v(" "),r("descriptions-item",{attrs:{label:"周期数"}},[e._v(e._s(e.detail.memberNum))]),e._v(" "),r("descriptions-item",{attrs:{label:"缴费金额(元)"}},[e._v(e._s(e._f("moneyFormat")(e.detail.actualAmount,!0)))]),e._v(" "),r("descriptions-item",{attrs:{label:"已缴费人数/总人数"}},[e._v(e._s(e.detail.paymentUserNum)+"/"+e._s(e.detail.userNum))]),e._v(" "),r("descriptions-item",{attrs:{label:"创建人"}},[e._v(e._s(e.detail.operatorName))]),e._v(" "),r("descriptions-item",{attrs:{label:"创建时间"}},[e._v(e._s(e.detail.createTime))]),e._v(" "),r("descriptions-item",{attrs:{label:"备注"}},[e._v(e._s(e.detail.remark))])],1),e._v(" "),r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"学员姓名",prop:"username"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"手机号",prop:"phone"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.paymentStatus?"已缴费":"未缴费")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"缴费时间",prop:"createTime"}})],1),e._v(" "),r("pagination",{attrs:{sync:"","save-key":"recordDetail",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)},m=[],c=r("c041"),p={props:["detail"],components:{pagination:s["a"]},data:function(){return{tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){console.log(this.detail),this.getList()},methods:{getList:function(){var e=Object(l["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(c["c"])({paymentId:this.detail.id,page:this.rules.page,rows:this.rules.limit});case 3:t=e.sent,console.log(t),this.rules.total=t.data.total,this.tableList=t.data.rows,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()}},d=p,b=(r("b1ae"),r("2877")),f=Object(b["a"])(d,u,m,!1,null,"83a8315c",null),h=f.exports,g=r("9589"),v=r("ed08"),_={components:{pagination:s["a"],recordDetail:h,createMember:g["a"]},data:function(){return{recordVisible:!1,memberVisible:!1,searchForm:{visitTime:[],period:null,organId:null},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},selectDetail:null}},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,r=t.visitTime,a=Object(o["a"])(t,["visitTime"]),e.next=4,Object(c["b"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},a),Object(v["a"])(r,["startTime","endTime"])),{},{page:this.rules.page,rows:this.rules.limit}));case 4:n=e.sent,this.rules.total=n.data.total,this.tableList=n.data.rows,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={visitTime:[],period:null},this.search()},onDetail:function(e){this.selectDetail=e,this.recordVisible=!0},onUpdate:function(e){this.memberVisible=!0,this.selectDetail=e},submitAddMember:function(){this.$refs.addMember.submit()}}},y=_,F=Object(b["a"])(y,a,n,!1,null,null,null);t["default"]=F.exports},ed08:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return l}));var a=r("ade3"),n=(r("c5f6"),r("28a5"),r("a481"),r("6b54"),r("53ca"),r("5a0c")),i=r.n(n);var o=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var a=e[r],n=r.toLocaleUpperCase();t.push({label:a,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:r})}return t},l=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(a["a"])(t,r[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(n):""),Object(a["a"])(t,r[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(n):""),t):{}}}}]);