chunk-2536450f.cd26fd24.js 78 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2536450f","chunk-5af89228"],{"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 c=function e(){u+=s;var i=Math.easeInOutQuad(u,o,l,t);n(i),u<t?a(e):r&&"function"===typeof r&&r()};c()}},1672:function(e,t,r){"use strict";r.d(t,"i",(function(){return n})),r.d(t,"n",(function(){return i})),r.d(t,"o",(function(){return o})),r.d(t,"m",(function(){return l})),r.d(t,"h",(function(){return s})),r.d(t,"f",(function(){return u})),r.d(t,"k",(function(){return c})),r.d(t,"l",(function(){return p})),r.d(t,"j",(function(){return d})),r.d(t,"s",(function(){return m})),r.d(t,"p",(function(){return f})),r.d(t,"g",(function(){return b})),r.d(t,"q",(function(){return g})),r.d(t,"e",(function(){return h})),r.d(t,"c",(function(){return v})),r.d(t,"d",(function(){return y})),r.d(t,"r",(function(){return T})),r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return _}));var a=r("829b"),n=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},i=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/createCalender",data:e,method:"post"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},s=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},u=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},c=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},p=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},d=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},m=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},f=function(e){return Object(a["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},b=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},g=function(e){return Object(a["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},h=function(e){return Object(a["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},v=function(e){return Object(a["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},y=function(e){return Object(a["a"])({url:"/api-web/tenantConfig/autoActivationFlag",method:"get",params:e})},T=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},I=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},_=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})}},"1a59":function(e,t,r){},"1c0b":function(e,t,r){},"3c85":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:"form",attrs:{model:e.form}},[r("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选择声部",trigger:"change"}]}},[r("el-select",{staticStyle:{width:"100%!important"},attrs:{filterable:"",placeholder:"请选择声部组合",clearable:""},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId","string"===typeof t?t.trim():t)},expression:"form.subjectId"}},e._l(e.subjectList,(function(t){return r("el-option-group",{key:t.id,attrs:{label:t.label}},e._l(t.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1),e._v(" "),e._l(e.typesList,(function(t){return r("el-form-item",{key:t.value,attrs:{label:t.label+"折扣(%)",prop:"types."+t.value,"label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入折扣",trigger:"blur"},{pattern:/^\d+(\.\d{1,8})?$/,message:"请输入正确的折扣"}]}},[r("el-input",{staticClass:"number-input",attrs:{autocomplete:"off",type:"number",placeholder:"请输入折扣","controls-position":"right",min:"0",max:"100"},model:{value:e.form.types[t.value],callback:function(r){e.$set(e.form.types,t.value,"string"===typeof r?r.trim():r)},expression:"form.types[item.value]"}})],1)}))],2),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},n=[],i=(r("96cf"),r("1da1")),o=r("d349"),l=(r("4362"),{props:["typesList","subjectList"],data:function(){return{formLabelWidth:"130px",form:{subjectId:"",types:{}}}},methods:{submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(r){var a,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=13;break}for(n in a=[],e.form.types)e.form.types.hasOwnProperty(n)&&(i=e.form.types[n],a.push({chargeTypeId:n,subjectId:e.form.subjectId,goodsDiscountRate:i}));return t.prev=3,t.next=6,Object(o["v"])(a);case 6:e.$message.success("创建成功"),e.$listeners.submited(),e.$listeners.close(),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](3);case 13:case"end":return t.stop()}}),t,null,[[3,11]])})));return function(e){return t.apply(this,arguments)}}())}}}),s=l,u=(r("a402"),r("2877")),c=Object(u["a"])(s,a,n,!1,null,"6165a702",null);t["a"]=c.exports},"3c9f":function(e,t,r){"use strict";r("7b47")},"561b":function(e,t,r){},"69a6":function(e,t,r){"use strict";r("7a09")},"6c2d":function(e,t,r){"use strict";r("6dd5")},"6dd5":function(e,t,r){},"7a09":function(e,t,r){},"7b47":function(e,t,r){},"7f60":function(e,t,r){"use strict";r("1a59")},"8d75":function(e,t,r){},"92e3":function(e,t,r){"use strict";r.d(t,"u",(function(){return s})),r.d(t,"F",(function(){return u})),r.d(t,"s",(function(){return c})),r.d(t,"c",(function(){return p})),r.d(t,"C",(function(){return d})),r.d(t,"S",(function(){return m})),r.d(t,"R",(function(){return f})),r.d(t,"d",(function(){return b})),r.d(t,"J",(function(){return g})),r.d(t,"w",(function(){return h})),r.d(t,"U",(function(){return v})),r.d(t,"t",(function(){return y})),r.d(t,"o",(function(){return T})),r.d(t,"T",(function(){return I})),r.d(t,"M",(function(){return _})),r.d(t,"W",(function(){return O})),r.d(t,"X",(function(){return w})),r.d(t,"L",(function(){return S})),r.d(t,"P",(function(){return F})),r.d(t,"A",(function(){return x})),r.d(t,"l",(function(){return j})),r.d(t,"Q",(function(){return L})),r.d(t,"V",(function(){return C})),r.d(t,"G",(function(){return k})),r.d(t,"m",(function(){return E})),r.d(t,"v",(function(){return R})),r.d(t,"K",(function(){return P})),r.d(t,"f",(function(){return $})),r.d(t,"e",(function(){return A})),r.d(t,"I",(function(){return N})),r.d(t,"H",(function(){return D})),r.d(t,"O",(function(){return M})),r.d(t,"E",(function(){return G})),r.d(t,"a",(function(){return z})),r.d(t,"x",(function(){return V})),r.d(t,"p",(function(){return q})),r.d(t,"n",(function(){return B})),r.d(t,"q",(function(){return U})),r.d(t,"g",(function(){return W})),r.d(t,"D",(function(){return H})),r.d(t,"r",(function(){return J})),r.d(t,"B",(function(){return K})),r.d(t,"z",(function(){return Y})),r.d(t,"y",(function(){return X})),r.d(t,"h",(function(){return Q})),r.d(t,"k",(function(){return Z})),r.d(t,"i",(function(){return ee})),r.d(t,"j",(function(){return te})),r.d(t,"N",(function(){return re})),r.d(t,"b",(function(){return ne}));var a=r("b85c"),n=r("3835"),i=r("267e"),o=sessionStorage.getItem("tenantConfig");o=o?JSON.parse(o):{};var l=o.tenantId,s=null,u=null;1==l?(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]):(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],p=[{label:"正常签到",value:1},{label:"异常签到",value:0}],d=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],m=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],b=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),g=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],v=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],y=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],T=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],I=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],_=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],O=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],w=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{value:"乐理课回访",label:"乐理课回访"},{value:"网管课回访",label:"网管课回访"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],F=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],x=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],j=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],L=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],C=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],k=ae(i["musicGroupType"]),E=ae(i["classTime"]),R=ae(i["courseViewType"]),P=ae(i["payOrderType"]),$=ae(i["auditType"]),A=ae(i["auditPaymentType"]),N=ae(i["orderServerType"]),D=ae(i["orderAuditType"]),M=ae(i["rewardModeType"]),G=ae(i["musicClassType"]),z=ae(i["ProbationPeriodStatus"]),V=ae(i["downListType"]),q=ae(i["conclusion"]),B=ae(i["clientType"]),U=ae(i["couponType"]),W=ae(i["backType"]),H=ae(i["memberEnum"]),J=ae(i["coupontypeDetail"]),K=ae(i["issue"]),Y=ae(i["feedbackType"]),X=ae(i["feedbackTypeDesc"]),Q=ae(i["campState"]),Z=ae(i["catgGoupType"]),ee=ae(i["catRole"]),te=ae(i["catType"]),re=ae(i["quiteReason"]);function ae(e){var t=[];for(var r in e)t.push({label:e[r],value:r});return t}var ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],r=Object(n["a"])(t,2),i=r[0],o=r[1],l={};if(e&&e.length){var s,u=Object(a["a"])(e);try{for(u.s();!(s=u.n()).done;){var c=s.value;l[c[i]]=c[o]}}catch(p){u.e(p)}finally{u.f()}}return l}},a402:function(e,t,r){"use strict";r("1c0b")},a4ed:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",[r("save-form",{attrs:{inline:!0,saveKey:"discountManage",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",[r("el-select",{attrs:{filterable:"",placeholder:"请选择声部组合",clearable:""},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.subjectList,(function(t){return r("el-option-group",{key:t.id,attrs:{label:t.label}},e._l(t.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{filterable:"",placeholder:"请选择收费类型",clearable:""},model:{value:e.searchForm.chargeTypeId,callback:function(t){e.$set(e.searchForm,"chargeTypeId","string"===typeof t?t.trim():t)},expression:"searchForm.chargeTypeId"}},e._l(e.typesList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeSubjectMapper/insert",expression:"'chargeTypeSubjectMapper/insert'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){e.createVisible=!0}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"chargeTypeId",label:"收费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.typesListById[t.row.chargeTypeId]))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectId",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.subjectListById[t.row.subjectId]))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsDiscountRate",label:"折扣(%)"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeSubjectMapper/update",expression:"'chargeTypeSubjectMapper/update'"}],attrs:{type:"text"},on:{click:function(r){return e.openTypes("update",t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",saveKey:"discountManage",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.typeStatus,width:"500px"},on:{"update:visible":function(t){e.typeStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"收费类型",prop:"chargeTypeId","label-width":e.formLabelWidth}},[r("el-select",{attrs:{filterable:"",disabled:"",placeholder:"请选择收费类型",clearable:""},model:{value:e.form.chargeTypeId,callback:function(t){e.$set(e.form,"chargeTypeId","string"===typeof t?t.trim():t)},expression:"form.chargeTypeId"}},e._l(e.typesList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),"MIX"!=e.form.classGroupType?r("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":e.formLabelWidth}},[r("el-select",{attrs:{filterable:"",disabled:"",placeholder:"请选择声部组合",clearable:""},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId","string"===typeof t?t.trim():t)},expression:"form.subjectId"}},e._l(e.subjectList,(function(t){return r("el-option-group",{key:t.id,attrs:{label:t.label}},e._l(t.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"折扣(%)",prop:"goodsDiscountRate","label-width":e.formLabelWidth}},[r("el-input",{staticClass:"number-input",attrs:{autocomplete:"off",type:"number",placeholder:"请输入折扣 0%-100%","controls-position":"right",min:"0",max:"100"},model:{value:e.form.goodsDiscountRate,callback:function(t){e.$set(e.form,"goodsDiscountRate","string"===typeof t?t.trim():t)},expression:"form.goodsDiscountRate"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{visible:e.createVisible,title:"添加商品折扣",width:"500px"},on:{"update:visible":function(t){e.createVisible=t}}},[r("createDiscount",{attrs:{typesList:e.typesList,subjectList:e.subjectList},on:{close:function(t){e.createVisible=!1},submited:e.getList}})],1)],1)},n=[],i=r("5530"),o=(r("7f7f"),r("ac6a"),r("96cf"),r("1da1")),l=(r("386d"),r("333d")),s=r("d349"),u=r("3c85"),c={name:"typesManager",components:{pagination:l["a"],createDiscount:u["a"]},data:function(){return{tableList:[],typesList:[],typesListById:{},subjectList:[],subjectListById:{},formActionTitle:"create",formTitle:{create:"添加折扣",update:"修改折扣"},createVisible:!1,typeStatus:!1,formLabelWidth:"100px",form:{name:null,subjectId:null,goodsDiscountRate:null},searchForm:{subjectId:null,chargeTypeId:null},rules:{chargeTypeId:[{required:!0,message:"请选择收费类型",trigger:"blur"}],subjectId:[{required:!0,message:"请选择声部组合",trigger:"change"}],goodsDiscountRate:[{required:!0,message:"请输入折扣",trigger:"blur"},{pattern:/^\d+(\.\d{1,8})?$/,message:"请输入正确的折扣"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList(),this.getChargeTypeList(),this.getSubjectTree()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.searchForm={subjectId:null,chargeTypeId:null},this.search()},onTypesSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(s["v"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(s["J"])([t.form]).then((function(e){t.messageTips("修改",e)}))}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(t.msg)},onTypesDel:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除此条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:Object(s["n"])({id:t.id}).then((function(e){r.messageTips("删除",e)})),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),getChargeTypeList:function(){var e=this;Object(s["h"])({rows:9999,page:1}).then((function(t){if(200==t.code){var r={};t.data.rows.forEach((function(t){r[t.id]=t.name,e.typesList.push({label:t.name,value:t.id})})),e.typesListById=r}}))},getList:function(){var e=this;Object(s["k"])(Object(i["a"])({rows:this.pageInfo.limit,page:this.pageInfo.page},this.searchForm)).then((function(t){var r=t.data;e.tableList=r.rows,e.pageInfo.total=r.total}))},openTypes:function(e,t){this.typeStatus=!0,this.formActionTitle=e,"update"==e&&(this.form={id:t.id,chargeTypeId:t.chargeTypeId,subjectId:t.subjectId,goodsDiscountRate:t.goodsDiscountRate})},onFormClose:function(e){this.form={name:null,subjectId:null,goodsDiscountRate:null},this.$refs[e].resetFields()},getSubjectTree:function(){var e=this;Object(s["H"])({delFlag:"NO",rows:9999}).then((function(t){var r={},a=t.data;if(200==t.code){var n=[];a.rows.forEach((function(e,t){var a=[];e.subjects&&e.subjects.forEach((function(e){r[e.id]=e.name,a.push({value:e.id,label:e.name})})),n[t]={label:e.name,id:e.id,options:a}})),e.subjectListById=r,e.subjectList=n}}))}}},p=c,d=(r("fefd"),r("2877")),m=Object(d["a"])(p,a,n,!1,null,"7ba86545",null);t["a"]=m.exports},b044:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[(e.dataList.length>0||e.pageInfo.page>1)&&e.contextFlag?r("div",[r("save-form",{attrs:{inline:!0,saveKey:"chargesList",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",[r("el-select",{attrs:{placeholder:"请选择分部",filterable:"",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",t)},expression:"searchForm.organId"}},e._l(e.branchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"收费类型",clearable:"",filterable:""},model:{value:e.searchForm.chargeTypeId,callback:function(t){e.$set(e.searchForm,"chargeTypeId",t)},expression:"searchForm.chargeTypeId"}},e._l(e.typesList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupOrganizationCourseSettings/add",expression:"'musicGroupOrganizationCourseSettings/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.onChargeOperation("create")}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.dataList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{prop:"organId",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.branchById[t.row.organId])+"\n ")]}}],null,!1,1133652577)}),e._v(" "),r("el-table-column",{attrs:{prop:"chargeTypeId",label:"乐团模式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typesById[t.row.chargeTypeId])+"\n ")]}}],null,!1,3689981961)}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"收费方式名称"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalCurrentPrice",label:"现价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.numeral(t.row.totalCurrentPrice).format("0,0"))+"\n ")]}}],null,!1,3125680502)},[r("template",{slot:"header"},[r("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),r("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),r("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),r("el-table-column",{attrs:{prop:"totalOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.numeral(t.row.totalOriginalPrice).format("0,0"))+"\n ")]}}],null,!1,2384108198)}),e._v(" "),r("el-table-column",{attrs:{prop:"updateTime",label:"修改时间"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupOrganizationCourseSettings/update",expression:"'musicGroupOrganizationCourseSettings/update'"}],attrs:{type:"text"},on:{click:function(r){return e.onChargeOperation("update",t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupOrganizationCourseSettings/delSetting",expression:"'musicGroupOrganizationCourseSettings/delSetting'"}],attrs:{type:"text"},on:{click:function(r){return e.onChargeDelete(t.row)}}},[e._v("删除")])]}}],null,!1,739188082)})],1),e._v(" "),r("pagination",{attrs:{saveKey:"chargesList",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1):e._e(),e._v(" "),e.dataList.length>0||e.pageInfo.page>1||!e.contextFlag?e._e():r("emptyPage",{attrs:{title:"乐团收费标准",btnTitle:"新建乐团收费标准",context:e.context},on:{submit:function(t){return e.onChargeOperation("create")}}}),e._v(" "),e.chargeStatus?r("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.chargeStatus,width:"850px"},on:{"update:visible":function(t){e.chargeStatus=t},close:e.closeModal}},[e.chargeStatus?r("chargesForm",{attrs:{typesList:e.typesList,branchList:e.branchList,rowDetail:e.rowDetail},on:{"update:branchList":function(t){e.branchList=t},"update:branch-list":function(t){e.branchList=t},close:e.closeModal,submited:e.getList}}):e._e()],1):e._e()],1)},n=[],i=r("5530"),o=(r("386d"),r("7f7f"),r("ac6a"),r("96cf"),r("1da1")),l=r("333d"),s=r("d349"),u=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": "}},[r("el-form-item",{attrs:{label:"所属分部",prop:"organId",rules:[{required:!0,message:"请选择所属分部",trigger:"change"}],"label-width":e.formLabelWidth}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择所属分部",filterable:""},model:{value:e.form.organId,callback:function(t){e.$set(e.form,"organId","string"===typeof t?t.trim():t)},expression:"form.organId"}},e._l(e.branchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"乐团模式",prop:"chargeTypeId",rules:[{required:!0,message:"请选择乐团模式",trigger:"change"}],"label-width":e.formLabelWidth}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择乐团模式",filterable:""},model:{value:e.form.chargeTypeId,callback:function(t){e.$set(e.form,"chargeTypeId","string"===typeof t?t.trim():t)},expression:"form.chargeTypeId"}},e._l(e.typesList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"收费方式名称",prop:"name",rules:[{required:!0,message:"请输入收费方式名称",trigger:"blur"}],"label-width":e.formLabelWidth}},[r("el-input",{staticStyle:{width:"98% !important"},attrs:{placeholder:"请输入收费方式名称",clearable:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1),e._v(" "),r("div",{staticClass:"class-items"},[r("div",{staticClass:"items"},[r("div",{staticClass:"items-header"},[r("span",{staticClass:"name"},[e._v("课程类型")]),e._v(" "),r("span",{staticClass:"name"},[e._v("课程总时长(分钟)")]),e._v(" "),r("span",{staticClass:"name"},[e._v("现价(元)")]),e._v(" "),r("span",{staticClass:"name"},[e._v("原价(元)")]),e._v(" "),r("span",{staticClass:"ctrl"})]),e._v(" "),e._l(e.form.details,(function(t,a){return r("div",{key:a,staticClass:"item"},[r("el-form-item",{attrs:{prop:"details."+a+".courseType",rules:[{required:!0,message:"请选择课程类型",trigger:"change"}]}},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(){return e.courseItemChange(t,a)}},model:{value:t.courseType,callback:function(r){e.$set(t,"courseType","string"===typeof r?r.trim():r)},expression:"item.courseType"}},e._l(e.courseTypes,(function(t,a){return r("el-option",{key:a,attrs:{label:e.courseType[t.courseType],disabled:e.isOptionDisabled(t.courseType),value:t.courseType}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"details."+a+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[r("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"课程总时长"},on:{change:function(){return e.courseItemChange(t,a)}},model:{value:t.courseTotalMinuties,callback:function(r){e.$set(t,"courseTotalMinuties",r)},expression:"item.courseTotalMinuties"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"details."+a+".courseCurrentPrice",rules:[{required:!0,message:"请输入课程现价",trigger:"blur"}]}},[r("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,min:0,placeholder:"课程现价"},model:{value:t.courseCurrentPrice,callback:function(r){e.$set(t,"courseCurrentPrice",r)},expression:"item.courseCurrentPrice"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"details."+a+".courseOriginalPrice",rules:[{required:!0,message:"请输入课程原价",trigger:"blur"}]}},[r("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,min:0,placeholder:"课程原价"},model:{value:t.courseOriginalPrice,callback:function(r){e.$set(t,"courseOriginalPrice",r)},expression:"item.courseOriginalPrice"}})],1),e._v(" "),r("span",{staticClass:"ctrl"},[e.form.details.length>1?r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return e.removeItem(a)}}}):e._e()])],1)}))],2),e._v(" "),r("el-button",{staticClass:"create-type-button",attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.addItem}},[e._v("新增课程类型")])],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"原价",prop:"totalOriginalPrice","label-width":"50px"}},[e._v("\n "+e._s(e._f("moneyFormat")(e.totalOriginalPrice))+"元\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"现价",prop:"totalCurrentPrice","label-width":"50px"}},[e._v("\n "+e._s(e._f("moneyFormat")(e.totalCurrentPrice))+"元\n ")])],1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},c=[],p=(r("6762"),r("2fdb"),r("2909")),d=r("b85c"),m=r("92e3"),f=r("1672"),b=r("267e"),g=r("ed08"),h=r("6612"),v=r.n(h),y=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,a=0,n=Object(d["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i&&(a+=i[r]||0)}}catch(o){n.e(o)}finally{n.f()}return a},T={organId:"",classTimeList:"",chargeTypeId:"",name:"",details:[{}]},I={name:"modal-chargesForm",props:["branchList","typesList","rowDetail"],data:function(){return{form:Object(i["a"])({},T),formLabelWidth:"120px",courseType:b["courseType"],courseTypeOptions:Object(g["b"])(b["courseType"]),boolOptions:Object(g["b"])(b["boolOptions"]),courseTypes:[],courseTypesByType:{},loading:!1}},computed:{totalOriginalPrice:function(){return y(this.form.details,"courseOriginalPrice")},totalCurrentPrice:function(){return y(this.form.details,"courseCurrentPrice")},classTimeList:function(){return Object(m["b"])(m["m"])}},watch:{rowDetail:{deep:!0,handler:function(){this.updateForm()}},"form.organId":function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.FetchOrganizationCourseUnitPriceSettings();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),"form.chargeTypeId":function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.FetchOrganizationCourseUnitPriceSettings();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){this.updateForm()},methods:{FetchOrganizationCourseUnitPriceSettings:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.loading){e.next=2;break}return e.abrupt("return");case 2:if(this.loading=!0,e.prev=3,!this.form.organId||!this.form.chargeTypeId){e.next=14;break}return this.$set(this.form,"details",[{}]),e.next=8,Object(s["q"])({chargeTypeId:this.form.chargeTypeId,organId:this.form.organId,rows:9999});case 8:t=e.sent,r={},this.courseTypes=t.data.rows,a=Object(d["a"])(this.courseTypes);try{for(a.s();!(n=a.n()).done;)i=n.value,r[i.courseType]=i}catch(o){a.e(o)}finally{a.f()}this.courseTypesByType=r;case 14:e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](3);case 18:this.loading=!1;case 19:case"end":return e.stop()}}),e,this,[[3,16]])})));function t(){return e.apply(this,arguments)}return t}(),courseItemChange:function(e,t){if(e.courseType){var r=this.courseTypesByType[e.courseType]||{},a=this.form.details,n=Math.round(v()(r.unitPrice||1).multiply(e.courseTotalMinuties||0).value());a[t]=Object(i["a"])(Object(i["a"])({},e),{},{courseCurrentPrice:n,courseOriginalPrice:n}),this.$refs.form.validateField("details.".concat(t,".courseTotalMinuties")),this.$set(this.form,"details",Object(p["a"])(a))}},updateForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,a,n,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.rowDetail){e.next=14;break}return t=this.rowDetail,r=t.organId,a=t.classTimeList,n=t.chargeTypeId,o=t.name,this.form={organId:r,classTimeList:a,chargeTypeId:n,name:o},e.prev=3,e.next=6,Object(f["p"])({id:this.rowDetail.id});case 6:l=e.sent,this.$set(this.form,"details",l.data.map((function(e){return Object(i["a"])(Object(i["a"])({},e),{},{isStudentOptional:String(e.isStudentOptional)})}))),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=15;break;case 14:this.form=Object(i["a"])({},T);case 15:case"end":return e.stop()}}),e,this,[[3,10]])})));function t(){return e.apply(this,arguments)}return t}(),isOptionDisabled:function(e){var t=this.form.details.map((function(e){return e.courseType}));return t.includes(e)},addItem:function(){var e=[].concat(Object(p["a"])(this.form.details),[{}]);this.form.details=e},removeItem:function(e){var t=Object(p["a"])(this.form.details);t[e]=null,this.form.details=t.filter((function(e){return!!e}))},submit:function(){var e=this;this.$refs.form.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(!r){t.next=19;break}if(t.prev=1,!e.rowDetail){t.next=9;break}return t.next=5,Object(s["z"])(Object(i["a"])({id:e.rowDetail.id},e.form));case 5:t.sent,e.$message.success("更新成功"),t.next=13;break;case 9:return t.next=11,Object(s["w"])(e.form);case 11:t.sent,e.$message.success("提交成功");case 13:e.$listeners.close(),e.$listeners.submited(),t.next=19;break;case 17:t.prev=17,t.t0=t["catch"](1);case 19:case"end":return t.stop()}}),t,null,[[1,17]])})));return function(e){return t.apply(this,arguments)}}())},validatorCourseTotalMinuties:function(e,t){var r=this;return function(e,a,n){var i=t.courseType;i&&a&&r.classTimeList[i]&&a<r.classTimeList[i]?n(new Error("单节课不得少于".concat(r.classTimeList[i],"分钟"))):n()}}}},_=I,O=(r("6c2d"),r("2877")),w=Object(O["a"])(_,u,c,!1,null,"a8b18262",null),S=w.exports,F=r("1062"),x={components:{pagination:l["a"],chargesForm:S,emptyPage:F["a"]},name:"chargesList",data:function(){return{id:null,rowDetail:null,dataList:[],typesList:[],branchList:[],typesById:{},branchById:{},formActionTitle:"create",formTitle:{create:"添加乐团收费标准",update:"修改乐团收费标准"},searchForm:{organId:null,chargeTypeId:null},chargeStatus:!1,formLabelWidth:"100px",form:{chargeTypeId:null,courseFee:null},rules:{courseFee:[{required:!0,message:"请输入课程费用",trigger:"blur"}],chargeTypeId:[{required:!0,message:"请选择收费类型",trigger:"change"}],organId:[{required:!0,message:"请选择所属分部",trigger:"change"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},context:"此处用于设置乐团训练的标准课程组合包,可根据不同分部不同的乐团模式创建不同的课程组合包及组合包的标准价格,创建完成后,在设置乐团报名、续费时可直接选择收费标准快速创建乐团课程缴费。",contextFlag:!1}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.getList(),Object(s["h"])({rows:9999,page:1}).then((function(e){if(200==e.code){var r={};if(e.data.rows.forEach((function(e){r[e.id]=e.name,t.typesList.push({label:e.name,value:e.id})})),t.typesById=r,e.data.rows.length<=0)return void t.$bus.$emit("showguide",["teamPayType"])}})),Object(s["e"])({rows:9999,page:1}).then((function(e){if(200==e.code){var r={};t.branchList=e.data.rows.map((function(e){return r[e.id]=e.name,{label:e.name,value:e.id}})),t.branchById=r}}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{numeral:v.a,search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.searchForm={organId:null,chargeTypeId:null},this.search()},onTypesSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(s["i"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(s["j"])(t.form).then((function(e){t.messageTips("修改",e)}))}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(t.msg)},onChargeOperation:function(e,t){this.formActionTitle=e,this.rowDetail="update"==e?Object(i["a"])({},t):null,this.chargeStatus=!0},onChargeDelete:function(e){var t=this;this.$confirm("您确定删除该收费标准?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["x"])({id:e.id}).then((function(e){t.messageTips("删除",e)}))})).catch((function(){}))},getList:function(){var e=this;Object(s["y"])(Object(i["a"])({rows:this.pageInfo.limit,page:this.pageInfo.page},this.searchForm)).then((function(t){200==t.code&&(e.contextFlag=!0,e.dataList=t.data.rows,e.pageInfo.total=t.data.total)}))},onFormClose:function(e){this.form={courseFee:null,chargeTypeId:null},this.$refs[e].resetFields()},closeModal:function(){this.chargeStatus=!1}}},j=x,L=(r("7f60"),Object(O["a"])(j,a,n,!1,null,"209ad08e",null));t["a"]=L.exports},b58c6:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[(e.tableList.length>0||e.pageInfo.page>1)&&e.contextFlag?r("div",[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,saveKey:"courseTimerSetting",model:e.searchForm},on:{submit:e.search,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{rules:[]}},[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",[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleType"}},e._l(e.courseType,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organizationCourseDurationSettings/insert",expression:"'organizationCourseDurationSettings/insert'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.openJob("create")}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organ.name",label:"分部名称"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"classGroupTypeName",label:"课程形式"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseType))+"\n ")])]}}],null,!1,932042939)}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"课程课时",prop:"duration"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organizationCourseDurationSettings/update",expression:"'organizationCourseDurationSettings/update'"}],attrs:{type:"text"},on:{click:function(r){return e.resetCourseTime(t.row)}}},[e._v("修改")])]}}],null,!1,1641921570)})],1),e._v(" "),r("pagination",{attrs:{saveKey:"courseTimerSetting",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1):e._e(),e._v(" "),e.tableList.length>0||e.pageInfo.page>1||!e.contextFlag?e._e():r("emptyPage",{attrs:{title:"乐团课时长设置",btnTitle:"新建乐团课时长设置",context:e.context},on:{submit:function(t){return e.openJob("create")}}}),e._v(" "),r("el-dialog",{staticClass:"courseMask",attrs:{title:e.isAdd?"新增课时时长":"修改课时时长",width:"600px",visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[e.courseVisible?r("courseTimeForm",{ref:"courseTimeForm",attrs:{activeRow:e.activeRow,organList:e.selects.branchs,courseType:e.courseType},on:{close:e.close}}):e._e(),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},n=[],i=(r("386d"),r("96cf"),r("1da1")),o=r("5530"),l=r("333d"),s=r("92e3"),u=r("d349"),c=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"courseTimeForm",attrs:{model:e.courseTimeForm}},[r("el-form-item",{attrs:{label:"分部",prop:"organId","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选择分部",trigger:"blur"}]}},[r("el-select",{staticClass:"multiple",staticStyle:{width:"100% !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.courseTimeForm.organId,callback:function(t){e.$set(e.courseTimeForm,"organId","string"===typeof t?t.trim():t)},expression:"courseTimeForm.organId"}},e._l(e.organList,(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:{label:"课程类型",prop:"courseType","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[r("el-select",{staticClass:"multiple",staticStyle:{width:"100% !important"},attrs:{filterable:"",clearable:"",placeholder:"课程类型"},model:{value:e.courseTimeForm.courseType,callback:function(t){e.$set(e.courseTimeForm,"courseType","string"===typeof t?t.trim():t)},expression:"courseTimeForm.courseType"}},e._l(e.courseType,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"单课时时长",prop:"timer","label-width":e.formLabelWidth}},[e._l(e.dynamicTags,(function(t,a){return r("el-tag",{key:a,attrs:{effect:"dark",type:"info",closable:"","disable-transitions":!1},on:{close:function(r){return e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")])})),e._v(" "),e.inputVisible?r("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",staticStyle:{width:"160px"},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue="string"===typeof t?t.trim():t},expression:"inputValue"}},[r("template",{slot:"append"},[e._v("分钟")])],2):e._e(),e._v(" "),e.inputVisible?e._e():r("el-button",{staticClass:"button-new-tag",on:{click:e.showInput}},[e._v("+ 添加")])],2)],1)],1)},p=[],d=(r("28a5"),{props:["activeRow","organList","courseType"],data:function(){return{courseTimeForm:{organId:"",courseType:"",timer:[],id:""},inputVisible:!1,formLabelWidth:"100px",dynamicTags:[],inputValue:""}},mounted:function(){console.log(this.activeRow),this.activeRow&&(this.courseTimeForm.organId=this.activeRow.organId,this.courseTimeForm.timer=this.activeRow.duration.split(","),this.dynamicTags=this.activeRow.duration.split(","),this.courseTimeForm.courseType=this.activeRow.courseType,this.courseTimeForm.id=this.activeRow.id)},methods:{handleInputConfirm:function(){var e=this.inputValue;e&&this.dynamicTags.push(e),this.inputVisible=!1,this.inputValue=""},handleClose:function(e){this.dynamicTags.splice(this.dynamicTags.indexOf(e),1)},showInput:function(){var e=this;this.inputVisible=!0,this.$nextTick((function(t){e.$refs.saveTagInput.$refs.input.focus()}))},submitInfo:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(t),this.$refs.courseTimeForm.validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=28;break}if(!(r.dynamicTags.length<=0)){e.next=4;break}return r.$message.error("请至少填写一个课程课时"),e.abrupt("return");case 4:if("update"!=t){e.next=17;break}return e.prev=5,e.next=8,Object(u["E"])({organId:r.courseTimeForm.organId,duration:r.dynamicTags.join(","),courseType:r.courseTimeForm.courseType,id:r.courseTimeForm.id});case 8:e.sent,r.$message.success("修改成功"),r.$emit("close"),e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](5);case 15:e.next=28;break;case 17:if("create"!=t){e.next=28;break}return e.prev=18,e.next=21,Object(u["a"])({organId:r.courseTimeForm.organId,duration:r.dynamicTags.join(","),courseType:r.courseTimeForm.courseType});case 21:e.sent,r.$message.success("新建成功"),r.$emit("close"),e.next=28;break;case 26:e.prev=26,e.t1=e["catch"](18);case 28:case"end":return e.stop()}}),e,null,[[5,13],[18,26]])})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{dynamicTags:function(e){this.courseTimeForm.timer=e}}}),m=d,f=(r("3c9f"),r("2877")),b=Object(f["a"])(m,c,p,!1,null,"09a97a76",null),g=b.exports,h=r("1062"),v={courseScheduleType:null,organId:null},y={components:{pagination:l["a"],courseTimeForm:g,emptyPage:h["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(o["a"])({},v),courseType:s["F"],isAdd:!0,courseVisible:!1,activeRow:null,context:"创建分部后,可根据各分部的实际情况在本界面添加各类型乐团课程的单课时时长,添加完成后,各分部乐团在排课时可选择此处设置的单课时时长进行排课,同一种课程类型可设置多种单课时时长,帮助进行乐团课时时长的规范管理。",contextFlag:!1}},mounted:function(){this.$store.dispatch("setBranchs"),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(u["p"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.contextFlag=!0,this.pageInfo.total=t.data.total,this.tableList=t.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.pageInfo.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},reset:function(){this.searchForm=Object(o["a"])({},v),this.search()},resetCourseTime:function(e){this.isAdd=!1,this.activeRow=e,this.courseVisible=!0},submitInfo:function(){var e=this.isAdd?"create":"update";this.$refs.courseTimeForm.submitInfo(e)},close:function(){this.courseVisible=!1,this.getList()},openJob:function(){this.isAdd=!0,this.activeRow=null,this.courseVisible=!0},delCourseTime:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["o"])({id:t.id});case 3:e.sent,r.$message.success("删除成功"),r.getList(),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},T=y,I=Object(f["a"])(T,a,n,!1,null,"042c1ca9",null);t["a"]=I.exports},baa9:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[(e.tableList.length>0||e.pageInfo.page>1)&&e.contextFlag?r("div",[r("save-form",{ref:"searchForm",attrs:{inline:!0,saveKey:"musicCourseFee",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{attrs:{placeholder:"请选择分部",filterable:"",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",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:"courseScheduleType"}},[r("el-select",{attrs:{placeholder:"课程类型",clearable:"",filterable:""},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType",t)},expression:"searchForm.courseScheduleType"}},e._l(e.musicCourseType,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organizationCourseUnitPriceSettings/save",expression:"'organizationCourseUnitPriceSettings/save'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){e.newVisiable=!0}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.organ.name))]}}],null,!1,1955203137)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("coursesType")(t.row.courseType)))]}}],null,!1,3401518263)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"chargeName",label:"乐团收费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.chargeType.name))]}}],null,!1,4241183670)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsDiscountRate",label:"每分钟费用"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.unitPrice))]}}],null,!1,521897558)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseType",label:"修改时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTimer")(t.row.updateTime)))]}}],null,!1,978037604)}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organizationCourseUnitPriceSettings/update",expression:"'organizationCourseUnitPriceSettings/update'"}],attrs:{type:"text"},on:{click:function(r){return e.openTypes(t.row)}}},[e._v("修改")])]}}],null,!1,1280071872)})],1),e._v(" "),r("pagination",{attrs:{saveKey:"musicCourseFee",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1):e._e(),e._v(" "),e.tableList.length>0||e.pageInfo.page>1||!e.contextFlag?e._e():r("emptyPage",{attrs:{title:"乐团课价格设置",btnTitle:"新建乐团课价格设置",context:e.context},on:{submit:function(t){e.newVisiable=!0}}}),e._v(" "),e.newVisiable?r("el-dialog",{attrs:{title:"新建",visible:e.newVisiable,width:"600px"},on:{"update:visible":function(t){e.newVisiable=t}}},[r("el-form",{ref:"ruleForm",staticClass:"createForm",attrs:{model:e.createForm}},[r("el-form-item",{attrs:{label:"所属分部",rules:[{required:!0,message:"所属分部",trigger:"blur"}],prop:"organId","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择分部",filterable:"",clearable:""},on:{change:e.changeOrgan},model:{value:e.createForm.organId,callback:function(t){e.$set(e.createForm,"organId",t)},expression:"createForm.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:{label:"课程类型",rules:[{required:!0,message:"请选择课程类型",trigger:"change"}],prop:"courseType","label-width":e.formLabelWidth}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择课程类型",disabled:!e.createForm.organId,clearable:""},on:{change:e.changeCourseScheduleType},model:{value:e.createForm.courseType,callback:function(t){e.$set(e.createForm,"courseType","string"===typeof t?t.trim():t)},expression:"createForm.courseType"}},e._l(e.musicCourseType,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e._l(e.dataList,(function(t,a){return r("div",{key:a},[r("el-form-item",{attrs:{label:""+t.name,"label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入每分钟课程费用",trigger:"blur"}],prop:"unitPriceJson."+t.id+".price"}},[r("el-input",{attrs:{type:"number",min:"0",step:"0.00000001"},model:{value:e.createForm.unitPriceJson[t.id].price,callback:function(r){e.$set(e.createForm.unitPriceJson[t.id],"price",r)},expression:"createForm.unitPriceJson[item.id].price"}},[r("template",{slot:"append"},[e._v("每分钟费用(元)")])],2)],1)],1)}))],2),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.newVisiable=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),e.resetVisible?r("el-dialog",{attrs:{title:"修改",visible:e.resetVisible,width:"500px"},on:{"update:visible":function(t){e.resetVisible=t}}},[r("el-form",{ref:"resetForm",staticClass:"resetForm",attrs:{model:e.resetForm}},[r("el-form-item",{attrs:{label:"所属分部",rules:[{required:!0,message:"所属分部",trigger:"blur"}],prop:"organId","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择分部",clearable:"",disabled:""},model:{value:e.resetForm.organId,callback:function(t){e.$set(e.resetForm,"organId",t)},expression:"resetForm.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:{label:"课程类型",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}],prop:"courseType","label-width":e.formLabelWidth}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择课程类型",clearable:"",disabled:""},model:{value:e.resetForm.courseType,callback:function(t){e.$set(e.resetForm,"courseType","string"===typeof t?t.trim():t)},expression:"resetForm.courseType"}},e._l(e.musicCourseType,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.actvieRow?r("el-form-item",{attrs:{label:e.actvieRow.chargeType.name+"模式","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入每分钟课程费用",trigger:"blur"}],prop:"unitPrice"}},[r("el-input",{attrs:{type:"number",min:"0",step:"0.00000001"},model:{value:e.resetForm.unitPrice,callback:function(t){e.$set(e.resetForm,"unitPrice",t)},expression:"resetForm.unitPrice"}},[r("template",{slot:"append"},[e._v("每分钟费用(元)")])],2)],1):e._e()],1),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.resetVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.resetSubmit}},[e._v("确 定")])],1)],1):e._e()],1)},n=[],i=(r("96cf"),r("1da1")),o=(r("386d"),r("ac6a"),r("333d")),l=(r("1cc7"),r("1062")),s=r("d349"),u=r("3c85"),c=r("92e3"),p={name:"typesManager",components:{pagination:o["a"],createDiscount:u["a"],emptyPage:l["a"]},data:function(){return{musicCourseType:c["F"],newVisiable:!1,resetVisible:!1,tableList:[],dataList:[],organList:[],searchForm:{organId:null,courseScheduleType:null},createForm:{organId:null,courseType:null,unitPriceJson:{}},resetForm:{unitPrice:null,courseType:null,id:null,organId:null},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},formLabelWidth:"120px",actvieRow:null,context:"系统支持不同分部在不同的乐团模式中设置各课程类型的不同价格标准,该标准为具体课程类型每分钟的收费价格,在创建乐团课程组合包或乐团临时加课时,根据组合包中的课程时长或临时加课的课程时长计算应该向学员收费的标准费用。不以此标准价格创建学员缴费,则需要审核才可生效。",contextFlag:!1}},mounted:function(){var e=this;Object(s["h"])({rows:99999,page:1}).then((function(t){200==t.code&&(e.dataList=t.data.rows,e.dataList.forEach((function(t){e.$set(e.createForm.unitPriceJson,t.id,{price:null,id:null})})),e.dataList.length<=0)&&e.$bus.$emit("showguide",["teamPayType"])})),this.$store.dispatch("setBranchs"),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},onTypesDel:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除此条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:delChargeTypeSubjectMapper({id:t.id}).then((function(e){r.messageTips("删除",e)})),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),getList:function(){var e=this;Object(s["q"])({rows:this.pageInfo.limit,page:this.pageInfo.page,organId:this.searchForm.organId,courseScheduleType:this.searchForm.courseScheduleType}).then((function(t){e.contextFlag=!0;var r=t.data;e.tableList=r.rows,e.pageInfo.total=r.total}))},submitInfo:function(){var e=this;console.log(this.createForm),this.$refs.ruleForm.validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(r){var a,n,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(n in a=[],e.createForm.unitPriceJson)e.createForm.unitPriceJson.hasOwnProperty(n)&&(i=e.createForm.unitPriceJson[n].price,o=e.createForm.unitPriceJson[n].id,a.push({chargeTypeId:n,courseType:e.createForm.courseType,organId:e.createForm.organId,unitPrice:i,id:o}));if(!r){t.next=15;break}return t.prev=3,t.next=6,Object(s["b"])(a);case 6:e.$message.success("创建成功"),e.getList(),e.newVisiable=!1,e.createForm={organId:null,courseType:null,unitPriceJson:{}},e.dataList.forEach((function(t){e.$set(e.createForm.unitPriceJson,t.id,{price:null,id:null})})),t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](3);case 15:case"end":return t.stop()}}),t,null,[[3,13]])})));return function(e){return t.apply(this,arguments)}}())},openTypes:function(e){this.actvieRow=e,this.resetForm={chargeTypeId:e.chargeTypeId,unitPrice:e.unitPrice,courseType:e.courseType,id:e.id,organId:e.organId},this.resetVisible=!0},resetSubmit:function(){var e=this;this.$refs.resetForm.validate(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:if(!r){t.next=12;break}return t.prev=1,t.next=4,Object(s["F"])(e.resetForm);case 4:e.$message.success("修改成功"),e.getList(),e.resetVisible=!1,e.resetForm={unitPrice:null,courseType:null,id:null,organId:null},t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}())},changeCourseScheduleType:function(e){var t=this;e&&this.$refs.ruleForm.validateField("organId",function(){var r=Object(i["a"])(regeneratorRuntime.mark((function r(a){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a){r.next=12;break}return r.prev=1,r.next=4,Object(s["D"])(t.createForm.organId,e);case 4:n=r.sent,n.data.forEach((function(e){t.createForm.unitPriceJson.hasOwnProperty(e.chargeTypeId)&&t.$set(t.createForm.unitPriceJson,e.chargeTypeId,{price:e.unitPrice,id:e.id})})),t.$forceUpdate(),r.next=12;break;case 9:r.prev=9,r.t0=r["catch"](1),console.log(r.t0);case 12:case"end":return r.stop()}}),r,null,[[1,9]])})));return function(e){return r.apply(this,arguments)}}())},changeOrgan:function(e){var t=this;e&&this.$refs.ruleForm.validateField("courseType",function(){var r=Object(i["a"])(regeneratorRuntime.mark((function r(a){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!a)try{n=Object(s["D"])(e,t.createForm.courseType),n.data.forEach((function(e){t.createForm.unitPriceJson.hasOwnProperty(e.chargeTypeId)&&t.$set(t.createForm,unitPriceJson[e.chargeTypeId],e.unitPrice)}))}catch(i){console.log(i)}case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())}}},d=p,m=(r("dbcf"),r("2877")),f=Object(m["a"])(d,a,n,!1,null,"1db4bb4d",null);t["a"]=f.exports},d349:function(e,t,r){"use strict";r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return c})),r.d(t,"f",(function(){return p})),r.d(t,"c",(function(){return d})),r.d(t,"r",(function(){return m})),r.d(t,"G",(function(){return f})),r.d(t,"H",(function(){return b})),r.d(t,"I",(function(){return g})),r.d(t,"h",(function(){return h})),r.d(t,"l",(function(){return v})),r.d(t,"g",(function(){return y})),r.d(t,"m",(function(){return T})),r.d(t,"u",(function(){return I})),r.d(t,"s",(function(){return _})),r.d(t,"t",(function(){return O})),r.d(t,"i",(function(){return w})),r.d(t,"j",(function(){return S})),r.d(t,"k",(function(){return F})),r.d(t,"v",(function(){return x})),r.d(t,"J",(function(){return j})),r.d(t,"n",(function(){return L})),r.d(t,"w",(function(){return C})),r.d(t,"z",(function(){return k})),r.d(t,"x",(function(){return E})),r.d(t,"y",(function(){return R})),r.d(t,"q",(function(){return P})),r.d(t,"b",(function(){return $})),r.d(t,"F",(function(){return A})),r.d(t,"p",(function(){return N})),r.d(t,"E",(function(){return D})),r.d(t,"a",(function(){return M})),r.d(t,"o",(function(){return G})),r.d(t,"B",(function(){return z})),r.d(t,"A",(function(){return V})),r.d(t,"C",(function(){return q})),r.d(t,"D",(function(){return B}));var a=r("15fd"),n=r("b775"),i=r("829b"),o=r("4328"),l=r.n(o),s="/api-web";function u(e){return Object(n["a"])({url:s+"/organization/queryPage",method:"get",params:e})}function c(e){return Object(n["a"])({url:s+"/organization/add",method:"post",data:l.a.stringify(e)})}function p(e){return Object(n["a"])({url:s+"/organization/update",method:"post",data:l.a.stringify(e)})}function d(e){return Object(i["a"])({url:s+"/area/queryChild",method:"get",hideLoading:!0,params:e})}function m(e){return Object(n["a"])({url:s+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(n["a"])({url:s+"/subject/queryPageByIdOrName",method:"post",data:l.a.stringify(e)})}function b(e){return Object(n["a"])({url:s+"/subject/queryPageTree",method:"get",params:e})}function g(e){return Object(n["a"])({url:s+"/subject/upset",method:"post",data:e})}function h(e){return Object(n["a"])({url:s+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(n["a"])({url:s+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(n["a"])({url:s+"/chargeType/del/".concat(e),method:"post"})}function T(e){return Object(n["a"])({url:s+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function I(e){return Object(n["a"])({url:s+"/courseHomeworkTemplate/update",method:"post",data:l.a.stringify(e)})}function _(e){return Object(n["a"])({url:s+"/courseHomeworkTemplate/add",method:"post",data:l.a.stringify(e)})}function O(e){return Object(n["a"])({url:s+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function w(e){return Object(n["a"])({url:s+"/chargeTypeOrganizationFee/add",method:"post",data:l.a.stringify(e)})}function S(e){return Object(n["a"])({url:s+"/chargeTypeOrganizationFee/update",method:"post",data:l.a.stringify(e)})}function F(e){return Object(i["a"])({url:s+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function x(e){return Object(i["a"])({url:s+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function j(e){return Object(i["a"])({url:s+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function L(e){var t=e.id,r=Object(a["a"])(e,["id"]);return Object(i["a"])({url:s+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:r})}function C(e){return Object(i["a"])({url:s+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function k(e){return Object(i["a"])({url:s+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function E(e){return Object(i["a"])({url:s+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function R(e){return Object(i["a"])({url:s+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function P(e){return Object(i["a"])({url:s+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function $(e){return Object(i["a"])({url:s+"/organizationCourseUnitPriceSettings/save",method:"post",data:e})}function A(e){return Object(i["a"])({url:s+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function N(e){return Object(i["a"])({url:s+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function D(e){return Object(i["a"])({url:s+"/organizationCourseDurationSettings/update",method:"post",params:e})}function M(e){return Object(i["a"])({url:s+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function G(e){return Object(i["a"])({url:s+"/organizationCourseDurationSettings/del",method:"post",data:e})}function z(e){return Object(i["a"])({url:s+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function V(e){return Object(i["a"])({url:s+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function q(e){return Object(i["a"])({url:s+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}function B(e,t){return Object(i["a"])({url:s+"/organizationCourseUnitPriceSettings/querySingle/".concat(e,"/").concat(t),method:"get"})}},dbcf:function(e,t,r){"use strict";r("561b")},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):{}}},f946: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",[(e.tableList.length>0||e.pageInfo.page>1)&&e.contextFlag?r("div",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/upSet/createSet",expression:"'chargeType/upSet/createSet'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"name",label:"乐团收费类型"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/upSet/updateSet",expression:"'chargeType/upSet/updateSet'"}],attrs:{type:"text"},on:{click:function(r){return e.openTypes("update",t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/del",expression:"'chargeType/del'"}],attrs:{slot:"reference",type:"text"},on:{click:function(r){return e.onTypesDel(t.row)}},slot:"reference"},[e._v("删除")])]}}],null,!1,2463226918)})],1),e._v(" "),r("pagination",{attrs:{saveKey:"typesManager",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1):e._e(),e._v(" "),e.tableList.length>0||e.pageInfo.page>1||!e.contextFlag?e._e():r("emptyPage",{attrs:{title:"乐团收费类型设置",btnTitle:"新建乐团收费类型设置",context:e.context},on:{submit:function(t){return e.openTypes("create")}}}),e._v(" "),r("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.typeStatus,width:"500px"},on:{"update:visible":function(t){e.typeStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"乐团收费类型",prop:"name","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入收费类型",autocomplete:"off"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},n=[],i=(r("7f7f"),r("96cf"),r("1da1")),o=r("333d"),l=r("d349"),s=r("1062"),u={name:"typesManager",components:{pagination:o["a"],emptyPage:s["a"]},data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加乐团收费类型",update:"修改乐团收费类型"},typeStatus:!1,formLabelWidth:"120px",form:{name:null,description:null},rules:{name:[{required:!0,message:"请输入类型名称",trigger:"blur"}],description:[{required:!0,message:"请输入缴费名目",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},context:"系统支持创建多种乐团收费类型来区分不同运营模式的乐团,例如:单声部乐团、多声部乐团、课程免费团、课程收费团等。可根据不同的乐团收费类型设置不同的课程价格和收费标准。",contextFlag:!1}},mounted:function(){this.getList()},methods:{onTypesSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(l["l"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(l["l"])(t.form).then((function(e){t.messageTips("修改",e)}))}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(t.msg)},onTypesDel:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除此条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:Object(l["g"])(t.id).then((function(e){r.messageTips("删除",e)})),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),getList:function(){var e=this;Object(l["h"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(t){var r=t.data;200==t.code&&(e.contextFlag=!0,e.tableList=r.rows,e.pageInfo.total=r.total)}))},openTypes:function(e,t){var r=this;this.typeStatus=!0,this.formActionTitle=e,"update"==e&&this.$nextTick((function(){r.form={id:t.id,name:t.name,description:t.description}}))},onFormClose:function(e){this.form={name:null,description:null},this.$refs[e].resetFields()}}},c=u,p=(r("69a6"),r("2877")),d=Object(p["a"])(c,a,n,!1,null,"2657f5ae",null);t["default"]=d.exports},fefd:function(e,t,r){"use strict";r("8d75")}}]);