猎户系统

13.cf1b91dbaee804007991.js 31KB

1
  1. webpackJsonp([13],{"3Om5":function(e,t){},"3uEH":function(e,t,i){"use strict";var s={components:{selfInput:i("McOJ").a},props:{title:{type:String,default:"所属客服"},clearable:{type:Boolean,default:!0},reset:{type:Boolean,default:!1},width:{type:String},afferent_users:{type:Array}},watch:{reset:function(){this.selectUserId="",this.selectUser={}}},data:function(){return{resetFlag:!1,visible:!1,loading:!1,userList:[],userTotal:0,selectUserId:"",selectUser:{},input_keyword:""}},mounted:function(){console.log(this.selectUser)},methods:{screenClick:function(){this.visible=!0,0==this.userList.length?this.init():this.serviceInit()},serviceInit:function(e){var t=this;this.userList.forEach(function(e){e.is_open=!1,e.user_list.forEach(function(e,i){e.user_id==t.selectUserId&&(t.selectUser=e)})}),"define"==e&&this.$emit("customerDefine",this.selectUser)},clear:function(){this.selectUserId="",this.selectUser={},this.input_keyword="",this.resetFlag=!this.resetFlag,this.init(),this.$emit("customerDefine","")},defineEvent:function(){""!=this.selectUserId?(this.serviceInit("define"),this.visible=!1):this.$message({message:"请选择客服",type:"warning"})},init:function(){var e=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.userList,{params:{user_name:this.input_keyword}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.userList=t.rst.list,e.serviceInit(),e.userTotal=t.rst.count):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},openEvent:function(e){var t=this.userList[e];t.is_open=!t.is_open,this.$set(this.userList,e,t)},selectUserEvent:function(e,t){this.selectUserId=t}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-screen-item"},[e.title&&""!=e.title?i("label",{staticClass:"common-screen-label"},[e._v(e._s(e.title))]):e._e(),e._v(" "),i("div",{class:["common-screen-self-box","common-input-select",e.selectUser&&e.selectUser.user_id&&e.clearable?"common-input-select-hover":""],style:e.width?"width:"+e.width:"",on:{click:e.screenClick}},[i("div",{class:["common-screen-self-con",e.selectUser&&e.selectUser.user_id&&""!=e.selectUser.user_id?"":"common-screen-self-placeholder"]},[i("div",{staticClass:"common-screen-self-con-div"},[e.selectUser&&e.selectUser.user_id&&""!=e.selectUser.user_id?[i("span",[e._v(e._s(e.selectUser.name))])]:i("span",[e._v("请选择")])],2),e._v(" "),i("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}}})]),e._v(" "),e._m(0)]),e._v(" "),i("el-dialog",{attrs:{title:"",visible:e.visible,"close-on-click-modal":!1,width:"400px","append-to-body":"",center:"",top:"15vh"},on:{"update:visible":function(t){e.visible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"propoverItem"},[i("self-input",{staticStyle:{"margin-top":"0"},attrs:{reset:e.resetFlag,hasLabel:!1,width:"90%"},on:{inputChange:function(t){e.input_keyword=t,e.init("userSearch")}}}),e._v(" "),i("div",{staticClass:"allMember"},[e._v("全部成员("+e._s(e.userTotal)+"):")]),e._v(" "),i("div",{staticClass:"memberBoxBig self-scrollbar-3"},[e._l(e.userList,function(t,s){return[i("div",{key:s+"userList"+t.department_id,staticClass:"memberBox"},[i("i",{class:["el-icon-caret-bottom",t.is_open?"reversalAnimation":""],on:{click:function(t){return e.openEvent(s)}}}),e._v(" "),i("div",{staticClass:"meberList"},[i("div",{staticClass:"department"},[i("div",{staticClass:"flex"},[i("i",{staticClass:"el-icon-s-cooperation"}),e._v(" "),i("span",[e._v(e._s(t.department_name?t.department_name:"部门"+(s+1)))])])]),e._v(" "),e._l(t.user_list,function(s){return i("div",{key:s.user_id,staticClass:"memberItem",style:t.is_open?"display:none":"",on:{click:function(t){return e.selectUserEvent("user",s.user_id)}}},[i("div",{staticClass:"flex",staticStyle:{flex:"1"}},[i("img",{staticClass:"memberImg",attrs:{src:s.avatar,alt:""}}),e._v(" "),i("div",{staticClass:"memberInfo"},[i("div",{staticClass:"name"},[e._v(e._s(s.name))]),e._v(" "),i("div",{staticClass:"other"},[e._v("部门:"+e._s(s.department_list&&s.department_list.join(",")))])])]),e._v(" "),i("div",{class:["checkbox",e.selectUserId==s.user_id?"checkbox_active":""]},[i("i",{staticClass:"el-icon-check"})])])})],2)])]})],2)],1),e._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.defineEvent}},[e._v("确定")])],1)])])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-screen-self-icon"},[t("i",{staticClass:"el-icon-arrow-down"})])}]};var n=i("VU/8")(s,a,!1,function(e){i("POxC")},"data-v-b36d5b36",null);t.a=n.exports},"Ox+Z":function(e,t,i){"use strict";var s={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 e=this,t=this.options.filter(function(t){return t.value==e.value});t.length>0&&(this.valueCon=t[0]),this.$emit("lossChange",this.value)}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-screen-item"},[i("label",{staticClass:"common-screen-label"},[e._v("客户状态\n "),i("el-tooltip",{staticClass:"disinblock",attrs:{content:"仅可统计员工授权后的客户状态",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),e._v(" "),i("div",{class:["common-screen-self-box","common-input-select",""!=e.value&&e.clearable?"common-input-select-hover":""]},[i("div",{class:["common-screen-self-con",""==e.value?"common-screen-self-placeholder":""]},[i("div",{staticClass:"common-screen-self-con-div"},[i("span",[e._v(e._s(""!=e.value?e.valueCon.label:"请选择客户状态"))])]),e._v(" "),i("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}}})]),e._v(" "),e._m(0),e._v(" "),i("el-select",{staticClass:"common-screen-opacity-0",attrs:{placeholder:"请选择"},on:{change:e.change},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-screen-self-icon"},[t("i",{staticClass:"el-icon-arrow-down"})])}]};var n=i("VU/8")(s,a,!1,function(e){i("X+xm")},"data-v-01ae62b3",null);t.a=n.exports},POxC:function(e,t){},RCl8:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("McOJ"),a=i("fGUm"),n=i("sazF"),l=i("gzej"),r=i("erru"),o=i("Y+W8"),c=i("Ox+Z"),u=i("cHmb"),_=i("Fn7A"),d=i("VULP"),h={components:{serviceSingle:i("3uEH").a},props:{userType:{type:Number|String}},data:function(){return{user_replace_info:{},userChangeVisible:!1,reason:"",changeReason:"",setUpVisible:!1,infoVisible:!1,enterprise:{},portrait_inheritance:!0}},created:function(){this.enterprise=JSON.parse(this.$localSelfStore.getLocal("defaultCorp"))},methods:{submitEvent:function(){this.$emit("transferCustomerEvent",{transfer_success_msg:this.reason,takeover_userid:this.user_replace_info.user_id,portrait_inheritance:this.portrait_inheritance?1:0})},serviceSingleEvent:function(e){e&&e.user_id?this.user_replace_info=e:this.user_replace_info={}},defineEvent:function(){this.user_replace_info&&this.user_replace_info.user_id?(this.reason="您好,您的服务已升级,后续将由我的同事 "+this.user_replace_info.name+"@"+(this.enterprise.corp_full_name?this.enterprise.corp_full_name:this.enterprise.corp_name)+" 接替我的工作,继续为您服务。",this.changeReason=this.reason,this.infoVisible=!0):this.$message({message:"请选择接替员工!",type:"warning"})},infoDefine:function(){this.changeReason&&""!=this.changeReason?(this.userChangeVisible=!1,this.reason=this.changeReason):this.$message({message:"请编辑客户收到的消息",type:"warning"})}}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"self-hint",staticStyle:{border:"none","margin-top":"-10px"}},[i("i",{staticClass:"el-icon-message-solid"}),e._v(" "),i("div",[i("p",[e._v("可将选中的客户转接给其他员工,进行后续服务")]),e._v(" "),2==e.userType?i("p",[e._v("注意:90天内客户只能被转移一次,一个客户最多只能被转接两次")]):e._e()])]),e._v(" "),i("service-single",{staticStyle:{"margin-top":"20px","margin-left":"-30px"},attrs:{title:"接替员工"},on:{customerDefine:e.serviceSingleEvent}}),e._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){return e.$emit("closeToast")}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.defineEvent}},[e._v("确定")])],1),e._v(" "),i("el-dialog",{attrs:{title:"分配客户",visible:e.infoVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"",center:"",top:"15vh"},on:{"update:visible":function(t){e.infoVisible=t}}},[i("div",{staticClass:"self-hint",staticStyle:{border:"none"}},[i("i",{staticClass:"el-icon-message-solid"}),e._v(" "),i("p",[e._v("转接后客户将在24小时后成功转接,若客户拒绝,本次转接将不会生效")])]),e._v(" "),i("div",{staticClass:"userReceive"},[i("div",{staticClass:"receiveTop"},[i("p",[e._v("客户将收到以下消息")]),e._v(" "),i("div",{staticClass:"xg",on:{click:function(t){e.userChangeVisible=!0}}},[i("i",{staticClass:"el-icon-edit"}),i("span",[e._v("修改")])])]),e._v(" "),i("div",{staticClass:"userReceiveInfo"},[i("div",{staticClass:"user"},[i("div",{staticClass:"phonePeople"},[i("i",{staticClass:"el-icon-s-custom"})]),e._v(" "),i("div",{staticClass:"con"},[e._v(e._s(e.reason))])]),e._v(" "),i("div",{staticClass:"userHint"},[e._v("由于工作变更,"),i("span",[e._v(e._s(e.user_replace_info.name)+"@"+e._s(e.enterprise.corp_full_name?e.enterprise.corp_full_name:e.enterprise.corp_name))]),e._v("将在24小时后添加为你的企业微信联系人,接替 XXX@"+e._s(e.enterprise.corp_full_name?e.enterprise.corp_full_name:e.enterprise.corp_name)+" 继续为您提供服务。")]),e._v(" "),i("div",{staticClass:"userHint"},[i("span",[e._v("暂不添加")])])])]),e._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){e.infoVisible=!1}}},[e._v("返回")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.setUpVisible=!0}}},[e._v("确定")])],1)]),e._v(" "),i("el-dialog",{attrs:{title:"分配客户",visible:e.userChangeVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"",center:"",top:"15vh"},on:{"update:visible":function(t){e.userChangeVisible=t}}},[i("div",{staticClass:"self-hint"},[i("i",{staticClass:"el-icon-message-solid"}),e._v(" "),i("span",[e._v("转接后客户将在24小时后成功转接,若客户拒绝,本次转接将不会生效")])]),e._v(" "),i("div",{staticClass:"receiveTop",staticStyle:{"margin-top":"15px"}},[i("p",[e._v("客户将收到以下消息")])]),e._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.changeReason,expression:"changeReason"}],staticClass:"textarea",attrs:{autocomplete:"off",placeholder:"请输入客户收到的消息"},domProps:{value:e.changeReason},on:{input:function(t){t.target.composing||(e.changeReason=t.target.value)}}}),e._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){e.userChangeVisible=!1}}},[e._v("返回")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.infoDefine}},[e._v("保存")])],1)]),e._v(" "),i("el-dialog",{attrs:{title:"设置",visible:e.setUpVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"",center:"",top:"15vh"},on:{"update:visible":function(t){e.setUpVisible=t}}},[i("div",{staticClass:"self-hint"},[i("i",{staticClass:"el-icon-message-solid"}),e._v(" "),i("span",[e._v("若继承客户之前已添加继承员工,客户画像信息将不会继承")])]),e._v(" "),i("div",{staticClass:"jc_con"},[i("label",[e._v("客户画像继承:")]),e._v(" "),i("div",{staticClass:"jc_con_con"},[i("div",[i("el-switch",{attrs:{"active-color":"#ff4040","inactive-color":"#ccc"},model:{value:e.portrait_inheritance,callback:function(t){e.portrait_inheritance=t},expression:"portrait_inheritance"}}),e._v(" "),i("span",[e._v(e._s(e.portrait_inheritance?"已开启":""))])],1),e._v(" "),i("div",{staticClass:"jc_hint"},[e._v("开启后企业通过在职继承或离职继承客户,将同步客户信息至继承员工客户画像,方便员工跟进客户。")])])]),e._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){e.setUpVisible=!1}}},[e._v("返回")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.setUpVisible=!1,e.infoVisible=!1,e.submitEvent()}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var v=i("VU/8")(h,p,!1,function(e){i("lotr")},"data-v-36c92dba",null).exports,m=i("w5PV"),f={components:{distributionUser:v,detial:d.a,selfInput:s.a,selfCustomerservice:a.a,enterpriseTag:n.a,datePicker:l.a,selfChannel:r.a,selfGender:o.a,lossBody:c.a,screenPay:u.a,shieldingUser:_.a,chatGroupOptions:m.a},data:function(){return{type:2,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:[],isAll:!1,distributionUserVisible:!1,selectTotal:0,height:"",chatGroupList:[]}},created:function(){this.height=document.documentElement.clientHeight-450>300?document.documentElement.clientHeight-450:300,"off"==localStorage.getItem("transter")?this.type=2:this.type=1,this.init(1)},methods:{changeDrawerSize:function(){this.drawerSize="100%"==this.drawerSize?"60%":"100%"},closeDrawer:function(){this.detialDrawer=!1},tagUpdate:function(e){this.$set(this.rowPro,"tag_list",e),this.$set(this.tableData,this.rowPro.self_index,this.rowPro)},showDetial:function(e,t){var i=this;this.rowPro=e,this.rowPro.self_index=t,this.drawerSize="60%",this.detialDrawer=!0,this.$nextTick(function(){i.$refs.detial.acIdx=0,i.$refs.detial.init()})},goReord:function(){2==this.type&&this.$router.push({path:"/transferRecord/off"}),1==this.type&&this.$router.push({path:"/transferRecord/on"})},transferCustomerEvent:function(e){var t=this;this.distributionUserVisible=!1;var i=[],s=[];this.isAll?this.filter_multipleArr.forEach(function(e){s.push({handover_userid:e.user_id,external_userid:e.external_userid})}):this.multipleArr.forEach(function(e){i.push({handover_userid:e.user_id,external_userid:e.external_userid})}),this.$loading(this.$loadingConfig),this.$axios.post(this.URL.BASEURL+this.URL.customer_transferCustomer,{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(e){return e.chat_id}):[],type:this.type,takeover_userid:e.takeover_userid,transfer_success_msg:e.transfer_success_msg,portrait_inheritance:e.portrait_inheritance,external_user_list:i,select_all:this.isAll?1:0,filter_customer_list:s}).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?(t.multipleSelection={},t.exclude_multiple_selection={},t.multipleArr=[],t.filter_multipleArr=[],t.selectTotal=0,t.isAll=!1,t.init(t.page),t.$confirm("迁移申请成功!请移步分配纪录查看分配进程","提示",{confirmButtonText:"确定",type:"warning"}).then(function(){}).catch(function(){})):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.$message({message:"迁移失败,服务器错误!",type:"warning"}),t.$loading(t.$loadingConfig).close()})},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.chatGroupList=[],this.init(1)},changeType:function(e){2==e?localStorage.setItem("transter","off"):localStorage.setItem("transter","on"),this.type=e,this.multipleSelection={},this.exclude_multiple_selection={},this.multipleArr=[],this.filter_multipleArr=[],this.selectTotal=0,this.isAll=!1,this.resetEvent()},toDistribution:function(){this.userChange(),this.selectTotal<=0?this.$message({message:"请选择客户!",type:"warning"}):this.distributionUserVisible=!0},shieldingUserCancel:function(e){"update"==e&&this.init(1),this.shieldingFlag=!1},shieldingEvent:function(e){this.shieldingFlag=!0,this.shieldingData={customer_id:e.customer_id,user_id:e.user_id}},payChange:function(e){this.pay_status=e.radio,this.pay_num_min=e.minValue,this.pay_num_max=e.maxValue,this.init(1)},lossChange:function(e){this.loss_status=""==e?null:e,this.init(1)},changeTime:function(e){!e||e&&0==e.length?(this.add_date_start="",this.add_date_end=""):(this.add_date_start=e[0],this.add_date_end=e[1]),this.init(1)},tagDefine:function(e){1==e.tag||2==e.tag?e.tag_id_list&&0!=e.tag_id_list.length?(this.tag_id_list=e.tag_id_list,this.tag_type=e.tag):(this.tag_type=0,this.tag_id_list=[]):(this.tag_type=e.tag,this.tag_id_list=[]),this.init(1)},init:function(e){var t=this;this.page=e||this.page,this.loading=!0;var i=this.URL.customerList;2==this.type&&(i=this.URL.unassignedCustomerList);var s={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:this.page,page_size:this.page_size,source:2,chat_id:this.chatGroupList?this.chatGroupList.map(function(e){return e.chat_id}):[]};console.log("params => ",s),this.$axios.get(this.URL.BASEURL+i,{params:s}).then(function(e){e=e.data;if(t.loading=!1,e&&0==e.errno){2==t.type?(e.rst.data.forEach(function(e){e.chat_list&&Array.isArray(e.chat_list)&&(e.chat_list=e.chat_list.map(function(e){return e||"未设置群名"}).join(", "))}),t.tableData=e.rst.data):(e.rst.data.list.forEach(function(e){e.chat_list&&Array.isArray(e.chat_list)&&(e.chat_list=e.chat_list.map(function(e){return e||"未设置群名"}).join(", "))}),t.tableData=e.rst.data.list,t.otherData={count:e.rst.data.count,exclude_count:e.rst.data.exclude_count}),t.total=e.rst.pageInfo.total,t.pages=e.rst.pageInfo.pages;var i=[];if(t.isAll&&void 0===t.multipleSelection[t.page])i=t.tableData;else{var s=t.multipleSelection[t.page]?t.multipleSelection[t.page].map(function(e){return e.user_id+"-"+e.customer_id}):[];t.tableData.forEach(function(e){-1!=s.indexOf(e.user_id+"-"+e.customer_id)&&i.push(e)})}t.$nextTick(function(){i.forEach(function(e){t.$refs.multipleTable.toggleRowSelection(e,!0)})})}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},handleCurrentChange:function(e){this.init(e)},handleSelectionChange:function(e){if(this.multipleSelection[this.page]=e&&0!=e.length?e:null,this.isAll){var t=[],i=this.multipleSelection[this.page]?this.multipleSelection[this.page].map(function(e){return e.user_id+"-"+e.customer_id}):[];this.tableData.forEach(function(e){-1==i.indexOf(e.user_id+"-"+e.customer_id)&&t.push(e)}),this.exclude_multiple_selection[this.page]=t}this.userChange()},pageOptionSelect:function(e){var t=this;if(e&&""!=e&&(this.old_pageOptionValue=e),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(e){t.$refs.multipleTable.toggleRowSelection(e,!0)}),this.userChange()},handleSelectAll:function(e){this.isAll&&0==e.length&&(this.multipleSelection={},this.exclude_multiple_selection={},this.isAll=!1,this.userChange())},userChange:function(){var e=[];for(var t in this.multipleSelection)e=e.concat(this.multipleSelection[t]?this.multipleSelection[t]:[]);if(this.multipleArr=e,this.isAll){var i=[];for(var t in this.exclude_multiple_selection)i=i.concat(this.exclude_multiple_selection[t]?this.exclude_multiple_selection[t]:[]);this.filter_multipleArr=i,this.selectTotal=Number(this.total)-i.length}else this.selectTotal=this.multipleArr.length},onChangeChatGroupList:function(e){this.init(1)}}},g={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[s("div",{staticClass:"topTagBox flex"},[s("div",{staticClass:"left flex-align-center"},[s("div",{class:["tagItem",2==e.type?"tagItem_active":""],on:{click:function(t){return e.changeType(2)}}},[e._v("离职迁移")]),e._v(" "),s("div",{class:["tagItem",1==e.type?"tagItem_active":""],on:{click:function(t){return e.changeType(1)}}},[e._v("在职迁移")])]),e._v(" "),s("div",{staticClass:"right"},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.goReord}},[s("i",{staticClass:"el-icon-document"}),e._v(" 分配记录")])],1)]),e._v(" "),s("div",{staticClass:"screenBox"},[s("self-input",{attrs:{reset:e.resetFlag},on:{inputChange:function(t){e.input_keyword=t,e.init(1)}}}),e._v(" "),s("self-customerservice",{attrs:{reset:e.resetFlag},on:{customerDefine:function(t){e.user_id_list=t,e.init(1)}}}),e._v(" "),s("chatGroupOptions",{attrs:{label:"所属群聊"},on:{change:e.onChangeChatGroupList},model:{value:e.chatGroupList,callback:function(t){e.chatGroupList=t},expression:"chatGroupList"}}),e._v(" "),s("enterprise-tag",{attrs:{reset:e.resetFlag},on:{tagDefine:e.tagDefine}}),e._v(" "),s("date-picker",{attrs:{reset:e.resetFlag},on:{changeTime:e.changeTime}}),e._v(" "),s("self-channel",{attrs:{reset:e.resetFlag},on:{channelDefine:function(t){e.add_way=t,e.init(1)}}}),e._v(" "),s("loss-body",{attrs:{reset:e.resetFlag},on:{lossChange:e.lossChange}}),e._v(" "),s("div",{staticClass:"reset",on:{click:e.resetEvent}},[e._v("重置")])],1),e._v(" "),s("div",{staticClass:"tableInfo"},[s("div",[s("div",{staticClass:"flex"},[s("i",{staticClass:"el-icon-user-solid"}),e._v(" "),2==e.type?s("div",{staticClass:"totalCustom"},[e._v("共"),s("span",[e._v(e._s(e.total))]),e._v("个待分配客户")]):e._e(),e._v(" "),1==e.type?[s("div",{staticClass:"totalCustom"},[e._v("共"),s("span",[e._v(e._s(e.otherData&&e.otherData.count))]),e._v("个客户")]),e._v(" "),s("div",{staticClass:"smalLine"}),e._v(" "),s("div",{staticClass:"excludeCustom"},[e._v("排除重复客户\n "),s("el-tooltip",{staticClass:"disinblock",attrs:{content:"该数据为去重后的客户数,若客户添加了多个员工只会统计为1个客户",placement:"top"}},[s("i",{staticClass:"el-icon-question"})]),e._v(" "),s("span",[e._v(e._s(e.otherData&&e.otherData.exclude_count))])],1)]:e._e()],2),e._v(" "),s("div",{staticClass:"selectCustom"},[e._v("已择"+e._s(e.selectTotal)+"个客户")])]),e._v(" "),s("div",{staticClass:"flex"},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.toDistribution}},[e._v("分配")])],1)]),e._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:e.height,data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange,"select-all":e.handleSelectAll}},[s("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{width:"200",fixed:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[s("div",{staticClass:"customTitle",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(2==e.old_pageOptionValue?"选择当前页面客户":"选择全部客户")),s("i",{staticClass:"el-icon-arrow-down"}),e._v(" "),s("el-select",{staticClass:"customTitleSelect",attrs:{placeholder:"请选择",size:"mini"},on:{change:e.pageOptionSelect,"visible-change":function(t){e.pageOptionValue=""}},model:{value:e.pageOptionValue,callback:function(t){e.pageOptionValue=t},expression:"pageOptionValue"}},e._l(e.pageOptions,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)]}},{key:"default",fn:function(t){return[s("div",{staticClass:"userBox"},[t.row.avatar?s("img",{staticClass:"userImg",attrs:{src:t.row.avatar,alt:""}}):s("img",{staticClass:"userImg",attrs:{src:i("pIyw"),alt:""}}),e._v(" "),s("div",{staticClass:"userInfo"},[s("div",{staticClass:"userName"},[s("p",{staticClass:"name"},[e._v(e._s(t.row.remark))]),e._v(" "),1==t.row.type?s("span",[e._v("@微信")]):e._e()]),e._v(" "),s("div",{staticClass:"nickname"},[s("span",[e._v("昵称:")]),e._v(e._s(t.row.name))])])])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"性别","min-width":"60","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(1==t.row.gender?"男":2==t.row.gender?"女":""))])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"所属客服","min-width":"140",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{staticClass:"customerServiceTagBox"},[s("div",{staticClass:"customerServiceTag-v2"},[e._v(e._s(t.row.user_list.name))])])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"所属群聊","min-width":"160","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[s("span",[e._v(e._s(i.chat_list||"-"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"所属部门","min-width":"140","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.department_list&&t.row.department_list.join(",")))])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"标签","min-width":"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{staticClass:"customerServiceTagBox biaoqian"},e._l(t.row.tag_list,function(t,i){return s("div",{key:i,staticClass:"customerServiceTag"},[e._v(e._s(t))])}),0)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"客户状态","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.relation_enable?s("span",{staticClass:"c-F03F5C"},[e._v("已流失")]):e._e(),e._v(" "),1==t.row.relation_enable?s("span",{staticClass:"c-448AFF"},[e._v("未流失")]):e._e(),e._v(" "),2==t.row.relation_enable?s("span",{staticClass:"c-FFB055"},[e._v("待分配")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"createtime","min-width":"160",label:"添加时间","show-overflow-tooltip":"",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{width:"140",label:"添加渠道","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.add_way))])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[s("div",{staticClass:"c-00B38A pointer",staticStyle:{margin:"0 6px"},on:{click:function(i){return e.showDetial(t.row,t.$index)}}},[e._v("详情")])])]}}])})],1),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"pagination"},[s("el-pagination",{attrs:{background:"","current-page":e.page,layout:"prev, pager, next","page-count":Number(e.pages)},on:{"current-change":e.handleCurrentChange}})],1),e._v(" "),s("el-dialog",{attrs:{title:"拉黑原因",visible:e.shieldingFlag,width:"578px",center:""},on:{"update:visible":function(t){e.shieldingFlag=t}}},[s("shielding-user",{attrs:{shieldingData:e.shieldingData},on:{cancel:e.shieldingUserCancel}})],1),e._v(" "),s("el-drawer",{attrs:{size:e.drawerSize,visible:e.detialDrawer,"with-header":!1},on:{"update:visible":function(t){e.detialDrawer=t}}},[s("detial",{ref:"detial",attrs:{rowProp:{customer_id:e.rowPro.customer_id,user_id:e.rowPro.user_id}},on:{changeDrawerSize:e.changeDrawerSize,closeDrawer:e.closeDrawer,tagUpdate:e.tagUpdate}})],1),e._v(" "),s("el-dialog",{attrs:{title:"分配客户",visible:e.distributionUserVisible,width:"600px",center:""},on:{"update:visible":function(t){e.distributionUserVisible=t}}},[s("distribution-user",{attrs:{userType:e.type},on:{closeToast:function(t){e.distributionUserVisible=!1},transferCustomerEvent:e.transferCustomerEvent}})],1)],1)},staticRenderFns:[]};var b=i("VU/8")(f,g,!1,function(e){i("3Om5")},"data-v-178627e2",null);t.default=b.exports},"X+xm":function(e,t){},"Y+W8":function(e,t,i){"use strict";var s={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 e=this,t=this.options.filter(function(t){return t.value==e.value});t.length>0&&(this.valueCon=t[0]),this.$emit("genderChange",this.value)}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-screen-item"},[i("label",{staticClass:"common-screen-label"},[e._v("性别")]),e._v(" "),i("div",{class:["common-screen-self-box","common-input-select",""!=e.value&&e.clearable?"common-input-select-hover":""]},[i("div",{class:["common-screen-self-con",""==e.value?"common-screen-self-placeholder":""]},[i("div",{staticClass:"common-screen-self-con-div"},[i("span",[e._v(e._s(""!=e.value?e.valueCon.label:"请选择性别"))])]),e._v(" "),i("i",{staticClass:"el-icon-circle-close other-icon",on:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}}})]),e._v(" "),e._m(0),e._v(" "),i("el-select",{staticClass:"common-screen-opacity-0",attrs:{placeholder:"请选择"},on:{change:e.change},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-screen-self-icon"},[t("i",{staticClass:"el-icon-arrow-down"})])}]};var n=i("VU/8")(s,a,!1,function(e){i("rg7l")},"data-v-1cb982d1",null);t.a=n.exports},lotr:function(e,t){},rg7l:function(e,t){}});