王总上门按摩后台代码
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
28 KiB

webpackJsonp([92],{C3LR:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),i=a.n(r),n=a("exGp"),s=a.n(n),l=a("mvHQ"),o=a.n(l),c=a("PJh5"),m=a.n(c),u={data:function(){return{cityType:{3:{type:"success",text:"省"},1:{type:"primary",text:"城市"},2:{type:"danger",text:"区县"}},loading:{list:!1,user:!1,pid:!1},searchForm:{list:{page:1,limit:10,username:"",nickName:""},user:{page:1,limit:10,nickName:""},pid:{page:1,limit:10,nickName:"",city_id:""}},tableData:{list:[],user:[],pid:[]},total:{list:0,user:0,pid:0},currentRow:{},base_city:[],showDialog:{sub:!1,user:!1,pid:!1},subForm:{id:0,username:"",passwd_text:"",agent_name:"",license:[],phone:"",city_type:3,city_id:"",city_data:[],balance:"",admin_pid:"",admin_ptitle:"",level_balance:"",user_id:"",nickName:"",phone_admin_num:0,phone_encryption:0,salesman_auth:0,channel_auth:0,partner_auth:0},subFormRules:{username:{required:!0,validator:this.$reg.isNotNull,reg_type:2,text:"账号",trigger:"blur"},passwd_text:{required:!0,type:"string",message:"请输入密码",trigger:"blur"},agent_name:{required:!0,validator:this.$reg.isNotNull,reg_type:2,text:"真实姓名",trigger:"blur"},phone:{required:!0,validator:this.$reg.isTel,text:"服务电话",trigger:"blur"},city_type:{required:!0,type:"number",message:"请选择代理等级",trigger:"blur"},balance:{required:!0,type:"number",message:"请输入平台抽成",trigger:"blur"},user_id:{required:!0,type:"number",message:"请选择关联用户",trigger:"blur"},phone_admin_num:{required:!0,validator:this.$reg.isNum,text:"管理员授权个数",trigger:"blur"}}}},created:function(){this.getTableDataList(1,"list")},methods:{resetForm:function(e){var t=e+"Form";this.$refs[t].resetFields(),this.getTableDataList(1,e)},handleSizeChange:function(e,t){this.searchForm[t].limit=e,this.handleCurrentChange(1,t)},handleCurrentChange:function(e,t){this.searchForm[t].page=e,this.getTableDataList("",t)},getTableDataList:function(e,t){var a=this;e&&(this.searchForm[t].page=1),this.loading[t]=!0;var r=JSON.parse(o()(this.searchForm[t]));if("pid"===t){var i=JSON.parse(o()(this.subForm)),n=i.id,s=void 0===n?0:n,l=i.city_type,c=i.city_data;r.id=s,1!==l&&c.splice(c.length-1,1),r.city_id=1===l?[c[0]]:c}var m={list:"franchiseeList",user:"userList",pid:"franchiseeList"}[t];this.$api.agent[m](r).then(function(e){if(a.loading[t]=!1,200===e.code){var r=e.data,i=r.data,n=r.total;a.tableData[t]=i,a.total[t]=n}})},getCover:function(e){this.subForm.license=e},toShowDialog:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s()(i.a.mark(function r(){var n,s,l,c,m;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=JSON.parse(o()(a)),"user"!==e&&"pid"!==e){r.next=10;break}if("user"===e&&(t.searchForm.user.nickName=""),"pid"!==e){r.next=8;break}if(n=t.subForm,s=n.city_type,l=void 0===s?3:s,c=n.city_data,!(1===l&&c.length<2||2===l&&c.length<3)){r.next=8;break}return t.$message.error("请选择"+t.cityType[l].text),r.abrupt("return");case 8:return r.next=10,t.getTableDataList(1,e);case 10:if("sub"!==e){r.next=16;break}for(m in a.id||(a={id:0,username:"",passwd_text:"",agent_name:"",license:[],phone:"",city_type:3,city_id:"",city_data:[],balance:"",admin_pid:"",admin_ptitle:"",level_balance:"",user_id:"",nickName:"",phone_admin_num:0,phone_encryption:0,salesman_auth:0,channel_auth:0,partner_auth:0}),a.license=a.license&&a.license.length>0?[{url:a.license}]:[],t[e+"Form"])t[e+"Form"][m]=a[m];return r.next=16,t.getCityList();case 16:t.showDialog[e]=!0;case 17:case"end":return r.stop()}},r,t)}))()},getCityList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return s()(i.a.mark(function a(){var r,n,s,l,o,c,m;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.subForm,n=r.city_type,s=void 0===n?3:n,l=r.city_data,t&&(1===t&&l.length>2&&l.splice(2,1),3===t&&l.length>0&&(l=[l[0]]),e.subForm.city_data=l),a.next=4,e.$api.system.citySelect({city_type:3});case 4:if(o=a.sent,c=o.code,m=o.data,200===c){a.next=9;break}return a.abrupt("return");case 9:m.map(function(e){3===s&&delete e.children,e.children&&e.children.map(function(e){1!==s&&0!==e.children.length||delete e.children})}),e.base_city=m;case 11:case"end":return a.stop()}},a,e)}))()},handleTableChange:function(e,t){var a=e=JSON.parse(o()(e)),r=a.id,i=a.nickName,n=a.username,s=void 0===n?"":n;"pid"===t?e.admin_ptitle=s:e.nickName=i||"用户ID "+r,this.currentRow=e},submitForm:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return s()(i.a.mark(function r(){var n,s,l,c,m,u,p,d,_,b,v,h,g,f,y;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=!0,1===a&&t.$refs[e+"Form"].validate(function(e){e||(n=!1)}),!n){r.next=39;break}if("sub"===e){r.next=11;break}if(null!==t.currentRow&&t.currentRow.id){r.next=7;break}return t.$message.error("user"===e?"请选择用户":"请选择上级代理"),r.abrupt("return");case 7:return s=t.currentRow,l=s.id,c=void 0===l?0:l,m=s.nickName,u=void 0===m?"":m,p=s.username,d=void 0===p?"":p,"user"===e?(t.subForm.user_id=c,t.subForm.nickName=u):(t.subForm.admin_pid=c,t.subForm.admin_ptitle=d),t.showDialog[e]=!1,r.abrupt("return");case 11:if(_=t.cityType,!((b=JSON.parse(o()(t[e+"Form"]))).username.length<2||b.passwd_text.length<6)){r.next=16;break}return t.$message.error(b.username.length<2?"账号不能少于2位数":"密码不能少于6位数"),r.abrupt("return");case 16:if(v=b.city_type,h=b.city_data,!(1===v&&h.length<2||2===v&&h.length<3||3===v&&0===h.length)){r.next=20;break}return t.$message.error("请选择"+_[v].text),r.abrupt("return");case 20:if(b.city_id=h[h.length-1],g=100-1*b.balance,!(b.admin_pid&&1*b.level_balance>=g)){r.next=25;break}return t.$message.error("上级代理抽成不能大于或等于当前代理提成 (当前代理提成"+g+"%)"),r.abrupt("return");case 25:return b.license=b.license&&b.license.length>0?b.license[0].url:"",delete b.city_data,delete b.admin_ptitle,delete b.nickName,f=b.id?"adminUpdate":"adminAdd",r.next=32,t.$api.agent[f](b);case 32:if(y=r.sent,200===y.code){r.next=36;break}return r.abrupt("return");case 36:t.$message.success(t.$t(b.id?"tips.successRev":"tips.successSub")),t.showDialog[e]=!1,t.getTableDataList("","list");case 39:case"end":return r.stop()}},r,t)}))()},confirmDel:function(e){var t=this;this.$confirm(this.$t("tips.franchiseeDelete"),this.$t("tips.reminder"),{confirmButtonText:this.$t("action.comfirm"),cancelButtonText:this.$t("action.cancel"),type:"warning"}).then(function(){t.$api.agent.adminStatusUpdate({id:e,status:"-1"}).then(function(e){t.$message.success(t.$t("tips.successDel")),t.searchForm.list.page=t.searchForm.list.page<Math.ceil((t.total.list-1)/t.searchForm.list.limit)?t.searchForm.list.page:Math.ceil((t.total.list-1)/t.searchForm.list.limit),t.getTableDataList("","list")})})}},filters:{handleTime:function(e,t){return 1===t?m()(1e3*e).format("YYYY-MM-DD"):2===t?m()(1e3*e).format("HH:mm:ss"):m()(1e3*e).format("YYYY-MM-DD HH:mm:ss")}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lb-shop-order"},[a("top-nav"),e._v(" "),a("div",{staticClass:"page-main"},[a("el-row",{staticClass:"page-top-operate"},[a("lb-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.$route.name+"-add",expression:"`${$route.name}-add`"}],attrs:{size:"medium",type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.toShowDialog("sub")}}},[e._v(e._s(e.$t("menu.AgentAccountAdd")))])],1),e._v(" "),a("el-row",{staticClass:"page-search-form"},[a("el-form",{ref:"listForm",attrs:{inline:!0,model:e.searchForm.list},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"账号名称",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号名称"},model:{value:e.searchForm.list.username,callback:function(t){e.$set(e.searchForm.list,"username",t)},expression:"searchForm.list.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"关联用户",prop:"nickName"}},[a("el-input",{attrs:{placeholder:"请输入关联用户"},model:{value:e.searchForm.list.nickName,callback:function(t){e.$set(e.searchForm.list,"nickName",t)},expression:"searchForm.list.nickName"}})],1),e._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(t){return e.getTableDataList(1,"list")}}},[e._v(e._s(e.$t("action.search")))]),e._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(t){return e.resetForm("list")}}},[e._v(e._s(e.$t("action.reset")))])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading.list,expression:"loading.list"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list,"header-cell-style":{background:"#f5f7fa",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"username",label:"账号名称","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"passwd_text",label:"账号密码","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"agent_name",label:"真实姓名","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"city_type",label:"代理等级","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:e.cityType[t.row.city_type].type}},[e._v(e._s(e.cityType[t.row.city_type].text))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"city",label:"省/城市/区县","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(3===t.row.city_type?t.row.province:1===t.row.city_type?t.row.city_id?t.row.province+" "+t.row.city:"-":t.row.city_id?t.row.province?t.row.province+" "+t.row.city+" "+t.row.area:t.row.city+" "+t.row.area:"-")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user_id",label:"关联用户ID","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickName",label:"关联用户昵称","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"服务电话","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"balance",label:"平台抽成比例","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.balance)+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"admin_pid",label:"上级代理账号名称","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.admin_pid?t.row.admin_ptitle:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"balance",label:"上级代理抽成","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.admin_pid?t.row.level_balance+"%":"-")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(e._f("handleTime")(t.row.create_time,1)))]),e._v(" "),a("p",[e._v(e._s(e._f("handleTime")(t.row.create_time,2)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"table-operate"},[a("lb-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.$route.name+"-edit",expression:"`${$route.name}-edit`"}],attrs:{size:"mini",type:"primary",plain:""},on:{click:function(a){return e.toShowDialog("sub",t.row)}}},[e._v(e._s(e.$t("action.edit")))]),e._v(" "),a("lb-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.$route.name+"-delete",expression:"`${$route.name}-delete`"}],attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){return e.confirmDel(t.row.id)}}},[e._v(e._s(e.$t("action.delete")))])],1)]}}])})],1),e._v(" "),a("lb-page",{attrs:{batch:!1,page:e.searchForm.list.page,pageSize:e.searchForm.list.limit,total:e.total.list},on:{handleSizeChange:function(t){return e.handleSizeChange(t,"list")},handleCurrentChange:function(t){return e.handleCurrentChange(t,"list")}}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.$t(e.subForm.id?"menu.AgentAccountEdit":"menu.AgentAccountAdd"),visible:e.showDialog.sub,width:"800px",center:"","append-to-body":!0},on:{"update:visible":function(t){return e.$set(e.showDialog,"sub",t)}}},[a("lb-tips",[e._v("\n 提成方式计算规则\n "),a("el-popover",{attrs:{placement:"top-start",width:"750",trigger:"hover"}},[a("div",{staticClass:"f-caption c-title",attrs:{slot:""},slot:"default"},[a("p",{staticClass:"mb-sm"},[e._v("例如:订单实付金额为100元(不含车费)")]),e._v(" "),a("p",{staticClass:"mb-sm"},[e._v("\n 1、"+e._s(e.$t("action.attendantName"))+"提成比例70%,分销合伙人提成比例为10%,平台提成比例为20%\n ")]),e._v(" "),a("p",{staticClass:"mb-md c-warning",staticStyle:{"margin-left":"20px"}},[e._v("\n 当 "+e._s(e.$t("action.attendantName"))+"提成比例 + 分销合伙人提成比例 +\n 平台提成比例 >= 100% 时,代理商无提成\n ")]),e._v(" "),a("p",{staticClass:"mb-sm"},[e._v("\n 2、"+e._s(e.$t("action.attendantName"))+"提成比例60%,分销合伙人提成比例为5%,平台提成比例为10%\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"20px"}},[e._v("\n (1)、当代理商代理等级为省时:\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"50px"}},[e._v("\n 省代理商提成金额 = 100 * ( 100 - 60 - 5 - 10)%\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"150px"}},[e._v("= 100 * 25%")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"150px"}},[e._v("= 25元")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"20px"}},[e._v("\n (2)、当代理商代理等级为城市时:\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"50px"}},[e._v("\n 1)、上级省代理商提成比例25%\n ")]),e._v(" "),a("p",{staticClass:"mb-md c-link",staticStyle:{"margin-left":"80px"}},[e._v("\n 当 "+e._s(e.$t("action.attendantName"))+"提成比例 + 分销合伙人提成比例 +\n 平台提成比例 + 上级省代理商提成比例 >= 100% 时,城市代理商无提成\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"50px"}},[e._v("\n 2)、上级省代理商提成比例12%\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"80px"}},[e._v("\n 城市代理商提成金额 = 100 * ( 100 - 60 - 5 - 10 - 12)%\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"193px"}},[e._v("= 100 * 13%")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"193px"}},[e._v("= 13元")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"20px"}},[e._v("\n (3)、当代理商代理等级为区县时:\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"50px"}},[e._v("\n 1)、上级省代理商提成比例为15%,上级城市代理商提成比例10%\n ")]),e._v(" "),a("p",{staticClass:"mb-md c-link",staticStyle:{"margin-left":"80px"}},[e._v("\n 当 "+e._s(e.$t("action.attendantName"))+"提成比例 + 分销合伙人提成比例 +\n 平台提成比例 + 上级省代理商提成比例 + 上级城市代理商提成比例 >=\n 100% 时,区县代理商无提成\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-warning",staticStyle:{"margin-left":"50px"}},[e._v("\n 2)、上级省代理商提成比例为8%,上级城市代理商提成比例5%\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"80px"}},[e._v("\n 区县代理商提成金额 = 100 * ( 100 - 60 - 5 - 10 - 8 - 5)%\n ")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"193px"}},[e._v("= 100 * 12%")]),e._v(" "),a("p",{staticClass:"mb-sm c-link",staticStyle:{"margin-left":"193px"}},[e._v("= 12元")])]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{color:"#000"},attrs:{slot:"reference"},slot:"reference"})]),e._v("\n :"+e._s(e.$t("action.attendantName"))+"提成 > 分销合伙人提成 > 平台提成 >\n 省代理商 > 城市代理商 > 区县代理商\n ")],1),e._v(" "),a("el-form",{ref:"subForm",staticClass:"dialog-form",attrs:{model:e.subForm,rules:e.subFormRules,"label-width":"140px"}},[a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号",maxlength:"20","show-word-limit":""},model:{value:e.subForm.username,callback:function(t){e.$set(e.subForm,"username",t)},expression:"subForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"密码",prop:"passwd_text"}},[a("el-input",{attrs:{placeholder:"请输入密码",maxlength:"20","show-word-limit":""},model:{value:e.subForm.passwd_text,callback:function(t){e.$set(e.subForm,"passwd_text",t)},expression:"subForm.passwd_text"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"真实姓名",prop:"agent_name"}},[a("el-input",{attrs:{placeholder:"请输入真实姓名",maxlength:"20","show-word-limit":""},model:{value:e.subForm.agent_name,callback:function(t){e.$set(e.subForm,"agent_name",t)},expression:"subForm.agent_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业执照",prop:"license"}},[a("lb-cover",{attrs:{fileList:e.subForm.license},on:{selectedFiles:e.getCover}})],1),e._v(" "),a("el-form-item",{attrs:{label:"代理等级",prop:"city_type"}},[a("el-radio-group",{on:{change:function(t){return e.getCityList(t)}},model:{value:e.subForm.city_type,callback:function(t){e.$set(e.subForm,"city_type",t)},expression:"subForm.city_type"}},[a("el-radio",{attrs:{label:3}},[e._v("省代理")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("城市代理")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("区县代理")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"选择"+e.cityType[e.subForm.city_type].text,prop:"city_data"}},[a("el-cascader",{attrs:{size:"large",options:e.base_city,placeholder:"请选择"+e.cityType[e.subForm.city_type].text,props:{checkStrictly:!0,label:"title",value:"id"}},on:{change:e.handleChange},model:{value:e.subForm.city_data,callback:function(t){e.$set(e.subForm,"city_data",t)},expression:"subForm.city_data"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"关联用户",prop:"user_id"}},[a("el-tag",{staticClass:"cursor-pointer",on:{click:function(t){return e.toShowDialog("user")}}},[e._v(e._s(e.subForm.user_id?e.subForm.nickName||"用户ID "+e.subForm.user_id:"选择关联用户"))])],1),e._v(" "),a("el-form-item",{attrs:{label:"服务电话",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入服务电话"},model:{value:e.subForm.phone,callback:function(t){e.$set(e.subForm,"phone",t)},expression:"subForm.phone"}}),e._v(" "),a("lb-tool-tips",[e._v("代理商服务电话用于客户咨询,请填写有效的联系电话")])],1),e._v(" "),a("el-form-item",{attrs:{label:"平台抽成比例",prop:"balance"}},[a("el-input-number",{staticClass:"lb-input-number",attrs:{min:0,max:100,precision:0,controls:!1,placeholder:"请输入平台抽成比例"},model:{value:e.subForm.balance,callback:function(t){e.$set(e.subForm,"balance",t)},expression:"subForm.balance"}}),e._v(" "),a("block",[e._v("%")]),e._v(" "),a("lb-tool-tips",[a("p",{staticClass:"mb-sm"},[e._v("平台抽成取值0%到100%")]),e._v(" "),a("p",{staticClass:"mb-sm"},[e._v("\n 设置为0%,表示平台不抽成,除去"+e._s(e.$t("action.attendantName"))+"和分销合伙人的提成后,剩下都归代理商\n ")]),e._v(" "),a("p",[e._v("\n 设置100%,则表示代理商无提成,除去"+e._s(e.$t("action.attendantName"))+"和代理商的提成后,剩下都归平台\n ")])])],1),e._v(" "),3!==e.subForm.city_type&&e.subForm.city_data.length>0?a("el-form-item",{attrs:{label:"关联上级代理",prop:""}},[a("el-tag",{staticClass:"cursor-pointer",on:{click:function(t){return e.toShowDialog("pid")}}},[e._v(e._s(e.subForm.admin_pid?e.subForm.admin_ptitle:"选择关联上级代理"))])],1):e._e(),e._v(" "),3!==e.subForm.city_type&&e.subForm.admin_pid?a("el-form-item",{attrs:{label:"上级代理抽成",prop:"level_balance"}},[a("el-input-number",{staticClass:"lb-input-number",attrs:{min:0,max:100,precision:0,controls:!1,placeholder:"请输入上级代理抽成"},model:{value:e.subForm.level_balance,callback:function(t){e.$set(e.subForm,"level_balance",t)},expression:"subForm.level_balance"}}),e._v(" "),a("block",[e._v("%")]),e._v(" "),a("lb-tool-tips",[e._v(e._s(e.cityType[e.subForm.city_type].text)+"代理需要分给上级代理的比例。例如"+e._s(e.cityType[e.subForm.city_type].text)+"代理可分得40%\n "),a("div",{staticClass:"mt-sm"},[e._v("\n 如果设置了上级抽成10%,则"+e._s(e.cityType[e.subForm.city_type].text)+"代理只分得30%\n ")])])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"管理员授权个数",prop:"phone_admin_num"}},[a("el-input",{attrs:{placeholder:"请输入管理员授权个数"},model:{value:e.subForm.phone_admin_num,callback:function(t){e.$set(e.subForm,"phone_admin_num",t)},expression:"subForm.phone_admin_num"}}),e._v(" "),a("lb-tool-tips",[e._v("代理商可添加手机端管理员的个数,添加的管理员可协助代理商管理订单")])],1),e._v(" "),a("el-form-item",{attrs:{label:"查看真实号码",prop:"phone_encryption"}},[a("el-radio-group",{model:{value:e.subForm.phone_encryption,callback:function(t){e.$set(e.subForm,"phone_encryption",t)},expression:"subForm.phone_encryption"}},[a("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("action.ON")))]),e._v(" "),a("el-radio",{attrs:{label:0}},[e._v(e._s(e.$t("action.OFF")))])],1),e._v(" "),a("lb-tool-tips",[e._v("开启之后,该代理商能在自己的后台看到订单里的真实电话号码")])],1),e._v(" "),a("el-form-item",{attrs:{label:"邀请业务员",prop:"salesman_auth"}},[a("el-radio-group",{model:{value:e.subForm.salesman_auth,callback:function(t){e.$set(e.subForm,"salesman_auth",t)},expression:"subForm.salesman_auth"}},[a("el-radio",{attrs:{label:0}},[e._v("无权限")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("有权限")])],1),e._v(" "),a("lb-tool-tips",[e._v("开启之后,该代理商能在自己的手机端邀请业务员,并在后台审核业务员申请")])],1),e._v(" "),a("el-form-item",{attrs:{label:"邀请渠道商",prop:"channel_auth"}},[a("el-radio-group",{model:{value:e.subForm.channel_auth,callback:function(t){e.$set(e.subForm,"channel_auth",t)},expression:"subForm.channel_auth"}},[a("el-radio",{attrs:{label:0}},[e._v("无权限")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("有权限")])],1),e._v(" "),a("lb-tool-tips",[e._v("开启之后,该代理商能在自己的手机端邀请渠道商,并在后台审核渠道商申请")])],1),e._v(" "),a("el-form-item",{attrs:{label:"经纪人拉"+e.$t("action.attendantName"),prop:"partner_auth"}},[a("el-radio-group",{model:{value:e.subForm.partner_auth,callback:function(t){e.$set(e.subForm,"partner_auth",t)},expression:"subForm.partner_auth"}},[a("el-radio",{attrs:{label:0}},[e._v("无权限")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("有权限")])],1),e._v(" "),a("lb-tool-tips",[e._v("开启之后,该经纪人能帮该代理商拉"+e._s(e.$t("action.attendantName"))+",同时该代理商需要分佣给该"+e._s(e.$t("action.attendantName"))+"经纪人")])],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.showDialog.sub=!1}}},[e._v(e._s(e.$t("action.cancel")))]),e._v(" "),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:function(t){return e.submitForm("sub",1)}}},[e._v(e._s(e.$t("action.comfirm")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"关联用户",visible:e.showDialog.user,width:"800px",center:""},on:{"update:visible":function(t){return e.$set(e.showDialog,"user",t)}}},[a("el-form",{ref:"userForm",attrs:{inline:!0,model:e.searchForm.user,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"输入查询",prop:"nickName"}},[a("el-input",{attrs:{placeholder:"请输入用户昵称/手机号"},model:{value:e.searchForm.user.nickName,callback:function(t){e.$set(e.searchForm.user,"nickName",t)},expression:"searchForm.user.nickName"}})],1),e._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(t){return e.getTableDataList(1,"user")}}},[e._v(e._s(e.$t("action.search")))]),e._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(t){return e.resetForm("user")}}},[e._v(e._s(e.$t("action.reset")))])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading.user,expression:"loading.user"}],ref:"singleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData.user,"header-cell-style":{background:"#f5f7fa",color:"#606266"},"tooltip-effect":"dark","highlight-current-row":""},on:{"current-change":function(t){return e.handleTableChange(t,"user")}}},[a("el-table-column",{attrs:{prop:"id",label:"用户ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"avatarUrl",label:"头像"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("lb-image",{attrs:{src:e.row.avatarUrl}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"nickName",label:"昵称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}})],1),e._v(" "),a("lb-page",{attrs:{batch:!1,page:e.searchForm.user.page,pageSize:e.searchForm.user.limit,total:e.total.user},on:{handleSizeChange:function(t){return e.handleSizeChange(t,"user")},handleCurrentChange:function(t){return e.handleCurrentChange(t,"user")}}}),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.showDialog.user=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:function(t){return e.submitForm("user",2)}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"关联上级代理",visible:e.showDialog.pid,width:"800px",center:""},on:{"update:visible":function(t){return e.$set(e.showDialog,"pid",t)}}},[a("el-form",{ref:"pidForm",attrs:{inline:!0,model:e.searchForm.pid,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"输入查询",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号名称"},model:{value:e.searchForm.pid.username,callback:function(t){e.$set(e.searchForm.pid,"username",t)},expression:"searchForm.pid.username"}})],1),e._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(t){return e.getTableDataList(1,"pid")}}},[e._v(e._s(e.$t("action.search")))]),e._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(t){return e.resetForm("pid")}}},[e._v(e._s(e.$t("action.reset")))])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading.pid,expression:"loading.pid"}],ref:"singleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData.pid,"header-cell-style":{background:"#f5f7fa",color:"#606266"},"tooltip-effect":"dark","highlight-current-row":""},on:{"current-change":function(t){return e.handleTableChange(t,"pid")}}},[a("el-table-column",{attrs:{prop:"user_id",label:"用户ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickName",label:"用户昵称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"username",label:"账号名称"}})],1),e._v(" "),a("lb-page",{attrs:{batch:!1,page:e.searchForm.pid.page,pageSize:e.searchForm.pid.limit,total:e.total.pid},on:{handleSizeChange:function(t){return e.handleSizeChange(t,"pid")},handleCurrentChange:function(t){return e.handleCurrentChange(t,"pid")}}}),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.showDialog.pid=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:function(t){return e.submitForm("pid",2)}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(e){a("Qrj2")},null,null);t.default=d.exports},Qrj2:function(e,t){}});