(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6811135c","chunk-44327d52","chunk-7b4dccd2","chunk-2d0e980d","chunk-2d0b6889"],{"0969":function(t,e,a){"use strict";a("cbc5")},"15a9":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("6b07"),a("62f9"),a("5ff7"),a("7d1c"),a("decd"),a("484a"),a("96f8");function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function i(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?n(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}},"1e21":function(t,e,a){"use strict";a.r(e);var r=a("ed08");e["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(r["b"])((function(){t.chart&&t.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},"365c":function(t,e,a){"use strict";a.d(e,"Q",(function(){return n})),a.d(e,"z",(function(){return i})),a.d(e,"l",(function(){return o})),a.d(e,"y",(function(){return s})),a.d(e,"O",(function(){return c})),a.d(e,"P",(function(){return u})),a.d(e,"eb",(function(){return l})),a.d(e,"fb",(function(){return d})),a.d(e,"c",(function(){return p})),a.d(e,"o",(function(){return _})),a.d(e,"D",(function(){return f})),a.d(e,"T",(function(){return h})),a.d(e,"E",(function(){return m})),a.d(e,"d",(function(){return v})),a.d(e,"U",(function(){return j})),a.d(e,"p",(function(){return b})),a.d(e,"J",(function(){return y})),a.d(e,"K",(function(){return g})),a.d(e,"bb",(function(){return q})),a.d(e,"u",(function(){return x})),a.d(e,"L",(function(){return O})),a.d(e,"j",(function(){return w})),a.d(e,"cb",(function(){return k})),a.d(e,"w",(function(){return C})),a.d(e,"I",(function(){return D})),a.d(e,"i",(function(){return S})),a.d(e,"Z",(function(){return V})),a.d(e,"t",(function(){return F})),a.d(e,"g",(function(){return $})),a.d(e,"A",(function(){return E})),a.d(e,"f",(function(){return z})),a.d(e,"W",(function(){return L})),a.d(e,"r",(function(){return A})),a.d(e,"G",(function(){return P})),a.d(e,"h",(function(){return R})),a.d(e,"s",(function(){return N})),a.d(e,"H",(function(){return T})),a.d(e,"a",(function(){return H})),a.d(e,"m",(function(){return M})),a.d(e,"B",(function(){return U})),a.d(e,"v",(function(){return B})),a.d(e,"R",(function(){return I})),a.d(e,"X",(function(){return G})),a.d(e,"Y",(function(){return J})),a.d(e,"ab",(function(){return Y})),a.d(e,"C",(function(){return Q})),a.d(e,"b",(function(){return Z})),a.d(e,"S",(function(){return K})),a.d(e,"n",(function(){return W})),a.d(e,"M",(function(){return X})),a.d(e,"N",(function(){return tt})),a.d(e,"k",(function(){return et})),a.d(e,"db",(function(){return at})),a.d(e,"x",(function(){return rt})),a.d(e,"F",(function(){return nt})),a.d(e,"e",(function(){return it})),a.d(e,"V",(function(){return ot})),a.d(e,"q",(function(){return st}));var r=a("b775");function n(t){return Object(r["a"])({url:"/api/v1/kxpms/workbench/query",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/v1/kxpms/login/login",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/api/v1/kxpms/user/add",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/v1/kxpms/user/delete/".concat(t),method:"post"})}function c(t){return Object(r["a"])({url:"/api/v1/kxpms/user/get",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/api/v1/kxpms/user/list",method:"post",data:t})}function l(t,e){return Object(r["a"])({url:"/api/v1/kxpms/user/update/".concat(t),method:"post",data:e})}function d(t){return Object(r["a"])({url:"/api/v1/kxpms/updatePassword",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/add",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/delete/".concat(t),method:"post"})}function f(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/list",method:"post",data:t})}function h(t,e){return Object(r["a"])({url:"/api/v1/kxpms/depot/update/".concat(t),method:"post",data:e})}function m(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/list",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/add",method:"post",data:t})}function j(t,e){return Object(r["a"])({url:"/api/v1/kxpms/dict/update/".concat(t),method:"post",data:e})}function b(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/delete/".concat(t),method:"post"})}function y(t){return Object(r["a"])({url:"/api/v1/kxpms/project/get",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/api/v1/kxpms/project/list",method:"post",data:t})}function q(t,e){return Object(r["a"])({url:"/api/v1/kxpms/project/update/".concat(t),method:"post",data:e})}function x(t){return Object(r["a"])({url:"/api/v1/kxpms/project/delete/".concat(t),method:"post"})}function O(t){return Object(r["a"])({url:"/api/v1/kxpms/role/list",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/api/v1/kxpms/role/add",method:"post",data:t})}function k(t,e){return Object(r["a"])({url:"/api/v1/kxpms/role/update/".concat(t),method:"post",data:e})}function C(t){return Object(r["a"])({url:"/api/v1/kxpms/role/delete/".concat(t),method:"delete"})}function D(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/list",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/add",method:"post",data:t})}function V(t,e){return Object(r["a"])({url:"/api/v1/kxpms/permission/update/".concat(t),method:"post",data:e})}function F(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/delete/".concat(t),method:"post"})}function $(t){return Object(r["a"])({url:"/api/v1/kxpms/system/addProject",method:"post",data:t})}function E(t){return Object(r["a"])({url:"/api/v1/kxpms/system/exportProject",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/api/v1/kxpms/flow/add",method:"post",data:t})}function L(t,e){return Object(r["a"])({url:"/api/v1/kxpms/flow/update/".concat(t),method:"post",data:e})}function A(t){return Object(r["a"])({url:"/api/v1/kxpms/flow/delete/".concat(t),method:"delete"})}function P(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getFlowList",method:"post",data:t})}function R(t){return Object(r["a"])({url:"/api/v1/kxpms/payback/add",method:"post",data:t})}function N(t){return Object(r["a"])({url:"/api/v1/kxpms/payback/delete/".concat(t),method:"post"})}function T(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getPaybackList",method:"post",data:t})}function H(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/add",method:"post",data:t})}function M(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/delete/".concat(t),method:"post"})}function U(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/list",method:"post",data:t})}function B(t){return Object(r["a"])({url:"/api/v1/kxpms/system/deleteProjectUser",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/api/v1/kxpms/system/modifyProjectUser",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updateFlow",method:"post",data:t})}function J(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updatePayback",method:"post",data:t})}function Y(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updateProductionPlan",method:"post",data:t})}function Q(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/list",method:"post",data:t})}function Z(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/add",method:"post",data:t})}function K(t,e){return Object(r["a"])({url:"/api/v1/kxpms/calendar/update/".concat(t),method:"post",data:e})}function W(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/delete/".concat(t),method:"post"})}function X(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getRoleUsers",method:"post",data:t})}function tt(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/list",method:"post",data:t})}function et(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/add",method:"post",data:t})}function at(t,e){return Object(r["a"])({url:"/api/v1/kxpms/summary/update/".concat(t),method:"post",data:e})}function rt(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/delete/".concat(t),method:"post"})}function nt(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/list",method:"post",data:t})}function it(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/add",method:"post",data:t})}function ot(t,e){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/update/".concat(t),method:"post",data:e})}function st(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/delete",method:"post",data:t})}},"3e3b":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("newVisitis")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-people"},[a("svg-icon",{attrs:{"icon-class":"project","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v("全年管理项目总数")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.project.project_currentyear,duration:1e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"report","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v("已经结案数")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.project.project_finished,duration:1e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"liuzhuan","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v("未结案流转下年度项目总数")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.project.project_unfinished_outdate,duration:1e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("shoppings")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[a("svg-icon",{attrs:{"icon-class":"guanli","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v("未结案且逾期结案项目总数")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.project.project_unfinished_nextyear,duration:1e3}})],1)])])],1)},n=[],i=a("9e2e"),o=a.n(i),s={props:{project:{type:Object,require:!1,default:function(){return{project_total:1e4,project_finished:1e3,project_unfinished_outdate:100,project_unfinished_nextyear:10}}}},components:{CountTo:o.a},methods:{handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)}}},c=s,u=(a("447f"),a("5d22")),l=Object(u["a"])(c,r,n,!1,null,"fc50af00",null);e["default"]=l.exports},"447f":function(t,e,a){"use strict";a("6c08")},"6c08":function(t,e,a){},"79cf":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},n=[],i=a("4d28"),o=a.n(i),s=a("1e21");a("d8ac");var c={mixins:[s["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=o.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.expectedData,a=t.actualData;this.chart.setOption({xAxis:{type:"category",data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["应收款","实收款"]},series:[{name:"应收款",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:e,animationDuration:2800,animationEasing:"cubicInOut"},{name:"实收款",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},u=c,l=a("5d22"),d=Object(l["a"])(u,r,n,!1,null,null,null);e["default"]=d.exports},"7d1c":function(t,e,a){var r=a("4292"),n=a("bc5d"),i=a("b9dd"),o=a("016e").f,s=a("61a2"),c=n((function(){o(1)})),u=!s||c;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(i(t),e)}})},"8e8b":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},n=[],i=a("4d28"),o=a.n(i),s=a("ed08");a("d8ac");var c={props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var t=this;this.initChart(),this.__resizeHandler=Object(s["b"])((function(){t.chart&&t.chart.resize()}),100),window.addEventListener("resize",this.__resizeHandler)},beforeDestroy:function(){this.chart&&(window.removeEventListener("resize",this.__resizeHandler),this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=o.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:["咨询类","评价类","评审类"]},calculable:!0,series:[{name:"项目类型",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:[{value:320,name:"咨询类"},{value:240,name:"评价类"},{value:149,name:"评审类"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},u=c,l=a("5d22"),d=Object(l["a"])(u,r,n,!1,null,null,null);e["default"]=d.exports},9406:function(t,e,a){"use strict";a.r(e);for(var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-container"},[a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{attrs:{project:t.project},on:{handleSetLineChartData:t.handleSetLineChartData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("el-col",{attrs:{span:16}},[a("line-chart",{attrs:{"chart-data":t.lineChartData}})],1),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart")],1)])],1),a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("查询条件")]),a("div",{staticClass:"content"},[a("p",{staticStyle:{margin:"7px 0px"}},[a("el-select",{attrs:{filterable:"",size:"mini",placeholder:"请选择年份"},on:{change:t.onChange},model:{value:t.form.year,callback:function(e){t.$set(t.form,"year",e)},expression:"form.year"}},t._l(t.yearList,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:t}})})),1)],1),a("p",{staticStyle:{margin:"7px 0px"}},[a("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择项目类型"},on:{change:t.onChange},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},t._l(t.typeList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.label}})})),1)],1),"超级管理员"===t.role.name?a("p",{staticStyle:{margin:"7px 0px"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.onRadioChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("el-radio-button",{attrs:{label:"用户"}}),a("el-radio-button",{attrs:{label:"部门"}})],1)],1):t._e(),"超级管理员"===t.role.name?a("p",{directives:[{name:"show",rawName:"v-show",value:0==t.show,expression:"show == 0"}],staticStyle:{margin:"7px 0px"}},[a("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择用户"},on:{change:t.onChange},model:{value:t.form.user,callback:function(e){t.$set(t.form,"user",e)},expression:"form.user"}},t._l(t.users,(function(t,e){return a("el-option",{key:e,attrs:{label:t.account,value:t.uuid}})})),1)],1):t._e(),"超级管理员"===t.role.name?a("p",{directives:[{name:"show",rawName:"v-show",value:1==t.show,expression:"show == 1"}],staticStyle:{margin:"7px 0px"}},[a("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择部门"},on:{change:t.onChange},model:{value:t.form.depot,callback:function(e){t.$set(t.form,"depot",e)},expression:"form.depot"}},t._l(t.depots,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1):t._e()])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("项目统计")]),a("div",{staticClass:"content"},[a("p",[t._v("历史项目总数:"+t._s(t.project.project_total))]),a("p",[t._v("年度项目总数:"+t._s(t.project.project_currentyear))]),a("p",[t._v("年度结案项目总数:"+t._s(t.project.project_finished))]),a("p",[t._v("年度逾期项目总数:"+t._s(t.project.project_outdate))]),a("p",[t._v("年度列入坏帐并终止项目数:"+t._s(t.project.project_stop))]),a("p",[t._v("年度项目总的毛利率:"+t._s((t.project.year_profit/t.project.year_cost).toFixed(2)))])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("项目统计")]),a("div",{staticClass:"content"},[a("p",[t._v("上一年未完成项目总数:"+t._s(t.project.project_unfinished_lastyear))]),a("p",[t._v("未结案流转下年度项目总数:"+t._s(t.project.project_unfinished_nextyear))]),a("p",[t._v("已结案但逾期结案项目总数:"+t._s(t.project.project_unfinished_outdate))]),a("p",[t._v("年度逾期项目总数:"+t._s(t.project.project_unfinished_outdate))]),a("p",[t._v("年度项目中标总数:"+t._s(t.project.bidding))])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("项目统计")]),a("div",{staticClass:"content"},[a("p",[t._v("年度项目逾期率:"+t._s(t.calculate(t.project.project_outdate,t.project.project_year))+"%")]),a("p",[t._v("年度项目结案逾期率:"+t._s(t.calculate(t.project.project_unfinished_outdate,t.project.project_year))+"%")]),a("p",[t._v("年度项目满意率:"+t._s(t.calculate(t.project.satisfaction,t.project.project_year))+"%")]),a("p",[t._v("年度调派技术现场总天数:"+t._s(t.project.days_for_dispatch_on_site)+" 天")]),a("p",[t._v("年度监督流失率:"+t._s(t.calculate(t.project.supervise_loss,t.project.project_supervise))+"%")]),a("p",[t._v("年度再认证流失率:"+t._s(t.calculate(t.project.authenticate_loss,t.project.project_authenticate))+"%")])])])])],1),a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("项目统计")]),a("div",{staticClass:"content"},[a("p",[t._v("年度应收款:"+t._s(t.project.plan_amount)+" 元")]),a("p",[t._v("年度实收款:"+t._s(t.project.real_amount)+" 元")]),a("p",[t._v("年度应收款回款率:"+t._s(t.calculate(t.project.real_amount,t.project.plan_amount))+"%")]),a("p",[t._v("年度坏账总金额:"+t._s(t.project.bad_debts_amount)+" 元")]),a("p",[t._v("年度销售合同额:"+t._s(t.project.year_contract_amount)+" 元")]),a("p",[t._v("年度销售认可合同额:"+t._s(t.project.year_agree_amount)+" 元")])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("季度合同金额")]),a("div",{staticClass:"content"},[a("p",[t._v("一季度:"+t._s(t.project.quarter_contract_amount.q1))]),a("p",[t._v("二季度:"+t._s(t.project.quarter_contract_amount.q2))]),a("p",[t._v("三季度:"+t._s(t.project.quarter_contract_amount.q3))]),a("p",[t._v("四季度:"+t._s(t.project.quarter_contract_amount.q4))])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("季度认可合同金额")]),a("div",{staticClass:"content"},[a("p",[t._v("一季度:"+t._s(t.project.quarter_agree_amount.q1))]),a("p",[t._v("二季度:"+t._s(t.project.quarter_agree_amount.q2))]),a("p",[t._v("三季度:"+t._s(t.project.quarter_agree_amount.q3))]),a("p",[t._v("四季度:"+t._s(t.project.quarter_agree_amount.q4))])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("季度利润")]),a("div",{staticClass:"content"},[a("p",[t._v("一季度:"+t._s(t.project.quater_profit.q1))]),a("p",[t._v("二季度:"+t._s(t.project.quater_profit.q2))]),a("p",[t._v("三季度:"+t._s(t.project.quater_profit.q3))]),a("p",[t._v("四季度:"+t._s(t.project.quater_profit.q4))])])])])],1),a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("季度项目数统计")]),a("div",{staticClass:"content"},[a("p",[t._v("一季度:"+t._s(t.project.quarter_project_count.q1))]),a("p",[t._v("二季度:"+t._s(t.project.quarter_project_count.q2))]),a("p",[t._v("三季度:"+t._s(t.project.quarter_project_count.q3))]),a("p",[t._v("四季度:"+t._s(t.project.quarter_project_count.q4))])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("季度项目回款率")]),a("div",{staticClass:"content"},[a("table",[a("tr",[a("th",[t._v("季度")]),a("th",[t._v("应收款")]),a("th",[t._v("实收款")]),a("th",[t._v("回款率")])]),a("tr",[a("td",[t._v("一季度")]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q1[0]))]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q1[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_collection_rate.q1[1],t.project.quarter_project_collection_rate.q1[0]))+"% ")])]),a("tr",[a("td",[t._v("二季度")]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q2[0]))]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q2[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_collection_rate.q2[1],t.project.quarter_project_collection_rate.q2[0]))+"% ")])]),a("tr",[a("td",[t._v("三季度")]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q3[0]))]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q3[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_collection_rate.q3[1],t.project.quarter_project_collection_rate.q3[0]))+"% ")])]),a("tr",[a("td",[t._v("四季度")]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q4[0]))]),a("td",[t._v(t._s(t.project.quarter_project_collection_rate.q4[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_collection_rate.q4[1],t.project.quarter_project_collection_rate.q4[0]))+"% ")])])])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"title"},[t._v("季度项目结案率")]),a("div",{staticClass:"content"},[a("table",[a("tr",[a("th",[t._v("季度")]),a("th",[t._v("应结案")]),a("th",[t._v("实结案")]),a("th",[t._v("结案率")])]),a("tr",[a("td",[t._v("一季度")]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q1[0]))]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q1[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_finished_rate.q1[1],t.project.quarter_project_finished_rate.q1[0]))+"% ")])]),a("tr",[a("td",[t._v("二季度")]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q2[0]))]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q2[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_finished_rate.q2[1],t.project.quarter_project_finished_rate.q2[0]))+"% ")])]),a("tr",[a("td",[t._v("三季度")]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q3[0]))]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q3[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_finished_rate.q3[1],t.project.quarter_project_finished_rate.q3[0]))+"% ")])]),a("tr",[a("td",[t._v("四季度")]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q4[0]))]),a("td",[t._v(t._s(t.project.quarter_project_finished_rate.q4[1]))]),a("td",[t._v(" "+t._s(t.calculate(t.project.quarter_project_finished_rate.q4[1],t.project.quarter_project_finished_rate.q4[0]))+"% ")])])])])])])],1)],1)])},n=[],i=(a("6ddf"),a("15a9")),o=a("7736"),s=a("ed08"),c=a("365c"),u=a("3e3b"),l=a("79cf"),d=a("8e8b"),p=new Date,_=[],f=2020;f<=p.getFullYear();f++)_.push(f);var h={name:"Dashboard",components:{PanelGroup:u["default"],LineChart:l["default"],PieChart:d["default"]},filter:{isZero:function(t){return t||1}},computed:Object(i["a"])(Object(i["a"])({},Object(o["c"])("user",["role"])),{},{calculate:function(){return function(t,e){return 0==e?(t/1*100).toFixed(2):(t/e*100).toFixed(2)}}}),data:function(){return{yearList:_,active:"用户",show:0,form:{year:p.getFullYear(),depot:null,type:null,user:null},users:[],depots:[],typeList:[],project:{project_total:0,project_year:0,project_finished:0,project_unfinished_nextyear:0,project_unfinished_outdate:0,project_unfinished_lastyear:0,project_currentyear:0,consult_projects:0,review_evaluate_projects:0,authenticate_projects:0,pieList:[],year_contract_amount:0,year_agree_amount:0,year_profit:0,year_cost:0,quarter_project_count:{q1:0,q2:0,q3:0,q4:0},quarter_project_collection_rate:{q1:[1,0],q2:[1,0],q3:[1,0],q4:[1,0]},quarter_project_finished_rate:{q1:[1,0],q2:[1,0],q3:[1,0],q4:[1,0]},quarter_contract_amount:{q1:0,q2:0,q3:0,q4:0},quarter_agree_amount:{q1:0,q2:0,q3:0,q4:0},quater_profit:{q1:0,q2:0,q3:0,q4:0}},lineChartData:{expectedData:[100,120,161,134,105,160,165,134,105,160,165,140],actualData:[120,82,91,154,162,140,145,154,162,140,145,130]}}},methods:{handleSetLineChartData:function(t){console.log(t)},onChange:function(){this.fetchData()},onRadioChange:function(t){this.show="部门"==t?1:0},getDepotList:function(){var t=this;Object(c["D"])({scope_type:"list"}).then((function(e){t.depots=e.data})).catch((function(t){console.log(t.message)}))},getUserList:function(){var t=this;Object(c["P"])({scope_type:"list"}).then((function(e){t.users=e.data})).catch((function(t){console.log(t.message)}))},getDictList:function(){var t=this;Object(c["E"])({scope_type:"list",category:["project-type"]}).then((function(e){t.typeList=e.data})).catch((function(t){console.log(t.message)}))},fetchData:function(){var t=this;Object(c["Q"])(Object(s["e"])(this.form)).then((function(e){t.project=e.data,e.data.plan_moneys.shift(),t.lineChartData.expectedData=e.data.plan_moneys,e.data.real_moneys.shift(),t.lineChartData.actualData=e.data.real_moneys,t.project.pieList=[{value:t.project.consult_projects,name:"咨询类"},{value:t.project.authenticate_projects,name:"认证类"},{value:t.project.review_evaluate_projects,name:"评审评价类"}]})).catch((function(t){console.log(t)}))}},created:function(){this.fetchData(),this.getDepotList(),this.getUserList(),this.getDictList(),this.role&&""!=this.role||(this.$store.dispatch("user/removeRole"),this.$store.dispatch("user/removeToken"),this.$router.push("/login"))}},m=h,v=(a("0969"),a("5d22")),j=Object(v["a"])(m,r,n,!1,null,"be22dad2",null);e["default"]=j.exports},"9e2e":function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){return function(t){function e(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,r){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){var r=a(4)(a(1),a(5),null,null);t.exports=r.exports},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,a,r){return a*(1-Math.pow(2,-10*t/r))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,r.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=t.toFixed(this.decimals),t+="";var e=t.split("."),a=e[0],r=e.length>1?this.decimal+e[1]:"",n=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;n.test(a);)a=a.replace(n,"$1"+this.separator+"$2");return this.prefix+a+r+this.suffix}},destroyed:function(){(0,r.cancelAnimationFrame)(this.rAF)}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(0),n=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=n.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",n.default)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=0,n="webkit moz ms o".split(" "),i=void 0,o=void 0;if("undefined"==typeof window)e.requestAnimationFrame=i=function(){},e.cancelAnimationFrame=o=function(){};else{e.requestAnimationFrame=i=window.requestAnimationFrame,e.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var s=void 0,c=0;c<n.length&&(!i||!o);c++)s=n[c],e.requestAnimationFrame=i=i||window[s+"RequestAnimationFrame"],e.cancelAnimationFrame=o=o||window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"];i&&o||(e.requestAnimationFrame=i=function(t){var e=(new Date).getTime(),a=Math.max(0,16-(e-r)),n=window.setTimeout((function(){t(e+a)}),a);return r=e+a,n},e.cancelAnimationFrame=o=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=i,e.cancelAnimationFrame=o},function(t,e){t.exports=function(t,e,a,r){var n,i=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(n=t,i=t.default);var s="function"==typeof i?i.options:i;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),a&&(s._scopeId=a),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(t){var e=r[t];c[t]=function(){return e}})),s.computed=c}return{esModule:n,exports:i,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))},cbc5:function(t,e,a){},decd:function(t,e,a){var r=a("4292"),n=a("61a2"),i=a("1578"),o=a("b9dd"),s=a("016e"),c=a("5c14");r({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(t){var e,a,r=o(t),n=s.f,u=i(r),l={},d=0;while(u.length>d)a=n(r,e=u[d++]),void 0!==a&&c(l,e,a);return l}})}}]);