(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-459d"],{"9kPm":function(t,e,n){"use strict";e.a={data:function(){return{showTable:!0}},methods:{mixinSortFn:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if("[object Array]"!==Object.prototype.toString.call(t))return[];if(!e)return t;t.sort(function(t,a){if(t[e]===a[e])return 0;var i=isNaN(Number(t[e]))||isNaN(Number(a[e]))?t[e]<a[e]:Number(t[e])<Number(a[e]);return"descending"===n?i?1:-1:i?-1:1})}}}},VKbm:function(t,e,n){},db54:function(t,e,n){"use strict";var a=n("VKbm");n.n(a).a},"f+T/":function(t,e,n){"use strict";n.r(e);var a=n("9kPm"),i=n("31UX"),o=n("vwqx"),s={name:"AchievementSummaryStatistics",components:{FiltrateHandleView:n("CMIa").a},mixins:[i.a,a.a],data:function(){return{loading:!1,tableHeight:document.documentElement.clientHeight-240,postParams:{},list:[],data:{back_zong:0,count_zong:0,money_zong:0,w_back_zong:0},fieldList:[{field:"type",name:"日期"},{field:"contractNum",name:"签约合同数（个）"},{field:"contractMoney",name:"签约合同金额（元）"},{field:"receivablesMoney",name:"回款金额（元）"}]}},computed:{},mounted:function(){var t=this;window.onresize=function(){t.tableHeight=document.documentElement.clientHeight-240}},methods:{getDataList:function(t){var e=this;this.postParams=t,this.loading=!0,Object(o.e)(t).then(function(t){var n=t.data;e.data={back_zong:n.receivablesMoney,count_zong:n.contractNum,money_zong:n.contractMoney,w_back_zong:n.unreceivedMoney},e.list=n.list||[],e.loading=!1}).catch(function(){e.loading=!1})},exportClick:function(){this.requestExportInfo(o.f,this.postParams)}}},c=(n("db54"),n("KHd+")),r=Object(c.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main-container"},[n("filtrate-handle-view",{staticClass:"filtrate-bar",attrs:{"show-year-select":!0,title:"合同汇总表","module-type":"contract"},on:{load:function(e){t.loading=!0},change:t.getDataList}},[n("el-button",{staticClass:"export-button",attrs:{type:"primary"},nativeOn:{click:function(e){return t.exportClick(e)}}},[t._v("导出")])],1),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"content-title"},[t._v("\n      签约合同数："+t._s(t.data.count_zong)+"个；签约合同金额："),n("span",{staticClass:"special"},[t._v(t._s(t.data.money_zong))]),t._v("元；回款金额："),n("span",{staticClass:"special"},[t._v(t._s(t.data.back_zong))]),t._v("元；未收款金额："),n("span",{staticClass:"special"},[t._v(t._s(t.data.w_back_zong))]),t._v("元")]),t._v(" "),n("div",{staticClass:"table-content"},[t.showTable?n("el-table",{attrs:{data:t.list,height:t.tableHeight,stripe:"",border:"","highlight-current-row":""},on:{"sort-change":function(e){var n=e.prop,a=e.order;return t.mixinSortFn(t.list,n,a)}}},t._l(t.fieldList,function(t,e){return n("el-table-column",{key:e,attrs:{prop:t.field,label:t.name,sortable:"custom",align:"center","header-align":"center","show-overflow-tooltip":""}})})):t._e()],1)])],1)},[],!1,null,"49e7275e",null);r.options.__file="AchievementSummaryStatistics.vue";e.default=r.exports}}]);