1 |
- webpackJsonp([18],{"Ox+Z":function(t,e,i){"use strict";var a={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)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-screen-item"},[i("label",{staticClass:"common-screen-label"},[t._v("客户状态\n "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:"仅可统计员工授权后的客户状态",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("div",{class:["common-screen-self-box","common-input-select",""!=t.value&&t.clearable?"common-input-select-hover":""]},[i("div",{class:["common-screen-self-con",""==t.value?"common-screen-self-placeholder":""]},[i("div",{staticClass:"common-screen-self-con-div"},[i("span",[t._v(t._s(""!=t.value?t.valueCon.label:"请选择客户状态"))])]),t._v(" "),i("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(" "),i("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 i("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=i("VU/8")(a,s,!1,function(t){i("X+xm")},"data-v-01ae62b3",null);e.a=n.exports},"X+xm":function(t,e){},"Y+W8":function(t,e,i){"use strict";var a={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)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-screen-item"},[i("label",{staticClass:"common-screen-label"},[t._v("性别")]),t._v(" "),i("div",{class:["common-screen-self-box","common-input-select",""!=t.value&&t.clearable?"common-input-select-hover":""]},[i("div",{class:["common-screen-self-con",""==t.value?"common-screen-self-placeholder":""]},[i("div",{staticClass:"common-screen-self-con-div"},[i("span",[t._v(t._s(""!=t.value?t.valueCon.label:"请选择性别"))])]),t._v(" "),i("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(" "),i("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 i("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=i("VU/8")(a,s,!1,function(t){i("rg7l")},"data-v-1cb982d1",null);e.a=n.exports},ZDl5:function(t,e){},iqtp:function(t,e){},j4z5:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("McOJ"),s=i("fGUm"),n=i("w5PV"),l=i("sazF"),o=i("gzej"),r=i("erru"),c=i("Y+W8"),u=i("Ox+Z"),_=i("cHmb"),d=i("Fn7A"),h=i("mvHQ"),g=i.n(h),p={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(i){var a=JSON.parse(g()(i));a.tag_list=[],i.tag_list.forEach(function(e){-1!=e.tag_name.indexOf(t.keyword)&&a.tag_list.push(e)}),0!=a.tag_list.length&&e.push(a)}),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 i=[];t.tagList.forEach(function(e){e.tag_list.forEach(function(e){-1!=t.tag_id_list.indexOf(e.tag_id)&&i.push(e.tag_name)})}),t.tag_name_list=i}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},m={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"}],staticClass:"popover_con"},[i("div",{staticClass:"self-hint",staticStyle:{border:"none","margin-top":"-10px"}},[i("i",{staticClass:"el-icon-message-solid"}),t._v(" "),i("span",[t._v("将给选择的"+t._s(t.userLength)+"个客户批量"+t._s(1==t.tagType?"打":"移除")+"标签,请选择标签")])]),t._v(" "),3!=t.radio?[i("div",{staticClass:"self-input"},[i("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(" "),i("i",{staticClass:"el-icon-search"})]),t._v(" "),i("div",{staticClass:"tagGroup self-scrollbar-3"},[t._l(t.tagList,function(e){return i("div",{key:e.group_id,staticClass:"groupItem"},[i("div",{staticClass:"groupTitle"},[t._v(t._s(e.group_name)+":")]),t._v(" "),i("div",{staticClass:"groupBox"},t._l(e.tag_list,function(e,a){return i("div",{key:a,class:["group",-1!=t.tag_id_list.indexOf(e.tag_id)?"group_active":""],on:{click:function(i){return t.groupEvent(e)}}},[t._v(t._s(e.tag_name))])}),0)])}),t._v(" "),!t.loading&&t.tagList&&0==t.tagList.length?i("no-data",{attrs:{hint:"没有搜索到相关标签哦~"}}):t._e()],2)]:i("p",{staticClass:"hint"},[t._v("选择无任何标签后,将筛选出没有被打上过任何标签的客户~")]),t._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.$emit("closeTagDialog",[])}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.defineEvent}},[t._v("确定")])],1)],2)},staticRenderFns:[]};var v={components:{tagDialog:i("VU/8")(p,m,!1,function(t){i("iqtp")},"data-v-d9bdb4a8",null).exports,detial:i("VULP").a,selfInput:a.a,selfCustomerservice:s.a,enterpriseTag:l.a,datePicker:o.a,selfChannel:r.a,selfGender:c.a,lossBody:u.a,screenPay:_.a,shieldingUser:d.a,chatGroupOptions:n.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:"",tag_id_list:[],tag_type:0,add_date_start:"",add_date_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:"",chatGroupList:[]}},created:function(){this.height=document.documentElement.clientHeight-200,this.init(1)},methods:{checkSelectable:function(t,e){return 1==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 i=this;this.rowPro=t,this.rowPro.self_index=e,this.drawerSize="60%",this.detialDrawer=!0,this.$nextTick(function(){i.$refs.detial.acIdx=0,i.$refs.detial.init()})},closeTagDialog:function(t){var e=this;if(t&&0!=t.length){var i=[],a=[];this.isAll?a=this.filter_multipleArr.map(function(t){return{customer_id:t.customer_id,user_id:t.user_id}}):i=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,add_way:this.add_way,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,chat_id:this.chatGroupList?this.chatGroupList.map(function(t){return t.chat_id}):[],type:this.tagType,tag_list:t,customer_list:i,select_all:this.isAll?1:0,filter_customer_list:a}).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(i){(i=i.data)&&0==i.errno?3==i.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==i.rst.status?(e.$notify.closeAll(),e.$notify.error({title:"错误",message:"标签编辑失败!",type:"success",duration:0})):setTimeout(function(){e.customer_batchMarkTagResult(t)},2e3):4002!=i.errno&&(e.$notify.closeAll(),e.$notify.error({title:"错误",message:i.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.tag_id_list=[],this.tag_type=0,this.add_date_start="",this.add_date_end="",this.loss_status=null,this.pay_status=null,this.pay_num_min="",this.pay_num_max="",this.gender="",this.chatGroupList=[],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)},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 i=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0;var a={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,add_way:this.add_way,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?this.$store.state.exportNumber:this.page_size,source:1,gender:this.gender,chat_id:this.chatGroupList?this.chatGroupList.map(function(t){return t.chat_id}):[]};console.log("params => ",a),this.$axios.get(this.URL.BASEURL+this.URL.customerList,{params:a}).then(function(t){t=t.data;if(i.loading=!1,t&&0==t.errno)if(t.rst.data.list.forEach(function(t){t.chat_list&&Array.isArray(t.chat_list)&&(t.chat_list=t.chat_list.map(function(t){return t||"未设置群名"}).join(", "))}),"export"==e)i.exportEvent(t.rst.data.list);else{i.tableData=t.rst.data.list,i.otherData={count:t.rst.data.count,exclude_count:t.rst.data.exclude_count,cust_loss_uc:t.rst.data.cust_loss_uc},i.total=t.rst.pageInfo.total,i.pages=t.rst.pageInfo.pages;var a=[];if(i.isAll&&void 0===i.multipleSelection[i.page])a=i.tableData;else{var s=i.multipleSelection[i.page]?i.multipleSelection[i.page].map(function(t){return t.user_id+"-"+t.customer_id}):[];i.tableData.forEach(function(t){-1!=s.indexOf(t.user_id+"-"+t.customer_id)&&a.push(t)})}i.$nextTick(function(){a.forEach(function(t){i.$refs.multipleTable.toggleRowSelection(t,!0)})})}else 4002!=t.errno&&i.$message({message:t.err,type:"warning"})}).catch(function(t){i.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}),this.multipleArr=t,this.isAll){var i=[];for(var e in this.exclude_multiple_selection)i=i.concat(this.exclude_multiple_selection[e]?this.exclude_multiple_selection[e]:[]);i=i.filter(function(t){return 1==t.relation_enable}),this.filter_multipleArr=i,this.selectTotal=Number(this.total)-i.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=[],i=this.multipleSelection[this.page]?this.multipleSelection[this.page].map(function(t){return t.user_id+"-"+t.customer_id}):[];this.tableData.forEach(function(t){-1==i.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 i=this.multipleSelection[this.page];this.multipleSelection={},this.multipleSelection[this.page]=i||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?"待分配":""});var i=[{tHeader:["客户id","客户名称","客户备注","客户头像","外部联系人的类型","客户状态","所属客服","客服ID","所属群聊","所属部门","标签","性别","添加时间","添加渠道","付费情况"],filterVal:["customer_id","name","remark","avatar","self_type","self_relation_enable","self_user_name","user_id","chat_list","department_list","tag_list","self_gender","createtime","add_way","self_pay_num"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:i,name:"客户管理(导出时间:"+this.$getDay(0)+")"})},onChangeChatGroupList:function(t){this.init(1)}}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox"},[a("self-input",{attrs:{reset:t.resetFlag},on:{inputChange:function(e){t.input_keyword=e,t.init(1)}}}),t._v(" "),a("self-customerservice",{attrs:{reset:t.resetFlag},on:{customerDefine:function(e){t.user_id_list=e,t.init(1)}}}),t._v(" "),a("chatGroupOptions",{attrs:{label:"所属群聊"},on:{change:t.onChangeChatGroupList},model:{value:t.chatGroupList,callback:function(e){t.chatGroupList=e},expression:"chatGroupList"}}),t._v(" "),a("date-picker",{attrs:{reset:t.resetFlag},on:{changeTime:t.changeTime}}),t._v(" "),a("self-channel",{attrs:{reset:t.resetFlag},on:{channelDefine:function(e){t.add_way=e,t.init(1)}}}),t._v(" "),a("self-gender",{attrs:{reset:t.resetFlag},on:{genderChange:function(e){t.gender=e,t.init(1)}}}),t._v(" "),a("loss-body",{attrs:{reset:t.resetFlag},on:{lossChange:t.lossChange}}),t._v(" "),a("enterprise-tag",{attrs:{reset:t.resetFlag,title:"标签"},on:{tagDefine:t.tagDefine}}),t._v(" "),a("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),a("div",{staticClass:"tableInfo"},[a("div",[a("div",{staticClass:"flex"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" "),a("div",{staticClass:"totalCustom"},[t._v("共"),a("span",[t._v(t._s(t.otherData&&t.otherData.count))]),t._v("个客户")]),t._v(" "),a("div",{staticClass:"smalLine"}),t._v(" "),a("div",{staticClass:"excludeCustom"},[t._v("排除重复客户\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{content:"该数据为去重后的客户数,若客户添加了多个员工只会统计为1个客户",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),t._v(" "),a("span",[t._v(t._s(t.otherData&&t.otherData.exclude_count))])],1),t._v(" "),a("div",{staticClass:"smalLine"}),t._v(" "),a("div",{staticClass:"excludeCustom"},[t._v("流失客户\n "),a("span",[t._v(t._s(t.otherData&&t.otherData.cust_loss_uc))])])]),t._v(" "),a("div",{staticClass:"selectCustom"},[t._v("已择"+t._s(t.selectTotal)+"个客户")])]),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.setCustomerTag(1)}}},[t._v("批量打标签")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.setCustomerTag(2)}}},[t._v("批量移除标签")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")])],1)]),t._v(" "),a("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}},[a("el-table-column",{attrs:{type:"selection",selectable:t.checkSelectable,width:"55",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",fixed:"left"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("div",{staticClass:"customTitle",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(2==t.old_pageOptionValue?"选择当前页面客户":"选择全部客户")),a("i",{staticClass:"el-icon-arrow-down"}),t._v(" "),a("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 a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1)]}},{key:"default",fn:function(e){return[a("div",{staticClass:"userBox"},[e.row.avatar?a("img",{staticClass:"userImg",attrs:{src:e.row.avatar,alt:""}}):a("img",{staticClass:"userImg",attrs:{src:i("pIyw"),alt:""}}),t._v(" "),a("div",{staticClass:"userInfo"},[a("div",{staticClass:"userName"},[a("p",{staticClass:"name"},[t._v(t._s(e.row.remark))]),t._v(" "),1==e.row.type?a("span",[t._v("@微信")]):t._e()]),t._v(" "),a("div",{staticClass:"nickname"},[a("span",[t._v("昵称:")]),t._v(t._s(e.row.name))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"性别","min-width":"60","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(1==e.row.gender?"男":2==e.row.gender?"女":""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"所属客服","min-width":"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag-v2"},[t._v(t._s(e.row.user_list.name))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"所属群聊","min-width":"160","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.chat_list||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"所属部门","min-width":"160","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.department_list&&e.row.department_list.join(",")))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"标签","min-width":"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"customerServiceTagBox biaoqian"},[t._l(e.row.tag_list,function(e,i){return[i<=3?a("div",{key:i+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))]):t._e()]}),t._v(" "),a("el-popover",{attrs:{placement:"right",width:"300",trigger:"hover"}},[a("div",{staticClass:"customerServiceTagBox biaoqian",staticStyle:{"justify-content":"flex-start"}},t._l(e.row.tag_list,function(e,i){return a("div",{key:i+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0),t._v(" "),e.row.tag_list&&e.row.tag_list.length>4?a("span",{staticClass:"f12 c-00B38A line21 pointer",staticStyle:{"margin-top":"4px"},attrs:{slot:"reference"},slot:"reference"},[t._v("更多")]):t._e()])],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"客户状态","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.relation_enable?a("span",{staticClass:"c-F03F5C"},[t._v("已流失")]):t._e(),t._v(" "),1==e.row.relation_enable?a("span",{staticClass:"c-448AFF"},[t._v("未流失")]):t._e(),t._v(" "),2==e.row.relation_enable?a("span",{staticClass:"c-FFB055"},[t._v("待分配")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"createtime","min-width":"160",label:"添加时间","show-overflow-tooltip":"",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"添加渠道","min-width":"140","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.add_way))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"160",label:"操作",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex",staticStyle:{padding:"0 10px"}},[a("div",{class:[1==e.row.blacklist_status?"pointer-drop c-999":"pointer c-00B38A"],on:{click:function(i){return t.shieldingEvent(e.row)}}},[t._v("加入黑名单")]),t._v(" "),a("div",{staticClass:"c-00B38A pointer",on:{click:function(i){return t.showDetial(e.row,e.$index)}}},[t._v("详情")])])]}}])})],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[a("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(" "),a("el-dialog",{attrs:{title:"拉黑原因",visible:t.shieldingFlag,width:"578px",center:""},on:{"update:visible":function(e){t.shieldingFlag=e}}},[a("shielding-user",{attrs:{shieldingData:t.shieldingData},on:{cancel:t.shieldingUserCancel}})],1),t._v(" "),a("el-drawer",{attrs:{size:t.drawerSize,visible:t.detialDrawer,"with-header":!1},on:{"update:visible":function(e){t.detialDrawer=e}}},[a("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(" "),a("el-dialog",{attrs:{title:1==t.tagType?"批量打标签":"批量移除标签",visible:t.tagVisible,width:"600px",center:"",top:"15vh"},on:{"update:visible":function(e){t.tagVisible=e}}},[a("tag-dialog",{attrs:{tagType:t.tagType,userLength:t.multipleArr.length},on:{closeTagDialog:t.closeTagDialog}})],1)],1)},staticRenderFns:[]};var y=i("VU/8")(v,f,!1,function(t){i("ZDl5")},"data-v-2c41f9bb",null);e.default=y.exports},rg7l:function(t,e){}});
|