diff --git a/src/assets/js/utils/request.js b/src/assets/js/utils/request.js index 7e4dd77a1..e4d61fa5a 100644 --- a/src/assets/js/utils/request.js +++ b/src/assets/js/utils/request.js @@ -99,6 +99,9 @@ let performanceRanking = ['/data/performance/getComList', '/data/performance/get let hgb = ['/sale/order/selectHgb', '/sale/order/getHgbDetail'] let whitelist = ['/agent/white/getWhiteInfo'] +// 开门红 +let goodStart = ['/data/performance/getComPerformance'] + let whiteList = [ '/customer/agent/getCustomersList', ...proposal, @@ -112,7 +115,8 @@ let whiteList = [ ...renewalManage, ...performanceRanking, ...hgb, - ...whitelist + ...whitelist, + ...goodStart ] // 创建axios实例 diff --git a/src/views/ebiz/goodStart/Organization.vue b/src/views/ebiz/goodStart/Organization.vue index c7177af63..4c325a77e 100644 --- a/src/views/ebiz/goodStart/Organization.vue +++ b/src/views/ebiz/goodStart/Organization.vue @@ -11,6 +11,13 @@ {{ column.name }} + + 合计 + {{ totalYsbb }} + {{ totalYsjs }} + {{ totalBzbf }} + {{ totalCbjs }} + {{ index + 1 }} {{ value[key] | blankFilter }} @@ -56,7 +63,11 @@ export default { { name: '承保标保(万元)', key: 'bzbf' }, { name: '承保件数(件)', key: 'cbjs' } ], - values: [] + values: [], + totalYsbb: 0, + totalYsjs: 0, + totalBzbf: 0, + totalCbjs: 0 } }, watch: { @@ -90,15 +101,25 @@ export default { } } } + this.calculateTotal() }, - calculate() { - let allPrice = this.values.reduce((prevVal, currVal) => { - return prevVal + Number(currVal.cbbb) - }, 0) - this.values.map(product => { - product.percent = ((product.cbbb / allPrice) * 100).toFixed(2) - return product - }) + calculateTotal() { + this.totalYsbb = 0 + this.totalYsjs = 0 + this.totalBzbf = 0 + this.totalCbjs = 0 + for (let data of this.values) { + let ysbb = isNaN(parseFloat(data.ysbb)) ? 0 : parseFloat(data.ysbb) + let ysjs = isNaN(parseInt(data.ysjs)) ? 0 : parseInt(data.ysjs) + let bzbf = isNaN(parseFloat(data.bzbf)) ? 0 : parseFloat(data.bzbf) + let cbjs = isNaN(parseInt(data.cbjs)) ? 0 : parseInt(data.cbjs) + this.totalYsbb += ysbb + this.totalYsjs += ysjs + this.totalBzbf += bzbf + this.totalCbjs += cbjs + } + this.totalYsbb = this.totalYsbb.toFixed(2) + this.totalBzbf = this.totalBzbf.toFixed(2) } }, filters: { diff --git a/src/views/ebiz/product/HomeProduct.vue b/src/views/ebiz/product/HomeProduct.vue index 3b3854453..5da695e1f 100644 --- a/src/views/ebiz/product/HomeProduct.vue +++ b/src/views/ebiz/product/HomeProduct.vue @@ -62,7 +62,7 @@
- +
@@ -76,7 +76,7 @@ - @@ -91,7 +91,7 @@ - @@ -303,7 +303,7 @@ td.sticky-col:nth-of-type(1) { th.sticky-col:nth-of-type(2), td.sticky-col:nth-of-type(2) { position: sticky; - left: 59px; + left: 53px; } .home-product-container { @@ -358,7 +358,7 @@ td.sticky-col:nth-of-type(2) { border-collapse: collapse; td, th { - padding: 10px 5px; + padding: 10px 2px; background-color: #fff3f1; color: #d84535; font-size: 14px;
{{ thead }}
{{ org.cbbfMon | blankFilter }}
+ 暂无数据 {{ org.bzbf | blankFilter }}
+ 暂无数据