猎户系统

3.e4eabe81e47dc9f0e8f8.js 16KB

1
  1. webpackJsonp([3],{"+MLA":function(t,e,n){var i=n("EqjI"),r=n("06OY").onFreeze;n("uqUo")("freeze",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},"3C/1":function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("qCoq"),n("UvrK"),n("Xjd4"),n("bqnK"),t.exports=n("FeBl").Map},"4WTo":function(t,e,n){var i=n("NWt+");t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},"7Doy":function(t,e,n){var i=n("EqjI"),r=n("7UMu"),a=n("dSzd")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},"9Bbf":function(t,e,n){"use strict";var i=n("kM2E");t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},"9C8M":function(t,e,n){"use strict";var i=n("evD5").f,r=n("Yobk"),a=n("xH/j"),s=n("+ZMJ"),o=n("2KxR"),c=n("NWt+"),l=n("vIB/"),u=n("EGZi"),d=n("bRrM"),f=n("+E39"),v=n("06OY").fastKey,p=n("LIJb"),h=f?"_s":"size",_=function(t,e){var n,i=v(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t(function(t,i){o(t,u,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[h]=0,void 0!=i&&c(i,n,t[l],t)});return a(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=p(this,e),i=_(n,t);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[h]--}return!!i},forEach:function(t){p(this,e);for(var n,i=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!_(p(this,e),t)}}),f&&i(u.prototype,"size",{get:function(){return p(this,e)[h]}}),u},def:function(t,e,n){var i,r,a=_(t,e);return a?a.v=n:(t._l=a={i:r=v(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=a),i&&(i.n=a),t[h]++,"F"!==r&&(t._i[r]=a)),t},getEntry:_,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),d(e)}}},ALrJ:function(t,e,n){var i=n("+ZMJ"),r=n("MU5D"),a=n("sB3e"),s=n("QRG4"),o=n("oeOm");t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,d=6==t,f=5==t||d,v=e||o;return function(e,o,p){for(var h,_,g=a(e),m=r(g),b=i(o,p,3),w=s(m.length),x=0,k=n?v(e,w):c?v(e,0):void 0;w>x;x++)if((f||x in m)&&(_=b(h=m[x],x,g),t))if(n)k[x]=_;else if(_)switch(t){case 3:return!0;case 5:return h;case 6:return x;case 2:k.push(h)}else if(u)return!1;return d?-1:l||u?u:k}}},HH7m:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Xxa5"),r=n.n(i),a=n("exGp"),s=n.n(a),o=n("ifoU"),c=n.n(o),l=n("McOJ"),u=n("LYKV"),d=n("//Fk"),f=n.n(d),v=n("Dd8w"),p=n.n(v),h=n("u2KI"),_=n.n(h),g=[{label:"ADQ",value:"1"},{label:"MP",value:"2"}],m={name:"memberInfoBind",props:{dialogVisible:{type:Boolean,default:function(){return!1}},userInfo:{type:Object,default:function(){return{account_id:"",user_id:""}}}},data:function(){return{loading:!1,typeOptions:_()(g),adqOptions:[],form:{account_id:"",user_id:""}}},watch:{dialogVisible:function(t){t&&(this.handleGetAdqOptions(),this.handleGetFormData())}},methods:{handleGetAdqOptions:function(){var t=this;return s()(r.a.mark(function e(){var n,i,a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.get(t.URL.BASEURL+t.URL.adqAccount_list,{params:{is_select:1}});case 2:n=e.sent,i=n.data,(a=void 0===i?{}:i)&&0==a.errno?t.adqOptions=a.rst:4002!=a.errno&&t.$message.warning(a.err);case 6:case"end":return e.stop()}},e,t)}))()},handleConfirm:function(){var t=this;return s()(r.a.mark(function e(){var n,i,a,s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.handleFormValidate();case 3:return n=p()({},t.form),t.loading=!0,e.next=7,t.$axios.post(""+t.URL.BASEURL+t.URL.manage_bindUserAdqAccountId,p()({},n));case 7:i=e.sent,a=i.data,(s=void 0===a?{}:a)&&0==s.errno?(t.$message.success("操作成功"),t.handleClearFormData(),t.$emit("confirm")):4002!=s.errno&&t.$message.warning(s.err||"操作失败"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log("error => ",e.t0);case 16:return e.prev=16,t.loading=!1,e.finish(16);case 19:case"end":return e.stop()}},e,t,[[0,13,16,19]])}))()},handleCancel:function(){this.handleClearFormData(),this.$emit("cancel")},handleFormValidate:function(){return new f.a(function(t,e){t("表单校验通过")})},handleGetFormData:function(){var t=this.userInfo,e=t.account_id,n=void 0===e?"":e,i=t.user_id,r=void 0===i?"":i;this.form.account_id=n||"",this.form.user_id=r},handleClearFormData:function(){this.form.account_id="",this.form.user_id=""}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"bind-dialog",attrs:{visible:t.dialogVisible,"before-close":t.handleCancel,title:"信息绑定",width:"450px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"form-wrap"},[n("div",{staticClass:"form-item"},[n("span",{staticClass:"lable required"},[t._v("所属类型")]),t._v(" "),n("span",[t._v("ADQ")])]),t._v(" "),n("div",{staticClass:"form-item"},[n("span",{staticClass:"lable"},[t._v("投放账号")]),t._v(" "),n("el-select",{attrs:{size:"small",placeholder:"请选择投放账号",clearable:"",filterable:""},model:{value:t.form.account_id,callback:function(e){t.$set(t.form,"account_id",e)},expression:"form.account_id"}},t._l(t.adqOptions,function(t){return n("el-option",{key:t.account_id,attrs:{label:t.account_id,value:t.account_id}})}),1)],1),t._v(" "),n("div",{staticClass:"form-tips"},[t._v("可传空,此时会将原来设置的投放账号置空")])]),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"mini"},on:{click:t.handleCancel}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleConfirm}},[t._v("确 定")])],1)])},staticRenderFns:[]};var w=n("VU/8")(m,b,!1,function(t){n("nzZa")},"data-v-0b3c78db",null).exports,x=n("la//"),k=new c.a([[String(x.c.MP),"MP"],[String(x.c.ADQ),"ADQ"]]),C={name:"memberManage",components:{selfinput:l.a,userDetail:u.a,memberInfoBind:w},data:function(){return{userDetailFlag:!1,drawerSize:"60%",loading:!1,page:1,pages:0,total:0,page_size:20,tableData:[],checkVals:[],depart_List:[],keyword:"",height:"",user_detail_id:"",infoBindDialogVisible:!1,currentBindInfo:{},is_active:""}},created:function(){this.height=document.documentElement.clientHeight-200>400?document.documentElement.clientHeight-200:400,this.init_depart(),this.init()},methods:{detailEvent:function(t){this.userDetailFlag=!0,this.user_detail_id=t.user_id},closeDrawer:function(){this.userDetailFlag=!1},changeDrawerSize:function(){this.drawerSize="80%"==this.drawerSize?"60%":"80%"},inputChange:function(t){this.keyword=t,this.init()},init_depart:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.departmentList,{}).then(function(e){(e=e.data)&&0==e.errno?(t.depart_List=e.rst,t.checkVals=e.rst.map(function(t){return t.department_id})):4002!=e.errno&&t.$message({message:e.err,type:"warning"})})},init:function(t){var e=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.memberList,{params:{user_name:this.keyword,department_list:this.checkVals,is_active:this.is_active,page:t||1,page_size:this.page_size}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.tableData=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)},checkDepartId:function(t){-1==this.checkVals.indexOf(t)?this.checkVals.push(t):this.checkVals.splice(this.checkVals.indexOf(t),1),this.init()},onClickInfoBind:function(t){var e=this,n=t.name,i=void 0===n?"":n,a=t.user_id,o=void 0===a?"":a,c=t.account_id,l=void 0===c?"":c;return s()(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!l){t.next=5;break}return n=e.$createElement,t.next=5,e.$confirm("",{message:n("div",null,[n("span",{style:"color: #32B38A;"},""+i),n("span",null,"已经关联投放账号,是否确认修改?")]),confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 5:e.currentBindInfo={user_id:o,account_id:l},e.infoBindDialogVisible=!0,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0);case 12:case"end":return t.stop()}},t,e,[[0,9]])}))()},handleInfoBindCancel:function(){this.currentBindInfo={},this.infoBindDialogVisible=!1},handleInfoBindConfirm:function(){this.infoBindDialogVisible=!1,this.init()},getOrderTypeDesc:function(t){return k.get(String(t))||"-"}}},y={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"tableInfo"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"totalCustom"},[n("i",{staticClass:"el-icon-user-solid"}),t._v("\n 共"),n("span",[t._v(t._s(t.total))]),t._v("个成员\n ")])]),t._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"rMar10 pageFlex"},[n("div",{staticClass:"f14 rMar10"},[t._v("是否激活: ")]),t._v(" "),n("el-select",{staticClass:"select-cls",staticStyle:{width:"100px"},attrs:{size:"small",placeholder:"请选择",clearable:""},on:{change:t.init},model:{value:t.is_active,callback:function(e){t.is_active=e},expression:"is_active"}},[n("el-option",{key:"0",attrs:{label:"否",value:0}}),t._v(" "),n("el-option",{key:"1",attrs:{label:"是",value:1}})],1)],1),t._v(" "),n("selfinput",{attrs:{hasLabel:!1},on:{inputChange:t.inputChange}})],1)]),t._v(" "),n("div",{staticStyle:{display:"flex"}},[n("div",{staticStyle:{width:"300px","flex-shrink":"0","margin-right":"10px","background-color":"#fff",padding:"15px"}},[n("div",{staticClass:"fWeight600"},[t._v("\n 部门信息\n ")]),t._v(" "),n("div",t._l(t.depart_List,function(e){return n("div",{key:e.department_id,staticClass:"tMar20 flex-align-center pointer f15",on:{click:function(n){return t.checkDepartId(e.department_id)}}},[t.checkVals.indexOf(e.department_id)>-1?n("i",{staticClass:"el-icon-success c-00B38A f16 rMar7"}):n("i",{staticClass:"el-icon-circle rMar7"}),t._v("\n "+t._s(e.department_name)+"\n ")])}),0)]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{flex:"1",overflow:"hidden"}},[n("el-table",{ref:"multipleTable",attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{"min-width":"180",label:"成员列表","show-overflow-tooltip":"",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex-align-center"},[n("div",[n("img",{staticStyle:{width:"40px","margin-right":"10px","border-radius":"3px"},attrs:{src:e.row.avatar,alt:""}})]),t._v(" "),n("div",[n("div",[t._v(t._s(e.row.name))]),t._v(" "),n("div",[t._v("共有"+t._s(e.row.customer_number)+"个客户")])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"200",label:"所属部门",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("span",{staticClass:"rMar7"},[t._v(t._s(e.row.department_list&&e.row.department_list.join(",")))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"昨日流失客户数",prop:"loss_contact_cnt","min-width":"120",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"昨日新增客户数",prop:"new_contact_cnt","min-width":"120",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"激活时间","min-width":"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.active_time||"-"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"过期时间","min-width":"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.expire_time||"-"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center","min-width":"110",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"c-00B38A pointer",on:{click:function(n){return t.detailEvent(e.row)}}},[t._v("详情")])]}}])})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)],1)]),t._v(" "),n("el-drawer",{attrs:{size:t.drawerSize,visible:t.userDetailFlag,"with-header":!1},on:{"update:visible":function(e){t.userDetailFlag=e}}},[t.userDetailFlag?n("user-detail",{attrs:{user_id:t.user_detail_id},on:{changeDrawerSize:t.changeDrawerSize,closeDrawer:t.closeDrawer}}):t._e()],1),t._v(" "),n("member-info-bind",{attrs:{dialogVisible:t.infoBindDialogVisible,userInfo:t.currentBindInfo},on:{cancel:t.handleInfoBindCancel,confirm:t.handleInfoBindConfirm}})],1)},staticRenderFns:[]};var D=n("VU/8")(C,y,!1,function(t){n("n3KB")},"data-v-811e4712",null);e.default=D.exports},HpRW:function(t,e,n){"use strict";var i=n("kM2E"),r=n("lOnJ"),a=n("+ZMJ"),s=n("NWt+");t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,o,c=arguments[1];return r(this),(e=void 0!==c)&&r(c),void 0==t?new this:(n=[],e?(i=0,o=a(c,arguments[2],2),s(t,!1,function(t){n.push(o(t,i++))})):s(t,!1,n.push,n),new this(n))}})}},LIJb:function(t,e,n){var i=n("EqjI");t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},O4R0:function(t,e,n){n("+MLA"),t.exports=n("FeBl").Object.freeze},UvrK:function(t,e,n){var i=n("kM2E");i(i.P+i.R,"Map",{toJSON:n("m9gC")("Map")})},Xjd4:function(t,e,n){n("9Bbf")("Map")},bqnK:function(t,e,n){n("HpRW")("Map")},ifoU:function(t,e,n){t.exports={default:n("3C/1"),__esModule:!0}},m9gC:function(t,e,n){var i=n("RY/4"),r=n("4WTo");t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},n3KB:function(t,e){},nzZa:function(t,e){},oeOm:function(t,e,n){var i=n("7Doy");t.exports=function(t,e){return new(i(t))(e)}},qCoq:function(t,e,n){"use strict";var i=n("9C8M"),r=n("LIJb");t.exports=n("qo66")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},qo66:function(t,e,n){"use strict";var i=n("7KvD"),r=n("kM2E"),a=n("06OY"),s=n("S82l"),o=n("hJx8"),c=n("xH/j"),l=n("NWt+"),u=n("2KxR"),d=n("EqjI"),f=n("e6n0"),v=n("evD5").f,p=n("ALrJ")(0),h=n("+E39");t.exports=function(t,e,n,_,g,m){var b=i[t],w=b,x=g?"set":"add",k=w&&w.prototype,C={};return h&&"function"==typeof w&&(m||k.forEach&&!s(function(){(new w).entries().next()}))?(w=e(function(e,n){u(e,w,t,"_c"),e._c=new b,void 0!=n&&l(n,g,e[x],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in k&&(!m||"clear"!=t)&&o(w.prototype,t,function(n,i){if(u(this,w,t),!e&&m&&!d(n))return"get"==t&&void 0;var r=this._c[t](0===n?0:n,i);return e?this:r})}),m||v(w.prototype,"size",{get:function(){return this._c.size}})):(w=_.getConstructor(e,t,g,x),c(w.prototype,n),a.NEED=!0),f(w,t),C[t]=w,r(r.G+r.W+r.F,C),m||_.setStrong(w,t,g),w}},u2KI:function(t,e,n){t.exports={default:n("O4R0"),__esModule:!0}},uqUo:function(t,e,n){var i=n("kM2E"),r=n("FeBl"),a=n("S82l");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*a(function(){n(1)}),"Object",s)}}});