Commit 6eb954f8 authored by Mac's avatar Mac

1

parent f324acf0
...@@ -38,9 +38,12 @@ ...@@ -38,9 +38,12 @@
</div> </div>
<div style="padding: 15px ;background: #FFF;"> <div style="padding: 15px ;background: #FFF;">
<el-table :data="DataList" v-loading="loading" header-cell-class-name="headClass" style="width: 100%;" border :row-class-name="tableRowClassName" :cell-style="columnStyle"> <el-table :data="DataList" v-loading="loading" header-cell-class-name="headClass" header-row-class-name='angclass' style="width: 100%;" border :row-class-name="tableRowClassName" :cell-style="columnStyle">
<el-table-column label="月份" prop="Date" width='80' fixed> <el-table-column label="月份" prop="Date" width='80' fixed>
<template slot-scope="scope">
<span v-if="scope.row.Date == '平均/总计'" >平均</span>
<span v-else>{{scope.row.Date}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="平均付款人数(天)" prop='MAvgPeopleNum' width='125'> <el-table-column label="平均付款人数(天)" prop='MAvgPeopleNum' width='125'>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -132,7 +135,14 @@ ...@@ -132,7 +135,14 @@
<span v-else>{{scope.row.PAvgProfitRate}}</span> <span v-else>{{scope.row.PAvgProfitRate}}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table>
<el-table :data="DataList" v-loading="loading" header-cell-class-name="headClass" header-row-class-name='angclass' style="width: 100%;margin-top: 20px;" border :row-class-name="tableRowClassName2" :cell-style="columnStyle">
<el-table-column label="月份" prop="Date" width='80' fixed>
<template slot-scope="scope">
<span v-if="scope.row.Date == '平均/总计'" >总计</span>
<span v-else>{{scope.row.Date}}</span>
</template>
</el-table-column>
<el-table-column label="付款人数累计" prop="PeopleNum" width='120'> <el-table-column label="付款人数累计" prop="PeopleNum" width='120'>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="getisred(scope.row.PeopleNum) == true" style="color: #FD0F05;">{{scope.row.PeopleNum}}</span> <span v-if="getisred(scope.row.PeopleNum) == true" style="color: #FD0F05;">{{scope.row.PeopleNum}}</span>
...@@ -358,6 +368,7 @@ ...@@ -358,6 +368,7 @@
return return
} }
this.loading = true; this.loading = true;
this.RateList=[];
this.mallapipost("/api/LiveHouse/GetDSMoreMonthStatistics", this.msg, res => { this.mallapipost("/api/LiveHouse/GetDSMoreMonthStatistics", this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -411,12 +422,19 @@ ...@@ -411,12 +422,19 @@
}, },
tableRowClassName({row, rowIndex}){ tableRowClassName({row, rowIndex}){
if(row.hasOwnProperty('Date') && row.Date=='平均' ){ if(row.hasOwnProperty('Date') && row.Date=='平均/总计' ){
return 'huanbichengz' return 'huanbichengz'
}else{ }else{
return 'monthstyel' return 'monthstyel'
} }
}, },
tableRowClassName2({row, rowIndex}){
if(row.hasOwnProperty('Date') && row.Date=='平均/总计' ){
return 'monthstyel2'
}else{
return 'monthstyel3'
}
},
columnStyle({row, column, rowIndex, columnIndex}){ columnStyle({row, column, rowIndex, columnIndex}){
if(row.hasOwnProperty('DateStr') && (columnIndex==1|| columnIndex==2||columnIndex==3||columnIndex==4)){ if(row.hasOwnProperty('DateStr') && (columnIndex==1|| columnIndex==2||columnIndex==3||columnIndex==4)){
return 'background:#FFF;' return 'background:#FFF;'
...@@ -558,7 +576,7 @@ ...@@ -558,7 +576,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.dianshangyeardata .el-table .angclass{ .dianshangyeardata .angclass{
background: #FDC022; background: #FDC022;
} }
.dianshangyeardata .el-table .huanbichengz{ .dianshangyeardata .el-table .huanbichengz{
...@@ -571,6 +589,13 @@ ...@@ -571,6 +589,13 @@
.dianshangyeardata .el-table .monthstyel{ .dianshangyeardata .el-table .monthstyel{
background: #F6C8AB; background: #F6C8AB;
} }
.dianshangyeardata .el-table .monthstyel2{
background: #F6CAAD;
}
.dianshangyeardata .el-table .monthstyel3{
background: #FE9A6B;
}
.dianshangyeardata .el-table .whitestyle{ .dianshangyeardata .el-table .whitestyle{
background: #FFF; background: #FFF;
} }
......
...@@ -3956,9 +3956,18 @@ export default { ...@@ -3956,9 +3956,18 @@ export default {
name: 'dianshangyeardata', name: 'dianshangyeardata',
component: resolve => require(['@/components/FinancialModule/ReportForm/dianshangyeardata'], resolve), component: resolve => require(['@/components/FinancialModule/ReportForm/dianshangyeardata'], resolve),
meta: { meta: {
title: '电商数据' title: '年度电商数据'
},
}, },
{ //财务 电商年度比数据
path: '/dianshangannualRatio',
name: 'dianshangannualRatio',
component: resolve => require(['@/components/FinancialModule/ReportForm/dianshangannualRatio'], resolve),
meta: {
title: '电商年度比数据'
}, },
},
{ //财务 线路收客 { //财务 线路收客
path: '/LineReceiver', path: '/LineReceiver',
name: 'LineReceiver', name: 'LineReceiver',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment