chunk-f69de2bc.f544de69.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f69de2bc"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=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 i(e,t,n){var i=o(),u=e-i,c=20,l=0;t="undefined"===typeof t?500:t;var s=function e(){l+=c;var o=Math.easeInOutQuad(l,i,u,t);a(o),l<t?r(e):n&&"function"===typeof n&&n()};s()}},"18fc":function(e,t,n){},"333d":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[],o=(n("c5f6"),n("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},u=i,c=(n("c0b9"),n("2877")),l=Object(c["a"])(u,r,a,!1,null,"31cb099a",null);t["a"]=l.exports},"99b4":function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"B",function(){return s}),n.d(t,"z",function(){return d}),n.d(t,"H",function(){return f}),n.d(t,"G",function(){return m}),n.d(t,"I",function(){return p}),n.d(t,"A",function(){return g}),n.d(t,"j",function(){return h}),n.d(t,"l",function(){return b}),n.d(t,"p",function(){return y}),n.d(t,"k",function(){return O}),n.d(t,"E",function(){return v}),n.d(t,"n",function(){return j}),n.d(t,"F",function(){return w}),n.d(t,"D",function(){return _}),n.d(t,"f",function(){return S}),n.d(t,"h",function(){return F}),n.d(t,"g",function(){return C}),n.d(t,"i",function(){return T}),n.d(t,"r",function(){return k}),n.d(t,"s",function(){return I}),n.d(t,"u",function(){return q}),n.d(t,"t",function(){return z}),n.d(t,"o",function(){return L}),n.d(t,"x",function(){return x}),n.d(t,"v",function(){return P}),n.d(t,"y",function(){return $}),n.d(t,"w",function(){return M}),n.d(t,"m",function(){return E}),n.d(t,"b",function(){return R}),n.d(t,"a",function(){return W}),n.d(t,"C",function(){return A}),n.d(t,"q",function(){return B}),n.d(t,"J",function(){return N});var r=n("b775"),a=n("4328"),o=n.n(a),i="/api-web";function u(e){return Object(r["a"])({url:i+"/cooperationOrgan/add",method:"post",data:o.a.stringify(e)})}function c(e){return Object(r["a"])({url:i+"/cooperationOrgan/update",method:"put",data:o.a.stringify(e)})}function l(e){return Object(r["a"])({url:i+"/cooperationOrgan/del/".concat(e),method:"post"})}function s(e){return Object(r["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/school/queryPage",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/school/add",method:"post",data:o.a.stringify(e)})}function p(e){return Object(r["a"])({url:i+"/school/update",method:"post",data:o.a.stringify(e)})}function g(e){return Object(r["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/employee/add",method:"post",data:e})}function b(e){return Object(r["a"])({url:i+"/employee/update",method:"post",data:e})}function y(e){return Object(r["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function O(e){return Object(r["a"])({url:i+"/employee/employeeOperate",method:"post",data:o.a.stringify(e)})}function v(e){return Object(r["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function j(e){return Object(r["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function w(e){return Object(r["a"])({url:"/api-auth/role/update",method:"post",data:e})}function _(e){return Object(r["a"])({url:"/api-auth/role/add",method:"post",data:e})}function S(e){return Object(r["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:e})}function F(e){return Object(r["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:e})}function C(e){return Object(r["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(e)})}function T(e){return Object(r["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(e)})}function k(e){return Object(r["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:e})}function I(e){return Object(r["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(e)})}function q(e){return Object(r["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(e)})}function z(e){return Object(r["a"])({url:i+"/hotWordLabelManage/del/".concat(e),method:"post"})}function L(e){return Object(r["a"])({url:i+"/school/queryByOrganId",method:"get",params:e})}function x(e){return Object(r["a"])({url:i+"/paymentConfig/queryPage",method:"get",params:e})}function P(e){return Object(r["a"])({url:i+"/paymentConfig/add",method:"post",data:o.a.stringify(e)})}function $(e){return Object(r["a"])({url:i+"/paymentConfig/update",method:"post",data:o.a.stringify(e)})}function M(e){return Object(r["a"])({url:i+"/paymentConfig/del/"+e.id,method:"post"})}function E(e){return Object(r["a"])({url:i+"/teacher/findTeacherByOrganId",method:"get",params:e})}function R(e){return Object(r["a"])({url:i+"/appVersionInfo/list",method:"get",params:e})}function W(e){return Object(r["a"])({url:i+"/appVersionInfo/add",method:"post",data:o.a.stringify(e)})}function A(e){return Object(r["a"])({url:i+"/appVersionInfo/update",method:"post",data:o.a.stringify(e)})}function B(e){return Object(r["a"])({url:i+"/employee/hasCourseGroupRelation",method:"post",data:o.a.stringify(e)})}function N(e){return Object(r["a"])({url:i+"/employee/updateEducationTeacherId",method:"post",data:o.a.stringify(e)})}},"9b50":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("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(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"center",label:"详情"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.type?n("span",[e._v("\n 比例:公"+e._s(t.row.comScale)+"     私"+e._s(t.row.perScale)+"\n ")]):e._e(),e._v(" "),2==t.row.type?n("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(" "),n("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/update",expression:"'paymentConfig/update'"}],attrs:{type:"text"},on:{click:function(n){return e.chargeOperation("update",t.row)}}},[e._v("修改")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"paymentConfig/del",expression:"'paymentConfig/del'"}],attrs:{type:"text"},on:{click:function(n){return e.chargeDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("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(" "),n("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")}}},[n("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[n("el-form-item",{attrs:{label:"收费方式",required:"","label-width":e.formLabelWidth}},[n("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(" "),n("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?n("div",[n("el-form-item",{attrs:{label:"公",prop:"comScale","label-width":e.formLabelWidth}},[n("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(" "),n("el-form-item",{attrs:{label:"私",prop:"perScale","label-width":e.formLabelWidth}},[n("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?n("div",[n("el-form-item",{attrs:{label:"课程","label-width":e.formLabelWidth}},[n("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"}},[n("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),n("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"乐器","label-width":e.formLabelWidth}},[n("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"}},[n("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),n("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"辅件","label-width":e.formLabelWidth}},[n("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"}},[n("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),n("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"其它","label-width":e.formLabelWidth}},[n("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"}},[n("el-option",{attrs:{label:"公",value:"COM"}}),e._v(" "),n("el-option",{attrs:{label:"私",value:"PER"}})],1)],1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"所属分部",prop:"organId","label-width":e.formLabelWidth}},[n("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 n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.chargeStatus=!1}}},[e._v("取 消")]),e._v(" "),n("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,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("收费分润管理\n ")])}],o=(n("c5f6"),n("7f7f"),n("ac6a"),n("333d")),i=n("99b4"),u=n("d349"),c=(n("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(i["v"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(i["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(i["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(u["c"])({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(i["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()}}}),l=c,s=(n("fec4"),n("2877")),d=Object(s["a"])(l,r,a,!1,null,"1ab84b11",null);t["default"]=d.exports},c0b9:function(e,t,n){"use strict";var r=n("fa3b"),a=n.n(r);a.a},d349:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return s}),n.d(t,"n",function(){return d}),n.d(t,"r",function(){return f}),n.d(t,"s",function(){return m}),n.d(t,"f",function(){return p}),n.d(t,"k",function(){return g}),n.d(t,"e",function(){return h}),n.d(t,"l",function(){return b}),n.d(t,"q",function(){return y}),n.d(t,"o",function(){return O}),n.d(t,"p",function(){return v}),n.d(t,"h",function(){return j}),n.d(t,"i",function(){return w}),n.d(t,"j",function(){return _}),n.d(t,"g",function(){return S}),n.d(t,"m",function(){return F});var r=n("b775"),a=n("4328"),o=n.n(a),i="/api-web";function u(e){return Object(r["a"])({url:i+"/organization/queryPage",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/organization/add",method:"post",data:o.a.stringify(e)})}function l(e){return Object(r["a"])({url:i+"/organization/update",method:"post",data:o.a.stringify(e)})}function s(e){return Object(r["a"])({url:i+"/area/queryChild",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(r["a"])({url:i+"/subject/queryPageTree",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/subject/upset",method:"post",data:e})}function p(e){return Object(r["a"])({url:i+"/chargeType/queryPage",method:"get",params:e})}function g(e){return Object(r["a"])({url:i+"/chargeType/upSet",method:"post",data:e})}function h(e){return Object(r["a"])({url:i+"/chargeType/del/".concat(e),method:"post"})}function b(e){return Object(r["a"])({url:i+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function y(e){return Object(r["a"])({url:i+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function O(e){return Object(r["a"])({url:i+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function v(e){return Object(r["a"])({url:i+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function j(e){return Object(r["a"])({url:i+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(r["a"])({url:i+"/chargeTypeOrganizationFee/delete",method:"post",data:o.a.stringify(e)})}function _(e){return Object(r["a"])({url:i+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(r["a"])({url:i+"/chargeTypeOrganizationFee/queryPage",method:"get",params:e})}function F(e){return Object(r["a"])({url:i+"/employee/findEducationTeacher",method:"get",params:e})}},fa3b:function(e,t,n){},fec4:function(e,t,n){"use strict";var r=n("18fc"),a=n.n(r);a.a}}]);