Commit fba3ab26 authored by Mac's avatar Mac

1

parent 08b31377
......@@ -51,7 +51,7 @@
<table class="singeRowTable TcNewTable" border="1" cellspacing="0" cellpadding="0" :style="{width: YearSListwidth+'px'}">
<tr > <td style="font-size: 12px;" v-for='(x,y) in YearSList' :key = 'y'>{{x.Date}}</td></tr>
<tr v-for='(item,index) in leftData' :key = 'index'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearSList' :key = 'y'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearSList' :key = 'y' @click='goyearurl(x)'>
<span :style="{color: getisred(x[item.DataObj]) == true?'#FD0F05':'#111111'}">{{x[item.DataObj]}}</span>
</td>
</tr>
......@@ -70,7 +70,7 @@
<table class="singeRowTable TcNewTable" border="1" cellspacing="0" cellpadding="0" :style="{width: YearSListwidth+'px'}">
<tr > <td style="font-size: 12px;" v-for='(x,y) in YearAvgSList' :key = 'y'>{{x.Date}}</td></tr>
<tr v-for='(item,index) in leftData_t' :key = 'index'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearAvgSList' :key = 'y'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearAvgSList' :key = 'y' @click='goyearurl(x)'>
<span :style="{color: getisred(x[item.DataObj]) == true?'#FD0F05':'#111111'}">{{x[item.DataObj]}}</span>
</td>
</tr>
......@@ -89,7 +89,7 @@
<table class="singeRowTable TcNewTable" border="1" cellspacing="0" cellpadding="0" :style="{width: YearSListwidth+'px'}">
<tr > <td style="font-size: 12px;" v-for='(x,y) in YearRateSList' :key = 'y'>{{x.Date}}</td></tr>
<tr v-for='(item,index) in leftData_tr' :key = 'index'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearRateSList' :key = 'y'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearRateSList' :key = 'y' @click='goyearurl(x)'>
<span :style="{color: getisred(x[item.DataObj]) == true?'#FD0F05':'#111111'}">{{x[item.DataObj]}}%</span>
</td>
</tr>
......@@ -110,7 +110,7 @@
<table class="singeRowTable TcNewTable" border="1" cellspacing="0" cellpadding="0" :style="{width: YearSListwidth+'px'}">
<tr > <td style="font-size: 12px;" v-for='(x,y) in YearAvgSList' :key = 'y'>{{x.Date}}</td></tr>
<tr v-for='(item,index) in leftData_t' :key = 'index'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearAvgSList' :key = 'y'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearAvgSList' :key = 'y' @click='goyearurl(x)'>
<span :style="{color: getisred(x[item.DataObj]) == true?'#FD0F05':'#111111'}">{{x[item.DataObj]}}</span>
</td>
</tr>
......@@ -129,7 +129,7 @@
<table class="singeRowTable TcNewTable" border="1" cellspacing="0" cellpadding="0" :style="{width: YearSListwidth+'px'}">
<tr > <td style="font-size: 12px;" v-for='(x,y) in YearRateSList' :key = 'y'>{{x.Date}}</td></tr>
<tr v-for='(item,index) in leftData_tr' :key = 'index'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearRateSList' :key = 'y'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in YearRateSList' :key = 'y' @click='goyearurl(x)'>
<span :style="{color: getisred(x[item.DataObj]) == true?'#FD0F05':'#111111'}">{{x[item.DataObj]}}%</span>
</td>
</tr>
......@@ -325,6 +325,18 @@
"电商年度比统计.xls"
);
},
goyearurl(x){
console.log(x)
if(x.Date.indexOf('成')==-1){
this.$router.push({
name: 'dianshangyeardata',
query: {
timedata: x.Date,
blank:'y'
}
});
}
},
......@@ -544,5 +556,8 @@
.dianshangannualRatio tr{
height: 30px !important;
}
.dianshangannualRatio tr td{
cursor: pointer;
}
</style>
\ No newline at end of file
......@@ -218,81 +218,12 @@
<div style="width:1px; overflow:scroll;flex:1" >
<table class="singeRowTable TcNewTable" border="1" cellspacing="0" cellpadding="0" :style="{width: tablewidth+'px'}">
<tr > <td class="qthuanbicheng" style="width:90px;font-size: 12px;" v-for='(x,y) in RateList' :key = 'y'>{{x.Date}}</td></tr>
<tr> <td v-for='(x,y) in RateList' :key = 'y'><span :style="{color: getisred(x.MAvgPeopleNum) == true?'#FD0F05':'#111111'}">{{x.MAvgPeopleNum}}%</span> </td></tr>
<tr><td v-for='(x,y) in RateList' :key = 'y'><span :style="{color: getisred(x.MAvgOrderNum) == true?'#FD0F05':'#111111'}">{{x.MAvgOrderNum}}%</span></td></tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.MAvgPayMoney) == true?'#FD0F05':'#111111'}">{{x.MAvgPayMoney}}%</span>
<tr v-for='(item,index) in leftData' :key = 'index'>
<td :class="x.Date.indexOf('成長率')!=-1?'growthrate':'yearstyle'" style="font-size: 12px;" v-for='(x,y) in RateList' :key = 'y' >
<span :style="{color: getisred(x[item.DataObj]) == true?'#FD0F05':'#111111'}">{{x[item.DataObj]}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.MAvgBuyNum) == true?'#FD0F05':'#111111'}">{{x.MAvgBuyNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgOrderNum) == true?'#FD0F05':'#111111'}">{{x.PAvgOrderNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgBuyNum) == true?'#FD0F05':'#111111'}">{{x.PAvgBuyNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgUnitPrice) == true?'#FD0F05':'#111111'}">{{x.PAvgUnitPrice}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgBuyPrice) == true?'#FD0F05':'#111111'}">{{x.PAvgBuyPrice}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgProfitRate) == true?'#FD0F05':'#111111'}">{{x.PAvgProfitRate}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgProfit) == true?'#FD0F05':'#111111'}">{{x.PAvgProfit}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgMOrderRate) == true?'#FD0F05':'#111111'}">{{x.PAvgMOrderRate}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgPXNum) == true?'#FD0F05':'#111111'}">{{x.PAvgPXNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgVipNum) == true?'#FD0F05':'#111111'}">{{x.PAvgVipNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgYXNum) == true?'#FD0F05':'#111111'}">{{x.PAvgYXNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgJXNum) == true?'#FD0F05':'#111111'}">{{x.PAvgJXNum}}%</span>
</td>
</tr>
<tr>
<td v-for='(x,y) in RateList' :key = 'y'>
<span :style="{color: getisred(x.PAvgTotalMNum) == true?'#FD0F05':'#111111'}">{{x.PAvgTotalMNum}}%</span>
</td>
</tr>
</tr>
</table>
</div>
</div>
......@@ -346,6 +277,11 @@
let nowtime = new Date()
this.msg.StartTime = (nowtime.getFullYear()-1) + '-' +((nowtime.getMonth()+1)<10 ?'0'+(nowtime.getMonth()+1):nowtime.getMonth()+1)
this.msg.EndTime = nowtime.getFullYear() + '-' +((nowtime.getMonth()+1)<10 ?'0'+(nowtime.getMonth()+1):nowtime.getMonth()+1)
if (this.$route.query.timedata) {
this.msg.StartTime=this.$route.query.timedata+'-01';
this.msg.EndTime=this.$route.query.timedata+'-12';
console.log(this.msg,'msg')
}
this.getDateList()
},
methods: {
......
......@@ -150,29 +150,50 @@
</el-table-column>
</el-table>
<div style="display: flex;margin-top: 20px;">
<el-table :data="averageData" v-loading="loading" header-cell-class-name="headClass" style="width: 580px !important;" border header-row-class-name='angclass' row-class-name="angclass">
<el-table-column label="" prop="OrderNo" fixed>
<el-table :data="averageData" v-loading="loading" header-cell-class-name="headClass" style="width: 1300px;margin-top: 20px;" border header-row-class-name='angclass' row-class-name="angclass">
<el-table-column label="" prop="OrderNo" width='80' fixed>
<template slot-scope="scope">
<span>月小计</span>
</template>
</el-table-column>
<el-table-column label="付款人数累计" prop='TotalPeopleNum' ></el-table-column>
<el-table-column label="付款单数累计" prop="TotalOrderNum" ></el-table-column>
<el-table-column label="付款金额累计" prop="TotalPayMoney" ></el-table-column>
<el-table-column label="购买件数累计" prop="TotalBuyNum" ></el-table-column>
<el-table-column label="付款人数累计" prop='TotalPeopleNum' width='125'></el-table-column>
<el-table-column label="付款单数累计" prop="TotalOrderNum" width='125'></el-table-column>
<el-table-column label="付款金额累计" prop="TotalPayMoney" width='120'></el-table-column>
<el-table-column label="购买件数累计" prop="TotalBuyNum" width='120'></el-table-column>
<el-table-column label="" prop=" " >
<template slot-scope="scope">
<span style="opacity: 0;">1</span>
</template>
</el-table-column>
<el-table-column label="普象累计" prop="TotalPXNum" width='120'></el-table-column>
<el-table-column label="VIP累计" prop='TotalVIPNum' width='120'></el-table-column>
<el-table-column label="银象累計" prop="TotalYXNum" width='120'></el-table-column>
<el-table-column label="金象累计" prop="TotalJXNum" width='120'></el-table-column>
<el-table-column label="会员总数" prop="TotalBuyNum" width='120'>
<template slot-scope="scope">
<span>{{scope.row.TotalPXNum + scope.row.TotalVIPNum + scope.row.TotalYXNum + scope.row.TotalJXNum }}</span>
</template>
</el-table-column>
</el-table>
<el-table :data="averageData" v-loading="loading" header-cell-class-name="headClass" style="width: 210px;" border :show-header='false' >
<el-table-column label="" prop="OrderNo" width='80' >
<template slot-scope="scope">
<span>月毛利</span>
</template>
</el-table-column>
<el-table-column label="" prop='MonthProfit' width=''></el-table-column>
</el-table>
<el-table :data="averageData" v-loading="loading" header-cell-class-name="headClass" style="width: 210px;" border :show-header='false' >
<el-table-column label="" prop="OrderNo" width='80' >
<template slot-scope="scope">
<span>毛利率</span>
</template>
</el-table-column>
<el-table-column label="" prop='MonthProfitRate' width=''></el-table-column>
</el-table>
<el-table :data="averageData" v-loading="loading" header-cell-class-name="headClass" style="width: 580px !important;margin-left: 20px;" border header-row-class-name='angclass' row-class-name="angclass">
<el-table-column label="普象累计" prop="TotalPXNum" fixed></el-table-column>
<el-table-column label="VIP累计" prop='TotalVIPNum' ></el-table-column>
<el-table-column label="银象累計" prop="TotalYXNum" ></el-table-column>
<el-table-column label="金象累计" prop="TotalJXNum" ></el-table-column>
<el-table-column label="会员总数" prop="TotalBuyNum" ></el-table-column>
</el-table>
</div>
</div>
......
......@@ -3943,20 +3943,20 @@ export default {
title: '粉象损益核算'
},
},
{ //财务 电商数据
{ //财务 电商月度报表
path: '/onlineRetailersdata',
name: 'onlineRetailersdata',
component: resolve => require(['@/components/FinancialModule/ReportForm/onlineRetailersdata'], resolve),
meta: {
title: '电商数据'
title: '电商月度报表'
},
},
{ //财务 年度电商数据
{ //财务 电商每月报表
path: '/dianshangyeardata',
name: 'dianshangyeardata',
component: resolve => require(['@/components/FinancialModule/ReportForm/dianshangyeardata'], resolve),
meta: {
title: '年度电商数据'
title: '电商每月报表'
},
},
{ //财务 电商年度比数据
......
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