You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.0 KiB
1 line
5.0 KiB
4 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-567c"],{"9PTB":function(t,i,a){"use strict";i.a={data:function(){return{summaryData:null}},methods:{getSummariesData:function(t){this.summaryData=t||{}},getSummaries:function(t){var i=this,a=[];return t.columns.forEach(function(t,e){a[e]=i.summaryData?i.summaryData[t.property]:""}),this.$nextTick(function(){}),a}}}},"9kPm":function(t,i,a){"use strict";i.a={data:function(){return{showTable:!0}},methods:{mixinSortFn:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=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(t))return[];if(!i)return t;t.sort(function(t,e){if(t[i]===e[i])return 0;var n=isNaN(Number(t[i]))||isNaN(Number(e[i]))?t[i]<e[i]:Number(t[i])<Number(e[i]);return"descending"===a?n?1:-1:n?-1:1})}}}},NQzI:function(t,i,a){"use strict";var e=a("ituF");a.n(e).a},ituF:function(t,i,a){},xI5Q:function(t,i,a){"use strict";a.r(i);var e=a("QbLZ"),n=a.n(e),s=a("31UX"),o=a("9kPm"),r=a("9PTB"),l=a("MT78"),c=a.n(l),u=a("JgLm"),d={name:"CustomerTotalStatistics",mixins:[s.a,o.a,r.a],data:function(){return{loading:!1,axisOption:null,postParams:{},dataIndex:null,list:[],axisList:[],fieldList:[{field:"realname",name:"员工姓名",sortable:!0},{field:"customer_num",name:"新增客户数",sortable:!0},{field:"deal_customer_num",name:"成交客户数",sortable:!0},{field:"deal_customer_rate",name:"客户成交率(%)",sortable:!0},{field:"contract_money",name:"合同总金额",sortable:!0},{field:"receivables_money",name:"回款金额",sortable:!0}]}},computed:{listPostParams:function(){var t=n()({},this.postParams);if(void 0!==this.dataIndex&&null!==this.dataIndex){var i=this.axisList[this.dataIndex];delete t.type,t.start_time=i.type,t.end_time=i.type}return t}},mounted:function(){this.initAxis()},methods:{searchClick:function(t){this.postParams=t,this.getDataList(),this.getRecordList()},getDataList:function(){var t=this;this.loading=!0,Object(u.s)(this.postParams).then(function(i){t.loading=!1;var a=i.data||[];t.axisList=a;for(var e=[],n=[],s=[],o=0;o<a.length;o++){var r=a[o];e.push(r.deal_customer_num),n.push(r.customer_num),s.push(r.type)}t.axisOption.xAxis[0].data=s,t.axisOption.series[0].data=e,t.axisOption.series[1].data=n,t.chartObj.setOption(t.axisOption,!0)}).catch(function(){t.loading=!1})},getRecordList:function(t){var i=this;this.dataIndex=t,this.list=[],this.loading=!0,Object(u.t)(this.listPostParams).then(function(t){i.loading=!1;var a=t.data||{};i.list=a.list||[],i.getSummariesData(a.total)}).catch(function(){i.loading=!1})},initAxis:function(){var t=this;this.chartObj=c.a.init(document.getElementById("axismain")),this.chartObj.on("click",function(i){t.getRecordList(i.dataIndex)}),this.axisOption={color:["#6ca2ff","#ff7474"],toolbox:this.toolbox,tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["成交客户数","新增客户数"],bottom:"0px",itemWidth:14},grid:{top:"40px",left:"20px",right:"20px",bottom:"40px",containLabel:!0,borderColor:"#fff"},xAxis:[{type:"category",data:[],axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#333"},axisLine:{lineStyle:{color:"#333"}},splitLine:{show:!1}}],yAxis:[{type:"value",name:"新增客户数",axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#333",formatter:"{value} 个"},axisLine:{lineStyle:{color:"#333"}},splitLine:{show:!1}}],series:[{name:"成交客户数",type:"bar",yAxisIndex:0,barMaxWidth:15,data:[]},{name:"新增客户数",type:"bar",yAxisIndex:0,barMaxWidth:15,data:[]}]}},exportClick:function(){this.requestExportInfo(u.u,this.listPostParams,"statistics")}}},m=(a("NQzI"),a("KHd+")),h=Object(m.a)(d,function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main-container"},[a("filtrate-handle-view",{staticClass:"filtrate-bar",attrs:{title:"客户总量分析","module-type":"customer"},on:{load
|