1 |
- webpackJsonp([23],{FQLT:function(t,e){},K3Xo:function(t,e){},"Ox+Z":function(t,e,s){"use strict";var i={props:{clearable:{type:Boolean,default:!0},reset:{type:Boolean,default:!1}},watch:{reset:function(){this.value="",this.valueCon={}}},data:function(){return{value:"",options:[{label:"已流失",value:"0"},{label:"未流失",value:"1"},{label:"待分配",value:"2"}],valueCon:{}}},methods:{clear:function(){this.value="",this.valueCon={},this.$emit("lossChange",this.value)},change:function(){var t=this,e=this.options.filter(function(e){return e.value==t.value});e.length>0&&(this.valueCon=e[0]),this.$emit("lossChange",this.value)}}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-screen-item"},[s("label",{staticClass:"common-screen-label"},[t._v("客户状态\n "),s("el-tooltip",{staticClass:"disinblock",attrs:{content:"仅可统计员工授权后的客户状态",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1),t._v(" "),s("div",{class:["common-screen-self-box","common-input-select",""!=t.value&&t.clearable?"common-input-select-hover":""]},[s("div",{class:["common-screen-self-con",""==t.value?"common-screen-self-placeholder":""]},[s("div",{staticClass:"common-screen-self-con-div"},[s("span",[t._v(t._s(""!=t.value?t.valueCon.label:"请选择客户状态"))])]),t._v(" "),s("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(e){return e.stopPropagation(),t.clear.apply(null,arguments)}}})]),t._v(" "),t._m(0),t._v(" "),s("el-select",{staticClass:"common-screen-opacity-0",attrs:{placeholder:"请选择"},on:{change:t.change},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-screen-self-icon"},[e("i",{staticClass:"el-icon-arrow-down"})])}]};var n=s("VU/8")(i,a,!1,function(t){s("VXOY")},"data-v-3766b06e",null);e.a=n.exports},VXOY:function(t,e){},Xf0p:function(t,e){},"Y+W8":function(t,e,s){"use strict";var i={props:{clearable:{type:Boolean,default:!0},reset:{type:Boolean,default:!1}},watch:{reset:function(){this.value="",this.valueCon={}}},data:function(){return{value:"",options:[{label:"男",value:"1"},{label:"女",value:"2"},{label:"未知",value:"0"}],valueCon:{}}},methods:{clear:function(){this.value="",this.valueCon={},this.$emit("genderChange",this.value)},change:function(){var t=this,e=this.options.filter(function(e){return e.value==t.value});e.length>0&&(this.valueCon=e[0]),this.$emit("genderChange",this.value)}}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-screen-item"},[s("label",{staticClass:"common-screen-label"},[t._v("性别")]),t._v(" "),s("div",{class:["common-screen-self-box","common-input-select",""!=t.value&&t.clearable?"common-input-select-hover":""]},[s("div",{class:["common-screen-self-con",""==t.value?"common-screen-self-placeholder":""]},[s("div",{staticClass:"common-screen-self-con-div"},[s("span",[t._v(t._s(""!=t.value?t.valueCon.label:"请选择性别"))])]),t._v(" "),s("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(e){return e.stopPropagation(),t.clear.apply(null,arguments)}}})]),t._v(" "),t._m(0),t._v(" "),s("el-select",{staticClass:"common-screen-opacity-0",attrs:{placeholder:"请选择"},on:{change:t.change},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"common-screen-self-icon"},[e("i",{staticClass:"el-icon-arrow-down"})])}]};var n=s("VU/8")(i,a,!1,function(t){s("K3Xo")},"data-v-6ce0187b",null);e.a=n.exports},j4z5:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("McOJ"),a=s("fGUm"),n=s("sazF"),l=s("gzej"),o=s("erru"),r=s("1zIV"),c=s("FsX6"),_=s("Y+W8"),u=s("Ox+Z"),d=s("cHmb"),h=s("Fn7A"),g=s("mvHQ"),p=s.n(g),m={props:{tagType:{type:Number|String,default:1},userLength:{type:Number}},data:function(){return{loading:!1,keyword:"",radio:2,tagList:[],tag_id_list:[]}},created:function(){0==this.tagList.length&&this.init()},methods:{keyInput:function(){var t=this,e=[];this.old_tag_list.forEach(function(s){var i=JSON.parse(p()(s));i.tag_list=[],s.tag_list.forEach(function(e){-1!=e.tag_name.indexOf(t.keyword)&&i.tag_list.push(e)}),0!=i.tag_list.length&&e.push(i)}),this.tagList=e},groupEvent:function(t){-1==this.tag_id_list.indexOf(t.tag_id)?(this.tag_name_list.push(t.tag_name),this.tag_id_list.push(t.tag_id)):(this.tag_id_list=this.tag_id_list.filter(function(e){return e!=t.tag_id}),this.tag_name_list=this.tag_name_list.filter(function(e){return e!=t.tag_name}))},defineEvent:function(){0!=this.tag_id_list.length?this.$emit("closeTagDialog",this.tag_id_list):this.$message({message:"请选择标签",type:"warning"})},init:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.tagList,{}).then(function(e){e=e.data;if(t.loading=!1,e&&0==e.errno){t.old_tag_list=e.rst,t.tagList=e.rst;var s=[];t.tagList.forEach(function(e){e.tag_list.forEach(function(e){-1!=t.tag_id_list.indexOf(e.tag_id)&&s.push(e.tag_name)})}),t.tag_name_list=s}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},v={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"popover_con"},[s("div",{staticClass:"self-hint",staticStyle:{border:"none","margin-top":"-10px"}},[s("i",{staticClass:"el-icon-message-solid"}),t._v(" "),s("span",[t._v("将给选择的"+t._s(t.userLength)+"个客户批量"+t._s(1==t.tagType?"打":"移除")+"标签,请选择标签")])]),t._v(" "),3!=t.radio?[s("div",{staticClass:"self-input"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],attrs:{type:"text",placeholder:"请输入要查找的标签"},domProps:{value:t.keyword},on:{input:[function(e){e.target.composing||(t.keyword=e.target.value)},t.keyInput]}}),t._v(" "),s("i",{staticClass:"el-icon-search"})]),t._v(" "),s("div",{staticClass:"tagGroup self-scrollbar-3"},[t._l(t.tagList,function(e){return s("div",{key:e.group_id,staticClass:"groupItem"},[s("div",{staticClass:"groupTitle"},[t._v(t._s(e.group_name)+":")]),t._v(" "),s("div",{staticClass:"groupBox"},t._l(e.tag_list,function(e,i){return s("div",{key:i,class:["group",-1!=t.tag_id_list.indexOf(e.tag_id)?"group_active":""],on:{click:function(s){return t.groupEvent(e)}}},[t._v(t._s(e.tag_name))])}),0)])}),t._v(" "),!t.loading&&t.tagList&&0==t.tagList.length?s("no-data",{attrs:{hint:"没有搜索到相关标签哦~"}}):t._e()],2)]:s("p",{staticClass:"hint"},[t._v("选择无任何标签后,将筛选出没有被打上过任何标签的客户~")]),t._v(" "),s("div",{staticClass:"buttons"},[s("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.$emit("closeTagDialog",[])}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.defineEvent}},[t._v("确定")])],1)],2)},staticRenderFns:[]};var f={components:{tagDialog:s("VU/8")(m,v,!1,function(t){s("Xf0p")},"data-v-3192eab6",null).exports,detial:s("VULP").a,selfInput:i.a,selfCustomerservice:a.a,enterpriseTag:n.a,datePicker:l.a,selfChannel:o.a,selfChannelMultiple:r.a,selfChannelV2:c.a,selfGender:_.a,lossBody:u.a,screenPay:d.a,shieldingUser:h.a},data:function(){return{drawerSize:"60%",detialDrawer:!1,rowPro:{},loading:!1,page:1,pages:0,total:0,page_size:20,shieldingFlag:!1,pageOptions:[{name:"全部",id:1},{name:"当前页面",id:2}],pageOptionValue:2,old_pageOptionValue:2,input_keyword:"",tableData:[],user_id_list:[],add_way:[],is_new_customer_no_loss:"",can_receive:"",retained_status:"",tag_id_list:[],tag_type:0,add_date_start:"",add_date_end:"",last_pay_time_start:"",last_pay_time_end:"",loss_time_start:"",loss_time_end:"",loss_status:null,pay_status:null,pay_num_min:"",pay_num_max:"",resetFlag:!1,otherData:{},shieldingData:{},multipleSelection:{},exclude_multiple_selection:{},multipleArr:[],filter_multipleArr:[],selectTotal:0,isAll:!1,tagVisible:!1,tagType:1,gender:"",height:"",tips:""}},created:function(){this.height=document.documentElement.clientHeight-140>140?document.documentElement.clientHeight-140:140,this.init(1)},methods:{checkSelectable:function(t,e){return 1==t.relation_enable||0==t.relation_enable},changeDrawerSize:function(){this.drawerSize="100%"==this.drawerSize?"60%":"100%"},closeDrawer:function(){this.detialDrawer=!1},tagUpdate:function(t){this.$set(this.rowPro,"tag_list",t),this.$set(this.tableData,this.rowPro.self_index,this.rowPro)},showDetial:function(t,e){var s=this;this.rowPro=t,this.rowPro.self_index=e,this.drawerSize="60%",this.detialDrawer=!0,this.$nextTick(function(){s.$refs.detial.acIdx=0,s.$refs.detial.init()})},closeTagDialog:function(t){var e=this;if(t&&0!=t.length){var s=[],i=[];this.isAll?i=this.filter_multipleArr.map(function(t){return{customer_id:t.customer_id,user_id:t.user_id}}):s=this.multipleArr.map(function(t){return{customer_id:t.customer_id,user_id:t.user_id}}),this.$loading(this.$loadingConfig),this.$axios.post(this.URL.BASEURL+this.URL.customer_setCustomerTag,{user_id_list:this.user_id_list,customer_name:this.input_keyword,add_date_start:this.add_date_start,add_date_end:this.add_date_end,last_pay_time_start:this.last_pay_time_start,last_pay_time_end:this.last_pay_time_end,loss_time_start:this.loss_time_start,loss_time_end:this.loss_time_end,add_way:this.add_way,is_new_customer_no_loss:this.is_new_customer_no_loss,can_receive:this.can_receive,retained_status:this.retained_status,pay_status:this.pay_status,pay_num_min:this.pay_num_min,pay_num_max:this.pay_num_max,tag_type:this.tag_type,tag_id_list:this.tag_id_list,loss_status:this.loss_status,gender:this.gender,type:this.tagType,tag_list:t,customer_list:s,select_all:this.isAll?1:0,filter_customer_list:i}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?(e.$notify.info({title:"提示",message:"批量"+(1==e.tagType?"打":"移除")+"标签进行中,请耐心等待!",duration:0}),e.customer_batchMarkTagResult(t.rst.id)):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.$loading(e.$loadingConfig).close()})}this.tagVisible=!1},customer_batchMarkTagResult:function(t){var e=this;this.$axios.get(this.URL.BASEURL+this.URL.customer_batchMarkTagResult,{params:{id:t}}).then(function(s){(s=s.data)&&0==s.errno?3==s.rst.status?(e.$notify.closeAll(),e.$notify({title:"成功",message:"标签编辑成功!",type:"success",duration:0}),e.multipleSelection={},e.exclude_multiple_selection={},e.multipleArr=[],e.filter_multipleArr=[],e.selectTotal=0,e.isAll=!1,e.init(e.page)):3==s.rst.status?(e.$notify.closeAll(),e.$notify.error({title:"错误",message:"标签编辑失败!",type:"success",duration:0})):setTimeout(function(){e.customer_batchMarkTagResult(t)},2e3):4002!=s.errno&&(e.$notify.closeAll(),e.$notify.error({title:"错误",message:s.err,type:"success",duration:0}))}).catch(function(t){e.$notify.closeAll(),e.$notify.error({title:"错误",message:"标签编辑失败,服务器错误!",type:"success",duration:0})})},resetEvent:function(){this.resetFlag=!this.resetFlag,this.input_keyword="",this.user_id_list=[],this.add_way=[],this.is_new_customer_no_loss="",this.can_receive="",this.retained_status="",this.tag_id_list=[],this.tag_type=0,this.add_date_start="",this.add_date_end="",this.last_pay_time_start="",this.last_pay_time_end="",this.loss_time_start="",this.loss_time_end="",this.loss_status=null,this.pay_status=null,this.pay_num_min="",this.pay_num_max="",this.gender="",this.init(1)},shieldingUserCancel:function(t){"update"==t&&this.init(1),this.shieldingFlag=!1},shieldingEvent:function(t){1!=t.blacklist_status&&(this.shieldingFlag=!0,this.shieldingData={customer_id:t.customer_id,user_id:t.user_id})},payChange:function(t){this.pay_status=t.radio,this.pay_num_min=t.minValue,this.pay_num_max=t.maxValue,this.init(1)},lossChange:function(t){this.loss_status=""==t?null:t,this.init(1)},changeTime:function(t){!t||t&&0==t.length?(this.add_date_start="",this.add_date_end=""):(this.add_date_start=t[0],this.add_date_end=t[1]),this.init(1)},onChangePayTime:function(t){!t||t&&0==t.length?(this.last_pay_time_start="",this.last_pay_time_end=""):(this.last_pay_time_start=t[0],this.last_pay_time_end=t[1]),this.init(1)},onChangeLossTime:function(t){!t||t&&0==t.length?(this.loss_time_start="",this.loss_time_end=""):(this.loss_time_start=t[0],this.loss_time_end=t[1]),this.init(1)},onChangeAddWay:function(t){this.add_way=t,this.init(1)},onChangeIsNewCus:function(t){this.is_new_customer_no_loss=t,this.init(1)},onChangeCanReceive:function(t){this.can_receive=t,this.init(1)},onChangeRetainedStatus:function(t){this.retained_status=t,this.init(1)},tagDefine:function(t){1==t.tag||2==t.tag?t.tag_id_list&&0!=t.tag_id_list.length?(this.tag_id_list=t.tag_id_list,this.tag_type=t.tag):(this.tag_type=0,this.tag_id_list=[]):(this.tag_type=t.tag,this.tag_id_list=[]),this.init(1)},init:function(t,e){var s=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.customerList,{params:{user_id_list:this.user_id_list,customer_name:this.input_keyword,add_date_start:this.add_date_start,add_date_end:this.add_date_end,last_pay_time_start:this.last_pay_time_start,last_pay_time_end:this.last_pay_time_end,loss_time_start:this.loss_time_start,loss_time_end:this.loss_time_end,add_way:this.add_way,is_new_customer_no_loss:this.is_new_customer_no_loss,can_receive:this.can_receive,retained_status:this.retained_status,pay_status:this.pay_status,pay_num_min:this.pay_num_min,pay_num_max:this.pay_num_max,tag_type:this.tag_type,tag_id_list:this.tag_id_list,loss_status:this.loss_status,page:"export"==e?1:this.page,page_size:"export"==e?2e4:this.page_size,source:1,gender:this.gender}}).then(function(t){t=t.data;if(s.loading=!1,t&&0==t.errno)if("export"==e)s.exportEvent(t.rst.data.list);else{s.tableData=t.rst.data.list,s.otherData={total:t.rst.pageInfo.total,count:t.rst.data.count,exclude_count:t.rst.data.exclude_count,cust_loss_uc:t.rst.data.cust_loss_uc},s.total=t.rst.pageInfo.total,s.pages=t.rst.pageInfo.pages,s.tips=t.rst.extra||"";var i=[];if(s.isAll&&void 0===s.multipleSelection[s.page])i=s.tableData;else{var a=s.multipleSelection[s.page]?s.multipleSelection[s.page].map(function(t){return t.user_id+"-"+t.customer_id}):[];s.tableData.forEach(function(t){-1!=a.indexOf(t.user_id+"-"+t.customer_id)&&i.push(t)})}s.$nextTick(function(){i.forEach(function(t){s.$refs.multipleTable.toggleRowSelection(t,!0)})})}else 4002!=t.errno&&s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},userChange:function(){var t=[];for(var e in this.multipleSelection)t=t.concat(this.multipleSelection[e]?this.multipleSelection[e]:[]);if(t=t.filter(function(t){return 1==t.relation_enable||0==t.relation_enable}),this.multipleArr=t,this.isAll){var s=[];for(var e in this.exclude_multiple_selection)s=s.concat(this.exclude_multiple_selection[e]?this.exclude_multiple_selection[e]:[]);s=s.filter(function(t){return 1==t.relation_enable||0==t.relation_enable}),this.filter_multipleArr=s,this.selectTotal=Number(this.total)-s.length}else this.selectTotal=this.multipleArr.length},setCustomerTag:function(t){this.userChange(),this.selectTotal<=0?this.$message({message:"请选择客户!",type:"warning"}):(this.tagVisible=!0,this.tagType=t)},handleCurrentChange:function(t){this.init(t)},handleSelectAll:function(t){this.isAll&&0==t.length&&(this.multipleSelection={},this.exclude_multiple_selection={},this.isAll=!1,this.userChange())},handleSelectionChange:function(t){if(this.multipleSelection[this.page]=t&&0!=t.length?t:null,this.isAll){var e=[],s=this.multipleSelection[this.page]?this.multipleSelection[this.page].map(function(t){return t.user_id+"-"+t.customer_id}):[];this.tableData.forEach(function(t){-1==s.indexOf(t.user_id+"-"+t.customer_id)&&e.push(t)}),this.exclude_multiple_selection[this.page]=e}this.userChange()},pageOptionSelect:function(t){var e=this;if(t&&""!=t&&(this.old_pageOptionValue=t),this.exclude_multiple_selection={},1==this.pageOptionValue)this.isAll=!0;else{this.isAll=!1;var s=this.multipleSelection[this.page];this.multipleSelection={},this.multipleSelection[this.page]=s||null}this.tableData.forEach(function(t){e.$refs.multipleTable.toggleRowSelection(t,!0)}),this.userChange()},exportEvent:function(t){var e=t;e.forEach(function(t){t.self_pay_num=t.pay_num>0?"已付费("+t.pay_num+"次)":"未付费",t.self_gender=1==t.gender?"男":2==t.gender?"女":"",t.self_user_name=t.user_list.name,t.self_type=1==t.type?"微信用户":2==t.type?"":"企业微信",t.self_relation_enable=0==t.relation_enable?"已流失":1==t.relation_enable?"未流失":2==t.relation_enable?"待分配":"",t.self_is_new_customer_no_loss=1==t.is_new_customer_no_loss||3==t.is_new_customer_no_loss?"新用户":0==t.is_new_customer_no_loss?"复粉":""});var s=[{tHeader:["客户id","客户名称","客户备注","客户头像","外部联系人的类型","客户状态","所属客服","客服ID","所属部门","标签","性别","添加时间","添加渠道","付费情况","是否新用户"],filterVal:["customer_id","name","remark","avatar","self_type","self_relation_enable","self_user_name","user_id","department_list","tag_list","self_gender","createtime","add_way","self_pay_num","self_is_new_customer_no_loss"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:s,name:"客户管理(导出时间:"+this.$getDay(0)+")"})}}},y={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("instructions",{attrs:{doc:"customManage"}}),t._v(" "),i("div",{staticClass:"screenBox"},[i("self-input",{attrs:{reset:t.resetFlag},on:{inputChange:function(e){t.input_keyword=e,t.init(1)}}}),t._v(" "),i("self-customerservice",{attrs:{reset:t.resetFlag},on:{customerDefine:function(e){t.user_id_list=e,t.init(1)}}}),t._v(" "),i("enterprise-tag",{attrs:{reset:t.resetFlag},on:{tagDefine:t.tagDefine}}),t._v(" "),i("date-picker",{attrs:{reset:t.resetFlag},on:{changeTime:t.changeTime}}),t._v(" "),i("selfChannelMultiple",{attrs:{reset:t.resetFlag},on:{channelDefine:t.onChangeAddWay}}),t._v(" "),i("self-gender",{attrs:{reset:t.resetFlag},on:{genderChange:function(e){t.gender=e,t.init(1)}}}),t._v(" "),i("loss-body",{attrs:{reset:t.resetFlag},on:{lossChange:t.lossChange}}),t._v(" "),i("screen-pay",{attrs:{reset:t.resetFlag},on:{payChange:t.payChange}}),t._v(" "),i("date-picker",{attrs:{reset:t.resetFlag,title:"充值时间"},on:{changeTime:t.onChangePayTime}}),t._v(" "),i("date-picker",{attrs:{reset:t.resetFlag,title:"流失时间",timeFlag:"",pickerOptions:{},defaultTime:["00:00:00","23:59:59"]},on:{changeTime:t.onChangeLossTime}}),t._v(" "),i("selfChannelV2",{attrs:{type:"isNewCustomerNoLoss",title:"是否新用户"},on:{change:t.onChangeIsNewCus},model:{value:t.is_new_customer_no_loss,callback:function(e){t.is_new_customer_no_loss=e},expression:"is_new_customer_no_loss"}}),t._v(" "),i("selfChannelV2",{attrs:{type:"canReceive",title:"可否接收消息"},on:{change:t.onChangeCanReceive},model:{value:t.can_receive,callback:function(e){t.can_receive=e},expression:"can_receive"}}),t._v(" "),i("selfChannelV2",{attrs:{type:"retainedStatus",title:"单主体留存"},on:{change:t.onChangeRetainedStatus},model:{value:t.retained_status,callback:function(e){t.retained_status=e},expression:"retained_status"}}),t._v(" "),i("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),i("div",{staticClass:"tableInfo"},[i("div",[i("div",{staticClass:"flex"},[i("i",{staticClass:"el-icon-user-solid"}),t._v(" "),i("div",{staticClass:"totalCustom"},[t._v("共"),i("span",[t._v(t._s(t.otherData&&t.otherData.total))]),t._v("个客户")]),t._v(" "),i("div",{staticClass:"miniLine"}),t._v(" "),i("div",{staticClass:"excludeCustom"},[t._v("去重客户\n "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:"该数据为去重后的客户数,若客户添加了多个员工只会统计为1个客户",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),t._v(" "),i("span",[t._v(t._s(t.otherData&&t.otherData.count))])],1),t._v(" "),i("div",{staticClass:"miniLine"}),t._v(" "),i("div",{staticClass:"excludeCustom"},[t._v("排除重复客户\n "),i("span",[t._v(t._s(t.otherData&&t.otherData.exclude_count))])]),t._v(" "),i("div",{staticClass:"miniLine"}),t._v(" "),i("div",{staticClass:"excludeCustom"},[t._v("流失客户\n "),i("span",[t._v(t._s(t.otherData&&t.otherData.cust_loss_uc))])])]),t._v(" "),i("div",{staticClass:"selectCustom"},[t._v("已择"+t._s(t.selectTotal)+"个客户")])]),t._v(" "),i("div",{staticClass:"flex"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.setCustomerTag(1)}}},[t._v("批量打标签")]),t._v(" "),i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.setCustomerTag(2)}}},[t._v("批量移除标签")]),t._v(" "),i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")])],1)]),t._v(" "),t.tips?i("div",{staticClass:"tips-wrap"},[i("i",{staticClass:"el-icon-user-solid"}),t._v("包含客服:"+t._s(t.tips))]):t._e(),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange,"select-all":t.handleSelectAll}},[i("el-table-column",{attrs:{type:"selection",selectable:t.checkSelectable,width:"55",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",fixed:"left"},scopedSlots:t._u([{key:"header",fn:function(e){return[i("div",{staticClass:"customTitle",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(2==t.old_pageOptionValue?"选择当前页面客户":"选择全部客户")),i("i",{staticClass:"el-icon-arrow-down"}),t._v(" "),i("el-select",{staticClass:"customTitleSelect",attrs:{placeholder:"请选择",size:"mini"},on:{change:t.pageOptionSelect,"visible-change":function(e){t.pageOptionValue=""}},model:{value:t.pageOptionValue,callback:function(e){t.pageOptionValue=e},expression:"pageOptionValue"}},t._l(t.pageOptions,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1)]}},{key:"default",fn:function(e){return[i("div",{staticClass:"userBox"},[e.row.avatar?i("img",{staticClass:"userImg",attrs:{src:e.row.avatar,alt:""}}):i("img",{staticClass:"userImg",attrs:{src:s("pIyw"),alt:""}}),t._v(" "),i("div",{staticClass:"userInfo"},[i("div",{staticClass:"userName"},[i("p",{staticClass:"name"},[t._v(t._s(e.row.remark))]),t._v(" "),1==e.row.type?i("span",[t._v("@微信")]):t._e()]),t._v(" "),i("div",{staticClass:"nickname"},[i("span",[t._v("昵称:")]),t._v(t._s(e.row.name))])])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"性别","min-width":"60","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(1==e.row.gender?"男":2==e.row.gender?"女":""))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"所属客服","min-width":"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"customerServiceTagBox"},[i("div",{staticClass:"customerServiceTag"},[i("i",{staticClass:"el-icon-headset"}),t._v(t._s(e.row.user_list.name))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"所属部门","min-width":"140","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.department_list&&e.row.department_list.join(",")))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"标签","min-width":"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"customerServiceTagBox biaoqian"},[t._l(e.row.tag_list,function(e,s){return[s<=3?i("div",{key:s+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))]):t._e()]}),t._v(" "),i("el-popover",{attrs:{placement:"right",width:"300",trigger:"hover"}},[i("div",{staticClass:"customerServiceTagBox biaoqian",staticStyle:{"justify-content":"flex-start"}},t._l(e.row.tag_list,function(e,s){return i("div",{key:s+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0),t._v(" "),e.row.tag_list&&e.row.tag_list.length>4?i("span",{staticClass:"f12 c-00B38A line21 pointer",staticStyle:{"margin-top":"4px"},attrs:{slot:"reference"},slot:"reference"},[t._v("更多")]):t._e()])],2)]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"客户状态","show-overflow-tooltip":"",align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.relation_enable?i("div",{staticClass:"c-F03F5C"},[t._v("已流失\n "),e.row.loss_time?i("p",[t._v(t._s(e.row.loss_time.split(" ")[0]))]):t._e(),t._v(" "),e.row.loss_time?i("p",[t._v(t._s(e.row.loss_time.split(" ")[1]))]):t._e()]):t._e(),t._v(" "),1==e.row.relation_enable?i("span",{staticClass:"c-448AFF"},[t._v("未流失")]):t._e(),t._v(" "),2==e.row.relation_enable?i("span",{staticClass:"c-FFB055"},[t._v("待分配")]):t._e()]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"单主体留存","show-overflow-tooltip":"",align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.retained_status?i("span",{staticClass:"c-448AFF"},[t._v("是")]):t._e(),t._v(" "),0==e.row.retained_status?i("span",{staticClass:"c-FFB055"},[t._v("否")]):t._e()]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"付费情况","min-width":"140",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.pay_num>0?i("div",[t._v("已付费("),i("span",{staticClass:"c-00B38A"},[t._v(t._s(e.row.pay_num)+"次")]),t._v(")")]):i("div",[t._v("未付费")])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"createtime","min-width":"160",label:"添加时间","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{label:"添加渠道","min-width":"140","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.add_way))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"是否新用户","show-overflow-tooltip":"",align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[1==s.is_new_customer_no_loss||3==s.is_new_customer_no_loss?i("span",{staticClass:"c-00B38A"},[i("i",{staticClass:"el-icon-circle-check",staticStyle:{"font-size":"16px","font-weight":"500"}})]):t._e(),t._v(" "),0==s.is_new_customer_no_loss?i("span",{staticClass:"c-757D9C"},[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"16px","font-weight":"500"}})]):t._e()]}}])}),t._v(" "),i("el-table-column",{attrs:{width:"160",label:"操作",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex",staticStyle:{padding:"0 10px"}},[i("div",{class:[1==e.row.blacklist_status?"pointer-drop c-999":"pointer c-00B38A"],on:{click:function(s){return t.shieldingEvent(e.row)}}},[t._v("加入黑名单")]),t._v(" "),i("div",{staticClass:"c-00B38A pointer",on:{click:function(s){return t.showDetial(e.row,e.$index)}}},[t._v("详情")])])]}}])})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[i("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{attrs:{title:"拉黑原因",visible:t.shieldingFlag,width:"578px",center:""},on:{"update:visible":function(e){t.shieldingFlag=e}}},[i("shielding-user",{attrs:{shieldingData:t.shieldingData},on:{cancel:t.shieldingUserCancel}})],1),t._v(" "),i("el-drawer",{attrs:{size:t.drawerSize,visible:t.detialDrawer,"with-header":!1},on:{"update:visible":function(e){t.detialDrawer=e}}},[i("detial",{ref:"detial",attrs:{rowProp:{customer_id:t.rowPro.customer_id,user_id:t.rowPro.user_id}},on:{changeDrawerSize:t.changeDrawerSize,closeDrawer:t.closeDrawer,tagUpdate:t.tagUpdate}})],1),t._v(" "),i("el-dialog",{attrs:{title:1==t.tagType?"批量打标签":"批量移除标签",visible:t.tagVisible,width:"600px",center:"",top:"15vh"},on:{"update:visible":function(e){t.tagVisible=e}}},[i("tag-dialog",{attrs:{tagType:t.tagType,userLength:t.multipleArr.length},on:{closeTagDialog:t.closeTagDialog}})],1)],1)},staticRenderFns:[]};var w=s("VU/8")(f,y,!1,function(t){s("FQLT")},"data-v-32160c28",null);e.default=w.exports}});
|