snow 2 жил өмнө
parent
commit
dd9e981f34

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/index.html


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/css/app.7099a3c2.css


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/app.0c635f5f.js


BIN
dist/static/js/app.0c635f5f.js.gz


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/app.faf47ed1.js


BIN
dist/static/js/app.faf47ed1.js.gz


+ 3 - 3
src/App.vue

@@ -27,15 +27,15 @@
             </li>
             </li>
 
 
             <li style="margin-bottom:20px">
             <li style="margin-bottom:20px">
-              <department-report name="百辰荣达" companyNo="GS2302231125079621" :date="currentDate" />
+              <department-report companyNo="GS2302231125079621" :date="currentDate" />
             </li>
             </li>
 
 
             <li style="margin-bottom:20px">
             <li style="margin-bottom:20px">
-              <department-report name="普润心堂" companyNo="GS2302231124114965" :date="currentDate" />
+              <department-report companyNo="GS2302231124114965" :date="currentDate" />
             </li>
             </li>
 
 
             <li style="margin-bottom:20px">
             <li style="margin-bottom:20px">
-              <department-report name="宏源广诚" companyNo="GS2302231323386950" :date="currentDate" />
+              <department-report companyNo="GS2302231323386950" :date="currentDate" />
             </li>
             </li>
           </ul>
           </ul>
         </div>
         </div>

+ 5 - 5
src/components/reports/src/DepartmentReport.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div class="SalesReportRejectedNew">
   <div class="SalesReportRejectedNew">
-    <h3 class="table-header">{{name}}业绩报表</h3>
+    <h3 class="table-header">{{companyName || '--'}}业绩报表</h3>
 
 
     <div class="table-sub__header">
     <div class="table-sub__header">
       <span>月指标:</span>{{ stats.total_tips }}
       <span>月指标:</span>{{ stats.total_tips }}
@@ -31,7 +31,6 @@
           </template>
           </template>
       </el-table-column>
       </el-table-column>
 
 
-
       <el-table-column label="本月销售额" min-width="120" align="center">
       <el-table-column label="本月销售额" min-width="120" align="center">
         <template slot-scope="scope">
         <template slot-scope="scope">
             {{ unit2TenThousand(scope.row.monthinfo.msale_total) }}
             {{ unit2TenThousand(scope.row.monthinfo.msale_total) }}
@@ -66,14 +65,13 @@ export default {
       const completion = subtraction(month, monthReturn)
       const completion = subtraction(month, monthReturn)
        /* 完成率 = 完成额 / 月指标 **/
        /* 完成率 = 完成额 / 月指标 **/
       const completionRate = multiplication(division(completion,total_tips) || 0, 100).toFixed(2)
       const completionRate = multiplication(division(completion,total_tips) || 0, 100).toFixed(2)
-      
       return {
       return {
         /* 月指标 **/
         /* 月指标 **/
         total_tips: unit2TenThousand(total_tips),
         total_tips: unit2TenThousand(total_tips),
         /* 完成额 **/
         /* 完成额 **/
         month: unit2TenThousand(completion),
         month: unit2TenThousand(completion),
         /* 完成率 **/
         /* 完成率 **/
-        completionRate:completionRate + '%'
+        completionRate: completionRate + '%'
       }
       }
     }
     }
   },
   },
@@ -85,6 +83,7 @@ export default {
         total_tips: 0,
         total_tips: 0,
         monthReturn:0
         monthReturn:0
       },
       },
+      companyName:"",
       mapReponseType,
       mapReponseType,
       dataTime: this.date,
       dataTime: this.date,
       loading: false,
       loading: false,
@@ -121,7 +120,8 @@ export default {
       });
       });
 
 
       if (res.code === 0 && res.data && res.data.length > 0) {
       if (res.code === 0 && res.data && res.data.length > 0) {
-        const { monthinfo = [], dayinfo = [], total_tips = 0 } = res.data[0] || [];
+        const { monthinfo = [], dayinfo = [], total_tips = 0, companyName } = res.data[0] || [];
+        this.companyName = companyName
         const types = Object.keys(mapReponseType)
         const types = Object.keys(mapReponseType)
 
 
 
 

+ 12 - 6
src/components/reports/src/WanyuReport.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div class="SalesReportRejectedNew">
   <div class="SalesReportRejectedNew">
-    <h3 class="table-header">万宇业绩报表</h3>
+    <h3 class="table-header">北京万宇恒通国际科贸有限公司业绩报表</h3>
 
 
     <el-table
     <el-table
       :data="tableData"
       :data="tableData"
@@ -16,9 +16,9 @@
     >
     >
       <el-table-column label="部门" fixed="left" min-width="120" prop="depart" />
       <el-table-column label="部门" fixed="left" min-width="120" prop="depart" />
       <el-table-column label="本日销售额" min-width="120" align="center">
       <el-table-column label="本日销售额" min-width="120" align="center">
-        <template slot-scope="scope">
+         <template slot-scope="scope">
             {{ unit2TenThousand(scope.row.dayinfo.sale_total) }}
             {{ unit2TenThousand(scope.row.dayinfo.sale_total) }}
-          </template>
+         </template>
       </el-table-column>
       </el-table-column>
 
 
 
 
@@ -49,7 +49,14 @@
 <script>
 <script>
 import asyncRequest from "@/api/report";
 import asyncRequest from "@/api/report";
 import setHeight from "@/mixins/index";
 import setHeight from "@/mixins/index";
-import { addition, unit2TenThousand,multiplication,division, subtraction } from "./_utils";
+import { 
+  addition, 
+  unit2TenThousand,
+  multiplication,
+  division, 
+  subtraction 
+} from "./_utils";
+
 export default {
 export default {
   name: "WanyuReport",
   name: "WanyuReport",
   props: ["date"],
   props: ["date"],
@@ -155,7 +162,6 @@ export default {
           const monthNetSales = subtraction(monthinfo.msale_total, monthinfo.mth_total)
           const monthNetSales = subtraction(monthinfo.msale_total, monthinfo.mth_total)
           /* 月经销售完成率 = 月净销售 / 销售指标 **/
           /* 月经销售完成率 = 月净销售 / 销售指标 **/
           const monthProportion = multiplication(division(monthNetSales,total_tips),100).toFixed(2)
           const monthProportion = multiplication(division(monthNetSales,total_tips),100).toFixed(2)
-
           return {
           return {
             depart,
             depart,
             total_tips,
             total_tips,
@@ -170,7 +176,7 @@ export default {
             },
             },
             /* 占比 =  (当前部门销售额 / 各部门总销售额) / 100 **/
             /* 占比 =  (当前部门销售额 / 各部门总销售额) / 100 **/
             proportion:multiplication(
             proportion:multiplication(
-             division(monthinfo.msale_total,this.total.month) || 0
+              division(monthinfo.msale_total,this.total.month) || 0
             ,100) || 0 + '%',
             ,100) || 0 + '%',
           }
           }
         })
         })

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно