| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-crm-statisticalFrom-collect-collect"],{"05e0":function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("f7a5"),a("5ef2");var i=a("af8c"),n=a("3506"),c=a("f426"),l={data:function(){return{people_show:!1,time_show:!1,peopleArr:["仅本人","本人及下属"],peopleIndex:0,dateyear:"",dataTime:"",list:[],typeList:["按年","按月"],typeIndex:0,typeYear:""}},onShow:function(){var e=new Date,t=e.getFullYear();this.dateyear=t,this.typeYear=t,this.dataTime=(0,n.getNowData)().substr(0,7),0==this.peopleIndex?this.getData():this.getTeamData()},methods:{changeYear:function(e){this.dateyear=e.detail.value,this.getData()},getData:function(){var e=this;(0,i.netPersonalData)({date:this.dateyear}).then((function(t){e.list=t.data}))},getTeamData:function(){var e=this,t={date:0==this.typeIndex?this.typeYear:this.dataTime};(0,i.netTeamData)(t).then((function(t){e.list=t.data}))},changePeople:function(e){this.peopleIndex=e.detail.value,0==this.peopleIndex?this.getData():this.getTeamData()},changeDataTime:function(e){this.dataTime=e.detail.value,this.getTeamData()},handleTime:function(e){var t=e.slice(0,e.indexOf("-")),a=e.slice(e.indexOf("-")+1),i=(0,c.getCurrentMonthDay)(t,a);return i},changeType:function(e){this.typeIndex=e.detail.value,this.getTeamData()},changeTypeyear:function(e){this.typeYear=e.detail.value,this.getTeamData()},jumpCustomerList:function(e){var t=this.list[e].month,a=this.handleTime(t);uni.navigateTo({url:"/pagesA/crm/customerManagement/customerManagement?type="+this.peopleIndex+"&startTime="+a.startTime+"&endTime="+a.endTime})},JumpTeam:function(e){var t={};if(0==this.typeIndex)t={startTime:this.typeYear+"-01-01",endTime:this.typeYear+"-12-31"};else{var a=this.dataTime;t=this.handleTime(a)}var i=e.id;uni.navigateTo({url:"/pagesA/crm/customerManagement/customerManagement?type="+this.peopleIndex+"&startTime="+t.startTime+"&endTime="+t.endTime+"&staffid="+i})},jumpClues:function(e){var t=this.list[e].month,a=this.handleTime(t);uni.navigateTo({url:"/pagesA/crm/cluesManagement/cluesManagement?type="+this.peopleIndex+"&startTime="+a.startTime+"&endTime="+a.endTime})},jumpTeamClues:function(e){var t={};if(0==this.typeIndex)t={startTime:this.typeYear+"-01-01",endTime:this.typeYear+"-12-31"};else{var a=this.dataTime;t=this.handleTime(a)}var i=e.id;uni.navigateTo({url:"/pagesA/crm/cluesManagement/cluesManagement?type="+this.peopleIndex+"&startTime="+t.startTime+"&endTime="+t.endTime+"&staffid="+i})},jumpContract:function(e){var t=this.list[e].month,a=this.handleTime(t);uni.navigateTo({url:"/pages/index/contract/contract?type="+this.peopleIndex+"&startTime="+a.startTime+"&endTime="+a.endTime})},jumpTeamContract:function(e){var t={};if(0==this.typeIndex)t={startTime:this.typeYear+"-01-01",endTime:this.typeYear+"-12-31"};else{var a=this.dataTime;t=this.handleTime(a)}var i=e.id;uni.navigateTo({url:"/pages/index/contract/contract?type="+this.peopleIndex+"&startTime="+t.startTime+"&endTime="+t.endTime+"&staffid="+i})}},onReady:function(){}};t.default=l},3506:function(e,t,a){a("64aa");var n=new Date,c=Number(n.getFullYear()),l=Number(n.getMonth())+1,o=Number(n.getMonth()),s=Number(n.getDate()),r=new Date(c,l-1,s),d=r.getDay();Math.ceil((s+6-d)/7);function v(e){var t=Number(e.getFullYear()),a=Number(e.getMonth()+1),i=Number(e.getDate());return a<10&&(a="0"+a),i<10&&(i="0"+i),t+"-"+a+"-"+i}e.exports={getWeekStartDate:function(){var e=new Date(c,o,s-d);return v(e)},getWeekEndDate:function(){var e=new Date(c,o,s+6-d);return v(e)},getNowDay:function(){var e=new Date,t=e.getDate();return t},getNowData:function(){return c+"-"+(l>=10?l:"0"+l)+"-"+(s>=10?s:"0"+s)},getWeekDay:function(){var e=new Date(c,o,s-d),t=new Date(e).getTime();console.log(e,t);var a=[{date:"",week:"",day:""},{date:"",week:"",day:""},{date:"",week:"",day:""},{date:"",week:"",day:""},{date:"",week:"",day:""},{date:"",week:"",day:""},{date:"",week:"",day:""}];for(i=0;i<7;i++){var n=new Date(t+864e5*i),l=v(n),r=n.getDate();a[i].date=l,a[i].week=i+1,a[i].day=r}return a},monthStartDate:function(){var e=new Date(c,o,1),t=new Date(e).getFullYear(),a=new Date(e).getMonth()+1,i=new Date(e).getDate();return t+"-"+(a>=10?a:"0"+a)+"-"+(i>=10?i:"0"+i)},monthEndDate:function(){var e=new Date(c,o+1,0),t=new Date(e).getFullYear(),a=new Date(e).getMonth()+1,i=new Date(e).getDate();return t+"-"+(a>=10?a:"0"+a)+"-"+(i>=10?i:"0"+i)}}},"51fd":function(e,t,a){"use strict";a.r(t);var i=a("05e0"),n=a.n(i);for(var c in i)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(c);t["default"]=n.a},"530e":function(e,t,a){"use strict";a.r(t);var i=a("f542"),n=a("51fd");for(var c in n)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(c);a("ac4d");var l=a("828b"),o=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,"7166879c",null,!1,i["a"],void 0);t["default"]=o.exports},ac4d:function(e,t,a){"use strict";var i=a("f45f"),n=a.n(i);n.a},f45f:function(e,t,a){var i=a("f64a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("967d").default;n("28746c94",i,!0,{sourceMap:!1,shadowMode:!1})},f542:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"collect"},[a("v-uni-view",{staticClass:"time_collect"},[a("v-uni-view",{staticClass:"collect-tab"},[a("v-uni-view",{staticClass:"pre_list"},[a("v-uni-picker",{attrs:{range:e.peopleArr,value:e.peopleIndex},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changePeople.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"form_right"},[a("v-uni-view",{staticStyle:{"margin-right":"15rpx"}},[e._v(e._s(e.peopleArr[e.peopleIndex]?e.peopleArr[e.peopleIndex]:"点击选择"))]),a("v-uni-view",{staticClass:"iconfont icon-down-arrow"})],1)],1),0==e.peopleIndex?a("v-uni-picker",{attrs:{mode:"date",fields:"year"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeYear.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"form_right"},[a("v-uni-view",{staticStyle:{"margin-right":"15rpx"}},[e._v(e._s(e.dateyear?e.dateyear+"年":"点击选择"))]),a("v-uni-view",{staticClass:"iconfont icon-down-arrow"})],1)],1):e._e(),1==e.peopleIndex?a("v-uni-view",{staticClass:"rightlist"},[a("v-uni-view",{staticClass:"libox"},[a("v-uni-picker",{attrs:{range:e.typeList,value:e.typeIndex},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeType.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"form_right"},[a("v-uni-view",{staticStyle:{"margin-right":"15rpx"}},[e._v(e._s(e.typeList[e.typeIndex]?e.typeList[e.typeIndex]:"点击选择"))]),a("v-uni-view",{staticClass:"iconfont icon-down-arrow"})],1)],1)],1),a("v-uni-view",{staticClass:"libox"},[0==e.typeIndex?a("v-uni-picker",{attrs:{mode:"date",fields:"year"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTypeyear.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"form_right"},[a("v-uni-view",{staticStyle:{"margin-right":"15rpx"}},[e._v(e._s(e.typeYear?e.typeYear+"年":"点击选择"))]),a("v-uni-view",{staticClass:"iconfont icon-down-arrow"})],1)],1):e._e()],1),a("v-uni-view",{staticClass:"libox"},[1==e.typeIndex?a("v-uni-picker",{attrs:{mode:"date",fields:"month"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDataTime.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"form_right"},[a("v-uni-view",{staticStyle:{"margin-right":"15rpx"}},[e._v(e._s(e.dataTime?e.dataTime:"点击选择"))]),a("v-uni-view",{staticClass:"iconfont icon-down-arrow"})],1)],1):e._e()],1)],1):e._e()],1)],1),0==e.peopleIndex?a("v-uni-view",{staticClass:"achievement_footer"},[a("v-uni-view",{staticClass:"footer_table"},[a("v-uni-view",{staticClass:"table_time"},[a("v-uni-view",{staticClass:"item_title"},[e._v("时间")]),e._l(e.list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"time_item"},[a("v-uni-view",[e._v(e._s(t.month))])],1)}))],2),a("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-x":"true"}},[a("v-uni-view",{staticClass:"con_title"},[a("v-uni-view",{staticClass:"title_head"},[e._v("新增线索")]),a("v-uni-view",{staticClass:"title_head"},[e._v("新增客户")]),a("v-uni-view",{staticClass:"title_head"},[e._v("新增合同")])],1),a("v-uni-view",{staticClass:"con_content"},e._l(e.list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"content_item"},[a("v-uni-view",{staticClass:"con_data",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpClues(i)}}},[e._v(e._s(t.leads))]),a("v-uni-view",{staticClass:"con_data",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpCustomerList(i)}}},[e._v(e._s(t.customers))]),a("v-uni-view",{staticClass:"con_data",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpContract(i)}}},[e._v(e._s(t.contracts))])],1)})),1)],1)],1)],1):e._e(),1==e.peopleIndex?a("v-uni-view",{staticClass:"achievement_footer"},[a("v-uni-view",{staticClass:"footer_table"},[a("v-uni-view",{staticClass:"table_time"},[a("v-uni-view",{staticClass:"item_title"},[e._v("姓名")]),e._l(e.list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"time_item"},[a("v-uni-view",[e._v(e._s(t.name))])],1)}))],2),a("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-x":"true"}},[a("v-uni-view",{staticClass:"con_title"},[a("v-uni-view",{staticClass:"title_head"},[e._v("新增线索")]),a("v-uni-view",{staticClass:"title_head"},[e._v("新增客户")]),a("v-uni-view",{staticClass:"title_head"},[e._v("新增合同")])],1),a("v-uni-view",{staticClass:"con_content"},e._l(e.list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"content_item"},[a("v-uni-view",{staticClass:"con_data",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.jumpTeamClues(t)}}},[e._v(e._s(t.leads))]),a("v-uni-view",{staticClass:"con_data",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.JumpTeam(t)}}},[e._v(e._s(t.customers))]),a("v-uni-view",{staticClass:"con_data",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.jumpTeamContract(t)}}},[e._v(e._s(t.contracts))])],1)})),1)],1)],1)],1):e._e()],1)],1)},n=[]},f64a:function(e,t,a){var i=a("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.collect-tab[data-v-7166879c]{background:#fff}.collect-tab .pre_list[data-v-7166879c]{display:flex;justify-content:space-between;align-items:center;padding:%?20?% %?30?%}.collect-tab .pre_list .pre_title[data-v-7166879c]{font-size:%?28?%;font-weight:700}.collect-tab .pre_list .form_right[data-v-7166879c]{height:%?40?%;font-size:%?24?%;color:#333;text-align:center;line-height:%?38?%;display:flex;justify-content:center;align-items:center}.collect-tab .pre_list .rightlist[data-v-7166879c]{display:flex;justify-content:flex-end;align-items:center}.collect-tab .pre_list .rightlist .libox[data-v-7166879c]{margin-left:%?24?%}.collect .time_collect .line_header[data-v-7166879c],\n.collect .people_collect .line_header[data-v-7166879c]{background-color:#fff}.collect .time_collect .line_header .scroll[data-v-7166879c],\n.collect .people_collect .line_header .scroll[data-v-7166879c]{white-space:nowrap;width:%?750?%;overflow:hidden}.collect .time_collect .line_header .scroll .line_chart[data-v-7166879c],\n.collect .people_collect .line_header .scroll .line_chart[data-v-7166879c]{height:%?600?%;width:%?2000?%}.collect .time_collect .achievement_body[data-v-7166879c],\n.collect .people_collect .achievement_body[data-v-7166879c]{margin:%?30?%}.collect .time_collect .achievement_body .achievement_title[data-v-7166879c],\n.collect .people_collect .achievement_body .achievement_title[data-v-7166879c]{border-radius:%?10?%;padding:%?20?% 0 %?40?%;background-color:#fff;display:flex;text-align:center}.collect .time_collect .achievement_body .achievement_title .title_item[data-v-7166879c],\n.collect .people_collect .achievement_body .achievement_title .title_item[data-v-7166879c]{width:33.33%}.collect .time_collect .achievement_body .achievement_title .title_item[data-v-7166879c] :first-child,\n.collect .people_collect .achievement_body .achievement_title .title_item[data-v-7166879c] :first-child{padding:%?20?%;color:#ccc}.collect .time_collect .achievement_footer[data-v-7166879c],\n.collect .people_collect .achievement_footer[data-v-7166879c]{margin:%?20?% 0 %?30?%;overflow:hidden}.collect .time_collect .achievement_footer .footer_table[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table[data-v-7166879c]{display:flex}.collect .time_collect .achievement_footer .footer_table .table_time[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table .table_time[data-v-7166879c]{width:%?150?%;white-space:nowrap}.collect .time_collect .achievement_footer .footer_table .table_time .item_title[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table .table_time .item_title[data-v-7166879c]{padding-left:%?20?%;font-weight:700;height:%?90?%;line-height:%?90?%;border:%?1?% solid #f2f2f2;border-right:0}.collect .time_collect .achievement_footer .footer_table .table_time .time_item[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table .table_time .time_item[data-v-7166879c]{padding-left:%?20?%;height:%?90?%;line-height:%?90?%;background-color:#fff;border-bottom:%?1?% solid #eaeaea}.collect .time_collect .achievement_footer .footer_table .scroll[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table .scroll[data-v-7166879c]{white-space:nowrap;width:%?600?%;overflow:hidden}.collect .time_collect .achievement_footer .footer_table .scroll .con_title .title_head[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table .scroll .con_title .title_head[data-v-7166879c]{display:inline-block;width:%?200?%;height:%?90?%;line-height:%?90?%;text-align:center;border-top:%?1?% solid #f2f2f2;border-bottom:%?1?% solid #f2f2f2}.collect .time_collect .achievement_footer .footer_table .scroll .con_title[data-v-7166879c] :last-child,\n.collect .people_collect .achievement_footer .footer_table .scroll .con_title[data-v-7166879c] :last-child{border-right:%?1?% solid #f2f2f2}.collect .time_collect .achievement_footer .footer_table .scroll .con_content .content_item .con_data[data-v-7166879c],\n.collect .people_collect .achievement_footer .footer_table .scroll .con_content .content_item .con_data[data-v-7166879c]{display:inline-block;width:%?200?%;height:%?90?%;line-height:%?90?%;text-align:center;background-color:#fff;border-bottom:%?1?% solid #eaeaea}.collect .pagination_demo[data-v-7166879c]{background-color:#fff;padding:%?30?% %?60?%;margin:0 %?30?%}.collect .van_po[data-v-7166879c]{position:absolute}.collect .van_po .screen_con[data-v-7166879c]{z-index:9999;background-color:#fff}.collect .van_po .screen_con .screen_title[data-v-7166879c]{display:flex;justify-content:space-between;padding:%?20?% %?20?% %?20?% %?24?%;border-bottom:%?1?% solid #eaeaea}.collect .van_po .screen_con .screen_title[data-v-7166879c] :first-child{font-size:%?28?%;font-weight:700}.collect .van_po .screen_con .screen_style .style_title[data-v-7166879c]{padding-left:%?24?%;padding-top:%?30?%}.collect .van_po .screen_con .screen_style .style_con[data-v-7166879c]{display:flex;width:%?560?%;flex-wrap:wrap;text-align:center;padding-left:%?9?%}.collect .van_po .screen_con .screen_style .style_con .style_item[data-v-7166879c]{width:%?150?%;height:%?60?%;line-height:%?60?%;border:%?1?% solid #f4f4f4;margin:%?15?% %?15?%;color:#b6b6b6}.collect .van_po .screen_con .screen_style .style_con .type_active[data-v-7166879c],\n.collect .van_po .screen_con .screen_style .style_con .time_active[data-v-7166879c]{border:%?1?% solid #52c1f5;color:#52c1f5}.collect .van_po .screen_con .screen_style .aff_con[data-v-7166879c]{display:flex;justify-content:center;align-items:center;text-align:center;padding-top:%?30?%}.collect .van_po .screen_con .screen_style .aff_con .aff_item[data-v-7166879c]{width:25%}.collect .van_po .screen_con .screen_style .aff_con .aff_item .aff_img[data-v-7166879c]{margin-bottom:%?15?%;margin-left:%?44?%;width:%?50?%;height:%?50?%}.collect .van_po .screen_con .screen_style .aff_con .aff_last .aff_img[data-v-7166879c]{margin-bottom:%?15?%;margin-left:%?30?%;width:%?80?%;height:%?50?%}.collect .van_po .screen_con .style_input[data-v-7166879c]{margin:%?20?%;border:%?1?% solid #eaeaea;padding-left:%?24?%;width:%?600?%}.collect .van_po .screen_con .style_input uni-input[data-v-7166879c]{display:inline-block;height:%?80?%}.collect .button_bottom[data-v-7166879c]{display:flex;position:fixed;width:100%;bottom:0;right:0;left:0;font-size:%?32?%;height:%?90?%;text-align:center}.collect .button_bottom .reset[data-v-7166879c]{flex:1;line-height:%?90?%;color:#1e89fe}.collect .button_bottom .sure[data-v-7166879c]{flex:1;line-height:%?90?%;background-color:#008eff;color:#fff}',""]),e.exports=t}}]);
|