1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f272cb5"],{"08c8":function(t,e,n){},"196b":function(t,e,n){"use strict";n("08c8")},4370:function(t,e,n){},"4f8e":function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"B",(function(){return a})),n.d(e,"C",(function(){return s})),n.d(e,"A",(function(){return c})),n.d(e,"z",(function(){return o})),n.d(e,"F",(function(){return u})),n.d(e,"G",(function(){return l})),n.d(e,"E",(function(){return d})),n.d(e,"D",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"n",(function(){return h})),n.d(e,"o",(function(){return p})),n.d(e,"m",(function(){return b})),n.d(e,"p",(function(){return _})),n.d(e,"l",(function(){return g})),n.d(e,"L",(function(){return O})),n.d(e,"b",(function(){return j})),n.d(e,"e",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"c",(function(){return w})),n.d(e,"i",(function(){return D})),n.d(e,"h",(function(){return $})),n.d(e,"g",(function(){return M})),n.d(e,"f",(function(){return x})),n.d(e,"a",(function(){return S})),n.d(e,"H",(function(){return Y})),n.d(e,"K",(function(){return C})),n.d(e,"J",(function(){return k})),n.d(e,"I",(function(){return T})),n.d(e,"q",(function(){return N})),n.d(e,"t",(function(){return U})),n.d(e,"s",(function(){return F})),n.d(e,"r",(function(){return q})),n.d(e,"y",(function(){return A})),n.d(e,"x",(function(){return L})),n.d(e,"w",(function(){return E})),n.d(e,"v",(function(){return H})),n.d(e,"u",(function(){return I}));var i=n("b775");function r(t){return Object(i["a"])({url:"/api/crm_statistics/index",method:"post",data:t})}function a(t){return Object(i["a"])({url:"/api/crm_statistics/measure_house_index",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/api/crm_statistics/measure_house_org",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/api/crm_statistics/measure_house_employee",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/api/crm_statistics/measure_house_empcus",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/api/crm_statistics/sign_index",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/api/crm_statistics/sign_org",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/api/crm_statistics/sign_employee",method:"post",data:t})}function f(t){return Object(i["a"])({url:"/api/crm_statistics/sign_empcus",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/api/crmStatistics/customerDistribution",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/api/crm_statistics/deposit_index",method:"post",data:t})}function p(t){return Object(i["a"])({url:"/api/crm_statistics/deposit_org",method:"post",data:t})}function b(t){return Object(i["a"])({url:"/api/crm_statistics/deposit_employee",method:"post",data:t})}function _(t){return Object(i["a"])({url:"/api/crm_statistics/depsignmea_empcus",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/api/crmStatistics/customerDistributionList",method:"post",data:t})}function O(t){return Object(i["a"])({url:"/api/crmStatistics/weChatStatistics",method:"post",data:t})}function j(t){return Object(i["a"])({url:"/api/crm_statistics/arrival",method:"post",data:t})}function v(t){return Object(i["a"])({url:"/api/crm_statistics/arrivalOrg",method:"post",data:t})}function y(t){return Object(i["a"])({url:"/api/crm_statistics/arrivalEmployee",method:"post",data:t})}function w(t){return Object(i["a"])({url:"/api/crm_statistics/arrivalCustomer",method:"post",data:t})}function D(t){return Object(i["a"])({url:"/api/crm_statistics/call",method:"post",data:t})}function $(t){return Object(i["a"])({url:"/api/crm_statistics/callOrg",method:"post",data:t})}function M(t){return Object(i["a"])({url:"/api/crm_statistics/callEmployee",method:"post",data:t})}function x(t){return Object(i["a"])({url:"/api/crm_statistics/callCustomer",method:"post",data:t})}function S(t){return Object(i["a"])({url:"/api/crm_statistics/activity",method:"post",data:t})}function Y(t){return Object(i["a"])({url:"/api/crm_statistics/subscribeActivity",method:"post",data:t})}function C(t){return Object(i["a"])({url:"/api/crm_statistics/subscribeActivityOrg",method:"post",data:t})}function k(t){return Object(i["a"])({url:"/api/crm_statistics/subscribeActivityEmployee",method:"post",data:t})}function T(t){return Object(i["a"])({url:"/api/crm_statistics/subscribeActivityCustomer",method:"post",data:t})}function N(t){return Object(i["a"])({url:"/api/crm_statistics/followUpTimes",method:"post",data:t})}function U(t){return Object(i["a"])({url:"/api/crm_statistics/followUpTimesOrg",method:"post",data:t})}function F(t){return Object(i["a"])({url:"/api/crm_statistics/followUpTimesEmployee",method:"post",data:t})}function q(t){return Object(i["a"])({url:"/api/crm_statistics/followUpTimesCustomer",method:"post",data:t})}function A(t){return Object(i["a"])({url:"/api/crm_statistics/maika_org",method:"post",data:t})}function L(t){return Object(i["a"])({url:"/api/crm_statistics/maika_index",method:"post",data:t})}function E(t){return Object(i["a"])({url:"/api/crm_statistics/maika_employee",method:"post",data:t})}function H(t){return Object(i["a"])({url:"/api/crm_statistics/maika_customer",method:"post",data:t})}function I(t){return Object(i["a"])({url:"/api/crm_statistics/getSetting",method:"post",data:t})}},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,i="millisecond",r="second",a="minute",s="hour",c="day",o="week",u="month",l="quarter",d="year",f="date",m="Invalid Date",h=/^(\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("_")},_=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},g={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+_(i,2,"0")+":"+_(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,u),a=n-r<0,s=e.clone().add(i+(a?-1:1),u);return+(-(i+(n-r)/(a?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:o,d:c,D:f,h:s,m:a,s:r,ms:i,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},O="en",j={};j[O]=b;var v=function(t){return t instanceof $},y=function(t,e,n){var i;if(!t)return O;if("string"==typeof t)j[t]&&(i=t),e&&(j[t]=e,i=t);else{var r=t.name;j[r]=t,i=r}return!n&&i&&(O=i),i||!n&&O},w=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},D=g;D.l=y,D.i=v,D.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function b(t){this.$L=y(t.locale,null,!0),this.parse(t)}var _=b.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(h);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},_.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},_.$utils=function(){return D},_.isValid=function(){return!(this.$d.toString()===m)},_.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},_.isAfter=function(t,e){return w(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<w(t)},_.$g=function(t,e,n){return D.u(t)?this[e]:this.set(n,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var n=this,i=!!D.u(e)||e,l=D.p(t),m=function(t,e){var r=D.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(c)},h=function(t,e){return D.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,b=this.$M,_=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case d:return i?m(1,0):m(31,11);case u:return i?m(1,b):m(0,b+1);case o:var O=this.$locale().weekStart||0,j=(p<O?p+7:p)-O;return m(i?_-j:_+(6-j),b);case c:case f:return h(g+"Hours",0);case s:return h(g+"Minutes",1);case a:return h(g+"Seconds",2);case r:return h(g+"Milliseconds",3);default:return this.clone()}},_.endOf=function(t){return this.startOf(t,!1)},_.$set=function(t,e){var n,o=D.p(t),l="set"+(this.$u?"UTC":""),m=(n={},n[c]=l+"Date",n[f]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[s]=l+"Hours",n[a]=l+"Minutes",n[r]=l+"Seconds",n[i]=l+"Milliseconds",n)[o],h=o===c?this.$D+(e-this.$W):e;if(o===u||o===d){var p=this.clone().set(f,1);p.$d[m](h),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},_.set=function(t,e){return this.clone().$set(t,e)},_.get=function(t){return this[D.p(t)]()},_.add=function(i,l){var f,m=this;i=Number(i);var h=D.p(l),p=function(t){var e=w(m);return D.w(e.date(e.date()+Math.round(t*i)),m)};if(h===u)return this.set(u,this.$M+i);if(h===d)return this.set(d,this.$y+i);if(h===c)return p(1);if(h===o)return p(7);var b=(f={},f[a]=e,f[s]=n,f[r]=t,f)[h]||1,_=this.$d.getTime()+i*b;return D.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=D.z(this),a=this.$H,s=this.$m,c=this.$M,o=n.weekdays,u=n.months,l=function(t,n,r,a){return t&&(t[n]||t(e,i))||r[n].substr(0,a)},d=function(t){return D.s(a%12||12,t,"0")},f=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:c+1,MM:D.s(c+1,2,"0"),MMM:l(n.monthsShort,c,u,3),MMMM:l(u,c),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,o,2),ddd:l(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(a),HH:D.s(a,2,"0"),h:d(1),hh:d(2),a:f(a,s,!0),A:f(a,s,!1),m:String(s),mm:D.s(s,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:r};return i.replace(p,(function(t,e){return e||h[t]||r.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(i,f,m){var h,p=D.p(f),b=w(i),_=(b.utcOffset()-this.utcOffset())*e,g=this-b,O=D.m(this,b);return O=(h={},h[d]=O/12,h[u]=O,h[l]=O/3,h[o]=(g-_)/6048e5,h[c]=(g-_)/864e5,h[s]=g/n,h[a]=g/e,h[r]=g/t,h)[p]||g,m?O:D.a(O)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return j[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=y(t,e,!0);return i&&(n.$L=i),n},_.clone=function(){return D.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},b}(),M=$.prototype;return w.prototype=M,[["$ms",i],["$s",r],["$m",a],["$H",s],["$W",c],["$M",u],["$y",d],["$D",f]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,$,w),t.$i=!0),w},w.locale=y,w.isDayjs=v,w.unix=function(t){return w(1e3*t)},w.en=j[O],w.Ls=j,w.p={},w}))},8252:function(t,e,n){t.exports=n.p+"img/zzbicon.232acde1.png"},"97b2":function(t,e,n){t.exports=n.p+"img/zassign.b9bba6b4.png"},a1b6:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"xq-statistics-page"},[i("mescroll-vue",{ref:"wordListBox",staticClass:"customerBoxmescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[i("div",{staticClass:"xq-header-box"},[i("statisticstop",{attrs:{orgName:t.totalObj.org_name,type:t.activeIndex},on:{switchDate:t.switchDate}})],1),i("div",{staticClass:"xq-assign-main"},[i("div",{staticClass:"xq-assign-all flex radius10"},[i("div",{staticClass:"flex-two flex align-center"},[i("div",{staticClass:"assign-icon-box"},[i("img",{attrs:{src:n("97b2"),width:"100%",height:"100%",alt:""}})]),i("div",{staticClass:"ml20 font28"},[t._v(t._s(t.totalObj.name))])]),i("div",{staticClass:"flex-sub flex align-center justify-end"},[i("span",{staticClass:"font32 fontw700 color2476FE"},[t._v(t._s(t.totalObj.count))])])]),t._l(t.assignArr,(function(e,r){return i("div",{key:r,staticClass:"xq-assign-item flex",on:{click:function(n){return t.jumpNextPage(e)}}},[i("div",{staticClass:"flex-two flex align-center"},[i("div",{staticClass:"assign-icon-box"},[i("img",{attrs:{src:n("8252"),width:"100%",height:"100%",alt:""}})]),i("div",{staticClass:"ml20 font28"},[t._v(t._s(e.name))])]),i("div",{staticClass:"flex-sub flex align-center justify-end"},[i("span",{staticClass:"font32 fontw700 color2476FE mr10"},[t._v(t._s(e.grawth))]),i("van-icon",{attrs:{name:"arrow",color:"#2476FE",size:"16"}})],1)])}))],2)]),i("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"}}),i("wzhload",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]})],1)},r=[],a=n("d0afc"),s=n("f3f3"),c=(n("d3b7"),n("159b"),n("b64b"),n("4f8e")),o=n("5880"),u=n("5a0c"),l=n.n(u),d=n("8d6b"),f=n("d0af"),m={components:{MescrollVue:d["a"],statisticstop:f["a"]},data:function(){return{loadFlag:!1,showCalendar:!1,activeIndex:"0",minDate:new Date(2018,0,1),maxDate:new Date,assignArr:[],filterObj:{},totalObj:{},tab:[{name:"今日",type:"0"},{name:"近一周",type:"1"},{name:"近一月",type:"2"},{name:"其他时间",type:"3"}],mescroll:null,mescrollDown:{},mescrollUp:{callback:this.getFuncList,page:{num:0,size:10},htmlLoading:"",htmlNodata:"",noMoreSize:0}}},computed:Object(s["a"])(Object(s["a"])({},Object(o["mapState"])({jumpNewPage:function(t){return t.jumpNewPage}})),{},{defaultDate:function(){return[new Date(this.filterObj.start_time),new Date(this.filterObj.end_time)]}}),mounted:function(){var t=this.$route.query;this.jumpNewPage&&(this.switchDate({type:t.dateType||"0"},"jump",t),this.setJumpNewPage(!1))},activated:function(){var t=this.$route.query;this.jumpNewPage&&(this.switchDate({type:t.dateType||"0"},"jump",t),this.setJumpNewPage(!1))},methods:Object(s["a"])(Object(s["a"])({},Object(o["mapMutations"])(["setJumpNewPage"])),{},{switchDate:function(t,e,n){switch(this.activeIndex=t.type,t.type){case"0":this.filterObj=Object(s["a"])(Object(s["a"])({},this.filterObj),{},{start_time:l()(new Date).format("YYYY/MM/DD"),end_time:l()(new Date).format("YYYY/MM/DD")}),this.mescroll.resetUpScroll();break;case"-1":this.filterObj=Object(s["a"])(Object(s["a"])({},this.filterObj),{},{start_time:this.utils.getTragetTime(1,"/"),end_time:this.utils.getTragetTime(1,"/")}),this.mescroll.resetUpScroll();break;case"1":this.filterObj=Object(s["a"])(Object(s["a"])({},this.filterObj),{},{start_time:this.utils.getCurrentWeekFirstDay(),end_time:this.utils.getCurrentWeekLastDay()}),this.mescroll.resetUpScroll();break;case"2":this.getMonthDate();this.filterObj=Object(s["a"])(Object(s["a"])({},this.filterObj),{},{start_time:this.utils.getmonthfirstday(),end_time:this.utils.getmonthlastday()}),this.mescroll.resetUpScroll();break;case"3":if("jump"==e){var i=n.start_time,r=n.end_time;this.filterObj=Object(s["a"])(Object(s["a"])({},this.filterObj),{},{start_time:i,end_time:r}),this.mescroll.resetUpScroll()}else this.showCalendar=!0;break;default:this.mescroll.resetUpScroll();break}},calendarOpened:function(){var t=document.querySelector(".van-calendar__body").scrollTop;document.querySelector(".van-calendar__body").scrollTop=t-1},getWeekDate:function(){var t=new Date,e=t.getTime()-5184e5,n=l()(new Date(e)).format("YYYY/MM/DD"),i=l()(t).format("YYYY/MM/DD");return{start_time:n,end_time:i}},getMonthDate:function(){var t=new Date,e=t.getTime()-2592e6,n=l()(new Date(e)).format("YYYY/MM/DD"),i=l()(t).format("YYYY/MM/DD");return{start_time:n,end_time:i}},onConfirm:function(t){var e=Object(a["a"])(t,2),n=e[0],i=e[1];this.filterObj={start_time:l()(n).format("YYYY/MM/DD"),end_time:l()(i).format("YYYY/MM/DD")},this.mescroll.resetUpScroll(),this.showCalendar=!1},jumpNextPage:function(t){this.setJumpNewPage(!0),this.$router.push({path:"/assignlevel",query:{key:t.key,dateType:this.activeIndex,start_time:this.filterObj.start_time,end_time:this.filterObj.end_time,orgName:this.totalObj.org_name}})},mescrollInit:function(t){this.mescroll=t},getFuncList:function(t,e){var n=this;n.loadFlag=!0;var i=Object(s["a"])({},this.filterObj);Object.keys(i).forEach((function(t){i[t]||delete i[t]})),Object(c["k"])(i).then((function(i){"0"==i.data.code&&(t.num,n.totalObj=i.data.title,n.assignArr=i.data.data,n.$nextTick((function(){e.endSuccess(1)}))),n.loadFlag=!1}))}})},h=m,p=(n("f670"),n("2877")),b=Object(p["a"])(h,i,r,!1,null,"de79d0aa",null);e["default"]=b.exports},d0af:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"xq-statistics-header"},[n("div",{staticClass:"xq-header-company flex align-center font26"},[n("span",{staticClass:"ellipsis"},[t._v(t._s(t.orgName))])]),n("div",{staticClass:"xq-header-date flex align-center justify-around"},t._l(t.tab,(function(e){return n("div",{key:e.type,class:{"xq-active":t.type==e.type},on:{click:function(n){return t.switchDate(e)}}},[t._v(t._s(e.name))])})),0)])},r=[],a={name:"statisticstop",props:["orgName","type"],data:function(){return{tab:[{name:"今日",type:"0"},{name:"本周",type:"1"},{name:"本月",type:"2"},{name:"其他时间",type:"3"}]}},methods:{switchDate:function(t){this.$emit("switchDate",t)}}},s=a,c=(n("196b"),n("2877")),o=Object(c["a"])(s,i,r,!1,null,"4feecd16",null);e["a"]=o.exports},f670:function(t,e,n){"use strict";n("4370")}}]);
|