(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ecee284","chunk-44ccc66d"],{"08c8":function(t,e,i){},"0afc":function(t,e,i){t.exports=i.p+"img/noneData.919a3c84.png"},"196b":function(t,e,i){"use strict";i("08c8")},"381b":function(t,e,i){"use strict";i.r(e);var n,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"xq-statistics-page"},[n("mescroll-vue",{ref:"wordListBox",staticClass:"customerBoxmescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[n("div",{staticClass:"xq-header-box"},[n("statisticstop",{attrs:{orgName:t.totalObj.org_name,type:t.activeIndex},on:{switchDate:t.switchDate}})],1),n("div",{staticClass:"xq-callup-main"},[n("div",{staticClass:"xq-callup-item mb0 radius10"},[n("div",{staticClass:"xq-measure-total flex align-center justify-between"},[n("div",{staticClass:"xq-total-left flex align-center"},[n("div",{staticClass:"xq-total-icon"},[n("img",{attrs:{src:i("9bbb"),width:"100%",height:"100%",alt:""}})]),n("span",{staticClass:"font30 color384855 ml10"},[t._v("加微信数量")])]),n("div",{staticClass:"xq-total-right flex align-center justify-end"},[n("span",{staticClass:"color2476FE font32 fontw700"},[t._v(t._s(t.totalObj.wechat_count))])])]),n("div",{staticClass:"xq-callupall-content"},t._l(t.showFieldArr,(function(e,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:i},[n("span",{staticClass:"font36"},[t._v(t._s(t.totalObj[e.field])+t._s(e.unity))]),n("span",{staticClass:"mt10 xq-block ellipsis color89A0B7 font24"},[t._v(t._s(e.name))])])})),0)]),n("div",{staticClass:"xq-filter-box flex align-center"},[n("div",{on:{click:function(e){return t.sortFunc("wechat_count")}}},[n("span",{class:{"xq-active-filter":t.wechatCountACtive}},[t._v("加微数量排序")]),n("div",{staticClass:"flex-column align-center justify-center ml5"},[n("i",{staticClass:"iconfont icon-shixinjiantou-xiangshang upicon",class:{sortActive:"wechat_count"==t.filterObj.field&&"asc"==t.filterObj.order}}),n("i",{staticClass:"iconfont icon-shixinjiantou-xiangshang-copy downicon",class:{sortActive:"wechat_count"==t.filterObj.field&&"desc"==t.filterObj.order}})])]),n("div",{on:{click:function(e){return t.sortFunc("order")}}},[n("span",{class:{"xq-active-filter":t.orderActive}},[t._v("微信通过率排序")]),n("div",{staticClass:"flex-column align-center justify-center ml5"},[n("i",{staticClass:"iconfont icon-shixinjiantou-xiangshang upicon",class:{sortActive:"order"==t.filterObj.field&&"asc"==t.filterObj.order}}),n("i",{staticClass:"iconfont icon-shixinjiantou-xiangshang-copy downicon",class:{sortActive:"order"==t.filterObj.field&&"desc"==t.filterObj.order}})])])]),t._l(t.orgArr,(function(e,i){return n("div",{key:e.id,staticClass:"xq-callup-item",class:{"xq-active-border":t.activeItem==e.id},on:{click:function(i){return t.jumpWechatPage(e,"depart")}}},[n("div",{staticClass:"xq-callupall-header flex align-center justify-between font28 color384855"},[n("div",{staticClass:"flex align-center"},[n("div",{staticClass:"xq-vertical"}),n("span",{staticClass:"ml10 font28"},[t._v(t._s(e.name))]),n("span",{staticClass:"font24 color89A0B7 ml10"},[t._v("总"+t._s(e.emp_count)+"人")])]),n("div",{staticClass:"flex align-center justify-end"},[n("span",{staticClass:"color2476FE font24 fontw600"},[t._v("加微数量:"+t._s(e.wechat_count))]),n("van-icon",{attrs:{name:"arrow",color:"#2476FE",size:"16"}})],1)]),n("div",{staticClass:"xq-callupall-content"},t._l(t.showFieldArr,(function(i,a){return n("div",{directives:[{name:"show",rawName:"v-show",value:!i.hidden,expression:"!f.hidden"}],key:a},[n("span",{staticClass:"font36"},[t._v(t._s(e[i.field])+t._s(i.unity))]),n("span",{staticClass:"mt10 xq-block ellipsis color89A0B7 font24"},[t._v(t._s(i.name))])])})),0)])})),t._l(t.employeeArr,(function(e,a){return n("div",{key:e.id,staticClass:"xq-callup-item",class:{"xq-active-border":t.activeItem==e.id},on:{click:function(i){return t.jumpWechatPage(e,"employee")}}},[n("div",{staticClass:"xq-callupall-header flex align-center justify-between font28 color384855"},[n("div",{staticClass:"flex align-center"},[n("div",{staticClass:"xq-staff-avatar"},[e.img?[n("img",{attrs:{src:e.img,width:"100%",height:"100%",alt:""}})]:[n("img",{attrs:{src:i("ee87"),width:"100%",height:"100%",alt:""}})]],2),n("span",[t._v(t._s(e.name))])]),n("div",{staticClass:"flex align-center justify-end"},[n("span",{staticClass:"color2476FE font24 fontw600"},[t._v("加微数量:"+t._s(e.wechat_count))]),n("van-icon",{attrs:{name:"arrow",color:"#2476FE",size:"16"}})],1)]),n("div",{staticClass:"xq-callupall-content"},t._l(t.showFieldArr,(function(i,a){return n("div",{directives:[{name:"show",rawName:"v-show",value:!i.hidden,expression:"!f.hidden"}],key:a},[n("span",{staticClass:"font36"},[t._v(t._s(e[i.field])+t._s(i.unity))]),n("span",{staticClass:"mt10 xq-block ellipsis color89A0B7 font24"},[t._v(t._s(i.name))])])})),0)])})),n("nonedata",{attrs:{len:t.datalength,datashow:t.datashow}})],2)]),n("van-calendar",{attrs:{"allow-same-day":"","min-date":t.minDate,"max-date":t.maxDate,type:"range",color:"#249EFB","default-date":t.defaultDate},on:{confirm:t.onConfirm,opened:t.calendarOpened},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}}),n("wzhload",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]})],1)},r=[],s=i("d0afc"),o=i("f3f3"),c=i("fc11"),u=(i("6d73"),i("473d")),l=(i("b0c0"),i("e9c4"),i("d3b7"),i("3ca3"),i("ddb0"),i("159b"),i("b64b"),i("4f8e")),d=i("5a0c"),f=i.n(d),h=i("8d6b"),m=i("a92e"),p=i("5880"),b=i("d0af"),v={components:(n={},Object(c["a"])(n,u["a"].name,u["a"]),Object(c["a"])(n,"MescrollVue",h["a"]),Object(c["a"])(n,"nonedata",m["a"]),Object(c["a"])(n,"statisticstop",b["a"]),n),data:function(){return{showCalendar:!1,loadFlag:!1,datashow:!1,activeIndex:"0",activeItem:null,scrollPosition:0,minDate:new Date(2018,0,1),maxDate:new Date,totalObj:{},orgArr:[],employeeArr:[],filterObj:{org_id:"",employee_id:"",order:"",field:"",start_time:"",end_time:""},tab:[{name:"今日",type:"0"},{name:"近一周",type:"1"},{name:"近一月",type:"2"},{name:"其他时间",type:"3"}],showFieldArr:[{name:"加微信数量",field:"wechat_count"},{name:"微信通过率",field:"grawth",hidden:!0}],mescroll:null,mescrollDown:{},mescrollUp:{auto:!1,callback:this.getFuncList,onScroll:this.onScroll,page:{num:0,size:10},htmlLoading:"",htmlNodata:"",noMoreSize:0}}},computed:Object(o["a"])(Object(o["a"])({},Object(p["mapState"])({jumpNewPage:function(t){return t.jumpNewPage}})),{},{datalength:function(){return this.orgArr.length+this.employeeArr.length},defaultDate:function(){return[new Date(this.filterObj.start_time),new Date(this.filterObj.end_time)]},wechatCountACtive:function(){return"wechat_count"==this.filterObj.field&&("asc"==this.filterObj.order||"desc"==this.filterObj.order)},orderActive:function(){return"order"==this.filterObj.field&&("asc"==this.filterObj.order||"desc"==this.filterObj.order)}}),mounted:function(){this.initPageData()},activated:function(){this.initPageData()},methods:Object(o["a"])(Object(o["a"])({},Object(p["mapMutations"])(["setJumpNewPage"])),{},{onScroll:function(t,e,i){this.scrollPosition=e},initPageData:function(){var t=this;this.filterObj=Object(o["a"])(Object(o["a"])({},this.filterObj),{},{start_time:f()(new Date).format("YYYY/MM/DD"),end_time:f()(new Date).format("YYYY/MM/DD")});var e=this.$route.query;this.filterObj.org_id=e.orgid?e.orgid:"";var i=this.getSessionStorage();this.jumpNewPage?this.$nextTick((function(){t.setJumpNewPage(!1),t.switchDate({type:e.dateType||"0"},"jump",e),t.mescroll.scrollTo(0,500)})):i.orgid?(this.scrollPosition=i.position,this.orgArr=i.orgArr,this.employeeArr=i.employeeArr,this.totalObj=i.totalObj,this.filterObj=i.filterObj,this.activeItem=i.itemId,this.activeIndex=i.dateIndex,this.$nextTick((function(){t.mescroll.scrollTo(parseInt(i.position||0),0)}))):this.mescroll.resetUpScroll()},calendarOpened:function(){var t=document.querySelector(".van-calendar__body").scrollTop;document.querySelector(".van-calendar__body").scrollTop=t-1},switchDate:function(t,e,i){switch(this.activeIndex=t.type,t.type){case"0":this.filterObj=Object(o["a"])(Object(o["a"])({},this.filterObj),{},{start_time:f()(new Date).format("YYYY/MM/DD"),end_time:f()(new Date).format("YYYY/MM/DD")}),this.mescroll.resetUpScroll();break;case"1":this.filterObj=Object(o["a"])(Object(o["a"])({},this.filterObj),{},{start_time:this.utils.getCurrentWeekFirstDay(),end_time:this.utils.getCurrentWeekLastDay()}),this.mescroll.resetUpScroll();break;case"2":this.filterObj=Object(o["a"])(Object(o["a"])({},this.filterObj),{},{start_time:this.utils.getmonthfirstday(),end_time:this.utils.getmonthlastday()}),this.mescroll.resetUpScroll();break;case"3":if("jump"==e){var n=i.start_time,a=i.end_time;this.filterObj=Object(o["a"])(Object(o["a"])({},this.filterObj),{},{start_time:n,end_time:a}),this.mescroll.resetUpScroll()}else this.showCalendar=!0;break;default:this.mescroll.resetUpScroll();break}},getWeekDate:function(){var t=new Date,e=t.getTime()-5184e5,i=f()(new Date(e)).format("YYYY/MM/DD"),n=f()(t).format("YYYY/MM/DD");return{start_time:i,end_time:n}},getMonthDate:function(){var t=new Date,e=t.getTime()-2592e6,i=f()(new Date(e)).format("YYYY/MM/DD"),n=f()(t).format("YYYY/MM/DD");return{start_time:i,end_time:n}},onConfirm:function(t){var e=Object(s["a"])(t,2),i=e[0],n=e[1];this.filterObj=Object(o["a"])(Object(o["a"])({},this.filterObj),{},{start_time:f()(i).format("YYYY/MM/DD"),end_time:f()(n).format("YYYY/MM/DD")}),this.mescroll.resetUpScroll(),this.showCalendar=!1},sortFunc:function(t){this.filterObj.field=t,"asc"==this.filterObj.order?this.filterObj.order="desc":this.filterObj.order="asc",this.mescroll.resetUpScroll()},setSessionStorage:function(){var t={position:this.scrollPosition,orgArr:this.orgArr,employeeArr:this.employeeArr,totalObj:this.totalObj,filterObj:this.filterObj,orgid:this.filterObj.org_id||"0",itemId:this.activeItem,dateIndex:this.activeIndex};sessionStorage.setItem("wechat#".concat(this.filterObj.org_id),JSON.stringify(t))},getSessionStorage:function(){var t=sessionStorage.getItem("wechat#".concat(this.filterObj.org_id))?JSON.parse(sessionStorage.getItem("wechat#".concat(this.filterObj.org_id))):{};return t},jumpWechatPage:function(t,e){if(this.activeItem=t.id,this.setSessionStorage(),this.setJumpNewPage(!0),"depart"==e){var n=(new Date).getTime();this.$$router.addRoute({path:"/".concat(n),name:"".concat(n),component:function(){return i.e("chunk-8471d218").then(i.bind(null,"de7a"))},meta:{title:"加微统计|".concat(t.name)}}),this.$router.push({path:"/".concat(n),query:{orgid:t.id,type:"depart",dateType:this.activeIndex,start_time:this.filterObj.start_time,end_time:this.filterObj.end_time}})}else this.$router.push({path:"/wechatCus",query:{eid:t.id,type:"employee",dateType:this.activeIndex,start_time:this.filterObj.start_time,end_time:this.filterObj.end_time,name:t.name,orgName:this.totalObj.org_name}})},mescrollInit:function(t){this.mescroll=t},getFuncList:function(t,e){var i=this,n=this;n.loadFlag=!0,n.datashow=!1;var a=Object(o["a"])({},this.filterObj);Object.keys(a).forEach((function(t){a[t]||delete a[t]})),Object(l["L"])(a).then((function(a){"0"==a.data.code&&(t.num,i.orgArr=a.data.data.org,i.employeeArr=a.data.data.emp,i.totalObj=a.data.data.title,n.$nextTick((function(){e.endSuccess(0)}))),n.loadFlag=!1,n.datashow=!0}))}})},g=v,O=(i("5121"),i("2877")),j=Object(O["a"])(g,a,r,!1,null,"c03d3eac",null);e["default"]=j.exports},"4f8e":function(t,e,i){"use strict";i.d(e,"j",(function(){return a})),i.d(e,"B",(function(){return r})),i.d(e,"C",(function(){return s})),i.d(e,"A",(function(){return o})),i.d(e,"z",(function(){return c})),i.d(e,"F",(function(){return u})),i.d(e,"G",(function(){return l})),i.d(e,"E",(function(){return d})),i.d(e,"D",(function(){return f})),i.d(e,"k",(function(){return h})),i.d(e,"n",(function(){return m})),i.d(e,"o",(function(){return p})),i.d(e,"m",(function(){return b})),i.d(e,"p",(function(){return v})),i.d(e,"l",(function(){return g})),i.d(e,"L",(function(){return O})),i.d(e,"b",(function(){return j})),i.d(e,"e",(function(){return w})),i.d(e,"d",(function(){return y})),i.d(e,"c",(function(){return D})),i.d(e,"i",(function(){return _})),i.d(e,"h",(function(){return x})),i.d(e,"g",(function(){return C})),i.d(e,"f",(function(){return A})),i.d(e,"a",(function(){return M})),i.d(e,"H",(function(){return S})),i.d(e,"K",(function(){return Y})),i.d(e,"J",(function(){return k})),i.d(e,"I",(function(){return N})),i.d(e,"q",(function(){return T})),i.d(e,"t",(function(){return I})),i.d(e,"s",(function(){return E})),i.d(e,"r",(function(){return F})),i.d(e,"y",(function(){return W})),i.d(e,"x",(function(){return $})),i.d(e,"w",(function(){return Z})),i.d(e,"v",(function(){return q})),i.d(e,"u",(function(){return B}));var n=i("b775");function a(t){return Object(n["a"])({url:"/api/crm_statistics/index",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/api/crm_statistics/measure_house_index",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/api/crm_statistics/measure_house_org",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/api/crm_statistics/measure_house_employee",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/api/crm_statistics/measure_house_empcus",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/api/crm_statistics/sign_index",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/api/crm_statistics/sign_org",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/api/crm_statistics/sign_employee",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/api/crm_statistics/sign_empcus",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/api/crmStatistics/customerDistribution",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/api/crm_statistics/deposit_index",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/api/crm_statistics/deposit_org",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/api/crm_statistics/deposit_employee",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/api/crm_statistics/depsignmea_empcus",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/api/crmStatistics/customerDistributionList",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/api/crmStatistics/weChatStatistics",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/api/crm_statistics/arrival",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/api/crm_statistics/arrivalOrg",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/api/crm_statistics/arrivalEmployee",method:"post",data:t})}function D(t){return Object(n["a"])({url:"/api/crm_statistics/arrivalCustomer",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/api/crm_statistics/call",method:"post",data:t})}function x(t){return Object(n["a"])({url:"/api/crm_statistics/callOrg",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/api/crm_statistics/callEmployee",method:"post",data:t})}function A(t){return Object(n["a"])({url:"/api/crm_statistics/callCustomer",method:"post",data:t})}function M(t){return Object(n["a"])({url:"/api/crm_statistics/activity",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/api/crm_statistics/subscribeActivity",method:"post",data:t})}function Y(t){return Object(n["a"])({url:"/api/crm_statistics/subscribeActivityOrg",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/api/crm_statistics/subscribeActivityEmployee",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/api/crm_statistics/subscribeActivityCustomer",method:"post",data:t})}function T(t){return Object(n["a"])({url:"/api/crm_statistics/followUpTimes",method:"post",data:t})}function I(t){return Object(n["a"])({url:"/api/crm_statistics/followUpTimesOrg",method:"post",data:t})}function E(t){return Object(n["a"])({url:"/api/crm_statistics/followUpTimesEmployee",method:"post",data:t})}function F(t){return Object(n["a"])({url:"/api/crm_statistics/followUpTimesCustomer",method:"post",data:t})}function W(t){return Object(n["a"])({url:"/api/crm_statistics/maika_org",method:"post",data:t})}function $(t){return Object(n["a"])({url:"/api/crm_statistics/maika_index",method:"post",data:t})}function Z(t){return Object(n["a"])({url:"/api/crm_statistics/maika_employee",method:"post",data:t})}function q(t){return Object(n["a"])({url:"/api/crm_statistics/maika_customer",method:"post",data:t})}function B(t){return Object(n["a"])({url:"/api/crm_statistics/getSetting",method:"post",data:t})}},5121:function(t,e,i){"use strict";i("74a9")},"5a0c":function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";var t=1e3,e=6e4,i=36e5,n="millisecond",a="second",r="minute",s="hour",o="day",c="week",u="month",l="quarter",d="year",f="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},g={s:v,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),a=i%60;return(e<=0?"+":"-")+v(n,2,"0")+":"+v(a,2,"0")},m:function t(e,i){if(e.date()