1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/statisticalFrom/collect/collect"],{"072a":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.$createElement;this._self._c},n=[]},2660:function(e,t,a){"use strict";a.r(t);var i=a("072a"),n=a("ea9d");for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);a("8eff");var r=a("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2b4e85dd",null,!1,i["a"],void 0);t["default"]=d.exports},"8eff":function(e,t,a){"use strict";var i=a("ad17"),n=a.n(i);n.a},ad17:function(e,t,a){},dbf2:function(e,t,a){"use strict";(function(e,t){var i=a("4ea4");a("8886");i(a("66fd"));var n=i(a("2660"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(n.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},ea9d:function(e,t,a){"use strict";a.r(t);var i=a("f0ae"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);t["default"]=n.a},f0ae:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a("dc92"),n=a("eec6"),s=a("d47e"),r={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,s.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(t){var a=this.list[t].month,i=this.handleTime(a);e.navigateTo({url:"/pagesA/crm/customerManagement/customerManagement?type="+this.peopleIndex+"&startTime="+i.startTime+"&endTime="+i.endTime})},JumpTeam:function(t){var a={};if(0==this.typeIndex)a={startTime:this.typeYear+"-01-01",endTime:this.typeYear+"-12-31"};else{var i=this.dataTime;a=this.handleTime(i)}var n=t.id;e.navigateTo({url:"/pagesA/crm/customerManagement/customerManagement?type="+this.peopleIndex+"&startTime="+a.startTime+"&endTime="+a.endTime+"&staffid="+n})},jumpClues:function(t){var a=this.list[t].month,i=this.handleTime(a);e.navigateTo({url:"/pagesA/crm/cluesManagement/cluesManagement?type="+this.peopleIndex+"&startTime="+i.startTime+"&endTime="+i.endTime})},jumpTeamClues:function(t){var a={};if(0==this.typeIndex)a={startTime:this.typeYear+"-01-01",endTime:this.typeYear+"-12-31"};else{var i=this.dataTime;a=this.handleTime(i)}var n=t.id;e.navigateTo({url:"/pagesA/crm/cluesManagement/cluesManagement?type="+this.peopleIndex+"&startTime="+a.startTime+"&endTime="+a.endTime+"&staffid="+n})},jumpContract:function(t){var a=this.list[t].month,i=this.handleTime(a);e.navigateTo({url:"/pages/index/contract/contract?type="+this.peopleIndex+"&startTime="+i.startTime+"&endTime="+i.endTime})},jumpTeamContract:function(t){var a={};if(0==this.typeIndex)a={startTime:this.typeYear+"-01-01",endTime:this.typeYear+"-12-31"};else{var i=this.dataTime;a=this.handleTime(i)}var n=t.id;e.navigateTo({url:"/pages/index/contract/contract?type="+this.peopleIndex+"&startTime="+a.startTime+"&endTime="+a.endTime+"&staffid="+n})}},onReady:function(){}};t.default=r}).call(this,a("543d")["default"])}},[["dbf2","common/runtime","common/vendor"]]]); |