snow пре 1 година
родитељ
комит
8ba5a11748

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/index.html


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/css/app.c732f96b.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.4dde0565.js


BIN
dist/static/js/app.4dde0565.js.gz


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.7063cf6e.js


BIN
dist/static/js/app.7063cf6e.js.gz


+ 1 - 1
src/components/reports/src/ControlDisplay.vue

@@ -3,7 +3,7 @@
       <div class="app-main-zhunbeixuanzhuan">
         <div class="app-main-xuanzhuan">
           <div class="search clear">
-            <h3 style="display:inline-block;" class="fl">业绩报表</h3>
+            <!-- <h3 style="display:inline-block;" class="fl">业绩报表</h3> -->
             <el-date-picker
               v-model="date"
               style="margin-top:10px;"

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

@@ -35,7 +35,11 @@
             {{ unit2TenThousand(scope.row.monthinfo.msale_total) }}
           </template>
       </el-table-column>
-      <el-table-column label="月占比(%)" prop="proportion" align="center" />
+      <el-table-column label="月占比" prop="proportion" align="center">
+        <template slot-scope="scope">
+            {{ scope.row.proportion }}%
+          </template>
+      </el-table-column>
     </el-table>
   </div>
 </template>

+ 31 - 11
src/components/reports/src/WanyuReport.vue

@@ -1,11 +1,23 @@
 <template>
   <div class="SalesReportRejectedNew">
-    <div class="table-header">北京万宇恒通国际科贸有限公司</div>
+    <div class="table-header" style="line-height:36px">北京万宇恒通国际科贸有限公司</div>
     
-    <el-table>
-      <el-table-column label="月指标" />
-      <el-table-column label="完成额" />
-      <el-table-column label="完成率" />
+    <el-table size="mini" border style="margin-bottom:-1px" :data="[total]">
+      <el-table-column label="月指标" prop="total_tips">
+        <template slot-scope="scope">
+        {{unit2TenThousand(scope.row.total_tips)}}
+        </template>
+      </el-table-column>
+      <el-table-column label="完成额" prop="completion">
+        <template slot-scope="scope">
+          {{unit2TenThousand(scope.row.completion)}}
+        </template>
+      </el-table-column>
+      <el-table-column label="完成率">
+        <template slot-scope="scope">
+          {{scope.row.completionRate}}%
+        </template>
+      </el-table-column>
     </el-table>
 
     <el-table
@@ -38,9 +50,9 @@
             {{ unit2TenThousand(scope.row.monthinfo.monthNetSales) }}
           </template>
         </el-table-column>
-        <el-table-column label="净销售完成率(%)" align="center">
+        <el-table-column label="净销售完成率" align="center">
           <template slot-scope="scope">
-            {{ scope.row.monthinfo.monthProportion }}
+            {{ scope.row.monthinfo.monthProportion }}%
           </template>
         </el-table-column>
       </el-table-column>
@@ -75,9 +87,8 @@ export default {
   data() {
     return {
       total:{
-        day:0,
-        month:0,
-        total_tips: 0
+          completion: 0,
+          total_tips:0,
       },
       dataTime: this.date,
       loading: false,
@@ -111,6 +122,7 @@ export default {
   methods: {
     getCompanyLabel,
     unit2TenThousand,
+    division,
     tableRowClassName({ row, rowIndex }) {
       if ((row && row.child && row.child.length > 0) || rowIndex === 0) {
         return "warning-row";
@@ -183,9 +195,17 @@ export default {
             /* 占比 =  (当前部门销售额 / 各部门总销售额) / 100 **/
             proportion:multiplication(
               division(monthinfo.msale_total,this.total.month) || 0
-            ,100) || 0 + '%',
+            ,100) || 0
           }
         })
+
+        this.total = {
+          /* 月完成额 **/
+          completion: this.tableData.reduce((prev,current) => addition(prev,current.monthinfo.monthNetSales),0),
+          /* 月指标 **/
+          total_tips:this.tableData.reduce((prev,current) => addition(prev,current.total_tips),0),
+          completionRate:this.tableData.reduce((prev,current) => addition(prev,current.monthinfo.monthProportion),0),
+        }
       } else {
         this.tableData = [];
       }

+ 5 - 1
src/components/reports/src/WanyuTypeReport.vue

@@ -25,7 +25,11 @@
           {{ unit2TenThousand(scope.row.month) }}
         </template>
       </el-table-column>
-      <el-table-column label="月占比(%)" prop="proportion" align="center" />
+      <el-table-column label="月占比" prop="proportion" align="center">
+        <template slot-scope="scope">
+          {{ scope.row.proportion }}%
+        </template>
+      </el-table-column>
     </el-table>
   </div>
 </template>

+ 0 - 2
src/pages/report.vue

@@ -30,8 +30,6 @@ export default {
   },
   async mounted(){
     this.state.loading = true;
-    alert(getParameterByName('code'))
-    return 
     const result = await asyncRequest.userinfo(
       { code: getParameterByName('code') }
     )

Неке датотеке нису приказане због велике количине промена