require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/statisticalFrom/achieveStatis"],{"0fd8":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("0c59"),r=a("dc92"),i={components:{selectStaff:function(){Promise.all([a.e("common/vendor"),a.e("components/selectStaff")]).then(function(){return resolve(a("16c8"))}.bind(null,a)).catch(a.oe)}},data:function(){return{BASE_IMG_URL:n.BASE_IMG_URL,dataYear:"",typeList:["个人业绩"],typeIndex:0,staffObj:{},yeartarget:{},list:[],arr:[{id:1,name:"合同"},{id:2,name:"回款"}],arrIndex:0,chartData:{},opts:{color:["#f5f5f5","#03AA96"],padding:[15,15,0,5],dataLabel:!1,legend:{},enableScroll:!0,xAxis:{type:"grid",disableGrid:!0,gridType:"dash",itemCount:4,scrollShow:!0,scrollAlign:"left",scrollBackgroundColor:"#F7F7FF",scrollColor:"#DEE7F7"},yAxis:{data:[{min:0}]},extra:{column:{type:"meter",width:12,activeBgColor:"#f5f5f5",activeBgOpacity:1,meterBorder:0,meterFillColor:"#dfdfdf",barBorderRadius:[50,50,50,50]}}},roleType:1}},onLoad:function(){this.roleType=t.getStorageSync("roleType");var e=new Date;this.dataYear=e.getFullYear();var a=t.getStorageSync("userinfo");this.staffObj={id:a.id,name:a.name},this.getData()},methods:{getData:function(){var t=this,e={staff_id:this.staffObj.id,year:this.dataYear,status:this.arr[this.arrIndex].id};(0,r.netAchievementStatistics)(e).then((function(e){e=e.data;var a={categories:e.echartdata.month,series:[{name:"目标值",data:e.echartdata.achievement},{name:"完成量",data:e.echartdata.money}]};t.chartData=a,t.yeartarget=e.yeartarget,t.list=e.data}))},changeDataType:function(t){this.typeIndex=t.detail.value,this.getData()},changeYear:function(t){this.dataYear=t.detail.value,this.getData()},toSelect:function(){this.$refs.staffChild.init()},sureStaff:function(t){this.staffObj=t,this.getData()},changeArr:function(t){this.arrIndex=t.detail.value,this.getData()},toTarget:function(){2!=this.roleType||-1==this.rules.indexOf("all")&&-1==this.rules.indexOf("2")?t.navigateTo({url:"/pagesA/crm/salesTarget/myTarget"}):t.navigateTo({url:"/pagesA/crm/salesTarget/salesTarget"})}}};e.default=i}).call(this,a("543d")["default"])},"35e9":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={qiunDataCharts:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(a.bind(null,"2e67"))}},r=function(){var t=this.$createElement;this._self._c},i=[]},"7de0":function(t,e,a){},"821b":function(t,e,a){"use strict";a.r(e);var n=a("0fd8"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},c330:function(t,e,a){"use strict";var n=a("7de0"),r=a.n(n);r.a},f9fe:function(t,e,a){"use strict";(function(t,e){var n=a("4ea4");a("8886");n(a("66fd"));var r=n(a("fd63"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(r.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},fd63:function(t,e,a){"use strict";a.r(e);var n=a("35e9"),r=a("821b");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("c330");var o=a("f0c5"),c=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"0f13e1f0",null,!1,n["a"],void 0);e["default"]=c.exports}},[["f9fe","common/runtime","common/vendor"]]]);