王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
6.9 KiB

webpackJsonp([79],{"6FLw":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("mvHQ"),s=a.n(o),r=a("Xxa5"),n=a.n(r),l=a("exGp"),i=a.n(l),c=a("Dd8w"),m=a.n(c),u=a("NYxO"),_={data:function(){return{list:{recommend:[{title:"样式一",img:""},{title:"样式二",img:""}],format:[{title:"样式一",img:""},{title:"样式二",img:""}]},showDialog:!1,dialogType:"",subForm:{is_current:1,recommend_style:1,auto_recommend:0,coach_level_show:1,coach_format:1,coach_apply_show:0}}},created:function(){this.getFormInfo()},computed:m()({},Object(u.d)({routesItem:function(t){return t.routes}})),methods:{getFormInfo:function(){var t=this;return i()(n.a.mark(function e(){var a,o,s,r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.system.configInfo();case 2:if(a=e.sent,o=a.code,s=a.data,200===o){e.next=7;break}return e.abrupt("return");case 7:for(r in t.subForm)t.subForm[r]=s[r];case 8:case"end":return e.stop()}},e,t)}))()},toShowDialog:function(t){this.dialogType=t,this.showDialog=!0},submitForm:function(){var t=this;return i()(n.a.mark(function e(){var a,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!1,t.$refs.subForm.validate(function(t){t&&(a=!0)}),o=JSON.parse(s()(t.subForm)),!a){e.next=7;break}return e.next=6,t.$api.system.configUpdate(o);case 6:t.$message.success(t.$t("tips.successSub"));case 7:case"end":return e.stop()}},e,t)}))()}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-system-wechat"},[a("top-nav"),t._v(" "),a("div",{staticClass:"page-main"},[a("el-form",{ref:"subForm",staticClass:"config-form",attrs:{model:t.subForm,rules:t.subFormRules,"label-width":"180px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:t.$t("action.attendantName")+"提成计算方式",prop:"is_current"}},[a("el-radio-group",{model:{value:t.subForm.is_current,callback:function(e){t.$set(t.subForm,"is_current",e)},expression:"subForm.is_current"}},[a("div",{staticClass:"pt-md pb-md"},[a("el-radio",{attrs:{label:1}},[t._v("周期结束后,等级和维度数据清零\n "),a("lb-tool-tips",{attrs:{padding:0}},[t._v(t._s(t.$t("action.attendantName"))+"在设置的周期时间内可逐步升级,升级后的每一笔订单按照等级后的等级提成计算\n "),a("div",{staticClass:"mt-sm"},[t._v("\n 周期结束后,"+t._s(t.$t("action.attendantName"))+"在上一周期内累积的所有业绩,服务时长、在线时长、最低业绩、加钟率、积分以及达到的等级全部清零\n ")])])],1)],1),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("周期结束后,只清零维度数据,等级按照上期核算最高等级计算\n "),a("lb-tool-tips",{attrs:{padding:0}},[t._v(t._s(t.$t("action.attendantName"))+"在本周期(T周期)累积的所有业绩,服务时长、在线时长、最低业绩、加钟率、积分,\n "),a("div",{staticClass:"mt-sm mb-sm"},[t._v("\n 在周期结束时将5个维度数据清零,同时核算"+t._s(t.$t("action.attendantName"))+"的5个维度数据满足哪个等级,以最高等级记录,\n ")]),t._v("\n 再下一周期(T+1)按照该等级提成比例计算每一笔订单")])],1)],1)],1),t._v(" "),t.routesItem.auth.recommend?a("block",[a("el-form-item",{attrs:{label:"推荐"+t.$t("action.attendantName")+"样式",prop:"recommend_style"}},[a("el-radio-group",{model:{value:t.subForm.recommend_style,callback:function(e){t.$set(t.subForm,"recommend_style",e)},expression:"subForm.recommend_style"}},[a("el-radio",{attrs:{label:1}},[t._v("样式一")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("样式二")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"推荐"+t.$t("action.attendantName")+"方式",prop:"auto_recommend"}},[a("el-radio-group",{model:{value:t.subForm.auto_recommend,callback:function(e){t.$set(t.subForm,"auto_recommend",e)},expression:"subForm.auto_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("自动推荐")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("手动推荐")])],1)],1)],1):t._e(),t._v(" "),a("el-form-item",{attrs:{label:t.$t("action.attendantName")+"列表页样式",prop:"coach_format"}},[a("el-radio-group",{model:{value:t.subForm.coach_format,callback:function(e){t.$set(t.subForm,"coach_format",e)},expression:"subForm.coach_format"}},[a("el-radio",{attrs:{label:1}},[t._v("样式一")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("样式二")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"显示"+t.$t("action.attendantName")+"提成比例",prop:"coach_level_show"}},[a("el-radio-group",{model:{value:t.subForm.coach_level_show,callback:function(e){t.$set(t.subForm,"coach_level_show",e)},expression:"subForm.coach_level_show"}},[a("el-radio",{attrs:{label:1}},[t._v(t._s(t.$t("action.ON")))]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v(t._s(t.$t("action.OFF")))])],1),t._v(" "),a("lb-tool-tips",[t._v("开启之后,"+t._s(t.$t("action.attendantName"))+"端等级管理页面显示"+t._s(t.$t("action.attendantName"))+"的提成比例,关闭则不显示")])],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("action.attendantName")+"入驻",prop:"coach_apply_show"}},[a("el-radio-group",{model:{value:t.subForm.coach_apply_show,callback:function(e){t.$set(t.subForm,"coach_apply_show",e)},expression:"subForm.coach_apply_show"}},[a("el-radio",{attrs:{label:1}},[t._v(t._s(t.$t("action.ON")))]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v(t._s(t.$t("action.OFF")))])],1),t._v(" "),a("lb-tool-tips",[t._v("开启之后,将在移动端首页服务分类列表展示"+t._s(t.$t("action.attendantName"))+"入驻,若服务分类数量大于4,则展示在第5个,否则将展示在服务分类末尾")])],1),t._v(" "),a("el-form-item",[a("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("action.submit")))])],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"查看示例",visible:t.showDialog,"append-to-body":!0,width:"700px",center:"",top:"5vh"},on:{"update:visible":function(e){t.showDialog=e}}},[a("div",{staticClass:"flex-center c-warning"},[t._v("\n 图片上面的"+t._s(t.$t("action.attendantName"))+"字样仅作演示效果,如更改过行业服务人员名称,则实际页面将显示修改后的名称\n ")]),t._v(" "),a("div",{staticClass:"flex-between"},t._l(t.list[t.dialogType],function(e,o){return a("div",{key:o},[a("div",{staticClass:"flex-center pd-lg f-paragraph c-title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),a("img",{staticClass:"look-image",attrs:{src:e.img}})])}),0),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("知道了")])],1)])],1)},staticRenderFns:[]};var v=a("VU/8")(_,d,!1,function(t){a("QGHu")},"data-v-3a5a52dc",null);e.default=v.exports},QGHu:function(t,e){}});