1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e4248a9a"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",function(){return u}),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(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 u(e,t,r){var u=o(),i=e-u,c=20,s=0;t="undefined"===typeof t?500:t;var l=function e(){s+=c;var o=Math.easeInOutQuad(s,u,i,t);a(o),s<t?n(e):r&&"function"===typeof r&&r()};l()}},"18fc":function(e,t,r){},"99b4":function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"e",function(){return c}),r.d(t,"d",function(){return s}),r.d(t,"B",function(){return l}),r.d(t,"z",function(){return d}),r.d(t,"H",function(){return f}),r.d(t,"G",function(){return m}),r.d(t,"I",function(){return p}),r.d(t,"A",function(){return h}),r.d(t,"j",function(){return g}),r.d(t,"l",function(){return b}),r.d(t,"p",function(){return y}),r.d(t,"k",function(){return O}),r.d(t,"E",function(){return v}),r.d(t,"n",function(){return j}),r.d(t,"F",function(){return w}),r.d(t,"D",function(){return _}),r.d(t,"f",function(){return S}),r.d(t,"h",function(){return F}),r.d(t,"g",function(){return C}),r.d(t,"i",function(){return T}),r.d(t,"r",function(){return q}),r.d(t,"s",function(){return I}),r.d(t,"u",function(){return k}),r.d(t,"t",function(){return x}),r.d(t,"o",function(){return L}),r.d(t,"x",function(){return M}),r.d(t,"v",function(){return P}),r.d(t,"y",function(){return $}),r.d(t,"w",function(){return z}),r.d(t,"m",function(){return E}),r.d(t,"b",function(){return R}),r.d(t,"a",function(){return W}),r.d(t,"C",function(){return A}),r.d(t,"q",function(){return B}),r.d(t,"J",function(){return N});var n=r("b775"),a=r("4328"),o=r.n(a),u="/api-web";function i(e){return Object(n["a"])({url:u+"/cooperationOrgan/add",method:"post",data:o.a.stringify(e)})}function c(e){return Object(n["a"])({url:u+"/cooperationOrgan/update",method:"put",data:o.a.stringify(e)})}function s(e){return Object(n["a"])({url:u+"/cooperationOrgan/del/".concat(e),method:"post"})}function l(e){return Object(n["a"])({url:u+"/cooperationOrgan/queryPage",method:"get",params:e})}function d(e){return Object(n["a"])({url:u+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function f(e){return Object(n["a"])({url:u+"/school/queryPage",method:"get",params:e})}function m(e){return Object(n["a"])({url:u+"/school/add",method:"post",data:o.a.stringify(e)})}function p(e){return Object(n["a"])({url:u+"/school/update",method:"post",data:o.a.stringify(e)})}function h(e){return Object(n["a"])({url:u+"/employee/queryEmployByOrganId",method:"get",params:e})}function g(e){return Object(n["a"])({url:u+"/employee/add",method:"post",data:e})}function b(e){return Object(n["a"])({url:u+"/employee/update",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function O(e){return Object(n["a"])({url:u+"/employee/employeeOperate",method:"post",data:o.a.stringify(e)})}function v(e){return Object(n["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function j(e){return Object(n["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function w(e){return Object(n["a"])({url:"/api-auth/role/update",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/api-auth/role/add",method:"post",data:e})}function S(e){return Object(n["a"])({url:u+"/courseScheduleRewards/queryPage",method:"get",params:e})}function F(e){return Object(n["a"])({url:u+"/courseScheduleRewards/query",method:"get",params:e})}function C(e){return Object(n["a"])({url:u+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(e)})}function T(e){return Object(n["a"])({url:u+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(e)})}function q(e){return Object(n["a"])({url:u+"/hotWordLabelManage/queryPage",method:"get",params:e})}function I(e){return Object(n["a"])({url:u+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(e)})}function k(e){return Object(n["a"])({url:u+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(e)})}function x(e){return Object(n["a"])({url:u+"/hotWordLabelManage/del/".concat(e),method:"post"})}function L(e){return Object(n["a"])({url:u+"/school/queryByOrganId",method:"get",params:e})}function M(e){return Object(n["a"])({url:u+"/paymentConfig/queryPage",method:"get",params:e})}function P(e){return Object(n["a"])({url:u+"/paymentConfig/add",method:"post",data:o.a.stringify(e)})}function $(e){return Object(n["a"])({url:u+"/paymentConfig/update",method:"post",data:o.a.stringify(e)})}function z(e){return Object(n["a"])({url:u+"/paymentConfig/del/"+e.id,method:"post"})}function E(e){return Object(n["a"])({url:u+"/teacher/findTeacherByOrganId",method:"get",params:e})}function R(e){return Object(n["a"])({url:u+"/appVersionInfo/list",method:"get",params:e})}function W(e){return Object(n["a"])({url:u+"/appVersionInfo/add",method:"post",data:o.a.stringify(e)})}function A(e){return Object(n["a"])({url:u+"/appVersionInfo/update",method:"post",data:o.a.stringify(e)})}function B(e){return Object(n["a"])({url:u+"/employee/hasCourseGroupRelation",method:"post",data:o.a.stringify(e)})}function N(e){return Object(n["a"])({url:u+"/employee/updateEducationTeacherId",method:"post",data:o.a.stringify(e)})}},"9b50":function(e,t,r){"use strict";r.r(t);var n=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("div",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/add",expression:"'paymentConfig/add'"}],staticClass:"newBand",on:{click:function(t){return e.chargeOperation("create")}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organName",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?"比例分润":"收费类型")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"详情"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.type?r("span",[e._v("\n 比例:公"+e._s(t.row.comScale)+" 私"+e._s(t.row.perScale)+"\n ")]):e._e(),e._v(" "),2==t.row.type?r("span",[e._v("\n 课程:"+e._s("COM"==t.row.courseFee?"公":"私")+";\n 乐器:"+e._s("COM"==t.row.instrumentFee?"公":"私")+";\n 辅件:"+e._s("COM"==t.row.accessoriesFee?"公":"私")+";\n 其它:"+e._s("COM"==t.row.otherFee?"公":"私")+";\n ")]):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/update",expression:"'paymentConfig/update'"}],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/del",expression:"'paymentConfig/del'"}],attrs:{type:"text"},on:{click:function(r){return e.chargeDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"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)]),e._v(" "),r("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.chargeStatus,width:"500px"},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:"收费方式",required:"","label-width":e.formLabelWidth}},[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("比例分润")]),e._v(" "),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("收费种类")])],1),e._v(" "),1==e.form.type?r("div",[r("el-form-item",{attrs:{label:"公",prop:"comScale","label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"number",min:"0",max:"10"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.comScale,callback:function(t){e.$set(e.form,"comScale","string"===typeof t?t.trim():t)},expression:"form.comScale"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"私",prop:"perScale","label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"number",min:"0",max:"10"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.perScale,callback:function(t){e.$set(e.form,"perScale","string"===typeof t?t.trim():t)},expression:"form.perScale"}})],1)],1):e._e(),e._v(" "),2==e.form.type?r("div",[r("el-form-item",{attrs:{label:"课程","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:e.form.courseFee,callback:function(t){e.$set(e.form,"courseFee","string"===typeof t?t.trim():t)},expression:"form.courseFee"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"乐器","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:e.form.instrumentFee,callback:function(t){e.$set(e.form,"instrumentFee","string"===typeof t?t.trim():t)},expression:"form.instrumentFee"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"辅件","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:e.form.accessoriesFee,callback:function(t){e.$set(e.form,"accessoriesFee","string"===typeof t?t.trim():t)},expression:"form.accessoriesFee"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"其它","label-width":e.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:e.form.otherFee,callback:function(t){e.$set(e.form,"otherFee","string"===typeof t?t.trim():t)},expression:"form.otherFee"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"所属分部",prop:"organId","label-width":e.formLabelWidth}},[r("el-select",{model:{value:e.form.organId,callback:function(t){e.$set(e.form,"organId","string"===typeof t?t.trim():t)},expression:"form.organId"}},e._l(e.branchList,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],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)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("收费分润管理\n ")])}],o=(r("c5f6"),r("7f7f"),r("ac6a"),r("333d")),u=r("99b4"),i=r("d349"),c=(r("4360"),{name:"chargeProfitManager",components:{pagination:o["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},chargeStatus:!1,roleList:[],branchList:[],formActionTitle:"create",formLabelWidth:"100px",formTitle:{create:"添加收费分润",update:"修改收费分润"},form:{type:1,comScale:null,perScale:null,courseFee:"COM",instrumentFee:"COM",accessoriesFee:"COM",otherFee:"COM",organId:null},rules:{comScale:[{required:!0,message:"请输入数值",trigger:"blur"}],perScale:[{required:!0,message:"请输入数值",trigger:"blur"}],organId:[{required:!0,message:"请选择所属分部",trigger:"change"}]},searchForm:{search:null}}},mounted:function(){this.getList(),this.getRoleList()},watch:{"form.comScale":{handler:function(e,t){e&&(this.form.perScale=10-e,e>10?this.form.comScale=10:e<0&&(this.form.comScale=0))}},"form.perScale":{handler:function(e,t){e&&(e>10?(this.form.perScale=10,this.form.comScale=0):e<0?(this.form.perScale=0,this.form.comScale=10):this.form.comScale=10-e)}}},methods:{onRadioChange:function(e){this.$refs[e].clearValidate()},onChargeSubmit:function(e){var t=this;this.$refs[e].validate(function(e){e&&("create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(u["v"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(u["y"])(t.form).then(function(e){t.messageTips("修改",e)}))})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(t.msg)},search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(u["x"])(t).then(function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)})},getRoleList:function(){var e=this;Object(i["d"])({delFlag:0,rows:9999}).then(function(t){200==t.code&&t.data&&t.data.rows&&t.data.rows.forEach(function(t){e.branchList.push({label:t.name,value:t.id})})})},chargeOperation:function(e,t){this.formActionTitle=e,this.chargeStatus=!0,"update"==e&&(this.form={id:t.id,type:Number(t.type),comScale:t.comScale,perScale:t.perScale,courseFee:t.courseFee,instrumentFee:t.instrumentFee,accessoriesFee:t.accessoriesFee,otherFee:t.otherFee,organId:t.organId})},chargeDel:function(e){var t=this;this.$confirm("你确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(u["w"])({id:e.id}).then(function(e){t.messageTips("删除",e)})}).catch()},onFormClose:function(e){this.form={type:1,courseFee:"COM",instrumentFee:"COM",accessoriesFee:"COM",otherFee:"COM"},this.$refs[e].resetFields()}}}),s=c,l=(r("fec4"),r("2877")),d=Object(l["a"])(s,n,a,!1,null,"1ab84b11",null);t["default"]=d.exports},a8db:function(e,t,r){"use strict";var n=r("e265"),a=r.n(n),o=r("a4bb"),u=r.n(o);function i(e,t){if(null==e)return{};var r,n,a={},o=u()(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function c(e,t){if(null==e)return{};var r,n,o=i(e,t);if(a.a){var u=a()(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,"a",function(){return c})},d349:function(e,t,r){"use strict";r.d(t,"d",function(){return s}),r.d(t,"c",function(){return l}),r.d(t,"e",function(){return d}),r.d(t,"b",function(){return f}),r.d(t,"p",function(){return m}),r.d(t,"z",function(){return p}),r.d(t,"A",function(){return h}),r.d(t,"g",function(){return g}),r.d(t,"k",function(){return b}),r.d(t,"f",function(){return y}),r.d(t,"l",function(){return O}),r.d(t,"s",function(){return v}),r.d(t,"q",function(){return j}),r.d(t,"r",function(){return w}),r.d(t,"h",function(){return _}),r.d(t,"i",function(){return S}),r.d(t,"n",function(){return F}),r.d(t,"j",function(){return C}),r.d(t,"t",function(){return T}),r.d(t,"B",function(){return q}),r.d(t,"m",function(){return I}),r.d(t,"u",function(){return k}),r.d(t,"x",function(){return x}),r.d(t,"v",function(){return L}),r.d(t,"w",function(){return M}),r.d(t,"o",function(){return P}),r.d(t,"a",function(){return $}),r.d(t,"y",function(){return z});var n=r("a8db"),a=r("b775"),o=r("829b"),u=r("4328"),i=r.n(u),c="/api-web";function s(e){return Object(a["a"])({url:c+"/organization/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:c+"/organization/add",method:"post",data:i.a.stringify(e)})}function d(e){return Object(a["a"])({url:c+"/organization/update",method:"post",data:i.a.stringify(e)})}function f(e){return Object(a["a"])({url:c+"/area/queryChild",method:"get",params:e})}function m(e){return Object(a["a"])({url:c+"/area/getParentArea/".concat(e.id),method:"get"})}function p(e){return Object(a["a"])({url:c+"/subject/queryPageTree",method:"get",params:e})}function h(e){return Object(a["a"])({url:c+"/subject/upset",method:"post",data:e})}function g(e){return Object(a["a"])({url:c+"/chargeType/queryPage",method:"get",params:e})}function b(e){return Object(a["a"])({url:c+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(a["a"])({url:c+"/chargeType/del/".concat(e),method:"post"})}function O(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function v(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:i.a.stringify(e)})}function j(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:i.a.stringify(e)})}function w(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function _(e){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:i.a.stringify(e)})}function S(e){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:i.a.stringify(e)})}function F(e){return Object(a["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:e})}function C(e){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function T(e){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function q(e){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function I(e){var t=e.id,r=Object(n["a"])(e,["id"]);return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:r})}function k(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function x(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function M(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function P(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/insert",method:"post",data:e})}function z(e){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}},fec4:function(e,t,r){"use strict";var n=r("18fc"),a=r.n(n);a.a}}]);
|