chunk-364ab63c.c4586893.js 45 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-364ab63c"],{"099d":function(e,t,r){"use strict";r("234c")},"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),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 o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=o(),s=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var o=Math.easeInOutQuad(u,i,s,t);n(o),u<t?a(e):r&&"function"===typeof r&&r()};c()}},"234c":function(e,t,r){},"27b0":function(e,t,r){},"31f3":function(e,t,r){},"44c9":function(e,t,r){},"78be":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permissionList.share?r("el-tab-pane",{attrs:{lazy:"",label:"分润",name:"0"}},[0==e.activeIndex?r("three"):e._e()],1):e._e(),e._v(" "),e.permissionList.scalc?r("el-tab-pane",{attrs:{lazy:"",label:"比例",name:"1"}},[1==e.activeIndex?r("one"):e._e()],1):e._e(),e._v(" "),e.permissionList.money?r("el-tab-pane",{attrs:{lazy:"",label:"金额",name:"2"}},[2==e.activeIndex?r("two"):e._e()],1):e._e(),e._v(" "),e.permissionList.shop?r("el-tab-pane",{attrs:{lazy:"",label:"商品",name:"3"}},[3==e.activeIndex?r("four"):e._e()],1):e._e()],1)],1)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 收费管理\n ")])}],o=(r("7f7f"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("div",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/add",expression:"'paymentConfig/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.chargeOperation("create")}}},[e._v("\n 添加\n ")]),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:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"收款方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("paymentChannelStatus")(t.row.payType)))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"账户类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("accountTypeFormat")(t.row.accountType)))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"hfMerNo",label:"汇付商户号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"yqMerNo",label:"双乾商户号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"收款比例"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.type?"笔数比例":null)+"\n "+e._s(2==t.row.type?"金额比例":null)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/update",expression:"'paymentConfig/update'"}],attrs:{type:"text"},on:{click:function(r){return e.chargeOperation("update",t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"","save-key":"chargeManager-one",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.chargeStatus,width:"700px"},on:{"update:visible":function(t){e.chargeStatus=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:"organId","label-width":e.formLabelWidth}},[r("el-select",{attrs:{filterable:"",disabled:"update"===e.formActionTitle,placeholder:"请选择所属分部"},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.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:"收款方式",prop:"payType","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择收款方式"},on:{change:e.onPayTypeChange},model:{value:e.form.payType,callback:function(t){e.$set(e.form,"payType","string"===typeof t?t.trim():t)},expression:"form.payType"}},[r("el-option",{attrs:{value:"ADAPAY",label:"汇付"}}),e._v(" "),r("el-option",{attrs:{value:"YQPAY",label:"双乾"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"账户类型",prop:"accountType","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择账户类型"},model:{value:e.form.accountType,callback:function(t){e.$set(e.form,"accountType","string"===typeof t?t.trim():t)},expression:"form.accountType"}},[r("el-option",{attrs:{value:0,label:"对内"}}),e._v(" "),r("el-option",{attrs:{value:1,label:"对外"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"双乾商户号",required:"YQPAY"===e.form.payType,"label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"text",placeholder:"请输入双乾商户号"},on:{blur:function(t){return e.onMerNoBlur("YQPAY")}},model:{value:e.form.yqMerNo,callback:function(t){e.$set(e.form,"yqMerNo","string"===typeof t?t.trim():t)},expression:"form.yqMerNo"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"汇付商户号",required:"ADAPAY"===e.form.payType,"label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"text",placeholder:"请输入汇付商户号"},on:{blur:function(t){return e.onMerNoBlur("ADAPAY")}},model:{value:e.form.hfMerNo,callback:function(t){e.$set(e.form,"hfMerNo","string"===typeof t?t.trim():t)},expression:"form.hfMerNo"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收费比例",required:"","label-width":e.formLabelWidth}},[r("el-radio",{attrs:{label:2},on:{change:function(t){return e.onRadioChange("ruleForm")}},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",e._n("string"===typeof t?t.trim():t))},expression:"form.type"}},[e._v("金额比例")]),e._v(" "),r("el-radio",{attrs:{label:1},on:{change:function(t){return e.onRadioChange("ruleForm")}},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",e._n("string"===typeof t?t.trim():t))},expression:"form.type"}},[e._v("笔数比例")])],1),e._v(" "),r("el-form-item",{staticClass:"moreRule",staticStyle:{"margin-bottom":"0"},attrs:{"label-width":e.formLabelWidth}},[r("span",{staticClass:"min"},[e._v("分部")]),e._v(" "),r("span",{staticClass:"min"},[e._v("比例")])]),e._v(" "),r("div",{staticClass:"moreRule"},[e._l(e.result.domains,(function(t,a){return r("div",{key:t.key,staticClass:"moreRuleIn"},[r("el-form-item",{staticClass:"setWidth",attrs:{label:"第"+(a+1),"label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},model:{value:t.organId,callback:function(r){e.$set(t,"organId","string"===typeof r?r.trim():r)},expression:"domain.organId"}},e._l(e.calcBranchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1),e._v(" "),r("el-form-item",{staticClass:"setWidth"},[r("el-input",{directives:[{name:"number",rawName:"v-number"}],attrs:{type:"number",min:"0",clearable:"",max:1===e.form.type?10:100,placeholder:"请输入比例"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:t.scale,callback:function(r){e.$set(t,"scale","string"===typeof r?r.trim():r)},expression:"domain.scale"}},[2===e.form.type?r("template",{slot:"append"},[e._v("%")]):e._e()],2)],1),e._v(" "),r("el-form-item",[0!=a?r("el-button",{on:{click:function(r){return r.preventDefault(),e.removeDomain(e.result,t)}}},[e._v("删除")]):e._e()],1)],1)})),e._v(" "),e.result.errorText?r("div",{staticClass:"el-form-item__error"},[e._v(e._s(e.result.errorText))]):e._e()],2),e._v(" "),r("el-form-item",{staticClass:"add",attrs:{"label-width":e.formLabelWidth}},[r("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.addDomain(e.result)}}},[e._v("新增")])],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.chargeStatus=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onChargeSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)}),i=[],s=(r("c5f6"),r("ac6a"),r("96cf"),r("1da1")),l=r("333d"),u=r("99b4"),c=r("a2be"),d=(r("4360"),{name:"chargeProfitManager",components:{pagination:l["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},chargeStatus:!1,calcBranchList:[],formActionTitle:"create",formLabelWidth:"100px",formTitle:{create:"添加收费比例",update:"修改收费比例"},form:{organId:null,hfMerNo:null,yqMerNo:null,payType:null,accountType:null,type:2,routeScale:[]},rules:{hfMerNo:[{required:!0,message:"请输入汇付商户号",trigger:"blur"}],yqMerNo:[{required:!0,message:"请输入双乾商户号",trigger:"blur"}],organId:[{required:!0,message:"请选择所属分部",trigger:"change"}],payType:[{required:!0,message:"请选择收款方式",trigger:"change"}],accountType:[{required:!0,message:"请选择账户类型",trigger:"change"}]},result:{domains:[{organId:null,scale:null,disabled:!1,key:Date.now()}],errorText:null,yqError:null,hfError:null}}},mounted:function(){this.getList(),this.getRoleList()},methods:{onPayTypeChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return this.calcBranchList=[],this.result.domains=[{organId:null,scale:null,disabled:!1,key:Date.now()}],this.result.errorText=null,e.next=7,Object(c["c"])({payType:t}).then((function(e){200==e.code&&e.data&&e.data.forEach((function(e){r.calcBranchList.push({label:e.organName,value:e.organId})}))}));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onRadioChange:function(e){this.$refs[e].clearValidate()},onMerNoBlur:function(e){var t=this.form,r=this.result;"YQPAY"===e&&"YQPAY"===t.payType?t.yqMerNo?r.yqError=null:r.yqError="请输入双乾商户号":"ADAPAY"===e&&"ADAPAY"===t.payType&&(t.hfMerNo?r.hfError=null:r.hfError="请输入汇付商户号")},onChargeSubmit:function(e){var t=this;this.$refs[e].validate((function(e){var r=JSON.parse(JSON.stringify(t.form)),a=t.result;if(r.routeScale=null,t.addDomain(a,!0),e&&!a.errorText){var n=[];a.domains.forEach((function(e){e.organId&&n.push({organId:e.organId,scale:e.scale})})),r.routeScale=n.length>0?JSON.stringify(n):null,"YQPAY"!==r.payType||r.yqMerNo||r.routeScale?"ADAPAY"!==r.payType||r.hfMerNo||r.routeScale?"create"==t.formActionTitle?(r.id&&delete r.id,Object(u["A"])(r).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(u["D"])(r).then((function(e){t.messageTips("修改",e)})):t.$message.error("请输入汇付商户号或比例"):t.$message.error("请输入双乾商户号或比例")}}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(t.msg)},addDomain:function(e,t){var r=e.domains,a=this.form,n=r.length,o=r[n-1];if(o.organId||o.scale||!t){var i=0;2===a.type?i=100:1===a.type&&(i=10);var s=0,l=!1,u=!1;if(r.forEach((function(e){s+=Number(e.scale),l||(l=!e.organId),u||(u=!e.scale)})),o.organId)if(parseInt(o.scale))if(parseInt(o.scale)>i)e.errorText="比例不能超过"+i;else if(parseInt(s)>i)e.errorText="比例总和应为"+i;else if(e.errorText=null,t){if(l)return void(e.errorText="选择分部不能为空");if(u)return void(e.errorText="比例不能为空");if(parseInt(s)!=i)return void(e.errorText="比例总和应为"+i)}else o.disabled=!0,r.push({organId:null,scale:null,disabled:!1,key:Date.now()});else e.errorText="比例不能为空";else e.errorText="选择分部不能为空"}else e.errorText=""},removeDomain:function(e,t){var r=e.domains.indexOf(t);-1!==r&&(e.domains.splice(r,1),e.domains[e.domains.length-1].disabled=!1,e.errorText=null)},getList:function(){var e=this,t={};t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(u["C"])(t).then((function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},getRoleList:function(){this.$store.dispatch("setBranchs")},chargeOperation:function(e,t){var r=this;if(this.formActionTitle=e,this.chargeStatus=!0,"update"==e&&(this.onPayTypeChange(t.payType),this.form={id:t.id,type:Number(t.type),hfMerNo:t.hfMerNo,accountType:t.accountType,yqMerNo:t.yqMerNo,payType:t.payType,organId:t.organId},t.routeScale)){this.result.domains=[];var a=JSON.parse(t.routeScale),n=a.length;a.forEach((function(e,t){var a={};a.disabled=n!=t+1,a.organId=e.organId,a.scale=e.scale,r.result.domains.push(a)}))}},chargeDel:function(e){var t=this;this.$confirm("你确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["B"])({id:e.id}).then((function(e){t.messageTips("删除",e)}))})).catch()},onFormClose:function(e){this.form={organId:null,hfMerNo:null,yqMerNo:null,accountType:null,payType:null,type:2,routeScale:[]},this.result={domains:[{organId:null,scale:null,disabled:!1,key:Date.now()}],errorText:null,yqError:null,hfError:null},this.$refs[e].resetFields()}}}),p=d,f=(r("7e91"),r("2877")),m=Object(f["a"])(p,o,i,!1,null,"26a5f074",null),g=m.exports,h=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("div",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update/setting",expression:"'sysConfig/update/setting'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){e.sporadicStatus=!0}}},[e._v("\n 零星收费设置\n ")]),e._v(" "),r("p",{staticStyle:{color:"red",display:"inline-block","padding-left":"10px"}},[e._v("金额设置0则不做限制")]),e._v(" "),r("el-form",{ref:"ruleFormValid",attrs:{model:e.result}},[r("el-form-item",{staticClass:"moreRule",staticStyle:{"margin-bottom":"0"},attrs:{"label-width":e.formLabelWidth}},[r("span",{staticClass:"min"},[e._v("分部")]),e._v(" "),r("span",{staticClass:"min"},[e._v("收款分部")]),e._v(" "),r("span",{staticClass:"min"},[e._v("金额")]),e._v(" "),r("span",{staticClass:"max"},[e._v("购买类型")])]),e._v(" "),r("div",{staticClass:"moreRule"},e._l(e.result.domains,(function(t,a){return r("div",{key:a,staticClass:"moreRuleIn"},[r("el-form-item",{staticClass:"setWidth",attrs:{"label-width":e.formLabelWidth,label:"第"+(a+1),prop:"domains."+a+".organId",rules:{required:!0,message:"请选择所属分部",trigger:"change"}}},[r("el-select",{attrs:{clearable:"",filterable:"",disabled:t.disabled,placeholder:"请选择所属分部"},model:{value:t.organId,callback:function(r){e.$set(t,"organId","string"===typeof r?r.trim():r)},expression:"domain.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",{staticClass:"setWidth",attrs:{prop:"domains."+a+".routeOrganId",rules:[{required:!0,message:"请选择收款分部",trigger:"change"}]}},[r("el-select",{attrs:{clearable:"",filterable:"",disabled:t.disabled,placeholder:"请选择收款分部"},model:{value:t.routeOrganId,callback:function(r){e.$set(t,"routeOrganId","string"===typeof r?r.trim():r)},expression:"domain.routeOrganId"}},e._l(e.calcBranchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{staticClass:"setWidth",attrs:{prop:"domains."+a+".amount",rules:e.validAmount}},[r("el-input",{attrs:{type:"age",clearable:"",placeholder:"请输入比例",disabled:t.disabled},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:t.amount,callback:function(r){e.$set(t,"amount",e._n(r))},expression:"domain.amount"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"domains."+a+".type",rules:[{required:!0,message:"请选择购买类型",trigger:"change"}]}},[r("el-select",{staticStyle:{width:"180px !important"},attrs:{clearable:"",placeholder:"购买类型",disabled:t.disabled},model:{value:t.type,callback:function(r){e.$set(t,"type","string"===typeof r?r.trim():r)},expression:"domain.type"}},[r("el-option",{attrs:{value:"vipBuy",label:"VIP课"}}),e._v(" "),r("el-option",{attrs:{value:"practiceBuy",label:"网管课"}}),e._v(" "),r("el-option",{attrs:{value:"musicGroupBuy",label:"乐团课"}})],1)],1),e._v(" "),r("el-form-item",[0==a||t.disabled?e._e():r("el-button",{on:{click:function(r){return r.preventDefault(),e.removeDomain(e.result,t)}}},[e._v("删除")])],1)],1)})),0),e._v(" "),r("el-form-item",{staticClass:"add"},[r("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.addDomain(e.result)}}},[e._v("新增")])],1)],1),e._v(" "),r("el-button",{staticStyle:{"margin-left":"100px"},attrs:{type:"primary"},on:{click:e.onSaveDomain}},[e._v("保 存")])],1),e._v(" "),r("el-dialog",{attrs:{title:"零星收费设置",visible:e.sporadicStatus,width:"500px"},on:{"update:visible":function(t){e.sporadicStatus=t}}},[r("el-form",{ref:"ruleFormSporadic",attrs:{model:e.formSporadic,rules:e.rulesSporadic}},[r("el-form-item",{attrs:{label:"收款分部",prop:"organId","label-width":e.formLabelWidth2}},[r("el-select",{attrs:{filterable:""},model:{value:e.formSporadic.organId,callback:function(t){e.$set(e.formSporadic,"organId","string"===typeof t?t.trim():t)},expression:"formSporadic.organId"}},e._l(e.calcBranchList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value.toString(),disabled:e.disabled}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"金额(元)",prop:"minReceipt","label-width":e.formLabelWidth2}},[r("el-input",{staticStyle:{width:"100%"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.formSporadic.minReceipt,callback:function(t){e.$set(e.formSporadic,"minReceipt",e._n(t))},expression:"formSporadic.minReceipt"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.sporadicStatus=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSporadicSubmit("ruleFormSporadic")}}},[e._v("确 定")])],1)],1)],1)},b=[],v=(r("d349"),r("a6e9")),y=r("ec8a"),_=function(e,t,r){0!=t&&"string"===typeof t?r(new Error("请输入金额")):t<0?r(new Error("输入金额必须大于或等于0")):t>999999999?r(new Error("输入金额必须小于999999999")):r()},T={name:"chargeProfitManager",components:{pagination:l["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},roleList:[],calcBranchList:[],formLabelWidth:"100px",result:{domains:[{organId:null,routeOrganId:null,amount:null,type:null}]},validAmount:[{required:!0,validator:_,trigger:"blur"},{type:"number",message:"金额必须为数字值"}],selectId:71,selectItem:{},sporadicStatus:!1,formLabelWidth2:"120px",sporadicId:null,formSporadic:{organId:null,minReceipt:null},rulesSporadic:{organId:[{required:!0,message:"请选择所属分部",trigger:"change"}],minReceipt:[{required:!0,validator:_,trigger:"blur"},{type:"number",message:"金额必须为数字值"}]}}},mounted:function(){this.__init(),this.getList()},methods:{__init:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$store.dispatch("setBranchs"),e.next=3,Object(c["c"])().then((function(e){200==e.code&&e.data&&e.data.forEach((function(e){t.calcBranchList.push({label:e.organName,value:e.organId})}))}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(y["a"])(e)},onSporadicSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var r=[{id:t.sporadicId,paranValue:JSON.stringify(t.formSporadic),paramName:"sporadic_channel"}];Object(v["b"])(r).then((function(e){200==e.code&&t.messageTips("保存",e)}))}}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.sporadicStatus=!1,this.getList()):this.$message.error(t.msg)},getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["a"])({group:"channel_config"}).then((function(e){if(200==e.code&&e.data.length>0){var r={};e.data.forEach((function(e,a){"amount_channel"===e.paramName&&(r=e.paranValue?JSON.parse(e.paranValue):[],t.selectId=e.id,r.length>0&&(t.result.domains=[],r.forEach((function(e,r){t.result.domains.push({organId:e.organId,routeOrganId:e.routeOrganId,amount:e.amount,type:e.type})})))),"sporadic_channel"===e.paramName&&(t.formSporadic=e.paranValue?JSON.parse(e.paranValue):{organId:null,minReceipt:null},t.sporadicId=e.id)}))}}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onSaveDomain:function(){var e=this;this.$refs["ruleFormValid"].validate((function(t){if(t){var r=e.result.domains,a=[{id:e.selectId,paranValue:r,paramName:"amount_channel"}];Object(v["b"])(a).then((function(t){200==t.code&&e.messageTips("保存",t)}))}}))},addDomain:function(e,t){var r=e.domains,a=(this.form,r.length);r[a-1];this.$refs["ruleFormValid"].validate((function(e){e&&(t||r.push({organId:null,routeOrganId:null,amount:null,type:null}))}))},removeDomain:function(e,t){var r=e.domains.indexOf(t);-1!==r&&(e.domains.splice(r,1),e.domains[e.domains.length-1].disabled=!1)}}},I=T,w=(r("c21b"),Object(f["a"])(I,h,b,!1,null,"082e81c0",null)),S=w.exports,O=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("div",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/addTypeRoute",expression:"'paymentConfig/addTypeRoute'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.chargeOperation("create")}}},[e._v("\n 添加\n ")]),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:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"收费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.typeRouteScale&&t.row.typeRouteScale.length>0?r("div",e._l(t.row.typeRouteScale,(function(t,a){return r("p",{key:a},[e._v("\n "+e._s(e.getOrganToStr(t.organId))+"--"+e._s(e.getTypes(t.feeType))+" "+e._s(t.scale)+"%\n ")])})),0):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/updateTypeRoute",expression:"'paymentConfig/updateTypeRoute'"}],attrs:{type:"text"},on:{click:function(r){return e.chargeOperation("update",t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/delTypeRoute",expression:"'paymentConfig/delTypeRoute'"}],attrs:{type:"text"},on:{click:function(r){return e.chargeDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"","save-key":"chargeManager-three",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(" "),e.chargeStatus?r("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.chargeStatus,width:"700px"},on:{"update:visible":function(t){e.chargeStatus=t}}},[r("share-model",{attrs:{detail:e.rowDetail,formActionTitle:e.formActionTitle,close:e.onFormClose,getList:e.getList},on:{"update:detail":function(t){e.rowDetail=t}}})],1):e._e()],1)},x=[],L=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"所属分部",prop:"organId","label-width":e.formLabelWidth}},[r("el-select",{attrs:{disabled:"update"===e.formActionTitle,filterable:"",placeholder:"请选择所属分部"},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.selects.branchs,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),e._l(e.form.serviceList,(function(t,a){return r("el-row",{key:a+1e3,attrs:{gutter:10}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{"label-width":e.formLabelWidth,label:"服务收入"+(a+1),prop:"serviceList."+a+".feeType",rules:[{required:!0,message:"请选择收费方式",trigger:"change"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择收费方式",disabled:""},model:{value:t.feeType,callback:function(r){e.$set(t,"feeType","string"===typeof r?r.trim():r)},expression:"service.feeType"}},[r("el-option",{attrs:{value:"SERVICE",label:"服务收入"}}),e._v(" "),r("el-option",{attrs:{value:"SELL",label:"销售收入"}})],1)],1)],1),e._v(" "),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{prop:"serviceList."+a+".organId",rules:[{required:!0,message:"请选择分润分部",trigger:"change"}]}},[r("el-select",{attrs:{placeholder:"分润分部",clearable:"",filterable:""},model:{value:t.organId,callback:function(r){e.$set(t,"organId","string"===typeof r?r.trim():r)},expression:"service.organId"}},e._l(e.calcBranchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{prop:"serviceList."+a+".scale",rules:[{required:!0,validator:e.validSale,trigger:"blur, change"},{required:!0,message:"比例必须为数字值",trigger:"blur, change"}]}},[r("el-input",{attrs:{type:"number",min:"0",max:"100",placeholder:"分润比例"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:t.scale,callback:function(r){e.$set(t,"scale",e._n(r))},expression:"service.scale"}},[r("i",{attrs:{slot:"suffix"},slot:"suffix"},[e._v("%")])])],1)],1),e._v(" "),r("el-col",{attrs:{span:5}},[r("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.onAddDomain("SERVICE")}}}),e._v(" "),r("el-button",{attrs:{icon:"el-icon-minus",disabled:e.form.serviceList.length<=1,circle:"",type:"danger"},on:{click:function(r){return e.onRemoveDomain("SERVICE",t)}}})],1)],1)})),e._v(" "),r("el-divider"),e._v(" "),e._l(e.form.sellList,(function(t,a){return r("el-row",{key:a,attrs:{gutter:10}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{"label-width":e.formLabelWidth,label:"销售收入"+(a+1),prop:"sellList."+a+".feeType",rules:[{required:!0,message:"请选择收费方式",trigger:"change"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择收费方式",disabled:""},model:{value:t.feeType,callback:function(r){e.$set(t,"feeType","string"===typeof r?r.trim():r)},expression:"domain.feeType"}},[r("el-option",{attrs:{value:"SERVICE",label:"服务收入"}}),e._v(" "),r("el-option",{attrs:{value:"SELL",label:"销售收入"}})],1)],1)],1),e._v(" "),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{prop:"sellList."+a+".organId",rules:[{required:!0,message:"请选择分润分部",trigger:"change"}]}},[r("el-select",{attrs:{placeholder:"分润分部",clearable:"",filterable:""},model:{value:t.organId,callback:function(r){e.$set(t,"organId","string"===typeof r?r.trim():r)},expression:"domain.organId"}},e._l(e.calcBranchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{prop:"sellList."+a+".scale",rules:[{required:!0,validator:e.validSale,trigger:"blur, change"},{required:!0,message:"比例必须为数字值",trigger:"blur, change"}]}},[r("el-input",{directives:[{name:"number",rawName:"v-number"}],attrs:{type:"number",min:"0",max:"100",placeholder:"分润比例"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:t.scale,callback:function(r){e.$set(t,"scale",e._n(r))},expression:"domain.scale"}},[r("i",{attrs:{slot:"suffix"},slot:"suffix"},[e._v("%")])])],1)],1),e._v(" "),r("el-col",{attrs:{span:5}},[r("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.onAddDomain("SELL")}}}),e._v(" "),r("el-button",{attrs:{icon:"el-icon-minus",disabled:e.form.sellList.length<=1,circle:"",type:"danger"},on:{click:function(r){return e.onRemoveDomain("SELL",t)}}})],1)],1)}))],2),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.close}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onChargeSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)},C=[],k=r("e3eb"),j=r.n(k),R=function(e,t,r){0!=t&&"string"===typeof t?r(new Error("请输入分润比例")):t<0?r(new Error("分润比例不能小于0")):t>101?r(new Error("分润比例不能大于100")):r()},E={props:["detail","close","getList","formActionTitle"],data:function(){return{formLabelWidth:"100px",form:{id:null,organId:null,serviceList:[{feeType:"SERVICE",organId:null,scale:null}],sellList:[{feeType:"SELL",organId:null,scale:null}]},validSale:R,rules:{organId:[{required:!0,message:"请选择所属分部",trigger:"change"}]},calcBranchList:[]}},mounted:function(){var e=this;this.getPaymentBranchList();var t=this.detail;if(t&&"update"==this.formActionTitle){this.form={id:t.id,organId:t.organId,serviceList:[],sellList:[]};var r=t.typeRouteScale?t.typeRouteScale:[];r.forEach((function(t){"SERVICE"===t.feeType?e.form.serviceList.push({feeType:"SERVICE",organId:t.organId,scale:t.scale}):"SELL"===t.feeType&&e.form.sellList.push({feeType:"SELL",organId:t.organId,scale:t.scale})}))}},methods:{onChargeSubmit:function(e){var t=this;this.$refs[e].validate((function(e){var r=t.form,a=0;if(r.serviceList.forEach((function(e){a+=e.scale})),100===Number(a.toFixed(5))){var n=0;if(r.sellList.forEach((function(e){n+=e.scale})),100===Number(n.toFixed(5))){if(e){var o={id:r.id,organId:r.organId,typeRouteScale:JSON.stringify(r.serviceList.concat(r.sellList))};"create"==t.formActionTitle?Object(c["a"])(j()(o)).then((function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(c["d"])(j()(o)).then((function(e){t.messageTips("修改",e)}))}}else t.$message.error("销售收入分润比例总和必须为100")}else t.$message.error("服务收入分润比例总和必须为100")}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.close(),this.getList()):this.$message.error(t.msg)},getPaymentBranchList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["c"])(j()({payType:"ADAPAY"})).then((function(e){200==e.code&&e.data&&e.data.forEach((function(e){t.calcBranchList.push({label:e.organName,value:e.organId,payType:e.payType})}))}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onAddDomain:function(e){var t={organId:null,scale:null};"SERVICE"===e?(t["feeType"]="SERVICE",this.form.serviceList.push(t)):"SELL"===e&&(t["feeType"]="SELL",this.form.sellList.push(t))},onRemoveDomain:function(e,t){var r=this.form;if("SERVICE"===e){var a=r.serviceList.indexOf(t);-1!==a&&r.serviceList.splice(a,1)}else if("SELL"===e){var n=r.sellList.indexOf(t);-1!==n&&r.sellList.splice(n,1)}}}},q=E,$=(r("888b"),Object(f["a"])(q,L,C,!1,null,"45fca9dc",null)),N=$.exports,A={name:"chargeProfitManager",components:{pagination:l["a"],ShareModel:N},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},chargeStatus:!1,formActionTitle:"create",formTitle:{create:"添加分润",update:"修改分润"},rowDetail:{}}},mounted:function(){this.getList(),this.getRoleList()},methods:{getOrganToStr:function(e){var t=null;return this.selects.branchs.forEach((function(r){r.id==e&&(t=r.name)})),t},getTypes:function(e){var t={SERVICE:"服务收入",SELL:"销售收入"};return t[e]},getList:function(){var e=this,t={hasTypeRoute:1};t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(u["C"])(t).then((function(t){200==t.code&&t.data&&(t.data.rows.forEach((function(e){e.typeRouteScale&&(e.typeRouteScale=JSON.parse(e.typeRouteScale))})),e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},getRoleList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setBranchs");case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),chargeOperation:function(e,t){this.formActionTitle=e,this.chargeStatus=!0,"update"==e&&(this.rowDetail=t)},chargeDel:function(e){var t=this;this.$confirm("你确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["b"])({id:e.id}).then((function(e){t.messageTips("删除",e)}))})).catch()},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(t.msg)},onFormClose:function(e){this.chargeStatus=!1}}},D=A,P=(r("099d"),Object(f["a"])(D,O,x,!1,null,"5347c825",null)),M=P.exports,z=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("div",[r("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[r("el-alert",{staticStyle:{margin:"20px 0 40px"},attrs:{title:"商品销售收款账户设置",closable:!1,type:"info"}}),e._v(" "),r("el-row",[e._v("\n 商品销售收款账户:\n "),r("el-form-item",{attrs:{prop:"231",rules:[{required:!0,message:"请输入收款账户"}]}},[r("el-input",{attrs:{placeholder:"请输入收款账户"},model:{value:e.form["231"],callback:function(t){e.$set(e.form,"231",t)},expression:"form['231']"}})],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/batchUpdate_dayaTeamRules",expression:"'sysConfig/batchUpdate_dayaTeamRules'"}],attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)],1)],1)])},F=[],B=r("a7ba"),V={props:["isPlatform"],data:function(){return{form:{},questionList:[],rulesVisiable:!1}},mounted:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.getRules();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getRules:function(){this.isPlatform?this.getPlatformRules():this.getInstitutionRules()},getPlatformRules:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(v["a"])({group:"COLLECTION"});case 3:t=e.sent,t.data.forEach((function(e){r.$set(r.form,e.id,e.paranValue)})),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getInstitutionRules:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(B["a"])({group:"COLLECTION"});case 3:t=e.sent,t.data.forEach((function(e){r.$set(r.form,e.id,e.paranValue)})),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),savePlatform:function(){var e=this;this.$refs.form.validate(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=14;break}for(n in a=[],e.form)a.push({id:n,paranValue:e.form[n]});return t.prev=3,t.next=6,Object(v["b"])(a);case 6:t.sent,e.$message.success("保存成功"),e.getRules(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](3),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[3,11]])})));return function(e){return t.apply(this,arguments)}}())},saveInstitution:function(){var e=this;this.$refs.form.validate(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=14;break}for(n in a=[],e.form)a.push({id:n,paranValue:e.form[n]});return t.prev=3,t.next=6,Object(B["c"])(a);case 6:t.sent,e.$message.success("保存成功"),e.getRules(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](3),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[3,11]])})));return function(e){return t.apply(this,arguments)}}())},save:function(){this.isPlatform?this.savePlatform():this.saveInstitution()}}},W=V,Y=(r("afec"),Object(f["a"])(W,z,F,!1,null,"367f7ea9",null)),J=Y.exports,Q={components:{one:g,two:S,three:M,four:J},name:"chargeManager",data:function(){this.$route.query;return{activeIndex:"0",permissionList:{scalc:Object(y["a"])("/chargeManager/scalc"),money:Object(y["a"])("/chargeManager/money"),share:Object(y["a"])("/chargeManager/share"),shop:Object(y["a"])("/chargeManager/shop")}}},methods:{handleClick:function(e){this.activeIndex=e.name}}},U=Q,G=(r("c720"),Object(f["a"])(U,a,n,!1,null,"200784c3",null));t["default"]=G.exports},"7e91":function(e,t,r){"use strict";r("44c9")},"888b":function(e,t,r){"use strict";r("a507")},a2be:function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return c}));var a=r("b775"),n=r("4328"),o=r.n(n),i="/api-web";function s(e){return Object(a["a"])({url:i+"/paymentConfig/getPaymentConfigs",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/paymentConfig/addTypeRoute",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:o.a.stringify(e)})}function u(e){return Object(a["a"])({url:i+"/paymentConfig/updateTypeRoute",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:o.a.stringify(e)})}function c(e){return Object(a["a"])({url:i+"/paymentConfig/delTypeRoute",method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},data:o.a.stringify(e)})}},a507:function(e,t,r){},a6e9:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var a=r("b775"),n=(r("4328"),"/api-web");function o(e){return Object(a["a"])({url:n+"/sysConfig/list",method:"get",params:e})}function i(e){return Object(a["a"])({url:n+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},a7ba:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return i}));var a=r("829b"),n=function(e){return Object(a["a"])({url:"/api-web/sysTenantConfig/queryAll",params:e,method:"get"})},o=function(e){return Object(a["a"])({url:"/api-web/questionnaireTopic/queryPage",params:e,method:"get"})},i=function(e){return Object(a["a"])({url:"/api-web/sysTenantConfig/batchUpSet",data:e,method:"post",requestType:"json"})}},afec:function(e,t,r){"use strict";r("27b0")},c21b:function(e,t,r){"use strict";r("31f3")},c720:function(e,t,r){"use strict";r("e27f")},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 d})),r.d(t,"c",(function(){return p})),r.d(t,"r",(function(){return f})),r.d(t,"G",(function(){return m})),r.d(t,"H",(function(){return g})),r.d(t,"I",(function(){return h})),r.d(t,"h",(function(){return b})),r.d(t,"l",(function(){return v})),r.d(t,"g",(function(){return y})),r.d(t,"m",(function(){return _})),r.d(t,"u",(function(){return T})),r.d(t,"s",(function(){return I})),r.d(t,"t",(function(){return w})),r.d(t,"i",(function(){return S})),r.d(t,"j",(function(){return O})),r.d(t,"k",(function(){return x})),r.d(t,"v",(function(){return L})),r.d(t,"J",(function(){return C})),r.d(t,"n",(function(){return k})),r.d(t,"w",(function(){return j})),r.d(t,"z",(function(){return R})),r.d(t,"x",(function(){return E})),r.d(t,"y",(function(){return q})),r.d(t,"q",(function(){return $})),r.d(t,"b",(function(){return N})),r.d(t,"F",(function(){return A})),r.d(t,"p",(function(){return D})),r.d(t,"E",(function(){return P})),r.d(t,"a",(function(){return M})),r.d(t,"o",(function(){return z})),r.d(t,"B",(function(){return F})),r.d(t,"A",(function(){return B})),r.d(t,"C",(function(){return V})),r.d(t,"D",(function(){return W}));var a=r("15fd"),n=r("b775"),o=r("829b"),i=r("4328"),s=r.n(i),l="/api-web";function u(e){return Object(n["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function c(e){return Object(n["a"])({url:l+"/organization/add",method:"post",data:s.a.stringify(e)})}function d(e){return Object(n["a"])({url:l+"/organization/update",method:"post",data:s.a.stringify(e)})}function p(e){return Object(o["a"])({url:l+"/area/queryChild",method:"get",hideLoading:!0,params:e})}function f(e){return Object(n["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function m(e){return Object(n["a"])({url:l+"/subject/queryPageByIdOrName",method:"post",data:s.a.stringify(e)})}function g(e){return Object(n["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function h(e){return Object(n["a"])({url:l+"/subject/upset",method:"post",data:e})}function b(e){return Object(n["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(n["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(n["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function _(e){return Object(n["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function T(e){return Object(n["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:s.a.stringify(e)})}function I(e){return Object(n["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:s.a.stringify(e)})}function w(e){return Object(n["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function S(e){return Object(n["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:s.a.stringify(e)})}function O(e){return Object(n["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:s.a.stringify(e)})}function x(e){return Object(o["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function L(e){return Object(o["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function C(e){return Object(o["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function k(e){var t=e.id,r=Object(a["a"])(e,["id"]);return Object(o["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:r})}function j(e){return Object(o["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function R(e){return Object(o["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function E(e){return Object(o["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function q(e){return Object(o["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function $(e){return Object(o["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function N(e){return Object(o["a"])({url:l+"/organizationCourseUnitPriceSettings/save",method:"post",data:e})}function A(e){return Object(o["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function D(e){return Object(o["a"])({url:l+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function P(e){return Object(o["a"])({url:l+"/organizationCourseDurationSettings/update",method:"post",params:e})}function M(e){return Object(o["a"])({url:l+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function z(e){return Object(o["a"])({url:l+"/organizationCourseDurationSettings/del",method:"post",data:e})}function F(e){return Object(o["a"])({url:l+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function B(e){return Object(o["a"])({url:l+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function V(e){return Object(o["a"])({url:l+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}function W(e,t){return Object(o["a"])({url:l+"/organizationCourseUnitPriceSettings/querySingle/".concat(e,"/").concat(t),method:"get"})}},e27f:function(e,t,r){}}]);