Your Name 1 年之前
父节点
当前提交
213251614f
共有 3 个文件被更改,包括 95 次插入32 次删除
  1. 8 0
      src/api/develop.js
  2. 41 13
      src/pages/reader/develop.vue
  3. 46 19
      src/pages/reader/develop2.vue

+ 8 - 0
src/api/develop.js

@@ -78,6 +78,14 @@ export function getChannelData(params) {
     params
   });
 }
+// 获取分销渠道数据
+export function getChannelData2(params) {
+  return service({
+    url: "/statistics/develop/list1",
+    method: "get",
+    params
+  });
+}
 // 获取数据统计
 export function getTotalData(params) {
   return service({

+ 41 - 13
src/pages/reader/develop.vue

@@ -52,14 +52,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"
@@ -73,13 +86,28 @@
         </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"
@@ -191,7 +219,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
     }
   }

+ 46 - 19
src/pages/reader/develop2.vue

@@ -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
     }
   }