webpackJsonp([88],{XNCx:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("McOJ"),i=s("gzej"),n=s("3uEH"),r=s("erru"),o=s("VULP"),l={components:{selfInput:a.a,datePicker:i.a,serviceSingle:n.a,selfChannel:r.a,detial:o.a},data:function(){return{type:"",loading:!1,page:1,pages:0,total:0,page_size:20,input_keyword:"",resetFlag:!1,tableData:[],transfer_time:[],user_id:"",assignment_status:"",drawerSize:"60%",detialDrawer:!1,rowPro:{},height:"",record_id:this.$route.query.record_id}},created:function(){this.height=document.documentElement.clientHeight-460>400?document.documentElement.clientHeight-460:400,this.type=this.$route.params.type,this.init(1)},methods:{changeDrawerSize:function(){this.drawerSize="100%"==this.drawerSize?"60%":"100%"},closeDrawer:function(){this.detialDrawer=!1},showDetial:function(t){var e=this;this.rowPro=t,this.drawerSize="60%",this.detialDrawer=!0,this.$nextTick(function(){e.$refs.detial.acIdx=0,e.$refs.detial.init()})},serviceSingleEvent:function(t){t&&t.user_id?this.user_id=t.user_id:this.user_id="",this.init(1)},goBack:function(){localStorage.setItem("transter","record"),this.$router.go(-1)},changeTime:function(t){!t||t&&0==t.length?this.transfer_time=[]:this.transfer_time=t,this.init(1)},resetEvent:function(){this.resetFlag=!this.resetFlag,this.input_keyword="",this.user_id="",this.assignment_status="",this.transfer_time=[],this.init(1)},init:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.customerAssignmentList,{params:{assignment_date_start:this.transfer_time&&this.transfer_time.length>1?this.transfer_time[0]:"",assignment_date_end:this.transfer_time&&this.transfer_time.length>1?this.transfer_time[1]:"",customer_name:this.input_keyword,page:this.page,page_size:this.page_size,assignment_status:this.assignment_status,record_id:this.record_id}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.tableData=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)}}},c={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"}]},[s("div",{staticClass:"backBox",on:{click:t.goBack}},[s("div",{staticClass:"back"},[s("i",{staticClass:"el-icon-back"}),t._v(" "),s("span",{staticClass:"back_main_title"},[t._v(t._s("off"==t.type?"离职迁移":"on"==t.type?"在职迁移":"返回")+"/")]),s("span",[t._v("分配记录")])])]),t._v(" "),s("div",{staticClass:"self-hint",staticStyle:{"margin-bottom":"10px"}},[s("i",{staticClass:"el-icon-message-solid"}),t._v(" "),s("div",[t._v("由于企业微信限制,列表仅展示在"+t._s(t.$store.state.simpleName)+"操作的分配记录,"+t._s(t.$store.state.simpleName)+"分配记录将不会展示")])]),t._v(" "),s("div",{staticClass:"screenBox"},[s("self-input",{attrs:{reset:t.resetFlag},on:{inputChange:function(e){t.input_keyword=e,t.init(1)}}}),t._v(" "),s("date-picker",{attrs:{title:"分配时间",reset:t.resetFlag},on:{changeTime:t.changeTime}}),t._v(" "),s("self-channel",{attrs:{title:"转接状态",reset:t.resetFlag,type:"assignment_status"},on:{channelDefine:function(e){t.assignment_status=e,t.init(1)}}}),t._v(" "),s("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),s("div",{staticClass:"tableInfo"},[s("div",[s("div",{staticClass:"flex"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" "),s("div",{staticClass:"totalCustom"},[t._v("共有"),s("span",[t._v(t._s(t.total))]),t._v("个已分配客户")])])])]),t._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[s("el-table-column",{attrs:{prop:"customer_name",label:"客户名称","show-overflow-tooltip":"",align:"center"}}),t._v(" "),s("el-table-column",{attrs:{label:"转接状态",align:"center","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1==e.row.status?[s("span",[t._v("迁移失败")]),t._v(" "),s("p",{staticClass:"c-757D9C f12"},[t._v("("+t._s(e.row.err_msg)+")")])]:t._e(),t._v(" "),1==e.row.status?s("span",[t._v("已转接")]):t._e(),t._v(" "),2==e.row.status?s("span",[t._v("客户转接中")]):t._e(),t._v(" "),3==e.row.status?s("span",[t._v("客户已拒绝")]):t._e(),t._v(" "),4==e.row.status?s("span",[t._v("接替成员客户达到上限")]):t._e(),t._v(" "),5==e.row.status?s("span",[t._v("无接替记录")]):t._e()]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"takeover_time",label:"分配时间","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[s("span",[t._v(t._s(a.takeover_time||"-"))])]}}])}),t._v(" "),s("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[e.row.takeover_userid?s("div",{staticClass:"c-00B38A pointer",staticStyle:{margin:"0 6px"},on:{click:function(s){return t.showDetial(e.row)}}},[t._v("详情")]):t._e()])]}}])})],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination"},[s("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(" "),s("el-drawer",{attrs:{size:t.drawerSize,visible:t.detialDrawer,"with-header":!1},on:{"update:visible":function(e){t.detialDrawer=e}}},[s("detial",{ref:"detial",attrs:{rowProp:{customer_id:t.rowPro.customer_id,user_id:t.rowPro.takeover_userid}},on:{changeDrawerSize:t.changeDrawerSize,closeDrawer:t.closeDrawer}})],1)],1)},staticRenderFns:[]};var u=s("VU/8")(l,c,!1,function(t){s("bO6u")},"data-v-4ad7eab9",null);e.default=u.exports},bO6u:function(t,e){}});