1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49311e0b","chunk-04468fc4"],{"09f4":function(e,r,t){"use strict";t.d(r,"a",(function(){return o})),Math.easeInOutQuad=function(e,r,t,a){return e/=a/2,e<1?t/2*e*e+r:(e--,-t/2*(e*(e-2)-1)+r)};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 l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,r,t){var o=l(),i=e-o,s=20,u=0;r="undefined"===typeof r?500:r;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,o,i,r);n(l),u<r?a(e):t&&"function"===typeof t&&t()};c()}},"4d16":function(e,r,t){"use strict";t("5f06")},"5f06":function(e,r,t){},"6cfe":function(e,r,t){"use strict";t.d(r,"f",(function(){return l})),t.d(r,"c",(function(){return o})),t.d(r,"b",(function(){return i})),t.d(r,"h",(function(){return s})),t.d(r,"g",(function(){return u})),t.d(r,"k",(function(){return c})),t.d(r,"a",(function(){return m})),t.d(r,"i",(function(){return d})),t.d(r,"j",(function(){return p})),t.d(r,"d",(function(){return f})),t.d(r,"e",(function(){return h}));var a=t("829b"),n=(t("4328"),"/api-web");function l(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(a["a"])({url:n+"/memberRankSetting/findByOrganIds?organFeeFlag="+r,method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/memberRankOrganizationFeeMapper/getMemberRankSetting",method:"post",data:e})}function i(e){return Object(a["a"])({url:n+"/memberRankSetting/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/memberRankSetting/queryPage",method:"post",data:e})}function u(e){return Object(a["a"])({url:n+"/memberRankSetting/get",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/memberRankSetting/update",method:"post",data:e})}function m(e){return Object(a["a"])({url:n+"/memberRankOrganizationFeeMapper/addV2",method:"post",data:e})}function d(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"})}function f(e){return Object(a["a"])({url:n+"/memberRankSetting/categoryTree",method:"get",params:e})}function h(e){return Object(a["a"])({url:n+"/memberRankSetting/del/"+e.id,method:"post"})}},"763e":function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"m-container"},[e._m(0),e._v(" "),(e.tableList.length>0||e.rules.page>1)&&e.contextFlag?t("div",{staticClass:"m-core"},[t("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"memberFeeSet",model:e.searchForm},on:{submit:e.search,reset:e.onReSet,"update:model":function(r){e.searchForm=r}}},[t("el-form-item",{attrs:{prop:"search"}},[t("el-input",{attrs:{clearable:"",placeholder:"学练宝名称"},model:{value:e.searchForm.search,callback:function(r){e.$set(e.searchForm,"search","string"===typeof r?r.trim():r)},expression:"searchForm.search"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"organId"}},[t("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(r){e.$set(e.searchForm,"organId","string"===typeof r?r.trim():r)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,r){return t("el-option",{key:r,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),t("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"memberRankOrganizationFeeMapper/add",expression:"'memberRankOrganizationFeeMapper/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.addFee}},[e._v("新增收费标准")]),e._v(" "),t("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[t("el-table-column",{attrs:{align:"left",prop:"organName",label:"分部"}}),e._v(" "),t("el-table-column",{attrs:{align:"left",prop:"rankName",label:"学练宝名称",width:"120px"}}),e._v(" "),t("el-table-column",{attrs:{align:"left",prop:"type",label:"月收费"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[t("p",[e._v("\n 团购:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.groupPurchaseMonthFee))+"\n ")]),e._v(" "),t("p",[e._v("\n 原价:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.originalMonthFee))+"\n ")]),e._v(" "),t("div",[e._v("经营报表")]),e._v(" "),t("div",[e._v("\n 确认收入:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.incomeMonthFee))+"\n ")])])]}}],null,!1,3333388422)}),e._v(" "),t("el-table-column",{attrs:{align:"left",prop:"type",label:"季度收费"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[t("p",[e._v("\n 团购:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.groupPurchaseQuarterlyFee))+"\n ")]),e._v(" "),t("p",[e._v("\n 原价:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.originalQuarterlyFee))+"\n ")]),e._v(" "),t("div",[e._v("经营报表")]),e._v(" "),t("div",[e._v("\n 确认收入:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.incomeQuarterlyFee))+"\n ")])])]}}],null,!1,886951319)}),e._v(" "),t("el-table-column",{attrs:{align:"left",prop:"type",label:"半年收费"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[t("p",[e._v("\n 团购:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.groupPurchaseHalfYearFee))+"\n ")]),e._v(" "),t("p",[e._v("\n 原价:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.originalHalfYearFee))+"\n ")]),e._v(" "),t("div",[e._v("经营报表")]),e._v(" "),t("div",[e._v("\n 确认收入:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.incomeHalfYearFee))+"\n ")])])]}}],null,!1,1588637402)}),e._v(" "),t("el-table-column",{attrs:{align:"left",prop:"type",label:"年收费"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[t("p",[e._v("\n 团购:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.groupPurchaseYearFee))+"\n ")]),e._v(" "),t("p",[e._v("\n 原价:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.originalYearFee))+"\n ")]),e._v(" "),t("div",[e._v("经营报表")]),e._v(" "),t("div",[e._v("\n 确认收入:\n "+e._s(e._f("hasMoneyFormat")(r.row.memberFeeSetting.incomeYearFee))+"\n ")])])]}}],null,!1,1348315225)}),e._v(" "),t("el-table-column",{attrs:{width:"105px",prop:"updateTime",label:"修改时间"}}),e._v(" "),t("el-table-column",{attrs:{prop:"operatorName",label:"修改人",width:"80px"}}),e._v(" "),t("el-table-column",{attrs:{align:"center",label:"操作",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[t("auth",{attrs:{auths:"memberRankOrganizationFeeMapper/get"}},[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.resetFee(r.row,"look")}}},[e._v("详情")])],1),e._v(" "),t("auth",{attrs:{auths:"memberRankOrganizationFeeMapper/update"}},[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.resetFee(r.row,"update")}}},[e._v("修改")])],1)],1)]}}],null,!1,956848484)})],1),e._v(" "),t("pagination",{attrs:{"save-key":"memberFeeSet",total:e.rules.total,sync:"",page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(r){return e.$set(e.rules,"total",r)},"update:page":function(r){return e.$set(e.rules,"page",r)},"update:limit":function(r){return e.$set(e.rules,"limit",r)},pagination:e.getList}})],1):e._e(),e._v(" "),e.tableList.length>0||e.rules.page>1||!e.contextFlag?e._e():t("emptyPage",{attrs:{title:"学练宝收费标准",btnTitle:"新建学练宝收费标准",context:e.context},on:{submit:e.addFee}}),e._v(" "),e.branchStatus?t("el-dialog",{staticClass:"dialog",attrs:{title:e.title,top:"12vh","close-on-click-modal":!1,visible:e.branchStatus,"default-expand-all":"",width:"820px"},on:{"update:visible":function(r){e.branchStatus=r},close:function(r){return e.onFormClose("ruleForm")}}},[t("el-form",{ref:"ruleForm",staticClass:"elForm",attrs:{model:e.form,"label-position":"top"}},[t("div",{staticClass:"wrap"},[t("el-form-item",{attrs:{label:"所属分部",prop:"organIds",rules:[{required:!0,message:"请选择分部"}],"label-width":e.formLabelWidth}},[t("el-select",{staticClass:"multiple",attrs:{disabled:e.addDisabled||"update"===e.pageType,filterable:"",clearable:"",multiple:"","collapse-tags":!0,placeholder:"请选择分部"},on:{change:e.getAllMember},model:{value:e.form.organIds,callback:function(r){e.$set(e.form,"organIds","string"===typeof r?r.trim():r)},expression:"form.organIds"}},e._l(e.selects.branchs,(function(e,r){return t("el-option",{key:r,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"学练宝版本",prop:"memberRankSettingId",rules:[{required:!0,message:"请选择学练宝版本"}],"label-width":e.formLabelWidth}},[t("el-cascader",{attrs:{filterable:"",clearable:"",placeholder:"请选择学练宝版本",disabled:e.addDisabled,options:e.remberList,props:{value:"id",label:"name"}},model:{value:e.form.memberRankSettingId,callback:function(r){e.$set(e.form,"memberRankSettingId","string"===typeof r?r.trim():r)},expression:"form.memberRankSettingId"}})],1)],1),e._v(" "),t("div",{staticClass:"lineTitle"},[e._v("月度收费")]),e._v(" "),t("div",{staticClass:"wrap"},[t("el-form-item",{attrs:{prop:"groupPurchaseMonthFee",label:"团购价",rules:[{required:!0,message:"请输入月收费团购价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateMonth,trigger:"blur"}],"label-width":e.formLabelWidth,placeholder:e.monthRule}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.monthRule},model:{value:e.form.groupPurchaseMonthFee,callback:function(r){e.$set(e.form,"groupPurchaseMonthFee",r)},expression:"form.groupPurchaseMonthFee"}},[t("template",{slot:"append"},[e._v("元/月")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"currentMonthFee",label:"零售价",rules:[{required:!0,message:"请输入月收费零售价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateMonth,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.monthRule},model:{value:e.form.currentMonthFee,callback:function(r){e.$set(e.form,"currentMonthFee",r)},expression:"form.currentMonthFee"}},[t("template",{slot:"append"},[e._v("元/月")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"originalMonthFee",label:"原价",rules:[{required:!0,message:"请输入月收费原价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateMonth,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.monthRule},model:{value:e.form.originalMonthFee,callback:function(r){e.$set(e.form,"originalMonthFee",r)},expression:"form.originalMonthFee"}},[t("template",{slot:"append"},[e._v("元/月")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"incomeMonthFee",label:"经营报表确认收入",rules:[{required:!0,message:"请输入月度经营报表确认收入"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateMonthIncome,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.monthRuleIncome},model:{value:e.form.incomeMonthFee,callback:function(r){e.$set(e.form,"incomeMonthFee",r)},expression:"form.incomeMonthFee"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),t("div",{staticClass:"lineTitle"},[e._v("季度收费")]),e._v(" "),t("div",{staticClass:"wrap"},[t("el-form-item",{attrs:{prop:"groupPurchaseQuarterlyFee",label:"团购价",rules:[{required:!0,message:"请输入季度收费团购价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateQuarterly,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.quarterlyRule},model:{value:e.form.groupPurchaseQuarterlyFee,callback:function(r){e.$set(e.form,"groupPurchaseQuarterlyFee",r)},expression:"form.groupPurchaseQuarterlyFee"}},[t("template",{slot:"append"},[e._v("元/季度")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"currentQuarterlyFee",label:"零售价",rules:[{required:!0,message:"请输入季度收费零售价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateQuarterly,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.quarterlyRule},model:{value:e.form.currentQuarterlyFee,callback:function(r){e.$set(e.form,"currentQuarterlyFee",r)},expression:"form.currentQuarterlyFee"}},[t("template",{slot:"append"},[e._v("元/季度")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"originalQuarterlyFee",label:"原价",rules:[{required:!0,message:"请输入季度收费原价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateQuarterly,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.quarterlyRule},model:{value:e.form.originalQuarterlyFee,callback:function(r){e.$set(e.form,"originalQuarterlyFee",r)},expression:"form.originalQuarterlyFee"}},[t("template",{slot:"append"},[e._v("元/季度")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"incomeQuarterlyFee",label:"经营报表确认收入",rules:[{required:!0,message:"请输入季度经营报表确认收入"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateQuarterlyIncome,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.quarterlyRuleIncome},model:{value:e.form.incomeQuarterlyFee,callback:function(r){e.$set(e.form,"incomeQuarterlyFee",r)},expression:"form.incomeQuarterlyFee"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),t("div",{staticClass:"lineTitle"},[e._v("半年收费")]),e._v(" "),t("div",{staticClass:"wrap"},[t("el-form-item",{attrs:{prop:"groupPurchaseHalfYearFee",label:"半年收费团购价",rules:[{required:!0,message:"请输入半年收费团购价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateHalfYear,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.halfYearRule},model:{value:e.form.groupPurchaseHalfYearFee,callback:function(r){e.$set(e.form,"groupPurchaseHalfYearFee",r)},expression:"form.groupPurchaseHalfYearFee"}},[t("template",{slot:"append"},[e._v("元/半年")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"currentHalfYearFee",label:"半年收费零售价",rules:[{required:!0,message:"请输入半年收费零售价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateHalfYear,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.halfYearRule},model:{value:e.form.currentHalfYearFee,callback:function(r){e.$set(e.form,"currentHalfYearFee",r)},expression:"form.currentHalfYearFee"}},[t("template",{slot:"append"},[e._v("元/半年")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"originalHalfYearFee",label:"半年收费原价",rules:[{required:!0,message:"请输入半年收费原价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateHalfYear,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.halfYearRule},model:{value:e.form.originalHalfYearFee,callback:function(r){e.$set(e.form,"originalHalfYearFee",r)},expression:"form.originalHalfYearFee"}},[t("template",{slot:"append"},[e._v("元/半年")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"incomeHalfYearFee",label:"经营报表确认收入",rules:[{required:!0,message:"请输入半年经营报表确认收入"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateHalfYearIncome,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.halfYearRuleIncome},model:{value:e.form.incomeHalfYearFee,callback:function(r){e.$set(e.form,"incomeHalfYearFee",r)},expression:"form.incomeHalfYearFee"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),t("div",{staticClass:"lineTitle"},[e._v("年度收费")]),e._v(" "),t("div",{staticClass:"wrap"},[t("el-form-item",{attrs:{prop:"groupPurchaseYearFee",label:"年收费团购价",rules:[{required:!0,message:"请输入年收费团购价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateYear,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.yearRule},model:{value:e.form.groupPurchaseYearFee,callback:function(r){e.$set(e.form,"groupPurchaseYearFee",r)},expression:"form.groupPurchaseYearFee"}},[t("template",{slot:"append"},[e._v("元/年")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"currentYearFee",label:"年收费零售价",rules:[{required:!0,message:"请输入年收费零售价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateYear,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.yearRule},model:{value:e.form.currentYearFee,callback:function(r){e.$set(e.form,"currentYearFee",r)},expression:"form.currentYearFee"}},[t("template",{slot:"append"},[e._v("元/年")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"originalYearFee",label:"年收费原价",rules:[{required:!0,message:"请输入年收费原价"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateYear,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.yearRule},model:{value:e.form.originalYearFee,callback:function(r){e.$set(e.form,"originalYearFee",r)},expression:"form.originalYearFee"}},[t("template",{slot:"append"},[e._v("元/年")])],2)],1),e._v(" "),t("el-form-item",{attrs:{prop:"incomeYearFee",label:"经营报表确认收入",rules:[{required:!0,message:"请输入年度经营报表确认收入"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"},{validator:e.validateYearIncome,trigger:"blur"}],"label-width":e.formLabelWidth}},[t("el-input",{attrs:{disabled:e.addDisabled,placeholder:e.yearRuleIncome},model:{value:e.form.incomeYearFee,callback:function(r){e.$set(e.form,"incomeYearFee",r)},expression:"form.incomeYearFee"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1)]),e._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.addDisabled?e._e():t("el-button",{on:{click:function(r){e.branchStatus=!1}}},[e._v("取 消")]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1):e._e()],1)},n=[function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("h2",[t("div",{staticClass:"squrt"}),e._v("\n 学练宝收费标准\n ")])}],l=(t("c5f6"),t("6762"),t("2fdb"),t("2909")),o=t("b85c"),i=t("5530"),s=(t("386d"),t("ac6a"),t("c7eb")),u=(t("96cf"),t("1da1")),c=t("6cfe"),m=t("a6e9"),d=t("333d"),p=t("1062"),f={components:{pagination:d["a"],emptyPage:p["a"]},name:"memberFeeSet",data:function(){return{searchForm:{search:null,organId:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[],addDisabled:!1,title:"新增收费标准",pageType:"create",formLabelWidth:"120px",form:{currentDayFee:"",currentHalfYearFee:"",currentMonthFee:"",currentYearFee:"",originalDayFee:"",originalHalfYearFee:"",originalMonthFee:"",originalYearFee:"",groupPurchaseDayFee:"",groupPurchaseHalfYearFee:"",groupPurchaseMonthFee:"",groupPurchaseQuarterlyFee:"",groupPurchaseYearFee:"",organIds:[],memberRankSettingId:[],incomeMonthFee:"",incomeQuarterlyFee:"",incomeHalfYearFee:"",incomeYearFee:""},branchStatus:!1,remberList:[],rulesForm:{minMonthFee:null,maxMonthFee:null,minQuarterlyFee:null,maxQuarterlyFee:null,minHalfYearFee:null,maxHalfYearFee:null,minYearFee:null,maxYearFee:null},context:"学练宝收费标准,可根据各分部的实际情况为分部制定不同的售价标准,设置完成后,各分部为学员创建学练宝缴费时默认以此处设置的价格向学员收费。",contextFlag:!1}},mounted:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getList(),this.getRules();case 4:case"end":return e.stop()}}),e,this)})));function r(){return e.apply(this,arguments)}return r}(),methods:{getAllMember:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){var r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["c"])({organIds:this.form.organIds.join(","),id:this.form.outId});case 3:r=e.sent,this.remberList=r.data,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function r(){return e.apply(this,arguments)}return r}(),getRules:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){var r,t,a=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["a"])({group:"DEFAULT"});case 3:r=e.sent,t="cloud_price_range",r.data.forEach((function(e){if(e.paramName==t){var r=e.paranValue?JSON.parse(e.paranValue):null;r&&(a.rulesForm=r)}})),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));function r(){return e.apply(this,arguments)}return r}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},getList:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){var r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["i"])(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{rows:this.rules.limit,page:this.rules.page}));case 3:r=e.sent,this.contextFlag=!0,this.tableList=r.data.rows,this.rules.total=r.data.total,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 r(){return e.apply(this,arguments)}return r}(),onFormClose:function(e){this.form={currentDayFee:"",currentHalfYearFee:"",currentMonthFee:"",currentYearFee:"",originalDayFee:"",originalHalfYearFee:"",originalMonthFee:"",originalYearFee:"",incomeMonthFee:"",incomeQuarterlyFee:"",incomeHalfYearFee:"",incomeYearFee:"",organIds:[],memberRankSettingId:[]},this.$refs[e].resetFields()},addFee:function(){this.title="新增收费标准",this.addDisabled=!1,this.form.outId=null,this.pageType="create",this.branchStatus=!0},resetFee:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(r,t){var a,n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(n in"update"==t?(this.title="修改收费标准",this.pageType="update",this.addDisabled=!1):(this.addDisabled=!0,this.title="查看收费标准",this.pageType="look"),a={},r.memberFeeSetting)r.memberFeeSetting,r.memberFeeSetting[n]&&(a[n]=r.memberFeeSetting[n]);return this.form.outId=r.id,this.form.organIds=r.organId?[r.organId]:[],e.next=7,this.getAllMember();case 7:this.form=Object(i["a"])(Object(i["a"])({},a),{},{organIds:r.organId?[r.organId]:[],outId:r.id,memberRankSettingId:r.memberRankSettingId?this.formatParentId(r.memberRankSettingId,this.remberList):[]}),this.branchStatus=!0;case 9:case"end":return e.stop()}}),e,this)})));function r(r,t){return e.apply(this,arguments)}return r}(),formatParentId:function(e,r){var t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Object(o["a"])(r);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.children){var s=this.formatParentId(e,i.children,[].concat(Object(l["a"])(a),[i.id]));if(s.includes(e))return s}if(i.id===e)return[].concat(Object(l["a"])(a),[e])}}catch(u){n.e(u)}finally{n.f()}return a},onSubmit:function(){var e=this;"look"!=this.pageType?(console.log(this.form),this.$refs.ruleForm.validate(function(){var r=Object(u["a"])(Object(s["a"])().mark((function r(t){var a;return Object(s["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!t){r.next=27;break}if(a=e.form.memberRankSettingId.length>0?e.form.memberRankSettingId[e.form.memberRankSettingId.length-1]:null,"update"!=e.pageType){r.next=16;break}return r.prev=3,r.next=6,Object(c["j"])({memberFeeSetting:Object(i["a"])({},e.form),organId:e.form.organIds.join(","),memberRankSettingId:a,id:e.form.outId});case 6:e.$message.success("修改成功"),e.branchStatus=!1,e.getList(),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](3),console.log(r.t0);case 14:r.next=27;break;case 16:if("create"!=e.pageType){r.next=27;break}return r.prev=17,r.next=20,Object(c["a"])({memberFeeSetting:Object(i["a"])({},e.form),organIds:e.form.organIds.join(","),memberRankSettingId:a});case 20:e.$message.success("新建成功"),e.branchStatus=!1,e.getList(),r.next=27;break;case 25:r.prev=25,r.t1=r["catch"](17);case 27:case"end":return r.stop()}}),r,null,[[3,11],[17,25]])})));return function(e){return r.apply(this,arguments)}}())):this.branchStatus=!1},validateMonthIncome:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minMonthFee),l=this.form.groupPurchaseMonthFee?Number(this.form.groupPurchaseMonthFee):Number(this.rulesForm.maxMonthFee);return a>=n&&a<=l?t():t(new Error("月度经营报表应在".concat(n,"-").concat(l,"之间")))},validateMonth:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minMonthFee),l=Number(this.rulesForm.maxMonthFee);return a>=n&&a<=l?t():t(new Error("月度学练宝定价应在".concat(n,"-").concat(l,"之间")))},validateQuarterlyIncome:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minQuarterlyFee),l=this.form.groupPurchaseQuarterlyFee?Number(this.form.groupPurchaseQuarterlyFee):Number(this.rulesForm.maxQuarterlyFee);return a>=n&&a<=l?t():t(new Error("季度经营报表应在".concat(n,"-").concat(l,"之间")))},validateQuarterly:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minQuarterlyFee),l=Number(this.rulesForm.maxQuarterlyFee);return a>=n&&a<=l?t():t(new Error("季度学练宝定价应在".concat(n,"-").concat(l,"之间")))},validateHalfYearIncome:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minHalfYearFee),l=this.form.groupPurchaseHalfYearFee?Number(this.form.groupPurchaseHalfYearFee):Number(this.rulesForm.maxHalfYearFee);return a>=n&&a<=l?t():t(new Error("半年经营报表应在".concat(n,"-").concat(l,"之间")))},validateHalfYear:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minHalfYearFee),l=Number(this.rulesForm.maxHalfYearFee);return a>=n&&a<=l?t():t(new Error("半年学练宝定价应在".concat(n,"-").concat(l,"之间")))},validateYearIncome:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minYearFee),l=this.form.groupPurchaseYearFee?Number(this.form.groupPurchaseYearFee):Number(this.rulesForm.maxYearFee);return a>=n&&a<=l?t():t(new Error("年度经营报表应在".concat(n,"-").concat(l,"之间")))},validateYear:function(e,r,t){var a=Number(r),n=Number(this.rulesForm.minYearFee),l=Number(this.rulesForm.maxYearFee);return a>=n&&a<=l?t():t(new Error("年度学练宝定价应在".concat(n,"-").concat(l,"之间")))}},watch:{branchStatus:function(e){e||this.onFormClose("ruleForm")}},computed:{monthRuleIncome:function(){return"".concat(this.rulesForm.minMonthFee,"-").concat(this.form.groupPurchaseMonthFee?this.form.groupPurchaseMonthFee:this.rulesForm.maxMonthFee)},monthRule:function(){return"".concat(this.rulesForm.minMonthFee,"-").concat(this.rulesForm.maxMonthFee)},quarterlyRuleIncome:function(){return"".concat(this.rulesForm.minQuarterlyFee,"-").concat(this.form.groupPurchaseQuarterlyFee?this.form.groupPurchaseQuarterlyFee:this.rulesForm.maxQuarterlyFee)},quarterlyRule:function(){return"".concat(this.rulesForm.minQuarterlyFee,"-").concat(this.rulesForm.maxQuarterlyFee)},halfYearRuleIncome:function(){return"".concat(this.rulesForm.minHalfYearFee,"-").concat(this.form.groupPurchaseHalfYearFee?this.form.groupPurchaseHalfYearFee:this.rulesForm.maxHalfYearFee)},halfYearRule:function(){return"".concat(this.rulesForm.minHalfYearFee,"-").concat(this.rulesForm.maxHalfYearFee)},yearRuleIncome:function(){return"".concat(this.rulesForm.minYearFee,"-").concat(this.form.groupPurchaseYearFee?this.form.groupPurchaseYearFee:this.rulesForm.maxYearFee)},yearRule:function(){return"".concat(this.rulesForm.minYearFee,"-").concat(this.rulesForm.maxYearFee)}}},h=f,b=(t("4d16"),t("2877")),g=Object(b["a"])(h,a,n,!1,null,"6033476c",null);r["default"]=g.exports},a6e9:function(e,r,t){"use strict";t.d(r,"a",(function(){return l})),t.d(r,"b",(function(){return o}));var a=t("b775"),n=(t("4328"),"/api-web");function l(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"}})}}}]);
|