chunk-718bddbc.359fa1a9.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-718bddbc","chunk-418f1a20"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,n){var o=i(),s=e-o,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var i=Math.easeInOutQuad(l,o,s,t);r(i),l<t?a(e):n&&"function"===typeof n&&n()};u()}},1127:function(e,t,n){"use strict";n.r(t);var a=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("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.overallManager?n("el-tab-pane",{attrs:{label:"参数设置",lazy:"",name:"6"}},[6==e.activeIndex?n("overallManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.overallManagerTwo?n("el-tab-pane",{attrs:{label:"收费分润配置",lazy:"",name:"7"}},[7==e.activeIndex?n("overallManagerTwo"):e._e()],1):e._e(),e._v(" "),e.permissionList.holidaySetting?n("el-tab-pane",{attrs:{label:"节假日设置",lazy:"",name:"8"}},[8==e.activeIndex?n("holidaySetting"):e._e()],1):e._e(),e._v(" "),e.permissionList.earlyWarning?n("el-tab-pane",{attrs:{label:"预警课酬设置",lazy:"",name:"12"}},[12==e.activeIndex?n("earlyWarning"):e._e()],1):e._e()],1)],1)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 全局配置\n ")])}],i=(n("7f7f"),n("48d0")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",e._l(e.configList,(function(t,a){return n("el-col",{key:t.id,attrs:{span:12}},[e._v("\n "+e._s(t.description[0])+"\n "),n("el-input",{model:{value:e.input[a],callback:function(t){e.$set(e.input,a,"string"===typeof t?t.trim():t)},expression:"input[index]"}},[t.description[1]?n("template",{slot:"append"},[e._v(e._s(t.description[1]))]):e._e()],2),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update/overallManagerTwo",expression:"'sysConfig/update/overallManagerTwo'"}],attrs:{type:"primary"},on:{click:function(n){return e.onSave(t,a)}}},[e._v("保存")])],1)})),1)],1)])},s=[],c=(n("28a5"),n("ac6a"),n("333d")),l=n("a6e9"),u={components:{pagination:c["a"]},name:"overallManagerTwo",data:function(){return{configList:[],input:[]}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(l["b"])({group:"payment_config"}).then((function(t){200==t.code&&t.data.length>0&&t.data.forEach((function(t,n){e.input[n]=t.paranValue,e.configList.push({id:t.id,paramName:t.paramName,paranValue:t.paranValue,description:t.description.split("{}")})}))}))},onSave:function(e,t){var n=this,a={id:e.id,paranValue:this.input[t],paramName:e.paramName,description:e.description.join("{}")};Object(l["c"])(a).then((function(e){200==e.code&&n.$message.success("修改成功")}))}}},m=u,d=(n("3cff"),n("2877")),p=Object(d["a"])(m,o,s,!1,null,"5668035f",null),f=p.exports,h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[e.dataStatus?n("calendar",{staticClass:"calendarComponent",attrs:{"first-day-of-week":1,multiple:"","select-date":e.dateList,width:"800px"}}):e._e(),e._v(" "),e.dataStatus?n("div",{staticStyle:{width:"800px",margin:"10px auto","text-align":"center"}},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update/holidaySetting",expression:"'sysConfig/update/holidaySetting'"}],staticStyle:{padding:"16px 33px","font-size":"18px"},attrs:{type:"primary"},on:{click:e.onSave}},[e._v("保  存")])],1):e._e()],1)])},b=[],v=n("43b1"),g=n.n(v),y={components:{pagination:c["a"],Calendar:g.a},name:"holidaySetting",data:function(){return{configList:[],dateList:[],dataStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(l["b"])({group:"holiday"}).then((function(t){if(200==t.code&&t.data.length>0){var n=t.data[0];e.configList=n,e.dateList=n.paranValue?JSON.parse(n.paranValue):[],e.dataStatus=!0}}))},onSave:function(){var e=this,t=this.configList,n={id:t.id,paranValue:JSON.stringify(this.dateList),paramName:t.paramName};Object(l["c"])(n).then((function(t){200==t.code?e.$message.success("保存成功"):e.$message.error(t.msg)}))}}},_=y,w=(n("75c0"),Object(d["a"])(_,h,b,!1,null,"015efe0d",null)),x=w.exports,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("auth",{staticStyle:{"margin-bottom":"20px"},attrs:{auths:"sysConfig/update/insert"}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")])],1),e._v(" "),n("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{"update:model":function(t){e.searchForm=t}}},[n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")])],1)],1),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:"branchName",label:"分部"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"money",label:"预警课酬"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.money))+"元\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("auth",{attrs:{auths:"sysConfig/update/update"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.openTypes("update",t.row)}}},[e._v("修改")])],1),e._v(" "),n("auth",{attrs:{auths:"sysConfig/update/del"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.onTypesDel(t.row)}}},[e._v("删除")])],1)]}}])})],1)],1)],1),e._v(" "),n("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.typeStatus,width:"600px"},on:{"update:visible":function(t){e.typeStatus=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:"预警课酬(元)",prop:"money","label-width":e.formLabelWidth}},[n("el-input",{attrs:{type:"number",placeholder:"请输入预警课酬",autocomplete:"off"},on:{input:function(t){return e.checkNumber(e.form.money)}},model:{value:e.form.money,callback:function(t){e.$set(e.form,"money","string"===typeof t?t.trim():t)},expression:"form.money"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"适用分部",prop:"branchId","label-width":e.formLabelWidth}},[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择适用分部"},model:{value:e.form.branchId,callback:function(t){e.$set(e.form,"branchId",t)},expression:"form.branchId"}},e._l(e.selects.branchs,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},T=[],I=(n("386d"),n("4917"),n("96cf"),n("1da1")),C={name:"earlyWarning",data:function(){return{searchForm:{organId:null},tableList:[],tempTableList:[],formActionTitle:"create",formTitle:{create:"添加预警课酬设置",update:"修改预警课酬设置"},typeStatus:!1,formLabelWidth:"120px",form:{id:null,money:null,branchId:null},formRow:null,rules:{money:[{required:!0,message:"请输入预警课酬",trigger:"blur"}],branchId:[{required:!0,message:"请选择适用分部",trigger:"blur"}]}}},mounted:function(){var e=Object(I["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{checkNumber:function(e){this.form.money=e.match(/^\d*(\.?\d{0,2})/g)[0]||null},onTypesSubmit:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(I["a"])(regeneratorRuntime.mark((function e(n){var a,r,i,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=15;break}if(a=t.form,r=!1,i=null,o={},t.tempTableList.forEach((function(e){"update"==t.formActionTitle?e.branchId==a.branchId&&t.formRow.branchId!=a.branchId&&(r=!0,i=e.branchName):e.branchId==a.branchId&&(r=!0,i=e.branchName),o[e.branchId]=e.money})),!r){e.next=9;break}return t.$message.error("[".concat(i,"]分部已设置预警课酬")),e.abrupt("return");case 9:return o[a.branchId]=a.money,s={id:a.id,paranValue:JSON.stringify(o),paramName:"warning_min_course_salary"},e.next=13,Object(l["c"])(s).then((function(e){var n="create"==t.formActionTitle?"添加":"修改";t.messageTips(n,e)}));case 13:e.next=16;break;case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},search:function(){var e=this.searchForm.organId,t=[];this.tempTableList.forEach((function(n){n.branchId!=e&&e||t.push(n)})),this.tableList=t},onTypesDel:function(){var e=Object(I["a"])(regeneratorRuntime.mark((function e(t){var n,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n={},this.tempTableList.forEach((function(e){t.branchId!=e.branchId&&(n[e.branchId]=e.money)})),a={id:this.form.id,paranValue:JSON.stringify(n),paramName:"warning_min_course_salary"},this.$confirm("是否删除预警课酬","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(I["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["c"])(a).then((function(e){r.messageTips("删除",e)}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),messageTips:function(){var e=Object(I["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=n.code){e.next=9;break}return this.$message.success(t+"成功"),this.typeStatus=!1,e.next=5,this.getList();case 5:return e.next=7,this.search();case 7:e.next=10;break;case 9:this.$message.error(n.msg);case 10:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(I["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(l["a"])({paramName:"warning_min_course_salary"}).then((function(e){var n=e.data;if(200==e.code){var a=n.paranValue?JSON.parse(n.paranValue):{};t.form.id=n.id;var r=t.selects.branchs,i=[],o=function(e){var t=[];r.forEach((function(n){e==n.id&&(t=n.name)})),i.push({branchId:e,branchName:t,money:a[e]})};for(var s in a)o(s);t.tableList=i,t.tempTableList=i}}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),openTypes:function(e,t){var n=this;this.typeStatus=!0,this.formActionTitle=e,"update"==e&&(this.formRow=t,this.$nextTick((function(){n.form.money=t.money,n.form.branchId=parseInt(t.branchId)})))},onFormClose:function(e){this.$refs[e].resetFields()}}},S=C,O=(n("3dac"),Object(d["a"])(S,k,T,!1,null,"d4cc5c2c",null)),L=O.exports,N=n("ec8a"),j={components:{overallManager:i["default"],overallManagerTwo:f,holidaySetting:x,earlyWarning:L},name:"globalConfig",data:function(){return{activeIndex:"6",permissionList:{overallManager:Object(N["a"])("/globalConfig/overallManager"),overallManagerTwo:Object(N["a"])("/globalConfig/overallManagerTwo"),holidaySetting:Object(N["a"])("/globalConfig/holidaySetting"),earlyWarning:Object(N["a"])("/globalConfig/earlyWarning")}}},methods:{handleClick:function(e){this.activeIndex=e.name}}},$=j,F=(n("e362"),Object(d["a"])($,a,r,!1,null,"3eb99356",null));t["default"]=F.exports},"3cff":function(e,t,n){"use strict";n("b24f")},"3dac":function(e,t,n){"use strict";n("6d29")},"48d0":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",e._l(e.configList,(function(t,a){return n("el-col",{key:t.id,attrs:{span:12}},[e._v("\n "+e._s(t.description[0])+"\n "),n("el-input",{model:{value:e.input[a],callback:function(t){e.$set(e.input,a,"string"===typeof t?t.trim():t)},expression:"input[index]"}},[t.description[1]?n("template",{slot:"append"},[e._v(e._s(t.description[1]))]):e._e()],2),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update/overallManager",expression:"'sysConfig/update/overallManager'"}],attrs:{type:"primary"},on:{click:function(n){return e.onSave(t,a)}}},[e._v("保存")])],1)})),1)],1)])},r=[],i=(n("28a5"),n("ac6a"),n("333d")),o=n("a6e9"),s={components:{pagination:i["a"]},name:"overallManager",data:function(){return{configList:[],input:[]}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(o["b"])({group:"default"}).then((function(t){200==t.code&&t.data.length>0&&t.data.forEach((function(t,n){e.input[n]=t.paranValue,e.configList.push({id:t.id,paramName:t.paramName,paranValue:t.paranValue,description:t.description.split("{}")})}))}))},onSave:function(e,t){var n=this,a={id:e.id,paranValue:this.input[t],paramName:e.paramName,description:e.description.join("{}")};Object(o["c"])(a).then((function(e){200==e.code&&n.$message.success("修改成功")}))}}},c=s,l=(n("cbc9"),n("2877")),u=Object(l["a"])(c,a,r,!1,null,"1323dc95",null);t["default"]=u.exports},"6d29":function(e,t,n){},"75c0":function(e,t,n){"use strict";n("be9e")},"83f3":function(e,t,n){},a6e9:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l}));var a=n("b775"),r=n("4328"),i=n.n(r),o="/api-web";function s(e){return Object(a["a"])({url:o+"/sysConfig/list",method:"get",params:e})}function c(e){return Object(a["a"])({url:o+"/sysConfig/update",method:"post",data:i.a.stringify(e)})}function l(e){return Object(a["a"])({url:o+"/sysConfig/queryByParamName",method:"get",params:e})}},b24f:function(e,t,n){},b408:function(e,t,n){},be9e:function(e,t,n){},cbc9:function(e,t,n){"use strict";n("b408")},e362:function(e,t,n){"use strict";n("83f3")}}]);