Browse Source

增加报价历史页面 quote_his.vue

LongjoeDyy 6 years ago
parent
commit
c646f9b258
5 changed files with 421 additions and 32 deletions
  1. 169 0
      src/pages/components/quotelist_his.vue
  2. 188 0
      src/pages/quote_his.vue
  3. 1 1
      src/pages/quote_rslt.vue
  4. 53 31
      src/pages/quoteedit.vue
  5. 10 0
      src/router/index.js

+ 169 - 0
src/pages/components/quotelist_his.vue

@@ -0,0 +1,169 @@
+<template>
+  <div>
+    <div class="quotehis_cust">
+      <svg class="icon" aria-hidden="true">
+        <use xlink:href="#icon-kehu"></use>
+      </svg>
+      新西兰XXX经销商</div>
+    <div class="quotelist_main">
+      <div class="quotelist_pic">
+        <img :src="picurl" class="quote-img-responsive "></img>
+        <!-- <img src="../../assets/S-150.jpg" class="quote-img-responsive "></img> -->
+      </div>
+      <div class="quotelist_info">
+        <div class="quotelist_info_mtrl">{{qlist.mtrlname}}</div>
+        <div class="quotelist_info_mtrlmode">{{qlist.mtrlmode}}</div>
+        <div class="quotelist_info_other">
+          <div>净重{{qlist.nw}}</div>
+          <div>毛重{{qlist.gw}}</div>
+          <div>{{qlist.pack}}</div>
+        </div>
+        <!-- <div class="quotelist_info_amt">
+          <span>¥</span>{{qlist.price}}
+        </div> -->
+        <div style="display:flex;width:100%;align-items: center;font-size:12px;color:#666">
+          <div style="font-size:16px;font-weight:bold;margin-right:10px">美元</div>
+          <div style="font-size:16px;font-weight:bold;margin-right:8px;color:#f00">$57.63</div>
+          <div style="margin-right:8px">数量:432</div>
+          <!-- <div style="margin-right:8px">金额:$24,896.16</div>
+          <div>贸易方式:FOB</div> -->
+        </div>
+
+        <div style="display:flex;width:100%;align-items: center;font-size:12px;color:#666">
+          <!-- <div style="font-size:16px;font-weight:bold;margin-right:10px">美元</div>
+          <div style="margin-right:8px">$57.63</div> -->
+          <!-- <div style="margin-right:8px">数量:432</div> -->
+          <div style="margin-right:8px">金额:$24,896.16</div>
+          <div>贸易方式:FOB</div>
+        </div>
+
+        <div class="quotelisthis_btn">
+          <div class="quotelisthis_btn_bj">再次报价</div>
+        </div>
+      </div>
+
+
+    </div>
+  </div>
+</template>
+<script>
+  export default {
+    name: "quotelist",
+    props: {
+      qlist: ""
+    },
+    data() {
+      return {
+        picstr2: "S-102.jpg"
+      }
+    },
+    computed: {
+      picurl: function () {
+        return require("../../assets/" + this.qlist.picurl)
+      }
+    },
+
+  }
+
+</script>
+<style>
+  .quotehis_cust {
+    margin: 10px 0 5px 25px;
+    font-weight: bold;
+  }
+
+  .quotelist_main {
+    display: flex;
+    padding: 2px 0 20px 2px;
+    border-bottom: 1px solid #f0f0f0;
+  }
+
+  .quote_search {
+    background-color: #f7f7f7;
+    margin: 5px 10px;
+    padding: 0px 5px 0px 20px;
+    font-size: 14px;
+    line-height: 30px;
+    border-radius: 15px;
+    color: #777777
+  }
+
+  .quotelist_pic {
+    margin-left: -20px;
+    flex: 0 0 120px;
+  }
+
+  .quote-img-responsive {
+    height: 120px
+  }
+
+  .quotelist_info {
+    margin-left: -20px;
+    flex: 0 0 65%;
+  }
+
+  .quotelist_info_other {
+    display: flex
+  }
+
+  .quotelist_info_mtrl {
+    font-size: 15px;
+  }
+
+  .quotelist_info_mtrlmode {
+    font-size: 12px;
+    color: #9c9c9c
+  }
+
+  .quotelist_info_other {
+    font-size: 11px;
+    padding: 2px 0;
+  }
+
+  .quotelist_info_other div {
+    margin-right: 5px;
+    border-radius: 15px;
+    color: #888;
+    background-color: #f8f8f8;
+    padding: 0px 5px;
+  }
+
+  .quotelist_info_amt {
+    color: #ff0000;
+    font-weight: bold;
+    font-size: 20px;
+    margin-top: 5px;
+  }
+
+  .quotelist_info_amt span {
+    font-size: 12px;
+    font-weight: 500;
+    padding: 0 2px 0 0;
+  }
+
+  .quotelist_info_qty {
+    font-size: 12px;
+    color: #9c9c9c;
+    padding: 0 0 5px 0;
+    border-bottom: 1px solid #f0f0f0;
+  }
+
+
+
+  .quotelisthis_btn {
+    display: flex;
+    position: absolute;
+    right: 20px;
+    color: #000000;
+    font-size: 13px;
+    margin-top:5px;
+
+  }
+
+  .quotelisthis_btn_bj {
+    border: 1px solid #dfdfdf;
+    padding: 5px 15px;
+    border-radius: 15px;
+  }
+
+</style>

+ 188 - 0
src/pages/quote_his.vue

@@ -0,0 +1,188 @@
+<template>
+  <div>
+    <div class="topbar">
+      <div class="topbar_left" @click="goback">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-fanhui"></use>
+        </svg>
+      </div>
+      <div class="topbar_middle">
+        报价历史 <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-xiala"></use>
+        </svg>
+      </div>
+      <div class="topbar_right">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-caidan"></use>
+        </svg>
+      </div>
+    </div>
+
+    <div id="quotelist">
+
+      <div class="quote_search">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-sousuo"></use>
+        </svg>
+        搜索
+      </div>
+
+      <div v-for="(item,index) in qlist" :key="index">
+        <quote-list-his :qlist="item"></quote-list-his>
+      </div>
+
+    </div>
+
+    <div class="quote_mask"  v-show="ifch==1"></div>
+    <div class="quote_mtrltype_ch" v-show="ifch==1">
+      <div class="quote_mtrltype_ch_his">报价历史</div>
+      <div class="quote_mtrltype_ch_title">产品分类</div>
+      <div class="quote_mtrltype_ch_type">
+        <div>经理椅</div>
+        <div>职员椅</div>
+        <div>会议椅</div>
+        <div>休闲椅</div>
+        <div>电竞椅</div>
+        <div>办公网椅</div>
+        <div>办公布椅</div>
+
+      </div>
+    </div>
+
+  </div>
+</template>
+<script>
+  import QuoteListHis from "./components/quotelist_his";
+  export default {
+    name: 'quote',
+    components: {
+      QuoteListHis
+    },
+    data() {
+      return {
+        qlist: [{mtrlname:"S-102电竞椅",mtrlmode:"58*69*130CM",nw:"18KG",gw:"19.8KG",pack:'40Q":420箱',price:421,saleqty:12356,picurl:"S-102.jpg"},
+        {mtrlname:"S-103电竞椅",mtrlmode:"55.5*66*129CM",nw:"17.5KG",gw:"19KG",pack:'40Q":424箱',price:380,saleqty:22491,picurl:"S-103.jpg"},
+        {mtrlname:"S-150电竞椅",mtrlmode:"55.5*66*129CM",nw:"17.5KG",gw:"19KG",pack:'40Q":424箱',price:375,saleqty:34512,picurl:"S-150.jpg"},
+        {mtrlname:"S-152电竞椅",mtrlmode:"55.5*66*129CM",nw:"17.5KG",gw:"19KG",pack:'40Q":424箱',price:385,saleqty:12478,picurl:"S-152.jpg"},
+        {mtrlname:"S-156电竞椅",mtrlmode:"55.5*66*129CM",nw:"17.5KG",gw:"19KG",pack:'40Q":424箱',price:365,saleqty:16843,picurl:"S-156.jpg"},
+        {mtrlname:"S-200电竞椅",mtrlmode:"55.5*66*108CM",nw:"16.5KG",gw:"18.7KG",pack:'40Q":435箱',price:321,saleqty:18791,picurl:"S-200.jpg"}
+        ],
+        ifch: 0 //点击顶部选择类别 0-没有显示  1-显示 
+      }
+    },
+    methods: {
+      goback() {
+        {
+          history.back();
+        }
+      }
+    }
+  }
+
+</script>
+<style>
+  body {
+    margin: 0;
+    padding: 0;
+    /* background-color: #fff; */
+    font-family: "微软雅黑";
+  }
+
+  .topbar {
+    min-height: 44px;
+    border-bottom: 1px solid #e5e5e5;
+    background: #fff;
+    position: fixed;
+    width: 100%;
+    z-index: 9999;
+    display: flex;
+    font-size: 18px;
+    align-items: center;
+  }
+
+  .topbar_left {
+    flex: 0 0 20px;
+    margin-left: 10px;
+  }
+
+  .topbar_middle {
+    text-align: center;
+    flex: 0 0 89%;
+  }
+
+  .topbar_right {
+    flex: 0 0 20px;
+    position: absolute;
+    right: 10px;
+  }
+
+  #quotelist {
+    position: absolute;
+    top: 44px;
+    width: 100%;
+  }
+  .quote_search {
+    background-color: #f7f7f7;
+    margin: 5px 10px;
+    padding: 0px 5px 0px 20px;
+    font-size: 14px;
+    line-height: 30px;
+    border-radius: 15px;
+    color: #777777
+  }
+  .quote_mask {
+    height: 100%;
+    width: 100%;
+    background-color: #1d1d1d;
+     opacity: 0.8;  
+    position: fixed;
+    top: 0px;
+    z-index: 9998;
+  }
+
+  .quote_mtrltype_ch {
+    z-index: 9999;
+    background-color: #ffffff;
+    position: fixed;
+    top: 40px;
+    /* height: 220px; */
+    width: 100%;
+    border-bottom-left-radius: 15px;
+    border-bottom-right-radius: 15px;
+    padding: 10px 0;
+    /* border-bottom: 1px solid #e5e5e5; */
+  }
+
+.quote_mtrltype_ch_his{
+    margin: 0 20px 10px 20px;
+    border-radius: 15px;
+    color: #888;
+    background-color: #f8f8f8;
+    padding: 5px 15px;
+    font-size: 12px;
+    width:50px;
+}
+
+.quote_mtrltype_ch_title{
+    font-size: 15px;
+    font-weight: bold;
+    margin: 5px 10px;
+}
+
+  .quote_mtrltype_ch_type {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content:space-between;
+  }
+
+  .quote_mtrltype_ch_type div {
+    margin: 10px 20px 10px 20px;
+    border-radius: 15px;
+    color: #888;
+    background-color: #f8f8f8;
+    padding: 5px 15px;
+    font-size: 12px;
+
+  }
+
+</style>

+ 1 - 1
src/pages/quote_rslt.vue

@@ -103,7 +103,7 @@
         <div style="margin-right:8px">$57.63</div>
         <div style="margin-right:8px">数量:432</div>
         <div style="margin-right:8px">金额:$24,896.16</div>
-        <div>交货方式:FOB</div>
+        <div>贸易方式:FOB</div>
       </div>
 
 

+ 53 - 31
src/pages/quoteedit.vue

@@ -82,12 +82,13 @@
           <div class="quote_edit_main_pzpic">
             <img src="../assets/mianliao.jpg" class="quote_edit_main_img"></img>
           </div>
-          <div class="quote_edit_main_pzvalue">黑色MQ-125复合+红色12-61复合</div>
+          <div class="quote_edit_main_pzvalue quote_flex">黑色MQ-125复合+红色12-61复合</div>
           <div class="quote_edit_main_pzbtn">
             <svg class="icon" aria-hidden="true">
               <use xlink:href="#icon-iconfontjiantou2"></use>
             </svg>
           </div>
+          <div class="quote_edit_main_pzvalue_diff">+10</div>
         </div>
 
 
@@ -96,7 +97,7 @@
           <div class="quote_edit_main_pzpic">
             <img src="../assets/qigan.jpg" class="quote_edit_main_img"></img>
           </div>
-          <div class="quote_edit_main_pzvalue">100黑气杆</div>
+          <div class="quote_edit_main_pzvalue quote_flex">100黑气杆</div>
           <div class="quote_edit_main_pzbtn">
             <svg class="icon" aria-hidden="true">
               <use xlink:href="#icon-iconfontjiantou2"></use>
@@ -109,7 +110,7 @@
           <div class="quote_edit_main_pzpic">
             <img src="../assets/fushou.jpg" class="quote_edit_main_img"></img>
           </div>
-          <div class="quote_edit_main_pzvalue">908升降扶手</div>
+          <div class="quote_edit_main_pzvalue quote_flex">908升降扶手</div>
           <div class="quote_edit_main_pzbtn">
             <svg class="icon" aria-hidden="true">
               <use xlink:href="#icon-iconfontjiantou2"></use>
@@ -122,7 +123,7 @@
           <div class="quote_edit_main_pzpic">
             <img src="../assets/fushou.jpg" class="quote_edit_main_img"></img>
           </div>
-          <div class="quote_edit_main_pzvalue">常规pu面2孔</div>
+          <div class="quote_edit_main_pzvalue quote_flex">常规pu面2孔</div>
           <div class="quote_edit_main_pzbtn">
             <svg class="icon" aria-hidden="true">
               <use xlink:href="#icon-iconfontjiantou2"></use>
@@ -136,7 +137,7 @@
           <div class="quote_edit_main_pzpic">
             <img src="../assets/jiao.jpg" class="quote_edit_main_img"></img>
           </div>
-          <div class="quote_edit_main_pzvalue">L350皮纹尼龙脚+红装饰片</div>
+          <div class="quote_edit_main_pzvalue quote_flex">L350皮纹尼龙脚+红装饰片</div>
           <div class="quote_edit_main_pzbtn">
             <svg class="icon" aria-hidden="true">
               <use xlink:href="#icon-iconfontjiantou2"></use>
@@ -149,12 +150,13 @@
           <div class="quote_edit_main_pzpic">
             <img src="../assets/lunzi.jpg" class="quote_edit_main_img"></img>
           </div>
-          <div class="quote_edit_main_pzvalue">60mm亚光黑月亮轮</div>
+          <div class="quote_edit_main_pzvalue quote_flex">60mm亚光黑月亮轮</div>
           <div class="quote_edit_main_pzbtn">
             <svg class="icon" aria-hidden="true">
               <use xlink:href="#icon-iconfontjiantou2"></use>
             </svg>
           </div>
+          <div class="quote_edit_main_pzvalue_diff">+2</div>
         </div>
       </div>
 
@@ -162,19 +164,19 @@
 
       <div class="quote_edit_main quote_edit_flex">
         <div class="quote_edit_main_qty">数量</div>
-        <div>
+        <!-- <div>
           <svg class="icon" aria-hidden="true">
             <use xlink:href="#icon-shuliangjian1"></use>
           </svg>
-        </div>
+        </div> -->
         <div class="quote_edit_main_qtyvalue">
           432
         </div>
-        <div>
+        <!-- <div>
           <svg class="icon" aria-hidden="true">
             <use xlink:href="#icon-shuliangjia1"></use>
           </svg>
-        </div>
+        </div> -->
         <div class="quote_edit_subinfo" style="margin-left:10px;">400~500 优惠5%
           <svg class="icon" aria-hidden="true">
             <use xlink:href="#icon-wenhao"></use>
@@ -184,7 +186,7 @@
 
       <div class="quote_edit_main">
         <div class="quote_edit_flex">
-          <div class="quote_edit_main_qty">运费方式</div>
+          <div class="quote_edit_main_qty">贸易方式</div>
           <div class="quote_edit_main_pzvalue">FOB</div>
           <div class="quote_edit_main_pzbtn" style="color:#333">
             <svg class="icon" aria-hidden="true">
@@ -201,10 +203,20 @@
               <use xlink:href="#icon-xuanxiang"></use>
             </svg>
           </div>
+        </div>
+                <div class="quote_edit_flex" style="margin-top:5px;">
+          <div class="quote_edit_main_qty">柜型</div>
+          <div class="quote_edit_main_pzvalue">40Q"</div>
+          <div class="quote_edit_main_pzbtn" style="color:#333">
+            <svg class="icon" aria-hidden="true">
+              <use xlink:href="#icon-xuanxiang"></use>
+            </svg>
+          </div>
         </div>
         <div class="quote_edit_flex" style="margin-top:5px;">
           <div class="quote_edit_main_qty">总运费</div>
-          <div class="quote_edit_main_pzvalue">5500</div>
+          <div class="quote_edit_main_pzvalue"><span v-if="ifusd==1">人民币 </span>5500</div>
+          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">折合美元 846.15</div>
         </div>
       </div>
 
@@ -236,7 +248,7 @@
               <use xlink:href="#icon-uni_icon_kaiguan_kai"></use>
             </svg>
           </div>
-          <div style="font-size:14px;color:#666;margin-left:10px;">税率13%</div>
+          <div style="font-size:14px;color:#666;margin-left:10px;" v-if="ifusd==0">税率13%</div>
 
           <div class="quote_edit_main_pzbtn" style="color:#333">
             <svg class="icon" aria-hidden="true">
@@ -248,13 +260,13 @@
 
         <div class="quote_edit_flex" style="margin-top:5px;">
           <div class="quote_edit_main_qty">单价</div>
-          <div class="quote_edit_main_pzvalue"><span v-if="ifusd==1">人民币 </span>375</div>
-          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">折合美元 57.63</div>
+          <div class="quote_edit_main_pzvalue"><span v-if="ifusd==1">人民币 </span>423</div>
+          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">折合美元 69.63</div>
         </div>
         <div class="quote_edit_flex" style="margin-top:5px;">
           <div class="quote_edit_main_qty">总金额</div>
-          <div class="quote_edit_main_pzvalue"><span v-if="ifusd==1">人民币 </span>162,000</div>
-          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">折合美元 24,896.16</div>
+          <div class="quote_edit_main_pzvalue"><span v-if="ifusd==1">人民币 </span>200,500</div>
+          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">折合美元 30,849.39</div>
         </div>
       </div>
 
@@ -290,8 +302,8 @@
 
 
     <div class="quote_edit_btn_wrap">
-      <div class="quote_edit_btn" style="background-color: #ffb732;width: 65%;">最终报价 <span
-          v-if="ifusd==1">$57.63</span><span v-if="ifusd==0">¥375</span></div>
+      <div class="quote_edit_btn" style="background-color: #ffb732;width: 65%;">总金额 <span
+          v-if="ifusd==1">$30,849.39</span><span v-if="ifusd==0">¥200,500</span></div>
       <div class="quote_edit_btn" style="width: 35%;">
         <svg class="icon" aria-hidden="true">
           <use xlink:href="#icon-tongyi"></use>
@@ -338,6 +350,7 @@
             <div>
               100电镀/博特
             </div>
+            <div style="position: absolute;right:20px;color:#f00">+10</div>
 
           </div>
 
@@ -357,7 +370,7 @@
             <div>
               100白色喷塑/博特
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+5</div>
           </div>
 
 
@@ -376,7 +389,7 @@
             <div>
               100红色喷塑/博特
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+5</div>
           </div>
 
 
@@ -395,7 +408,7 @@
             <div>
               100灰色喷塑/博特
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+5</div>
           </div>
 
           <div class="quote_edit_pzch_value_row quote_edit_pzch_value_checked">
@@ -413,7 +426,7 @@
             <div>
               100黑气杆
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+0</div>
           </div>
 
           <div class="quote_edit_pzch_value_row">
@@ -431,7 +444,7 @@
             <div>
               100白色喷塑/巨威
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+5</div>
           </div>
 
           <div class="quote_edit_pzch_value_row">
@@ -449,7 +462,7 @@
             <div>
               100红色喷塑/巨威
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+5</div>
           </div>
 
           <div class="quote_edit_pzch_value_row">
@@ -467,7 +480,7 @@
             <div>
               100灰色喷塑/巨威
             </div>
-
+            <div style="position: absolute;right:20px;color:#f00">+5</div>
           </div>
 
 
@@ -541,10 +554,10 @@
               <use xlink:href="#icon-shuliangjia1"></use>
             </svg>
           </div>
-                  <div class="quote_edit_subinfo" style="margin-left:10px;">400~500 优惠5%
-        </div>
+          <div class="quote_edit_subinfo" style="margin-left:10px;">400~500 优惠5%
+          </div>
         </div>
-       <div class="quote_edit_btn quote_edit_pzch_okbtn">确定</div>
+        <div class="quote_edit_btn quote_edit_pzch_okbtn">确定</div>
       </div>
 
     </div>
@@ -557,7 +570,7 @@
     data() {
       return {
         ifch: 0, //选择配置 0-没有显示  1-显示 
-        ifusd: 1, //0-人民币 1-美元
+        ifusd: 0, //0-人民币 1-美元
         ifcust: 1, //0-只显示客户编码 1-显示客户名称地址
         ifshow: 0 //0-不显示数量优惠条件 1-显示
       }
@@ -729,7 +742,12 @@
   }
 
   .quote_edit_main_pzvalue {
-    color: #666
+    color: #666;
+  }
+  
+  .quote_flex{
+    
+    flex: 0 0 55%;
   }
 
   .quote_edit_main_pzbtn {
@@ -801,4 +819,8 @@
     width: 100%;
   }
 
+  .quote_edit_main_pzvalue_diff{
+    color:#f00
+  }
+
 </style>

+ 10 - 0
src/router/index.js

@@ -18,6 +18,8 @@ import QuoteEdit from '@/pages/quoteedit'
 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'
+
 Vue.use(Router)
 
 export default new Router({
@@ -162,6 +164,14 @@ export default new Router({
       meta: {
         title: '产品报价'
       }
+    },
+    {
+      path: '/quotehis',
+      name: 'Quotehis',
+      component: Quotehis,
+      meta: {
+        title: '产品报价历史'
+      }
     }
   ]
 })