<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["contact-transfer"],{"0862":function(t,e,a){},"08d7":function(t,e,a){"use strict";a("bce8")},"0cbf":function(t,e,a){},"305a":function(t,e,a){"use strict";a.r(e);a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"resign-index"},[e("a-card",{staticClass:"mb16"},[0===t.currentTab?e("div",[e("div",{staticClass:"filter-form"},[e("div",{staticClass:"item"},[e("label",[t._v("客户昵称：")]),e("div",{staticClass:"input"},[e("a-input-search",{attrs:{placeholder:"请输入要搜索的客户",allowClear:!0},on:{search:t.retrievalClient,change:t.emptyClientIpt},model:{value:t.paramsAskClient.contactName,callback:function(e){t.$set(t.paramsAskClient,"contactName",e)},expression:"paramsAskClient.contactName"}})],1)]),e("div",{staticClass:"item"},[e("label",[t._v("所属客服：")]),e("div",{staticClass:"input belongTo",on:{click:function(e){return t.$refs.selectMember.$show(t.showEmployee)}}},[0==t.showEmployee.length?e("span",{staticClass:"tips"},[t._v("请选择客服")]):t._e(),t._l(t.showEmployee,(function(a,s){return e("a-tag",{key:s},[t._v(t._s(a.name))])}))],2)]),e("selectEmployee",{ref:"selectMember",on:{change:t.effectStaff}}),e("div",{staticClass:"item"},[e("label",[t._v("添加时间：")]),e("div",{staticClass:"input"},[e("a-range-picker",{on:{change:t.retrievalDate},model:{value:t.showTimeSearch,callback:function(e){t.showTimeSearch=e},expression:"showTimeSearch"}})],1)]),e("div",{staticClass:"item"},[e("a-button",{on:{click:t.resetBtn}},[t._v("重置")])],1)],1)]):t._e(),1===t.currentTab?e("div",[e("div",{staticClass:"filter-form"},[e("div",{staticClass:"item"},[e("label",[t._v("群名称：")]),e("div",{staticClass:"input"},[e("a-input-search",{attrs:{placeholder:"请输入要搜索的群名称",allowClear:!0},on:{search:t.retrievalGroup,change:t.emptyGroupIpt},model:{value:t.paramsAskGroup.roomName,callback:function(e){t.$set(t.paramsAskGroup,"roomName",e)},expression:"paramsAskGroup.roomName"}})],1)])])]):t._e()]),e("a-card",[e("div",{staticClass:"flex"},[e("div",{staticClass:"info-box"},[e("span",{staticClass:"f-blod"},[t._v("共"+t._s(t.table.data.length)+"个待分配客户")]),e("a-divider",{attrs:{type:"vertical"}}),0==t.currentTab?e("span",{staticClass:"desc-text"},[t._v("上次同步时间："+t._s(t.synchroTime))]):t._e()],1),e("div",{staticClass:"btn-box"},[0==t.currentTab?e("a-button",{attrs:{type:"primary",ghost:""},on:{click:t.allocation}},[t._v("分配客户")]):e("a-button",{attrs:{type:"primary",ghost:""},on:{click:t.distributionGroup}},[t._v("分配群聊")]),e("a-button",{attrs:{type:"primary",ghost:""},on:{click:function(e){return t.$router.push("/contactTransfer/resignAllotRecord")}}},[t._v("分配记录")]),0==t.currentTab?e("a-button",{attrs:{type:"primary",ghost:""},on:{click:t.updateTo}},[t._v("同步")]):t._e()],1),e("selectStaff",{ref:"choiceStaff",on:{change:t.acceptData}})],1),e("div",{staticClass:"table mt20"},[e("a-table",{attrs:{columns:0==t.currentTab?t.table.clientCol:t.table.groupCol,"data-source":t.table.data,"row-selection":{selectedRowKeys:t.table.rowSelection,onChange:t.onSelectChange},pagination:!0},scopedSlots:t._u([{key:"employeeName",fn:function(a){return e("div",{},[e("a-tag",[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(a))],1)],1)}},{key:"state",fn:function(a){return e("div",{},[1==a?e("span",[t._v("接替完毕")]):t._e(),2==a?e("span",[t._v("等待接替")]):t._e(),3==a?e("span",[t._v("客户拒绝")]):t._e(),4==a?e("span",[t._v("接替成员客户达到上限")]):t._e(),5==a?e("span",[t._v("无接替记录")]):t._e()])}},{key:"operation",fn:function(a,s){return e("div",{},[e("a",{on:{click:function(e){return t.$router.push({path:"/workContact/contactFieldPivot?contactId="+s.contactId+"&amp;employeeId="+s.employeeId+"&amp;isContact=2"})}}},[t._v("客户详情")])])}},{key:"owner",fn:function(a){return e("div",{},[e("a-tag",[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(a))],1)],1)}},{key:"handGroup",fn:function(a,s){return e("div",{},[e("a",{on:{click:function(e){return t.$router.push("/workRoom/statistics?workRoomId=".concat(s.roomId))}}},[t._v(" 群聊详情 ")])])}}])})],1)])],1)},n=[],i=(a("d3b7"),a("159b"),a("ccbc")),r=a("4721"),c={components:{selectStaff:r["a"]},data:function(){return{synchroTime:"",currentTab:0,showEmployee:[],showTimeSearch:[],paramsAskClient:{employeeId:"",contactName:"",addTimeStart:"",addTimeEnd:""},tableSelectClient:[],paramsAskGroup:{roomName:""},table:{clientCol:[{key:"nickName",dataIndex:"nickName",title:"客户昵称"},{key:"employeeName",dataIndex:"employeeName",title:"所属客服",scopedSlots:{customRender:"employeeName"}},{key:"addTime",dataIndex:"addTime",title:"添加时间"},{key:"lastMsgTime",dataIndex:"lastMsgTime",title:"上次对话时间"},{key:"addWay",dataIndex:"addWay",title:"添加渠道"},{dataIndex:"state",title:"接替状态",scopedSlots:{customRender:"state"}},{key:"operation",dataIndex:"operation",title:"操作",scopedSlots:{customRender:"operation"}}],groupCol:[{key:"roomName",dataIndex:"roomName",title:"群聊名称"},{key:"owner",dataIndex:"owner",title:"群主",scopedSlots:{customRender:"owner"}},{key:"userNum",dataIndex:"userNum",title:"群人数"},{key:"addNum",dataIndex:"addNum",title:"今日入群"},{key:"quitNum",dataIndex:"quitNum",title:"今日退群"},{key:"createTime",dataIndex:"createTime",title:"创群时间"},{key:"handGroup",dataIndex:"handGroup",title:"操作",scopedSlots:{customRender:"handGroup"}}],data:[],rowSelection:[]}}},created:function(){var t=this;this.getClientTableData(),window.tabChange=function(e){t.currentTab=e,t.tabSwitch(e)}},methods:{updateTo:function(){var t=this;this.table.data=[],Object(i["g"])().then((function(e){t.getClientTableData(t.paramsAskClient),t.$message.success("同步成功")}))},getClientTableData:function(t){var e=this;Object(i["h"])(t).then((function(t){e.table.data=t.data.list,e.synchroTime=e.getCurrentTime()}))},getCurrentTime:function(){var t=new Date,e=t.getFullYear(),a=(new Date).getMonth()+1,s=(new Date).getDate()&lt;10?"0"+(new Date).getDate():(new Date).getDate(),n=(new Date).getHours()&lt;10?"0"+(new Date).getHours():(new Date).getHours(),i=(new Date).getMinutes()&lt;10?"0"+(new Date).getMinutes():(new Date).getMinutes();return e+"-"+a+"-"+s+" "+n+":"+i},onSelectChange:function(t){var e=this;this.tableSelectClient=[],this.table.rowSelection=t,0==this.currentTab?t.forEach((function(t){var a={employeeWxId:"",contactWxId:""};a.employeeWxId=e.table.data[t].employeeWxId,a.contactWxId=e.table.data[t].contactWxId,e.tableSelectClient.push(a)})):t.forEach((function(t,a){e.tableSelectClient[a]=e.table.data[t].chatId}))},allocation:function(){if(""==this.tableSelectClient)return this.$message.warning("请选择客户"),!1;this.$refs.choiceStaff.show(0)},distributionGroup:function(){if(""==this.tableSelectClient)return this.$message.warning("请选择群聊"),!1;this.$refs.choiceStaff.show(0)},acceptData:function(t){var e=this;if(0==this.currentTab){var a={type:1,list:JSON.stringify(this.tableSelectClient),takeoverUserId:t};Object(i["a"])(a).then((function(t){e.$message.info("分配成功"),e.table.rowSelection=[]}))}else{var s={type:1,list:JSON.stringify(this.tableSelectClient),takeoverUserId:t};Object(i["b"])(s).then((function(t){e.$message.info("分配成功"),e.table.rowSelection=[]}))}},resetBtn:function(){this.paramsAskClient={},this.showEmployee=[],this.showTimeSearch=[],this.getClientTableData(this.paramsAskClient)},effectStaff:function(t){this.showEmployee=t;var e=[];t.forEach((function(t,a){e[a]=t.id})),this.paramsAskClient.employeeId=JSON.stringify(e),this.getClientTableData(this.paramsAskClient)},retrievalClient:function(){this.getClientTableData(this.paramsAskClient)},emptyClientIpt:function(){""==this.paramsAskClient.contactName&amp;&amp;this.getClientTableData(this.paramsAskClient)},retrievalDate:function(t,e){this.paramsAskClient.addTimeStart=e[0],this.paramsAskClient.addTimeEnd=e[1],this.getClientTableData(this.paramsAskClient)},retrievalGroup:function(){this.getGroupTable(this.paramsAskGroup)},emptyGroupIpt:function(){""==this.paramsAskGroup.roomName&amp;&amp;this.getGroupTable(this.paramsAskGroup)},getGroupTable:function(t){var e=this;Object(i["f"])(t).then((function(t){e.table.data=t.data}))},tabSwitch:function(t){this.currentTab=t,this.table.data=[],this.table.rowSelection=[],0==this.currentTab?this.getClientTableData(this.paramsAskClient):1==this.currentTab&amp;&amp;this.getGroupTable(this.paramsAskGroup)}}},o=c,l=(a("fa38"),a("2877")),d=Object(l["a"])(o,s,n,!1,null,"29884e10",null);e["default"]=d.exports},"308f":function(t,e,a){"use strict";a("0862")},4721:function(t,e,a){"use strict";a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",[e("a-modal",{staticClass:"popContent",attrs:{title:"分配客户",maskClosable:!1,footer:null},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("div",{staticClass:"tipsStyle"},[e("div",[t._v("可将选中的客户转接给其他员工，进行后续服务")]),e("div",[t._v("注意:90天内客户只能被转接一次，一个客户最多只能被转接两次详情")])]),e("div",{staticClass:"screen"},[e("span",[t._v("接替员工：")]),e("div",[e("a-select",{staticStyle:{width:"200px","margin-left":"5px"},attrs:{placeholder:"请选择企业员工",showSearch:!0,"filter-option":t.filterOption},model:{value:t.staffName,callback:function(e){t.staffName=e},expression:"staffName"}},t._l(t.staffArray,(function(a,s){return e("a-select-option",{key:s,attrs:{value:a.wxUserId}},[t._v(t._s(a.name)+" ")])})),1),e("div",{staticClass:"tips"},[e("span",[t._v("未找到接替员工？")]),e("a",[t._v("查看详情")])])],1)]),e("div",{staticClass:"btnRow"},[e("a-button",{on:{click:t.hidden}},[t._v("取消")]),e("a-button",{attrs:{type:"primary"},on:{click:t.determine}},[t._v("确定")])],1)])],1)},n=[],i=(a("caad"),a("2532"),a("ccbc")),r={data:function(){return{visible:!1,staffName:void 0,staffArray:[]}},methods:{filterOption:function(t,e){return(e.componentOptions.children[0].text||"").includes(t)},determine:function(){if(void 0==this.staffName)return this.$message.warning("请选择接替员工"),!1;this.visible=!1,this.$emit("change",this.staffName)},show:function(t){this.visible=!0,this.staffName=void 0,this.getNumberData()},hidden:function(){this.visible=!1},getNumberData:function(){var t=this;Object(i["c"])().then((function(e){t.staffArray=e.data.employee}))}}},c=r,o=(a("08d7"),a("2877")),l=Object(o["a"])(c,s,n,!1,null,null,null);e["a"]=l.exports},"6a20":function(t,e,a){"use strict";a.r(e);a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"work-index"},[e("a-card",{staticClass:"mb16"},[e("div",{staticClass:"filter-form"},[e("div",{staticClass:"item"},[e("label",[t._v("客户昵称：")]),e("div",{staticClass:"input"},[e("a-input-search",{attrs:{placeholder:"请输入要搜索的客户",allowClear:!0},on:{search:t.retrievalTable,change:t.emptyNickIpt},model:{value:t.searchData.contactName,callback:function(e){t.$set(t.searchData,"contactName",e)},expression:"searchData.contactName"}})],1)]),e("div",{staticClass:"item customer-item"},[e("label",[t._v("所属客服：")]),e("div",{staticClass:"input belongTo",on:{click:function(e){return t.$refs.selectMember.$show(t.showEmployee)}}},[0==t.showEmployee.length?e("span",{staticClass:"tips"},[t._v("请选择客服")]):t._e(),t._l(t.showEmployee,(function(a,s){return[s&lt;2?e("a-tag",{key:s},[t._v(t._s(a.name))]):t._e()]})),t.showEmployee.length&gt;2?e("a-tag",[t._v("...")]):t._e()],2)]),e("selectEmployee",{ref:"selectMember",on:{change:t.effectStaff}}),e("div",{staticClass:"item"},[e("label",[t._v("添加时间：")]),e("div",{staticClass:"input"},[e("a-range-picker",{on:{change:t.retrievalDate},model:{value:t.showTimeSearch,callback:function(e){t.showTimeSearch=e},expression:"showTimeSearch"}})],1)]),e("div",{staticClass:"item"},[e("a-button",{on:{click:t.resetBtn}},[t._v("重置")])],1)],1)]),e("a-card",[e("div",{staticClass:"flex mb20"},[e("div",{staticClass:"info-box"},[e("span",{staticClass:"f-blod"},[t._v("共"+t._s(t.dataTotal)+"个待分配客户")])]),e("div",{staticClass:"btn-box"},[e("a-button",{attrs:{type:"primary",ghost:""},on:{click:t.allocation}},[t._v("分配客户")]),e("a-button",{attrs:{type:"primary",ghost:""},on:{click:function(e){return t.$router.push("/contactTransfer/workAllotRecord")}}},[t._v("分配记录")])],1),e("selectStaff",{ref:"choiceStaff",on:{change:t.acceptData}})],1),e("div",{staticClass:"table"},[e("a-table",{attrs:{columns:t.table.col,"data-source":t.table.data,"row-selection":{selectedRowKeys:t.table.rowSelection,onChange:t.onSelectChange},pagination:!1},scopedSlots:t._u([{key:"employeeName",fn:function(a){return e("div",{},[e("a-tag",[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(a))],1)],1)}},{key:"tags",fn:function(a){return e("div",{},t._l(a,(function(a,s){return e("a-tag",{key:s},[t._v(t._s(a))])})),1)}},{key:"operating",fn:function(a,s){return e("div",{},[e("a",{on:{click:function(e){return t.$router.push({path:"/workContact/contactFieldPivot?contactId="+s.contactId+"&amp;employeeId="+s.employeeId+"&amp;isContact=2"})}}},[t._v("客户详情")])])}}])}),e("div",{staticStyle:{display:"flex","justify-content":"flex-end","margin-top":"30px"}},[e("a-pagination",{attrs:{total:t.dataTotal},on:{change:t.changePage},model:{value:t.searchData.page,callback:function(e){t.$set(t.searchData,"page",e)},expression:"searchData.page"}})],1)],1)])],1)},n=[],i=(a("d3b7"),a("159b"),a("ccbc")),r=a("4721"),c={components:{selectStaff:r["a"]},data:function(){return{dataTotal:0,showEmployee:[],showTimeSearch:[],searchData:{page:1,contactName:"",addTimeStart:"",addTimeEnd:"",employeeId:""},tableSelectClient:[],table:{col:[{key:"nickName",dataIndex:"nickName",title:"客户昵称",width:200},{key:"employeeName",dataIndex:"employeeName",title:"所属客服",scopedSlots:{customRender:"employeeName"}},{key:"tags",dataIndex:"tags",title:"客户标签",scopedSlots:{customRender:"tags"}},{key:"transferState",dataIndex:"transferState",title:"转接状态"},{key:"addTime",dataIndex:"addTime",title:"添加时间"},{key:"lastMsgTime",dataIndex:"lastMsgTime",title:"上次对话时间"},{key:"addWay",dataIndex:"addWay",title:"添加渠道"},{key:"operating",dataIndex:"operating",title:"操作",scopedSlots:{customRender:"operating"}}],data:[],rowSelection:[]}}},created:function(){this.getTableData()},methods:{getTableData:function(){var t=this;this.table.data=[],Object(i["d"])(this.searchData).then((function(e){t.dataTotal=e.data.page.total,t.table.data=e.data.list}))},changePage:function(t){this.getTableData()},allocation:function(){if(""==this.table.rowSelection)return this.$message.warning("请选择客户"),!1;this.$refs.choiceStaff.show(0)},acceptData:function(t){var e=this,a={type:2,list:JSON.stringify(this.tableSelectClient),takeoverUserId:t};Object(i["a"])(a).then((function(t){var a=0,s=0;t.data.forEach((function(t,e){0==t.errcode?a++:s++})),e.$message.info("已成功分配"+a+"位客户，分配失败"+s+"位客户"),e.table.rowSelection=[]}))},onSelectChange:function(t){var e=this;this.tableSelectClient=[],this.table.rowSelection=t,t.forEach((function(t){var a={employeeWxId:"",contactWxId:""};a.employeeWxId=e.table.data[t].employeeWxId,a.contactWxId=e.table.data[t].contactWxId,e.tableSelectClient.push(a)}))},resetBtn:function(){this.searchData={},this.showEmployee=[],this.showTimeSearch=[],this.searchData.page=1,this.getTableData()},effectStaff:function(t){this.showEmployee=t;var e=[];t.forEach((function(t,a){e[a]=t.id})),this.searchData.employeeId=JSON.stringify(e),this.searchData.page=1,this.getTableData()},retrievalDate:function(t,e){this.searchData.addTimeStart=e[0],this.searchData.addTimeEnd=e[1],this.searchData.page=1,this.getTableData()},retrievalTable:function(){this.searchData.page=1,this.getTableData()},emptyNickIpt:function(){""==this.searchData.contactName&amp;&amp;(this.searchData.page=1,this.getTableData())}}},o=c,l=(a("308f"),a("2877")),d=Object(l["a"])(o,s,n,!1,null,null,null);e["default"]=d.exports},7696:function(t,e,a){"use strict";a.r(e);a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"resign-allot-record"},[e("a-card",{staticClass:"mb16"},[e("a-tabs",{attrs:{type:"card","default-active-key":"0"},on:{change:t.tabSwitch}},[e("a-tab-pane",{key:"0",attrs:{tab:"已分配客户"}}),e("a-tab-pane",{key:"1",attrs:{tab:"已分配群聊"}})],1),e("div",{staticClass:"filter-form"},[e("div",{staticClass:"item"},[0==t.currentTab?e("label",[t._v("客户昵称：")]):e("label",[t._v("群名称：")]),e("div",{staticClass:"input"},[e("a-input-search",{attrs:{placeholder:"请输入要搜索的客户",allowClear:!0},on:{search:t.retrievalTable,change:t.emptyNickIpt},model:{value:t.paramsAskData.name,callback:function(e){t.$set(t.paramsAskData,"name",e)},expression:"paramsAskData.name"}})],1)]),e("div",{staticClass:"item"},[e("label",[t._v("接替员工：")]),e("div",{staticClass:"input"},[e("a-select",{attrs:{placeholder:"请选择企业员工",showSearch:!0},on:{change:t.selectStaff},model:{value:t.paramsAskData.staffName,callback:function(e){t.$set(t.paramsAskData,"staffName",e)},expression:"paramsAskData.staffName"}},t._l(t.staffArray,(function(a,s){return e("a-select-option",{key:s,attrs:{value:a.name}},[t._v(t._s(a.name)+" ")])})),1)],1)]),e("div",{staticClass:"item"},[e("label",[t._v("分配时间：")]),e("div",{staticClass:"input"},[e("a-range-picker",{on:{change:t.retrievalDate},model:{value:t.showTimeSearch,callback:function(e){t.showTimeSearch=e},expression:"showTimeSearch"}})],1)]),e("div",{staticClass:"item"},[e("a-button",{on:{click:t.resetBtn}},[t._v("重置")])],1)])],1),e("a-card",[e("div",{staticClass:"flex"},[e("div",{staticClass:"info-box"},[e("span",{staticClass:"f-blod"},[t._v("共"+t._s(t.table.data.length)+"个待分配客户")])])]),e("div",{staticClass:"table mt20"},[e("a-table",{attrs:{columns:0==t.currentTab?t.table.clientCol:t.table.groupCol,"data-source":t.table.data},scopedSlots:t._u([{key:"employee",fn:function(a){return e("div",{},[e("a-tag",[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(a))],1)],1)}},{key:"operation",fn:function(a,s){return e("div",{},[e("a",{on:{click:function(e){return t.seeClientDetails(s)}}},[t._v("客户详情")])])}}])})],1)])],1)},n=[],i=(a("d3b7"),a("159b"),a("ccbc")),r={data:function(){return{currentTab:0,showTimeSearch:[],staffArray:[],paramsAskData:{mode:1,name:"",employeeId:"",createTimeStart:"",createTimeEnd:""},table:{clientCol:[{key:"name",dataIndex:"name",title:"客户名称"},{key:"employee",dataIndex:"employee",title:"接替员工",scopedSlots:{customRender:"employee"}},{key:"state",dataIndex:"state",title:"转接状态"},{key:"createTime",dataIndex:"createTime",title:"分配时间"},{key:"operation",dataIndex:"operation",title:"操作",scopedSlots:{customRender:"operation"}}],groupCol:[{key:"name",dataIndex:"name",title:"群聊名称"},{key:"employee",dataIndex:"employee",title:"接替员工",scopedSlots:{customRender:"employee"}},{key:"roomNum",dataIndex:"roomNum",title:"群人数"},{key:"createTime",dataIndex:"createTime",title:"分配时间"}],data:[]}}},created:function(){this.getClientData(this.paramsAskData),this.getNumberData()},methods:{seeClientDetails:function(t){this.$router.push({path:"/workContact/contactFieldPivot?contactId="+t.contactId+"&amp;employeeId="+t.employeeId+"&amp;isContact=2"})},resetBtn:function(){this.paramsAskData={},this.showTimeSearch=[],0==this.currentTab?(this.paramsAskData.mode=1,this.getClientData(this.paramsAskData)):1==this.currentTab&amp;&amp;(this.paramsAskData.mode=2,this.getGroupData(this.paramsAskData))},getNumberData:function(){var t=this;Object(i["c"])().then((function(e){t.staffArray=e.data.employee}))},selectStaff:function(t){var e=this;this.staffArray.forEach((function(a){t==a.name&amp;&amp;(e.paramsAskData.employeeId=a.wxUserId)})),0==this.currentTab?this.getClientData(this.paramsAskData):this.getGroupData(this.paramsAskData)},retrievalTable:function(){0==this.currentTab?this.getClientData(this.paramsAskData):this.getGroupData(this.paramsAskData)},emptyNickIpt:function(){""==this.paramsAskData.name&amp;&amp;(0==this.currentTab?this.getClientData(this.paramsAskData):this.getGroupData(this.paramsAskData))},retrievalDate:function(t,e){this.paramsAskData.createTimeStart=e[0],this.paramsAskData.createTimeEnd=e[1],0==this.currentTab?this.getClientData(this.paramsAskData):this.getGroupData(this.paramsAskData)},getClientData:function(t){var e=this;Object(i["e"])(t).then((function(t){e.table.data=t.data}))},getGroupData:function(t){var e=this;Object(i["e"])(t).then((function(t){e.table.data=t.data}))},tabSwitch:function(t){this.currentTab=t,this.table.data=[],this.paramsAskData={},this.showTimeSearch=[],0==this.currentTab?(this.paramsAskData.mode=1,this.getClientData(this.paramsAskData)):1==this.currentTab&amp;&amp;(this.paramsAskData.mode=2,this.getGroupData(this.paramsAskData))}}},c=r,o=(a("cfe8"),a("2877")),l=Object(o["a"])(c,s,n,!1,null,"1922c4da",null);e["default"]=l.exports},"7a4a":function(t,e,a){"use strict";a("dc15")},8051:function(t,e,a){},"9d9f":function(t,e,a){"use strict";a.r(e);a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"work-record"},[e("a-card",{staticClass:"mb16"},[e("div",{staticClass:"filter-form"},[e("div",{staticClass:"item"},[e("label",[t._v("接替员工：")]),e("div",{staticClass:"input"},[e("a-select",{attrs:{placeholder:"请选择企业员工",showSearch:!0},on:{change:t.selectStaff},model:{value:t.aksParams.staffName,callback:function(e){t.$set(t.aksParams,"staffName",e)},expression:"aksParams.staffName"}},t._l(t.staffArray,(function(a,s){return e("a-select-option",{key:s,attrs:{value:a.name}},[t._v(t._s(a.name)+" ")])})),1)],1)]),e("div",{staticClass:"item"},[e("label",[t._v("分配时间：")]),e("div",{staticClass:"input"},[e("a-range-picker",{on:{change:t.retrievalDate},model:{value:t.showTimeSearch,callback:function(e){t.showTimeSearch=e},expression:"showTimeSearch"}})],1)]),e("div",{staticClass:"item"},[e("a-button",{on:{click:t.resetBtn}},[t._v("重置")])],1)])]),e("a-card",[e("div",{staticClass:"f-blod ml6 mb16"},[t._v(" 共"+t._s(t.table.data.length)+"个已分配客户 ")]),e("div",{staticClass:"table"},[e("a-table",{attrs:{columns:t.table.columns,"data-source":t.table.data},scopedSlots:t._u([{key:"employee",fn:function(a){return e("div",{},[e("a-tag",[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(a))],1)],1)}},{key:"operation",fn:function(a,s){return e("div",{},[e("a",{on:{click:function(e){return t.seeClientDetails(s)}}},[t._v("客户详情")])])}}])})],1)])],1)},n=[],i=(a("d3b7"),a("159b"),a("ccbc")),r={data:function(){return{showTimeSearch:[],staffArray:[],aksParams:{mode:3,employeeId:"",createTimeStart:"",createTimeEnd:""},table:{columns:[{key:"name",dataIndex:"name",title:"客户名称"},{key:"employee",dataIndex:"employee",title:"接替员工",scopedSlots:{customRender:"employee"}},{key:"state",dataIndex:"state",title:"转接状态"},{key:"createTime",dataIndex:"createTime",title:"分配时间"},{key:"operation",dataIndex:"operation",title:"操作",scopedSlots:{customRender:"operation"}}],data:[]}}},created:function(){this.getTableData(this.aksParams),this.getNumberData()},methods:{seeClientDetails:function(t){this.$router.push({path:"/workContact/contactFieldPivot?contactId="+t.contactId+"&amp;employeeId="+t.employeeId+"&amp;isContact=2"})},resetBtn:function(){this.aksParams={},this.aksParams.mode=3,this.showTimeSearch=[],this.staffName="",this.getTableData(this.aksParams)},selectStaff:function(t){var e=this;this.staffArray.forEach((function(a){t==a.name&amp;&amp;(e.aksParams.employeeId=a.wxUserId)})),this.getTableData(this.aksParams)},getNumberData:function(){var t=this;Object(i["c"])().then((function(e){t.staffArray=e.data.employee}))},retrievalDate:function(t,e){this.aksParams.createTimeStart=e[0],this.aksParams.createTimeEnd=e[1],this.getTableData(this.aksParams)},getTableData:function(t){var e=this;Object(i["e"])(t).then((function(t){e.table.data=t.data}))}}},c=r,o=(a("7a4a"),a("2877")),l=Object(o["a"])(c,s,n,!1,null,"f32b6340",null);e["default"]=l.exports},bce8:function(t,e,a){},ccbc:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"g",(function(){return i})),a.d(e,"h",(function(){return r})),a.d(e,"a",(function(){return c})),a.d(e,"f",(function(){return o})),a.d(e,"b",(function(){return l})),a.d(e,"e",(function(){return d})),a.d(e,"c",(function(){return u}));var s=a("b775");function n(t){return Object(s["c"])({url:"/contactTransfer/info",method:"get",params:t})}function i(t){return Object(s["c"])({url:"/contactTransfer/saveUnassignedList",method:"get",params:t})}function r(t){return Object(s["c"])({url:"/contactTransfer/unassignedList",method:"get",params:t})}function c(t){return Object(s["c"])({url:"/contactTransfer/allotContact",method:"post",data:t})}function o(t){return Object(s["c"])({url:"/contactTransfer/room",method:"get",params:t})}function l(t){return Object(s["c"])({url:"/contactTransfer/allotRoom",method:"post",data:t})}function d(t){return Object(s["c"])({url:"/contactTransfer/log",method:"get",params:t})}function u(t){return Object(s["c"])({url:"/workDepartment/index",method:"get",params:t})}},cfe8:function(t,e,a){"use strict";a("0cbf")},dc15:function(t,e,a){},fa38:function(t,e,a){"use strict";a("8051")}}]);</pre></body></html>