|
@@ -20,7 +20,7 @@
|
|
|
<el-button type="primary" @click="submitForm">搜索</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table id="table" ref="table1" :data="tableData" border style="width: 100%" show-summary
|
|
|
+ <el-table id="table" ref="table1" :data="tableData" border style="width: 100%" show-summary
|
|
|
:summary-method="getSummaries">
|
|
|
<el-table-column label="日期" fixed align="center" header-align="center" min-width="140px">
|
|
|
<template slot-scope="scope">
|
|
@@ -53,14 +53,27 @@
|
|
|
min-width="100px"></el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="新增销售金额" header-align="center">
|
|
|
- <el-table-column label="月包" prop="dailyAddMonthAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
- <el-table-column label="年包" prop="dailyAddYearAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
+ <el-table-column label="月包" prop="dailyAddMonthAmount" align="right" header-align="center" min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyAddMonthAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="年包" prop="dailyAddYearAmount" align="right" header-align="center" min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyAddYearAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="终身" prop="dailyAddLifelongAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
- <el-table-column label="小计" prop="dailyAddAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
+ min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyAddLifelongAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="小计" prop="dailyAddAmount" align="right" header-align="center" min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyAddAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="退订订单数量" header-align="center">
|
|
|
<el-table-column label="月包" prop="dailyRefundMonthCount" align="right" header-align="center"
|
|
@@ -74,25 +87,39 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="退订销售金额" header-align="center">
|
|
|
<el-table-column label="月包" prop="dailyRefundMonthAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
+ min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyRefundMonthAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="年包" prop="dailyRefundYearAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
+ min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyRefundYearAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="终身" prop="dailyRefundLifelongAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
- <el-table-column label="小计" prop="dailyRefundAmount" align="right" header-align="center"
|
|
|
- min-width="100px"></el-table-column>
|
|
|
+ min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyRefundLifelongAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="小计" prop="dailyRefundAmount" align="right" header-align="center" min-width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.dailyRefundAmount/100}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination style="text-align: center;" @current-change="submitForm"
|
|
|
- :current-page.sync="pagination.pageNo" :page-size="pagination.pageSize" layout="total, prev, pager, next"
|
|
|
- :total="pagination.totalSize">
|
|
|
+ <el-pagination style="text-align: center;" @current-change="submitForm" :current-page.sync="pagination.pageNo"
|
|
|
+ :page-size="pagination.pageSize" layout="total, prev, pager, next" :total="pagination.totalSize">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import formatDate from "../../utils/formatTime";
|
|
|
-import { getSaleUser, getChannelData, getTotalData2 } from '@/api/develop.js'
|
|
|
+import { getSaleUser, getChannelData2, getTotalData2 } from '@/api/develop.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -128,7 +155,7 @@ export default {
|
|
|
: "";
|
|
|
this.$refs['skillParams'].validate(async valid => {
|
|
|
if (valid) {
|
|
|
- let res = await getChannelData(Object.assign({
|
|
|
+ let res = await getChannelData2(Object.assign({
|
|
|
saleUserId: this.skillParams.saleUserId,
|
|
|
startDay: this.skillParams.startDay, endDay: this.skillParams.endDay
|
|
|
}, this.pagination))
|
|
@@ -169,7 +196,7 @@ export default {
|
|
|
getSummaries() {
|
|
|
let d = this.totalData
|
|
|
let value = ['合计', '']
|
|
|
- value.push(...[d.dailyAdd,d.dailyLogout,d.dailyNetCount,d.dailyStock,d.dailyAddMonthCount,d.dailyAddYearCount,d.dailyAddLifelongCount,d.dailyAddCount,d.dailyAddMonthAmount,d.dailyAddYearAmount,d.dailyAddLifelongAmount,d.dailyAddAmount,d.dailyRefundMonthCount,d.dailyRefundYearCount,d.dailyRefundLifelongCount,d.dailyRefundCount,d.dailyRefundMonthAmount,d.dailyRefundYearAmount,d.dailyRefundLifelongAmount,d.dailyRefundAmount])
|
|
|
+ value.push(...[d.dailyAdd, d.dailyLogout, d.dailyNetCount, d.dailyStock, d.dailyAddMonthCount, d.dailyAddYearCount, d.dailyAddLifelongCount, d.dailyAddCount, d.dailyAddMonthAmount/100, d.dailyAddYearAmount/100, d.dailyAddLifelongAmount/100, d.dailyAddAmount/100, d.dailyRefundMonthCount, d.dailyRefundYearCount, d.dailyRefundLifelongCount, d.dailyRefundCount, d.dailyRefundMonthAmount/100, d.dailyRefundYearAmount/100, d.dailyRefundLifelongAmount/100, d.dailyRefundAmount/100])
|
|
|
return value
|
|
|
}
|
|
|
}
|