Browse Source

增加销售报表

LongjoeDyy 6 years ago
parent
commit
1ff2288ab5

BIN
src/assets/bingtu_01.jpg


BIN
src/assets/bingtu_02.jpg


+ 69 - 0
src/assets/iconfont/demo_index.html

@@ -138,12 +138,24 @@
                 <div class="code-name">&amp;#xe745;</div>
               </li>
           
+            <li class="dib">
+              <span class="icon iconfont">&#xe630;</span>
+                <div class="name">下拉</div>
+                <div class="code-name">&amp;#xe630;</div>
+              </li>
+          
             <li class="dib">
               <span class="icon iconfont">&#xe604;</span>
                 <div class="name">公文管理</div>
                 <div class="code-name">&amp;#xe604;</div>
               </li>
           
+            <li class="dib">
+              <span class="icon iconfont">&#xe62f;</span>
+                <div class="name">选择</div>
+                <div class="code-name">&amp;#xe62f;</div>
+              </li>
+          
             <li class="dib">
               <span class="icon iconfont">&#xe623;</span>
                 <div class="name">account</div>
@@ -726,6 +738,12 @@
                 <div class="code-name">&amp;#xe710;</div>
               </li>
           
+            <li class="dib">
+              <span class="icon iconfont">&#xe73a;</span>
+                <div class="name">提示</div>
+                <div class="code-name">&amp;#xe73a;</div>
+              </li>
+          
             <li class="dib">
               <span class="icon iconfont">&#xe61c;</span>
                 <div class="name">回复</div>
@@ -974,6 +992,15 @@
             </div>
           </li>
           
+          <li class="dib">
+            <span class="icon iconfont icon-xiala1"></span>
+            <div class="name">
+              下拉
+            </div>
+            <div class="code-name">.icon-xiala1
+            </div>
+          </li>
+          
           <li class="dib">
             <span class="icon iconfont icon-icon-test"></span>
             <div class="name">
@@ -983,6 +1010,15 @@
             </div>
           </li>
           
+          <li class="dib">
+            <span class="icon iconfont icon-xuanze1"></span>
+            <div class="name">
+              选择
+            </div>
+            <div class="code-name">.icon-xuanze1
+            </div>
+          </li>
+          
           <li class="dib">
             <span class="icon iconfont icon-account"></span>
             <div class="name">
@@ -1856,6 +1892,15 @@
             </div>
           </li>
           
+          <li class="dib">
+            <span class="icon iconfont icon-tishi"></span>
+            <div class="name">
+              提示
+            </div>
+            <div class="code-name">.icon-tishi
+            </div>
+          </li>
+          
           <li class="dib">
             <span class="icon iconfont icon-huifu1"></span>
             <div class="name">
@@ -2083,6 +2128,14 @@
                 <div class="code-name">#icon-erweima</div>
             </li>
           
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-xiala1"></use>
+                </svg>
+                <div class="name">下拉</div>
+                <div class="code-name">#icon-xiala1</div>
+            </li>
+          
             <li class="dib">
                 <svg class="icon svg-icon" aria-hidden="true">
                   <use xlink:href="#icon-icon-test"></use>
@@ -2091,6 +2144,14 @@
                 <div class="code-name">#icon-icon-test</div>
             </li>
           
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-xuanze1"></use>
+                </svg>
+                <div class="name">选择</div>
+                <div class="code-name">#icon-xuanze1</div>
+            </li>
+          
             <li class="dib">
                 <svg class="icon svg-icon" aria-hidden="true">
                   <use xlink:href="#icon-account"></use>
@@ -2867,6 +2928,14 @@
                 <div class="code-name">#icon-more</div>
             </li>
           
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-tishi"></use>
+                </svg>
+                <div class="name">提示</div>
+                <div class="code-name">#icon-tishi</div>
+            </li>
+          
             <li class="dib">
                 <svg class="icon svg-icon" aria-hidden="true">
                   <use xlink:href="#icon-huifu1"></use>

File diff suppressed because it is too large
+ 18 - 6
src/assets/iconfont/iconfont.css


BIN
src/assets/iconfont/iconfont.eot


File diff suppressed because it is too large
+ 1 - 1
src/assets/iconfont/iconfont.js


File diff suppressed because it is too large
+ 9 - 0
src/assets/iconfont/iconfont.svg


BIN
src/assets/iconfont/iconfont.ttf


BIN
src/assets/iconfont/iconfont.woff


BIN
src/assets/iconfont/iconfont.woff2


BIN
src/assets/zhutu_01.jpg


+ 406 - 0
src/pages/report/custreport.vue

@@ -0,0 +1,406 @@
+// 排名类报表通用UI
+<template>
+  <div class="daily">
+    <div class="reportcom-header-wap">
+      <div class="reportcom-header">
+        <!-- <div class='reportcom-logo'>
+          <img src="../../assets/longjoe.png" class="reportcom-img-responsive"></img>
+        </div> -->
+        <div class="reportcom-header-title" style="font-size:28px" v-if="reporttype==0">业务员销售排名统计表</div>
+        <div class="reportcom-header-title" style="font-size:28px" v-if="reporttype==1">客户销售排名统计表</div>
+        <div class="reportcom-header-title" style="font-size:28px" v-if="reporttype==2">产品销售排名统计表</div>
+        <div class="reportcom-header-title" style="font-size:18px">2019.01 ~ 2019.06
+          <span style="font-size:15px">
+            <svg class="icon" aria-hidden="true">
+              <use xlink:href="#icon-xuanze1"></use>
+            </svg>
+          </span>
+        </div>
+      </div>
+      <div class="reportcom-header-sub"></div>
+      <div class="reportcom-header-sub-two"></div>
+    </div>
+
+    <div class="report_selection">
+      <div class='report_selection_check'>销售额</div>
+      <div style="margin-left:50px">利润</div>
+    </div>
+
+    <div class="daily-sale">
+
+      <div class="img_wap" v-if="reporttype != 2">
+        <div style="flex:0 0 90%;margin: 0 auto;">
+          <img src="../../assets/bingtu_01.jpg" class="img-bingtu" v-if="reporttype==0"></img>
+          <img src="../../assets/bingtu_02.jpg" class="img-bingtu" v-if="reporttype==1"></img>
+        </div>
+      </div>
+
+      <div class="daily-sale-cust">
+
+        <div class="daily-sale-cust-list" v-for="(saleritem,index) in saleramtlist" :key="index">
+          <div class="daily-sale-cust-index">
+            <div v-if="index>2">
+              {{index+1}}
+            </div>
+            <svg class="icon" aria-hidden="true" v-if="index<=2">
+              <use xlink:href="#icon-jiangpai-" v-if="index == 0"></use>
+              <use xlink:href="#icon-jiangpai-2" v-if="index == 1"></use>
+              <use xlink:href="#icon-jiangpai-1" v-if="index == 2"></use>
+            </svg>
+          </div>
+          <div class="daily-sale-cust-name">
+
+            <div v-if="reporttype==1">{{saleritem.cusname}}</div>
+            <div v-if="reporttype==2">{{saleritem.mtrlname}}</div>
+            <div style="display:flex;align-items: center">
+              <div style="margin-right:30px" v-if="reporttype==0">{{saleritem.salername}}</div>
+              <div class="daily-sale-cust-amt">{{saleritem.amt}}元</div>
+              <div class="saler_percent">占比 {{saleritem.percent}}</div>
+            </div>
+          </div>
+        </div>
+      </div>
+
+    </div>
+
+    <div class="report_other">
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-tishi"></use>
+        </svg>
+        您还可以查看其它报表:</div>
+      <div class="report_other_link" v-if="reporttype != 0">业务员销售排名统计表</div>
+      <div class="report_other_link" v-if="reporttype != 1">客户销售排名统计表</div>
+      <div class="report_other_link" v-if="reporttype != 2">产品销售排名统计表</div>
+      <div class="report_other_link">销售订单统计表</div>
+      <div class="report_other_link">在进行出口订单异常统计表</div>
+    </div>
+
+  </div>
+</template>
+<script>
+  export default {
+    name: 'daily',
+    data() {
+      return {
+        reporttype: 0, //0-业务员销售排名统计表 1-客户销售排名统计表 2-产品销售排名统计表
+        saleramtlist: [{
+            salername: "张小姗",
+            cusname: "沙特石油王子有限公司",
+            mtrlname: "经理椅 NF-8920",
+            amt: "3,000,000",
+            percent: "30%"
+          },
+          {
+            salername: "李小四",
+            cusname: "俄罗斯老铁有限公司",
+            mtrlname: "经理椅 NF-8927",
+            amt: "2,000,000",
+            percent: "20%"
+          },
+          {
+            salername: "王小五",
+            cusname: "英国王室有限公司",
+            mtrlname: "职员椅 NF-3343",
+            amt: "1,500,000",
+            percent: "15%"
+          },
+          {
+            salername: "吴小丽",
+            cusname: "法国浪漫有限公司",
+            mtrlname: "电竞椅 S-150",
+            amt: "1,000,000",
+            percent: "10%"
+          },
+          {
+            salername: "陆小六",
+            cusname: "意大利时尚有限公司",
+            mtrlname: "电竞椅 S-103",
+            amt: "500,000",
+            percent: "5%"
+          },
+          {
+            salername: "刘小七",
+            cusname: "丹麦饼匠有限公司",
+            mtrlname: "电竞椅 S-120",
+            amt: "400,000",
+            percent: "4%"
+          },
+          {
+            salername: "方小八",
+            cusname: "德国战车有限公司",
+            mtrlname: "职员椅 NF-6004M",
+            amt: "300,000",
+            percent: "3%"
+          },
+          {
+            salername: "冯小轩",
+            cusname: "澳大利亚袋鼠有限公司",
+            mtrlname: "办公布椅 NF-513V",
+            amt: "200,000",
+            percent: "2%"
+          },
+          {
+            salername: "马小梅",
+            cusname: "新加坡花园有限公司",
+            mtrlname: "办公布椅 NF-513M",
+            amt: "100,000",
+            percent: "1%"
+          },
+          {
+            salername: "高小松",
+            cusname: "美利坚老鹰有限公司",
+            mtrlname: "休闲椅 901",
+            amt: "90,000",
+            percent: "0.9%"
+          }
+        ]
+      }
+    }
+  }
+
+</script>
+<style>
+  body {
+    margin: 0;
+    padding: 0;
+    background-color: #ffffff;
+    font-family: "微软雅黑";
+  }
+
+  .img_wap {
+    display: flex;
+    margin-top: 20px;
+  }
+
+  .img-bingtu {
+    width: 100%;
+  }
+
+  .reportcom-header-wap {
+    width: 100%;
+    height: 150px;
+    overflow: hidden;
+  }
+
+  .reportcom-header {
+    width: 120%;
+    height: 100px;
+    background-color: #fd9153;
+    border-top-left-radius: 0px;
+    border-top-right-radius: 0px;
+    border-bottom-right-radius: 50%;
+    border-bottom-left-radius: 50%;
+    position: relative;
+    left: -10%;
+    padding: 10px 0;
+    margin-bottom: 10px;
+    z-index: 9999;
+  }
+
+  .reportcom-header-sub {
+    width: 130%;
+    height: 98px;
+    background-color: #ffba92;
+    border-top-left-radius: 0px;
+    border-top-right-radius: 0px;
+    border-bottom-right-radius: 50%;
+    border-bottom-left-radius: 50%;
+    position: relative;
+    top: -120px;
+    left: -23%;
+    padding: 10px 0;
+    margin-bottom: 10px;
+    z-index: 9998;
+  }
+
+  .reportcom-header-sub-two {
+    width: 140%;
+    height: 98px;
+    background-color: #fddecc;
+    border-top-left-radius: 0px;
+    border-top-right-radius: 0px;
+    border-bottom-right-radius: 50%;
+    border-bottom-left-radius: 50%;
+    position: relative;
+    top: -240px;
+    left: -35%;
+    padding: 10px 0;
+    margin-bottom: 10px;
+    z-index: 9997;
+  }
+
+  .reportcom-logo {
+    width: 60%;
+    position: relative;
+    left: 10%;
+  }
+
+  .reportcom-img-responsive {
+    display: inline-block;
+    height: auto;
+    max-width: 60%;
+  }
+
+  .reportcom-header-title {
+    position: relative;
+    left: 13%;
+    color: #ffffff;
+    font-size: 22px;
+    font-weight: bold;
+    /* margin: 10px 0; */
+  }
+
+  .report_selection {
+    display: flex;
+    /* align-items: center; */
+    /* margin-left: 33%; */
+    width: 150px;
+    margin: 0 auto;
+    font-size: 18px;
+    font-weight: bold;
+  }
+
+  .report_selection div {
+    /* margin-right: 20px; */
+    padding-bottom: 3px;
+  }
+
+  .report_selection_check {
+    border-bottom: 5px solid #fd7526;
+  }
+
+
+  /* .daily-header {
+    width: 100%;
+    height: 150px;
+    background: linear-gradient(rgba(253, 145, 83, 1), rgba(253, 145, 83, 0))
+  }
+
+  .daily-header-logo-warp {
+    border-top: 5px solid #fd9153;
+  }
+
+  .daily-header-logo {
+    padding: 2px 5px;
+    background-color: #fd9153;
+  }
+
+  .daily-img-responsive {
+    display: inline-block;
+    height: auto;
+    max-width: 50%;
+  } */
+
+  /* .daily-header-title {
+    font-size: 25px;
+    font-weight: bold;
+    color: #000;
+    padding: 0 20px;
+    text-shadow: 1px 1px 3px #FFFFFF, -1px -1px 3px #FFFFFF, 2px 2px 5px #FFFFFF, -2px -2px 5px #FFFFFF
+  }
+
+  .daily-header-date {
+    font-size: 25px;
+    font-weight: bold;
+    color: #000;
+    padding: 0 20px;
+    text-shadow: 1px 1px 3px #FFFFFF, -1px -1px 3px #FFFFFF, 2px 2px 5px #FFFFFF, -2px -2px 5px #FFFFFF
+  } */
+
+  .daily-sale-title {
+    font-size: 22px;
+    font-weight: bold;
+    margin: 0 20px;
+  }
+
+  .daily-sale-amt {
+    margin-left: 30px;
+    font-size: 15px;
+  }
+
+  .daily-sale-amt-value {
+    font-size: 18px;
+    font-weight: bold;
+    color: #fd7526
+  }
+
+  .daily-sale-cust {
+    margin: 10px 20px;
+    font-size: 16px;
+    font-weight: bold;
+
+  }
+
+  .daily-sale-cust-list {
+    display: flex;
+    padding: 4px 0 4px 0;
+  }
+
+  .daily-sale-cust-title {
+    font-weight: bold;
+    color: #606060;
+  }
+
+  .daily-sale-cust-index {
+    flex: 0 0 10%;
+    text-align: center;
+    font-size: 22px;
+    font-family: 'Courier New', Courier, monospace
+  }
+
+  .daily-sale-cust-name {
+    flex: 0 0 80%;
+  }
+
+  .daily-sale-cust-name-pz {
+    font-size: 13px;
+    color: #606060;
+  }
+
+  .daily-sale-cust-amt {
+    flex: 0 0 45%;
+    /* text-align: center; */
+    color: #f5772f;
+  }
+
+  .saler_percent {
+    color: #606060;
+    font-size: 13px
+  }
+
+  .daily-money-account-in {
+    color: #ff2f2f
+  }
+
+  .daily-money-account-out {
+    color: #31b831;
+    margin-left: 20px;
+  }
+
+  .daily_liubai {
+    width: 100%;
+    height: 10px;
+    background-color: rgb(246, 246, 246);
+    margin: 10px 0;
+  }
+
+  .report_other {
+    background-color: rgb(246, 246, 246);
+    padding: 10px 15px;
+    margin: 20px 10px;
+    font-size: 14px;
+    border-radius: 15px;
+    color: #666
+  }
+
+  .report_other div {
+    padding: 4px 0 4px 0
+  }
+
+  .report_other_link {
+    color: #6495ed;
+    margin-left: 18px;
+  }
+
+</style>

+ 371 - 0
src/pages/report/reportdetail.vue

@@ -0,0 +1,371 @@
+<template>
+  <div>
+    <div :class="colortop"></div>
+    <div style="display:flex;">
+      <div class="reportdetail_mx_title" :class="colortitle" v-if="reporttype==1">客户销售记录</div>
+      <div class="reportdetail_mx_title" :class="colortitle" v-if="reporttype==2">产品销售记录</div>
+      <div class="reportdetail_mx_subtitle">2019年1月~2019年6月
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-xuanze1"></use>
+        </svg></div>
+    </div>
+
+    <!-- 客户信息 来源于1-客户销售排名统计表 -->
+    <div class="reportmx_main" v-if="reporttype == 1">
+      <div style="font-size:24px;font-weight:bold">沙特石油王子有限公司</div>
+      <div style="font-size:15px;">业务员:张小姗</div>
+      <div style="font-size:14px;color:#666;margin-top:5px">共下单 8 次,10 款产品共 4000 件</div>
+      <div style="font-size:14px;color:#f20">合计金额 4,000,000元</div>
+    </div>
+
+    <!-- 产品信息 来源于2-产品销售排名统计表 -->
+    <div class="reportmx_main" v-if="reporttype == 2">
+      <div style="font-size:24px;font-weight:bold">电竞椅 S-150</div>
+      <div style="font-size:14px;">规格 55.5*66*129CM</div>
+      <div style="font-size:14px;"><span>背垫尺寸 85*48CM</span><span style="margin-left:10px">坐垫尺寸 52*53CM</span></div>
+      <div style="font-size:14px;">
+        <span>座深 41CM</span>
+        <span style="margin-left:10px">座高 48CM</span>
+        <span style="margin-left:10px">净重 17.5KG</span>
+        <span style="margin-left:10px">毛重 19KG</span>
+      </div>
+      <div style="font-size:14px;color:#666;margin-top:5px">共下单 8 次,10 个客户共 4000 件</div>
+      <div style="font-size:14px;color:#f20">合计金额 4,000,000元</div>
+    </div>
+
+    <div class="img_wap" v-if="reporttype == 2">
+      <div style="flex:0 0 90%;margin: 0 auto;">
+        <img src="../../assets/zhutu_01.jpg" class="img-bingtu"></img>
+      </div>
+    </div>
+
+    <div class="liubai"></div>
+
+<!-- 业务员明细、区域明细 -->
+    <div v-if="reporttype==2">
+      <div class="reportmx_mx" style="padding: 0px;">
+        <div style="display:flex;font-size:16px;font-weight:bold;color:#666;">
+          <div style="margin:0 auto" v-if="reporttype==2">区域明细</div>
+        </div>
+
+        <div class="reportdetail_mx_for " v-for="(areaitem,index) in arealist" :key="index">
+          <div class="reportdetail_mx_index">{{index+1}}</div>
+
+          <div style="padding:0 0 0 5px; ">
+            <div style="display:flex;align-items: center">
+              <div style="font-size: 15px;font-weight: bold;margin-right:20px">{{areaitem.areaname}}</div>
+              <div class="reportdetail_mx_amt">{{areaitem.amt}}元</div>
+              <div class="reportdetail_mx_qty">{{areaitem.qty}}张</div>
+              <div class="reportdetail_mx_qty">{{areaitem.percent}}%</div>
+            </div>
+          </div>
+
+        </div>
+
+      </div>
+      <div class="liubai"></div>
+      <div class="reportmx_mx" style="padding: 0px;">
+        <div style="display:flex;font-size:16px;font-weight:bold;color:#666;">
+          <div style="margin:0 auto" v-if="reporttype==2">业务员明细</div>
+        </div>
+
+        <div class="reportdetail_mx_for " v-for="(saleritem,index) in saleramtlist" :key="index">
+          <div class="reportdetail_mx_index">{{index+1}}</div>
+
+          <div style="padding:0 0 0 5px; ">
+            <div style="display:flex;align-items: center">
+              <div style="font-size: 15px;font-weight: bold;margin-right:20px">{{saleritem.salername}}</div>
+              <div class="reportdetail_mx_amt">{{saleritem.amt}}元</div>
+              <div class="reportdetail_mx_qty">{{saleritem.qty}}张</div>
+              <div class="reportdetail_mx_qty">{{saleritem.percent}}%</div>
+            </div>
+          </div>
+
+        </div>
+
+      </div>
+      <div class="liubai"></div>
+    </div>
+
+    <div class="reportmx_mx">
+      <div style="display:flex;font-size:16px;font-weight:bold;color:#666;">
+        <div style="margin:0 auto" v-if="reporttype==1">产品明细</div>
+        <div style="margin:0 auto" v-if="reporttype==2">客户明细</div>
+      </div>
+
+      <div class="reportdetail_mx_for mx_border" v-for="(saleritem,index) in saleramtlist" :key="index">
+        <div class="reportdetail_mx_index">{{index+1}}</div>
+
+        <div style="padding:0 0 0 5px; ">
+          <div class="reportdetail_mx_name">
+            <div v-if="reporttype==0">{{saleritem.salername}}</div>
+            <div v-if="reporttype==1">{{saleritem.mtrlname}}</div>
+            <div v-if="reporttype==2">{{saleritem.cusname}}</div>
+          </div>
+
+          <div class="reportdetail_mx_mode" v-if="reporttype==1">150*79*60cm</div>
+          <div class="reportdetail_mx_mode" v-if="reporttype==2">业务员:{{saleritem.salername}}</div>
+
+          <div style="display:flex;align-items: center">
+            <div class="reportdetail_mx_amt">{{saleritem.amt}}元</div>
+            <div class="reportdetail_mx_qty">{{saleritem.qty}}张</div>
+          </div>
+        </div>
+
+      </div>
+
+    </div>
+
+  </div>
+</template>
+
+<script>
+  export default {
+    data() {
+      return {
+        reporttype: 1, //来源 0-业务员销售排名统计表(同时显示客户列表、产品列表) 1-客户销售排名统计表(显示产品列表) 2-产品销售排名统计表(显示客户列表)
+        saleramtlist: [{
+            salername: "张小姗",
+            cusname: "沙特石油王子有限公司",
+            mtrlname: "经理椅 NF-8920",
+            amt: "600,000",
+            percent: "30",
+            qty: 600
+          },
+          {
+            salername: "李小四",
+            cusname: "俄罗斯老铁有限公司",
+            mtrlname: "经理椅 NF-8927",
+            amt: "500,000",
+            percent: "20",
+            qty: 500
+          },
+          {
+            salername: "王小五",
+            cusname: "英国王室有限公司",
+            mtrlname: "职员椅 NF-3343",
+            amt: "400,000",
+            percent: "15",
+            qty: 400
+          },
+          {
+            salername: "吴小丽",
+            cusname: "法国浪漫有限公司",
+            mtrlname: "电竞椅 S-150",
+            amt: "300,000",
+            percent: "10",
+            qty: 300
+          },
+          {
+            salername: "陆小六",
+            cusname: "意大利时尚有限公司",
+            mtrlname: "电竞椅 S-103",
+            amt: "250,000",
+            percent: "5",
+            qty: 250
+          },
+          {
+            salername: "刘小七",
+            cusname: "丹麦饼匠有限公司",
+            mtrlname: "电竞椅 S-120",
+            amt: "210,000",
+            percent: "4",
+            qty: 210
+          },
+          {
+            salername: "方小八",
+            cusname: "德国战车有限公司",
+            mtrlname: "职员椅 NF-6004M",
+            amt: "200,000",
+            percent: "3",
+            qty: 200
+          },
+          {
+            salername: "冯小轩",
+            cusname: "澳大利亚袋鼠有限公司",
+            mtrlname: "办公布椅 NF-513V",
+            amt: "190,000",
+            percent: "2",
+            qty: 190
+          },
+          {
+            salername: "马小梅",
+            cusname: "新加坡花园有限公司",
+            mtrlname: "办公布椅 NF-513M",
+            amt: "180,000",
+            percent: "1",
+            qty: 180
+          },
+          {
+            salername: "高小松",
+            cusname: "美利坚老鹰有限公司",
+            mtrlname: "休闲椅 901",
+            amt: "170,000",
+            percent: "0.9",
+            qty: 170
+          }
+        ],
+        arealist: [{
+          areaname: "欧洲 ",
+          amt: "2,000,000",
+          qty: 2000,
+          percent:50
+        },{
+          areaname: "亚洲 ",
+          amt: "1,200,000",
+          qty: 1200,
+          percent:30
+        },{
+          areaname: "大洋洲",
+          amt: "500,000",
+          qty: 500,
+          percent:12.5
+        },{
+          areaname: "非洲 ",
+          amt: "300,000",
+          qty: 300,
+          percent:7.5
+        }]
+      }
+    },
+    computed: {
+      colortop: function () {
+        return {
+          kindred: this.reporttype == 0,
+          kindblue: this.reporttype == 1,
+          kindgreen: this.reporttype == 2
+        };
+      },
+      colortitle: function () {
+        return {
+          bgred: this.reporttype == 0,
+          bgblue: this.reporttype == 1,
+          bggreen: this.reporttype == 2
+        };
+      }
+    }
+
+  }
+
+</script>
+
+<style>
+  body {
+    margin: 0;
+    padding: 0;
+    background-color: #ffffff;
+    font-family: "微软雅黑";
+  }
+
+  .img_wap {
+    display: flex;
+    margin-top: 20px;
+  }
+
+  .img-bingtu {
+    width: 100%;
+  }
+
+  .reportdetail_mx_bar {
+    border-top: 8px solid dodgerblue;
+  }
+
+  .kindblue {
+    border-top: 8px solid dodgerblue;
+  }
+
+  .kindgreen {
+    border-top: 8px solid yellowgreen;
+  }
+
+  .bgblue {
+    background-color: dodgerblue;
+  }
+
+  .bggreen {
+    background-color: yellowgreen;
+  }
+
+  .reportdetail_mx_title {
+    color: white;
+    font-size: 15px;
+    font-weight: bold;
+    padding: 3px 8px;
+    margin-left: 20px;
+    border-bottom-left-radius: 8px;
+    border-bottom-right-radius: 8px;
+  }
+
+  .reportdetail_mx_subtitle {
+    position: absolute;
+    right: 10px;
+    padding: 3px;
+    font-size: 15px;
+    font-weight: bold;
+    line-height: 20px;
+    color: grey;
+    margin-top: 3px;
+  }
+
+  .reportmx_main {
+    margin: 5px 10px 0 20px;
+  }
+
+  .reportmx_mx {
+    margin: 0 10px 0 10px;
+    padding: 0 0 30px 0;
+  }
+
+  .liubai {
+    width: 100%;
+    height: 10px;
+    background-color: rgb(246, 246, 246);
+    margin: 10px 0;
+  }
+
+  .reportdetail_mx_for {
+    display: flex;
+    /* margin: 5px 0 15px 10px; */
+    align-items: center;
+
+    padding: 5px 0 5px 0
+  }
+
+  .mx_border {
+    border-bottom: 1px solid #eee;
+  }
+
+  .reportdetail_mx_index {
+    flex: 0 0 10%;
+    text-align: center;
+    /* align-items: center; */
+    font-size: 20px;
+    font-family: 'Courier New', Courier, monospace;
+    font-weight: bold;
+
+  }
+
+  .reportdetail_mx_name {
+    flex: 0 0 80%;
+    font-size: 15px;
+    font-weight: bold
+  }
+
+  .reportdetail_mx_mode {
+    font-size: 13px;
+    color: #666
+  }
+
+  .reportdetail_mx_amt {
+    font-size: 15px;
+    font-weight: bold;
+    color: #fd7526
+  }
+
+  .reportdetail_mx_qty {
+    margin-left: 20px;
+    font-size: 15px;
+    color: #666
+  }
+
+</style>

+ 18 - 0
src/router/index.js

@@ -19,6 +19,8 @@ import QuotePad from '@/pages/quote_pad'
 import QuotePadEdit from '@/pages/quote_edit_pad'
 import QuoteRslt from '@/pages/quote_rslt'
 import Quotehis from '@/pages/quote_his'
+import CustReport from '@/pages/report/custreport'
+import ReportDetail from '@/pages/report/reportdetail'
 
 Vue.use(Router)
 
@@ -172,6 +174,22 @@ export default new Router({
       meta: {
         title: '产品报价历史'
       }
+    },
+    {
+      path: '/custreport',
+      name: 'CustReport',
+      component: CustReport,
+      meta: {
+        title: '客户销售排名统计表'
+      }
+    },
+    {
+      path: '/reportdetail',
+      name: 'ReportDetail',
+      component: ReportDetail,
+      meta: {
+        title: '报表明细'
+      }
     }
   ]
 })