1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-459e289b"],{"1d72":function(t,e,n){"use strict";n("b7efa")},"2c3e":function(t,e,n){"use strict";var a=n("83ab"),i=n("9f7f").MISSED_STICKY,r=n("c6b6"),o=n("edd0"),s=n("69f3").get,c=RegExp.prototype,l=TypeError;a&&i&&o(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===r(this))return!!s(this).sticky;throw new l("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,n){"use strict";var a=n("83ab"),i=n("da84"),r=n("e330"),o=n("94ca"),s=n("7156"),c=n("9112"),l=n("241c").f,u=n("3a9b"),d=n("44e7"),f=n("577e"),m=n("90d8"),g=n("9f7f"),p=n("aeb0"),v=n("cb2d"),b=n("d039"),h=n("1a2d"),w=n("69f3").enforce,_=n("2626"),k=n("b622"),y=n("fce3"),x=n("107c"),j=k("match"),O=i.RegExp,S=O.prototype,E=i.SyntaxError,R=r(S.exec),C=r("".charAt),$=r("".replace),D=r("".indexOf),V=r("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,I=/a/g,q=(n=new O(M)!==M,g.MISSED_STICKY),N=g.UNSUPPORTED_Y;k=a&&(!n||q||y||x||b((function(){return I[j]=!1,O(M)!==M||O(I)===I||"/a/i"!==String(O(M,"i"))})));if(o("RegExp",k)){for(var A=function(t,e){var n,a,i=u(S,this),r=d(t),o=void 0===e,l=[],g=t;if(!i&&r&&o&&t.constructor===A)return t;if((r||u(S,t))&&(t=t.source,o)&&(e=m(g)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),g=t,r=e=y&&"dotAll"in M&&(n=!!e&&-1<D(e,"s"))?$(e,/s/g,""):e,q&&"sticky"in M&&(a=!!e&&-1<D(e,"y"))&&N&&(e=$(e,/y/g,"")),x&&(t=(o=function(t){for(var e,n=t.length,a=0,i="",r=[],o={},s=!1,c=!1,l=0,u="";a<=n;a++){if("\\"===(e=C(t,a)))e+=C(t,++a);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:R(L,V(t,a+1))&&(a+=2,c=!0),i+=e,l++;continue;case">"===e&&c:if(""===u||h(o,u))throw new E("Invalid capture group name");o[u]=!0,c=!(r[r.length]=[u,l]),u="";continue}c?u+=e:i+=e}return[i,r]}(t))[0],l=o[1]),o=s(O(t,e),i?this:S,A),(n||a||l.length)&&(e=w(o),n&&(e.dotAll=!0,e.raw=A(function(t){for(var e,n=t.length,a=0,i="",r=!1;a<=n;a++)"\\"===(e=C(t,a))?i+=e+C(t,++a):r||"."!==e?("["===e?r=!0:"]"===e&&(r=!1),i+=e):i+="[\\s\\S]";return i}(t),r)),a&&(e.sticky=!0),l.length)&&(e.groups=l),t!==g)try{c(o,"source",""===g?"(?:)":g)}catch(t){}return o},P=l(O),T=0;P.length>T;)p(A,O,P[T++]);(S.constructor=A).prototype=S,v(i,"RegExp",A,{constructor:!0})}_("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l}));var a=n("ade3"),i=n("5530");function r(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,a,i={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(n in i)new RegExp("(".concat(n,")")).test(e)&&(a=i[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.length)));return e}n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("13d5"),n("b64b"),n("99af");var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function s(t,e){t.message=function(t){return e.replace("%s",t||"")}}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)({required:!0,message:t,type:"string"},e)}function l(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(c,"请输入%s"),s(l,"%s格式不正确");var u=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(i.a)(Object(i.a)({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),r)},s(t[e],o[e]),t}),{})},"7ac0":function(t,e,n){"use strict";n.r(e);var a=n("c7eb"),i=n("1da1"),r=n("5530"),o=(n("a434"),n("2f62")),s=n("bbbc"),c=n("61f7");r={name:"agent_extra",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},total:0,total2:0,userLists:[],formInline:{uid:0,proportion:0,image:""},FromData:null,loading:!1,current:0,formValidate:{page:1,limit:15,keyword:""},staffModal:!1,clerkReqData:{uid:0,page:1,limit:15},clerkLists:[]}},filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd")}},computed:Object(r.a)(Object(r.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{userSearchs:function(){this.formValidate.page=1,this.getList()},jump:function(t){this.clerkReqData.uid=t,this.getClerkList()},getClerkList:function(){var t=this;this.clerkReqData.division_type=2,Object(s.d)(this.clerkReqData).then((function(e){t.clerkLists=e.data.list,t.total2=e.data.count,t.staffModal=!0}))},getList:function(){var t=this;this.loading=!0,this.formValidate.division_type=1,Object(s.l)(this.formValidate).then(function(){var e=Object(i.a)(Object(a.a)().mark((function e(n){var i;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.data,t.userLists=i.list,t.total=i.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},groupAdd:function(t){var e=this;this.$modalForm(Object(s.k)(t)).then((function(t){e.getList()})).catch((function(t){}))},onchangeIsShow:function(t){var e=this;t={id:t.uid,status:t.division_status};Object(s.g)(t).then(function(){var t=Object(i.a)(Object(a.a)().mark((function t(n){return Object(a.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},edit:function(t){},del:function(t,e,n){var a=this;e={title:e,method:"DELETE",uid:t.uid,url:"agent/division/del/1/".concat(t.uid)};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.userLists.splice(n,1)})).catch((function(t){a.$message.error(t.msg)}))}}},n("1d72"),o=n("2877"),n=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"搜索:"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入姓名、UID"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1),e("el-form-item",[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[e("el-row",{staticClass:"ivu-mt box-wrapper"},[e("el-col",{ref:"rightBox",attrs:{xs:24,sm:24}},[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:function(e){return t.groupAdd("0")}}},[t._v("添加事业部")]),e("el-tooltip",{attrs:{placement:"right-start"}},[e("i",{staticClass:"el-icon-question ml10"}),e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[t._v("事业部层级说明:事业部-代理商-员工。事业部相当于总代理或者区域代理,设置成为事业部之后,关联的用户会清除上级推广人")]),e("div",[t._v("添加时候的管理员身份需要在,设置-管理权限-角色管理中设置对应的角色,事业部可以使用添加时设置的管理员账号密码登录后台")])])]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.userLists,"highlight-current-row":"","no-formValidate-text":"暂无数据","no-filtered-formValidate-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"用户UID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),e("el-table-column",{attrs:{label:"名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"acea-row"},[e("div",{staticClass:"ml10",domProps:{textContent:t._s(n.row.division_name)}})])]}}])}),e("el-table-column",{attrs:{label:"邀请码","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.division_invite))])]}}])}),e("el-table-column",{attrs:{label:"分销比例","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(" "+t._s(n.row.division_percent)+"%")])]}}])}),e("el-table-column",{attrs:{label:"代理商数量","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.agent_count))])]}}])}),e("el-table-column",{attrs:{label:"截止时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.division_end_time))])]}}])}),e("el-table-column",{attrs:{label:"状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:n.row.division_status,size:"large"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.division_status,callback:function(e){t.$set(n.row,"division_status",e)},expression:"scope.row.division_status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.jump(n.row.uid)}}},[t._v("查看代理商")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.groupAdd(n.row.uid)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.del(n.row,"删除员工",n.$index)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)],1),e("el-dialog",{staticClass:"order_box",attrs:{visible:t.staffModal,title:"代理商列表",width:"1000px"},on:{"update:visible":function(e){t.staffModal=e}}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt20",attrs:{data:t.clerkLists,"highlight-current-row":"","no-formValidate-text":"暂无数据","no-filtered-formValidate-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"用户UID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),e("el-table-column",{attrs:{label:"名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"acea-row"},[e("div",{staticClass:"ml10",domProps:{textContent:t._s(n.row.division_name)}})])]}}])}),e("el-table-column",{attrs:{label:"分销比例","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(" "+t._s(n.row.division_percent)+"%")])]}}])}),e("el-table-column",{attrs:{label:"到期时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(" "+t._s(t._f("formatDate")(n.row.division_end_time)))])]}}])}),e("el-table-column",{attrs:{label:"员工数量","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(" "+t._s(n.row.agent_count))])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total2?e("pagination",{attrs:{total:t.total2,page:t.clerkReqData.page,limit:t.clerkReqData.limit},on:{"update:page":function(e){return t.$set(t.clerkReqData,"page",e)},"update:limit":function(e){return t.$set(t.clerkReqData,"limit",e)},pagination:t.getClerkList}}):t._e()],1)],1)],1)}),[],!1,null,"43a9957e",null);e.default=n.exports},b7efa:function(t,e,n){},bbbc:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"o",(function(){return o})),n.d(e,"n",(function(){return s})),n.d(e,"h",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"p",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"f",(function(){return m})),n.d(e,"a",(function(){return g})),n.d(e,"e",(function(){return p})),n.d(e,"k",(function(){return v})),n.d(e,"d",(function(){return b})),n.d(e,"g",(function(){return h})),n.d(e,"m",(function(){return w})),n("99af");var a=n("6b6c");function i(t){return Object(a.a)({url:"agent/index",method:"get",params:t})}function r(t){return Object(a.a)({url:"agent/spread",method:"PUT",data:t})}function o(t){return Object(a.a)({url:"agent/statistics",method:"get",params:t})}function s(t,e){return Object(a.a)({url:t,method:"get",params:e})}function c(t){return Object(a.a)({url:"agent/look_code",method:"get",params:t})}function l(t){return Object(a.a)({url:"agent/look_xcx_code",method:"get",params:t})}function u(t){return Object(a.a)({url:"agent/look_h5_code",method:"get",params:t})}function d(t){return Object(a.a)({url:"export/userAgent",method:"get",params:t})}function f(t){return Object(a.a)({url:"agent/division/list",method:"get",params:t})}function m(t){return Object(a.a)({url:"agent/division/agent_apply/list",method:"get",params:t})}function g(t){return Object(a.a)({url:"agent/division/agent/create/".concat(t),method:"get"})}function p(t,e){return Object(a.a)({url:"agent/division/examine_apply/".concat(t,"/").concat(e),method:"get"})}function v(t){return Object(a.a)({url:"agent/division/create/".concat(t),method:"get"})}function b(t){return Object(a.a)({url:"agent/division/down_list",method:"get",params:t})}function h(t){return Object(a.a)({url:"agent/division/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function w(t){return Object(a.a)({url:"agent/division/staff/create/".concat(t),method:"get"})}},c607:function(t,e,n){"use strict";var a=n("83ab"),i=n("fce3"),r=n("c6b6"),o=n("edd0"),s=n("69f3").get,c=RegExp.prototype,l=TypeError;a&&i&&o(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===r(this))return!!s(this).dotAll;throw new l("Incompatible receiver, RegExp required")}}})}}]);
|