(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-67f2"],{"31UX":function(e,t,a){"use strict";var i=a("QbLZ"),s=a.n(i),n=a("4d7F"),l=a.n(n),o=a("CMIa"),r=a("ehos"),c=a("7Qib");t.a={data:function(){return{chartObj:null,chartOtherObj:null,chartColors:["#6CA2FF","#6AC9D7","#72DCA2","#48E78D","#FECD51","#DBB375","#FF7474","#F59561","#A3AEBC","#4C84FF","#0DBEB4","#00DEDE","#FFAA00","#C7C116","#F7A57C","#F661AC","#8652EE"],chartXAxisStyle:{axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#333"},axisLine:{lineStyle:{color:"#333"}},splitLine:{show:!1}},chartYAxisStyle:{axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#333"},axisLine:{lineStyle:{color:"#333"}},splitLine:{show:!1}},currentPage:1,pageSizes:[15,30,45,60],pageSize:0,total:0,toolbox:{showTitle:!1,feature:{saveAsImage:{show:!0,pixelRatio:2}}}}},components:{FiltrateHandleView:o.a},props:{},computed:{},watch:{},mounted:function(){var e=this;this.debouncedResize=Object(r.debounce)(300,this.resizeFn),this.$nextTick(function(){window.addEventListener("resize",e.debouncedResize)})},beforeDestroy:function(){window.removeEventListener("resize",this.debouncedResize)},methods:{resizeFn:function(){this.chartObj&&this.chartObj.resize(),this.chartOtherObj&&this.chartOtherObj.resize()},handleSizeChange:function(e){this.pageData.limit=e,this.getList(this.pageData)},handleCurrentChange:function(e){this.pageData.page=e,this.getList(this.pageData)},requestExportInfo:function(e,t,a){return new l.a(function(i,n){e(s()({},t,{excel_types:a,excel_type:1})).then(function(e){Object(c.c)(e),i&&i(e)}).catch(function(e){n&&n(e)})})}},deactivated:function(){}}},"74lk":function(e,t,a){"use strict";a.d(t,"a",function(){return s}),a.d(t,"b",function(){return n}),a.d(t,"d",function(){return l}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return r});var i=a("t3Un");function s(e){return Object(i.a)({url:"bi/achievement/statistics",method:"post",data:e})}function n(e){return Object(i.a)({url:"bi/achievement/excelExport",method:"post",data:e,responseType:"blob"})}function l(e){return Object(i.a)({url:"bi/product/statistics",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"bi/product/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"bi/business/funnel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"9kPm":function(e,t,a){"use strict";t.a={data:function(){return{showTable:!0}},methods:{mixinSortFn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if("[object Array]"!==Object.prototype.toString.call(e))return[];if(!t)return e;e.sort(function(e,i){if(e[t]===i[t])return 0;var s=isNaN(Number(e[t]))||isNaN(Number(i[t]))?e[t]Date.now()}},yearValue:"",timeTypeValue:{},dataSelect:1,structuresSelectValue:[],userSelectValue:[],businessOptions:[],businessStatusValue:"",productValue:[],productOptions:[],customValue:""}},computed:s()({},Object(p.b)(["userInfo"]),{showUserStrucSelect:function(){return this.showUserSelect}}),watch:{},mounted:function(){var e=this;this.showCustomSelect&&(this.customValue=this.customDefault),this.showYearSelect&&(this.yearValue=d()(new Date).year().toString()),this.$emit("load"),this.showBusinessSelect?this.getBusinessStatusList(function(){e.postFiltrateValue()}):this.postFiltrateValue(),this.showProductSelect&&this.getProductCategoryIndex()},beforeDestroy:function(){},methods:{structureChange:function(e){this.structuresSelectValue=e.value||[]},userChange:function(e){this.userSelectValue=e.value||[]},customSelectChange:function(){this.$emit("typeChange",this.customValue)},timeTypeChange:function(e){this.timeTypeValue=e},structuresValueChange:function(e){this.showUserSelect&&(this.userSelectValue="",this.userOptions=[],this.getUserList())},getUserList:function(){var e=this,t={};t.structure_id=this.structuresSelectValue,Object(n.n)(t).then(function(t){e.userOptions=t.data}).catch(function(){e.$emit("error")})},getBusinessStatusList:function(e){var t=this;Object(l.q)().then(function(a){var i=a.data||[];t.businessOptions=i.filter(function(e){return 1===e.status}),t.businessOptions.length>0&&(t.businessStatusValue=t.businessOptions[0].type_id),e(!0)}).catch(function(){t.$emit("error")})},getProductCategoryIndex:function(){var e=this;Object(o.K)({type:"tree"}).then(function(t){e.productOptions=t.data}).catch(function(){})},postFiltrateValue:function(){var e={};this.showUserStrucSelect?1==this.dataSelect&&(e.structure_id=this.structuresSelectValue.length>0?this.structuresSelectValue[0].id:this.userInfo.structure_id):e.structure_id=this.structuresSelectValue.length>0?this.structuresSelectValue[0].id:"1",this.showUserSelect&&2==this.dataSelect&&(e.user_id=this.userSelectValue.length>0?this.userSelectValue[0].id:""),this.showBusinessSelect&&(e.type_id=this.businessStatusValue),this.showProductSelect&&(e.category_id=this.productValue.length>0?this.productValue[this.productValue.length-1]:""),this.showYearSelect?e.year=this.yearValue:"custom"==this.timeTypeValue.type?(e.start_time=this.timeTypeValue.startTime.replace(/\./g,"-"),e.end_time=this.timeTypeValue.endTime.replace(/\./g,"-")):e.type=this.timeTypeValue.value,this.$emit("change",e)}}},m=(a("lSL+"),a("KHd+")),y=Object(m.a)(f,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("flexbox",{staticClass:"filtrate-content",attrs:{justify:"flex-start"}},[a("flexbox",{staticClass:"title-box",attrs:{justify:"flex-start"}},[a("div",{staticClass:"icon-box"},[a("span",{staticClass:"wk wk-my-task icon"})]),e._v(" "),a("span",{staticClass:"text"},[e._v(e._s(e.title))])]),e._v(" "),e.showFilterView?[e.showYearSelect?e._e():a("time-type-select",{on:{change:e.timeTypeChange}}),e._v(" "),e.showYearSelect?a("el-date-picker",{attrs:{clearable:!1,"picker-options":e.pickerOptions,type:"year","value-format":"yyyy",placeholder:"选择年"},model:{value:e.yearValue,callback:function(t){e.yearValue=t},expression:"yearValue"}}):e._e(),e._v(" "),e.showUserStrucSelect?a("el-select",{model:{value:e.dataSelect,callback:function(t){e.dataSelect=t},expression:"dataSelect"}},e._l([{label:"按部门",value:1},{label:"按员工",value:2}],function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})):e._e(),e._v(" "),1==e.dataSelect?a("xh-structure-cell",{staticClass:"xh-structure-cell",attrs:{radio:"",placeholder:"选择部门(默认为本部门及下属部门)"},on:{"value-change":e.structureChange}}):e._e(),e._v(" "),2==e.dataSelect&&e.showUserSelect?a("xh-user-cell",{staticClass:"xh-user-cell",attrs:{radio:"",placeholder:"选择员工(默认为本人及下属)\n"},on:{"value-change":e.userChange}}):e._e(),e._v(" "),e.showBusinessSelect?a("el-select",{attrs:{placeholder:"商机组"},model:{value:e.businessStatusValue,callback:function(t){e.businessStatusValue=t},expression:"businessStatusValue"}},e._l(e.businessOptions,function(e){return a("el-option",{key:e.type_id,attrs:{label:e.name,value:e.type_id}})})):e._e(),e._v(" "),e.showProductSelect?a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.productOptions,"show-all-levels":!1,props:{children:"children",label:"label",value:"categoryId"},"change-on-select":""},model:{value:e.productValue,callback:function(t){e.productValue=t},expression:"productValue"}}):e._e(),e._v(" "),e.showCustomSelect?a("el-select",{on:{change:e.customSelectChange},model:{value:e.customValue,callback:function(t){e.customValue=t},expression:"customValue"}},e._l(e.customOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})):e._e(),e._v(" "),e._t("append"),e._v(" "),a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){e.postFiltrateValue()}}},[e._v("搜索")]),e._v(" "),e._t("default")]:e._e()],2)},[],!1,null,"0562c1de",null);y.options.__file="FiltrateHandleView.vue";t.a=y.exports},"G+lJ":function(e,t,a){"use strict";var i=a("tuyL");a.n(i).a},IISu:function(e,t,a){"use strict";a.r(t);var i=a("FyfS"),s=a.n(i),n=a("KTTK"),l=a("74lk"),o=a("UCfG"),r=a("HHBN"),c=a("wd/R"),u=a.n(c),h=a("31UX"),d=a("9kPm"),p=a("MT78"),f=a.n(p),m=a("7Qib"),y=a("ehos"),v={name:"TaskCompleteStatistics",components:{XhStructureCell:o.a,XhUserCell:r.a},mixins:[h.a,d.a],data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},loading:!1,dateSelect:"",typeSelect:1,dataSelect:1,deptSelectValue:[],userSelectValue:[],list:[],fieldList:[],axisChart:null,axisOption:null}},computed:{postParams:function(){var e={year:this.dateSelect,status:this.typeSelect};return e.type=1==this.dataSelect?1:2,1==this.dataSelect?e.structure_id=this.deptSelectValue.length>0?this.deptSelectValue[0].id:"":e.user_id=this.userSelectValue.length>0?this.userSelectValue[0].id:"",e}},mounted:function(){var e=this;this.debouncedResize=Object(y.debounce)(300,this.resizeFn),this.$nextTick(function(){window.addEventListener("resize",e.debouncedResize)}),this.dateSelect=u()(new Date).year().toString(),this.initAxis(),this.getAhievementDatalist();for(var t=["名称","年度目标","第一季度","1月","2月","3月","第二季度","4月","5月","6月","第三季度","7月","8月","9月","第四季度","10月","11月","12月"],a=["name","Year","Quarter1","1","2","3","Quarter2","4","5","6","Quarter3","7","8","9","Quarter4","10","11","12"],i=0;i0&&(e.structuresSelectValue=t.data[0].id,e.getUserList(),e.getAhievementDatalist())}).catch(function(){e.loading=!1})},structuresValueChange:function(e){this.userSelectValue="",this.userOptions=[],this.getUserList()},getUserList:function(){var e=this,t={pageType:0};t.deptId=this.structuresSelectValue,Object(n.y)(t).then(function(t){e.userOptions=t.data}).catch(function(){})},getAhievementDatalist:function(){var e=this;this.loading=!0,Object(l.a)(this.postParams).then(function(t){if(t.data&&t.data.length>0){e.list=[];for(var a=[],i=0;i<12;i++)a.push({achievement:0,money:0});for(var n=0;n