1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-658e7357"],{"08c8":function(t,e,n){},"0afc":function(t,e,n){t.exports=n.p+"img/noneData.919a3c84.png"},"0e21":function(t,e,n){"use strict";n("2bbd")},"196b":function(t,e,n){"use strict";n("08c8")},"2bbd":function(t,e,n){},"4f8e":function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"B",(function(){return s})),n.d(e,"C",(function(){return r})),n.d(e,"A",(function(){return o})),n.d(e,"z",(function(){return c})),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 _})),n.d(e,"p",(function(){return v})),n.d(e,"l",(function(){return b})),n.d(e,"L",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"e",(function(){return j})),n.d(e,"d",(function(){return O})),n.d(e,"c",(function(){return g})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return D})),n.d(e,"g",(function(){return $})),n.d(e,"f",(function(){return C})),n.d(e,"a",(function(){return S})),n.d(e,"H",(function(){return M})),n.d(e,"K",(function(){return Y})),n.d(e,"J",(function(){return k})),n.d(e,"I",(function(){return q})),n.d(e,"q",(function(){return T})),n.d(e,"t",(function(){return A})),n.d(e,"s",(function(){return F})),n.d(e,"r",(function(){return N})),n.d(e,"y",(function(){return E})),n.d(e,"x",(function(){return I})),n.d(e,"w",(function(){return U})),n.d(e,"v",(function(){return L})),n.d(e,"u",(function(){return H}));var a=n("b775");function i(t){return Object(a["a"])({url:"/api/crm_statistics/index",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/api/crm_statistics/measure_house_index",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/api/crm_statistics/measure_house_org",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/api/crm_statistics/measure_house_employee",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/api/crm_statistics/measure_house_empcus",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/api/crm_statistics/sign_index",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/api/crm_statistics/sign_org",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/api/crm_statistics/sign_employee",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/api/crm_statistics/sign_empcus",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/api/crmStatistics/customerDistribution",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/api/crm_statistics/deposit_index",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/api/crm_statistics/deposit_org",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/api/crm_statistics/deposit_employee",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/api/crm_statistics/depsignmea_empcus",method:"post",data:t})}function b(t){return Object(a["a"])({url:"/api/crmStatistics/customerDistributionList",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/api/crmStatistics/weChatStatistics",method:"post",data:t})}function w(t){return Object(a["a"])({url:"/api/crm_statistics/arrival",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/api/crm_statistics/arrivalOrg",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/api/crm_statistics/arrivalEmployee",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/api/crm_statistics/arrivalCustomer",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/api/crm_statistics/call",method:"post",data:t})}function D(t){return Object(a["a"])({url:"/api/crm_statistics/callOrg",method:"post",data:t})}function $(t){return Object(a["a"])({url:"/api/crm_statistics/callEmployee",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/api/crm_statistics/callCustomer",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/api/crm_statistics/activity",method:"post",data:t})}function M(t){return Object(a["a"])({url:"/api/crm_statistics/subscribeActivity",method:"post",data:t})}function Y(t){return Object(a["a"])({url:"/api/crm_statistics/subscribeActivityOrg",method:"post",data:t})}function k(t){return Object(a["a"])({url:"/api/crm_statistics/subscribeActivityEmployee",method:"post",data:t})}function q(t){return Object(a["a"])({url:"/api/crm_statistics/subscribeActivityCustomer",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/api/crm_statistics/followUpTimes",method:"post",data:t})}function A(t){return Object(a["a"])({url:"/api/crm_statistics/followUpTimesOrg",method:"post",data:t})}function F(t){return Object(a["a"])({url:"/api/crm_statistics/followUpTimesEmployee",method:"post",data:t})}function N(t){return Object(a["a"])({url:"/api/crm_statistics/followUpTimesCustomer",method:"post",data:t})}function E(t){return Object(a["a"])({url:"/api/crm_statistics/maika_org",method:"post",data:t})}function I(t){return Object(a["a"])({url:"/api/crm_statistics/maika_index",method:"post",data:t})}function U(t){return Object(a["a"])({url:"/api/crm_statistics/maika_employee",method:"post",data:t})}function L(t){return Object(a["a"])({url:"/api/crm_statistics/maika_customer",method:"post",data:t})}function H(t){return Object(a["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,a="millisecond",i="second",s="minute",r="hour",o="day",c="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,_={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,n){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(n)+t},b={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),a=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(a,2,"0")+":"+v(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var a=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(a,u),s=n-i<0,r=e.clone().add(a+(s?-1:1),u);return+(-(a+(n-i)/(s?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:c,d:o,D:f,h:r,m:s,s:i,ms:a,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",w={};w[y]=_;var j=function(t){return t instanceof D},O=function(t,e,n){var a;if(!t)return y;if("string"==typeof t)w[t]&&(a=t),e&&(w[t]=e,a=t);else{var i=t.name;w[i]=t,a=i}return!n&&a&&(y=a),a||!n&&y},g=function(t,e){if(j(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},x=b;x.l=O,x.i=j,x.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function _(t){this.$L=O(t.locale,null,!0),this.parse(t)}var v=_.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var a=e.match(h);if(a){var i=a[2]-1||0,s=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.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()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===m)},v.isSame=function(t,e){var n=g(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return g(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<g(t)},v.$g=function(t,e,n){return x.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,a=!!x.u(e)||e,l=x.p(t),m=function(t,e){var i=x.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return a?i:i.endOf(o)},h=function(t,e){return x.w(n.toDate()[t].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,_=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case d:return a?m(1,0):m(31,11);case u:return a?m(1,_):m(0,_+1);case c:var y=this.$locale().weekStart||0,w=(p<y?p+7:p)-y;return m(a?v-w:v+(6-w),_);case o:case f:return h(b+"Hours",0);case r:return h(b+"Minutes",1);case s:return h(b+"Seconds",2);case i:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,c=x.p(t),l="set"+(this.$u?"UTC":""),m=(n={},n[o]=l+"Date",n[f]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[r]=l+"Hours",n[s]=l+"Minutes",n[i]=l+"Seconds",n[a]=l+"Milliseconds",n)[c],h=c===o?this.$D+(e-this.$W):e;if(c===u||c===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},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[x.p(t)]()},v.add=function(a,l){var f,m=this;a=Number(a);var h=x.p(l),p=function(t){var e=g(m);return x.w(e.date(e.date()+Math.round(t*a)),m)};if(h===u)return this.set(u,this.$M+a);if(h===d)return this.set(d,this.$y+a);if(h===o)return p(1);if(h===c)return p(7);var _=(f={},f[s]=e,f[r]=n,f[i]=t,f)[h]||1,v=this.$d.getTime()+a*_;return x.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var a=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),s=this.$H,r=this.$m,o=this.$M,c=n.weekdays,u=n.months,l=function(t,n,i,s){return t&&(t[n]||t(e,a))||i[n].substr(0,s)},d=function(t){return x.s(s%12||12,t,"0")},f=n.meridiem||function(t,e,n){var a=t<12?"AM":"PM";return n?a.toLowerCase():a},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:x.s(o+1,2,"0"),MMM:l(n.monthsShort,o,u,3),MMMM:l(u,o),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(s),HH:x.s(s,2,"0"),h:d(1),hh:d(2),a:f(s,r,!0),A:f(s,r,!1),m:String(r),mm:x.s(r,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:i};return a.replace(p,(function(t,e){return e||h[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(a,f,m){var h,p=x.p(f),_=g(a),v=(_.utcOffset()-this.utcOffset())*e,b=this-_,y=x.m(this,_);return y=(h={},h[d]=y/12,h[u]=y,h[l]=y/3,h[c]=(b-v)/6048e5,h[o]=(b-v)/864e5,h[r]=b/n,h[s]=b/e,h[i]=b/t,h)[p]||b,m?y:x.a(y)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return w[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),a=O(t,e,!0);return a&&(n.$L=a),n},v.clone=function(){return x.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},_}(),$=D.prototype;return g.prototype=$,[["$ms",a],["$s",i],["$m",s],["$H",r],["$W",o],["$M",u],["$y",d],["$D",f]].forEach((function(t){$[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),g.extend=function(t,e){return t.$i||(t(e,D,g),t.$i=!0),g},g.locale=O,g.isDayjs=j,g.unix=function(t){return g(1e3*t)},g.en=w[y],g.Ls=w,g.p={},g}))},"9c6c":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"xq-statistics-page"},[a("mescroll-vue",{ref:"wordListBox",staticClass:"customerBoxmescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[a("div",{staticClass:"xq-header-box"},[a("statisticstop",{attrs:{orgName:t.totalObj.org_name,type:t.activeIndex},on:{switchDate:t.switchDate}})],1),a("div",{staticClass:"xq-callup-main"},[a("div",{staticClass:"xq-assign-all flex"},[a("div",{staticClass:"flex-two flex align-center"},[a("div",{staticClass:"assign-icon-box"},[a("img",{attrs:{src:n("fa60"),width:"100%",height:"100%",alt:""}})]),a("div",{staticClass:"ml20 font28"},[t._v("到店数量")])]),a("div",{staticClass:"flex-sub flex align-center justify-end"},[a("span",{staticClass:"font36 fontw700 color2476FE"},[t._v(t._s(t.totalObj.all_count))])])]),a("div",{staticClass:"xq-callup-item",class:{"xq-active-border":1==t.activeItem},on:{click:function(e){return t.jumpStorePage(1)}}},[a("div",{staticClass:"xq-callupall-header flex align-center justify-between font28 color384855"},[a("div",{staticClass:"flex align-center"},[a("div",{staticClass:"xq-vertical"}),a("span",{staticClass:"ml10 font28"},[t._v("一次到店数量")])]),a("div",{staticClass:"flex align-center justify-end"},[a("span",{staticClass:"color2476FE font28 fontw600"},[t._v(t._s(t.totalObj.one.count))]),a("van-icon",{attrs:{name:"arrow",color:"#2476FE",size:"16"}})],1)]),a("div",{staticClass:"xq-callupall-content"},t._l(t.oneStoreArr,(function(e,n){return a("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:n,style:{width:e.width}},[a("span",{staticClass:"font36"},[t._v(t._s(t.totalObj.one[e.field])+t._s(e.unity))]),a("span",{staticClass:"mt10 xq-block ellipsis color89A0B7"},[t._v(t._s(e.name))])])})),0)]),a("div",{staticClass:"xq-callup-item",class:{"xq-active-border":2==t.activeItem},on:{click:function(e){return t.jumpStorePage(2)}}},[a("div",{staticClass:"xq-callupall-header flex align-center justify-between font28 color384855"},[a("div",{staticClass:"flex align-center"},[a("div",{staticClass:"xq-vertical"}),a("span",{staticClass:"ml10 font28"},[t._v("二次到店数量")])]),a("div",{staticClass:"flex align-center justify-end"},[a("span",{staticClass:"color2476FE font28 fontw600"},[t._v(t._s(t.totalObj.two.count))]),a("van-icon",{attrs:{name:"arrow",color:"#2476FE",size:"16"}})],1)]),a("div",{staticClass:"xq-callupall-content"},t._l(t.twoStoreArr,(function(e,n){return a("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:n},[a("span",{staticClass:"font36"},[t._v(t._s(t.totalObj.two[e.field])+t._s(e.unity))]),a("span",{staticClass:"mt10 xq-block ellipsis color89A0B7"},[t._v(t._s(e.name))])])})),0)]),a("div",{staticClass:"xq-callup-item",class:{"xq-active-border":3==t.activeItem},on:{click:function(e){return t.jumpStorePage(3)}}},[a("div",{staticClass:"xq-callupall-header flex align-center justify-between font28 color384855"},[a("div",{staticClass:"flex align-center"},[a("div",{staticClass:"xq-vertical"}),a("span",{staticClass:"ml10 font28"},[t._v("三次到店数量")])]),a("div",{staticClass:"flex align-center justify-end"},[a("span",{staticClass:"color2476FE font28 fontw600"},[t._v(t._s(t.totalObj.three.count))]),a("van-icon",{attrs:{name:"arrow",color:"#2476FE",size:"16"}})],1)]),a("div",{staticClass:"xq-callupall-content"},t._l(t.threwStoreArr,(function(e,n){return a("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:n},[a("span",{staticClass:"font36"},[t._v(t._s(t.totalObj.three[e.field])+t._s(e.unity))]),a("span",{staticClass:"mt10 xq-block ellipsis color89A0B7"},[t._v(t._s(e.name))])])})),0)])])]),a("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"}}),a("wzhload",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]})],1)},i=[],s=n("d0afc"),r=n("f3f3"),o=(n("d3b7"),n("159b"),n("b64b"),n("4f8e")),c=n("5a0c"),u=n.n(c),l=n("8d6b"),d=n("a92e"),f=n("5880"),m=n("d0af"),h={components:{MescrollVue:l["a"],nonedata:d["a"],statisticstop:m["a"]},data:function(){return{datashow:!1,loadFlag:!1,showCalendar:!1,minDate:new Date(2018,0,1),maxDate:new Date,activeIndex:"0",scrollPosition:0,activeItem:null,totalObj:{one:{},two:{},three:{}},filterObj:{org_id:"",start_time:"",end_time:""},tab:[{name:"今日",type:"0"},{name:"近一周",type:"1"},{name:"近一月",type:"2"},{name:"其他时间",type:"3"}],oneStoreArr:[{name:"平均到店周期(天)",field:"days"},{name:"到店率",field:"lv",unity:"%",hidden:!0},{name:"量房转到店",field:"lf_count"},{name:"内场活动到店",field:"nc_count"},{name:"量房转到店平均周期(天)",field:"lf_days",width:"40%"},{name:"外场转到店",field:"wc_count",width:"20%"},{name:"外场转到店平均周期(天)",field:"wc_days",width:"40%"},{name:"业务邀约",field:"xs_yaoyue"},{name:"业务邀约占比",field:"xs_yaoyue_lv"},{name:"设计邀约",field:"sj_yaoyue"},{name:"设计邀约占比",field:"sj_yaoyue_lv"},{name:"合同",field:"qd_count"}],twoStoreArr:[{name:"平均到店周期(天)",field:"days"},{name:"到店率",field:"lv",unity:"%",hidden:!0},{name:"业务邀约",field:"xs_yaoyue"},{name:"业务邀约占比",field:"xs_yaoyue_lv"},{name:"设计邀约",field:"sj_yaoyue"},{name:"设计邀约占比",field:"sj_yaoyue_lv"},{name:"合同",field:"qd_count"}],threwStoreArr:[{name:"平均到店周期(天)",field:"days"},{name:"到店率",field:"lv",unity:"%",hidden:!0},{name:"业务邀约",field:"xs_yaoyue"},{name:"业务邀约占比",field:"xs_yaoyue_lv"},{name:"设计邀约",field:"sj_yaoyue"},{name:"设计邀约占比",field:"sj_yaoyue_lv"},{name:"合同",field:"qd_count"}],mescroll:null,mescrollDown:{},mescrollUp:{callback:this.getFuncList,onScroll:this.onScroll,page:{num:0,size:10},htmlLoading:"",htmlNodata:"",noMoreSize:0}}},computed:Object(r["a"])(Object(r["a"])({},Object(f["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.setJumpNewPage(!1),this.switchDate({type:t.dateType||"0"},"jump",t)):this.switchDate({type:t.dateType||"0"},"jump",t)},methods:Object(r["a"])(Object(r["a"])({},Object(f["mapMutations"])(["setJumpNewPage"])),{},{onScroll:function(t,e,n){this.scrollPosition=e},calendarOpened:function(){var t=document.querySelector(".van-calendar__body").scrollTop;document.querySelector(".van-calendar__body").scrollTop=t-1},switchDate:function(t,e,n){switch(this.activeIndex=t.type,t.type){case"0":this.filterObj=Object(r["a"])(Object(r["a"])({},this.filterObj),{},{start_time:u()(new Date).format("YYYY/MM/DD"),end_time:u()(new Date).format("YYYY/MM/DD")}),this.mescroll.resetUpScroll();break;case"1":this.filterObj=Object(r["a"])(Object(r["a"])({},this.filterObj),{},{start_time:this.utils.getCurrentWeekFirstDay(),end_time:this.utils.getCurrentWeekLastDay()}),this.mescroll.resetUpScroll();break;case"2":this.filterObj=Object(r["a"])(Object(r["a"])({},this.filterObj),{},{start_time:this.utils.getmonthfirstday(),end_time:this.utils.getmonthlastday()}),this.mescroll.resetUpScroll();break;case"3":if("jump"==e){var a=n.start_time,i=n.end_time;this.filterObj=Object(r["a"])(Object(r["a"])({},this.filterObj),{},{start_time:a,end_time:i}),this.mescroll.resetUpScroll()}else this.showCalendar=!0;break;default:this.mescroll.resetUpScroll();break}},jumpStorePage:function(t){this.setJumpNewPage(!0),this.activeItem=t,this.$router.push({path:"/storelevel",query:{store:t,dateType:this.activeIndex,start_time:this.filterObj.start_time,end_time:this.filterObj.end_time}})},getWeekDate:function(){var t=new Date,e=t.getTime()-5184e5,n=u()(new Date(e)).format("YYYY/MM/DD"),a=u()(t).format("YYYY/MM/DD");return{start_time:n,end_time:a}},getMonthDate:function(){var t=new Date,e=t.getTime()-2592e6,n=u()(new Date(e)).format("YYYY/MM/DD"),a=u()(t).format("YYYY/MM/DD");return{start_time:n,end_time:a}},onConfirm:function(t){var e=Object(s["a"])(t,2),n=e[0],a=e[1];this.filterObj=Object(r["a"])(Object(r["a"])({},this.filterObj),{},{start_time:u()(n).format("YYYY/MM/DD"),end_time:u()(a).format("YYYY/MM/DD")}),this.mescroll.resetUpScroll(),this.showCalendar=!1},mescrollInit:function(t){this.mescroll=t},getFuncList:function(t,e){var n=this,a=this;a.datashow=!1,a.loadFlag=!0;var i=Object(r["a"])({},this.filterObj);Object.keys(i).forEach((function(t){i[t]||delete i[t]})),Object(o["b"])(i).then((function(i){"0"==i.data.code&&(t.num,n.totalObj=i.data.data,a.$nextTick((function(){e.endSuccess(1)}))),a.loadFlag=!1,a.datashow=!0}))}})},p=h,_=(n("0e21"),n("2877")),v=Object(_["a"])(p,a,i,!1,null,"67d72682",null);e["default"]=v.exports},a92e:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nonedata",staticStyle:{margin:"auto"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:"0"==t.len&&t.datashow,expression:"len == '0' && datashow"}],staticClass:"noneDataBox"},[a("img",{attrs:{src:n("0afc")}}),a("div",[t._v(t._s(t.text))])])])},i=[],s=(n("a9e3"),{name:"nonedata",props:{len:{type:Number,default:0},datashow:{type:Boolean,default:!1},text:{type:String,default:"暂无数据展示"}},data:function(){return{}},created:function(){},methods:{},mounted:function(){}}),r=s,o=(n("bf10"),n("2877")),c=Object(o["a"])(r,a,i,!1,null,"e6e9b0c4",null);e["a"]=c.exports},bf10:function(t,e,n){"use strict";n("c93c")},c93c:function(t,e,n){},d0af:function(t,e,n){"use strict";var a=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)])},i=[],s={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)}}},r=s,o=(n("196b"),n("2877")),c=Object(o["a"])(r,a,i,!1,null,"4feecd16",null);e["a"]=c.exports},fa60:function(t,e,n){t.exports=n.p+"img/zstore.60644c66.png"}}]);
|