chunk-e4b33aa8.91fbea6d.js 45 KB

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