<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">
        产品报价
      </div>
      <div class="topbar_right">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-caidan"></use>
        </svg>
      </div>
    </div>

    <div id="quote_edit">
      <div class="quote_edit_pic">
        <img src="../assets/S-150.jpg" class="quote_edit_img"></img>
      </div>
      <div class="quote_edit_main">
        <div class="quote_edit_amt" v-if="ifusd==0"><span>¥</span>375</div>
        <div class="quote_edit_amt" v-if="ifusd==1"><span>$</span>57.63</div>
        <div class="quote_edit_flex">
          <div class="quote_edit_mtrlname" style="flex:0 0 82%">S-150电竞椅</div>
          <div class="quote_edit_subinfo">月销5980</div>
        </div>
        <div style="margin-top:5px;margin-left:-10px">
          <div class="quote_edit_flex quote_edit_subinfo quote_edit_mtrlmode">
            <div> <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>规格55.5*66*129CM
            </div>
            <div><svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>空板52.5*66*126CM
            </div>
          </div>

          <div class="quote_edit_flex quote_edit_subinfo quote_edit_mtrlmode">
            <div> <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>背垫85*48CM
            </div>
            <div><svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>背垫52*53CM
            </div>
            <div><svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>坐高48CM
            </div>
          </div>

          <div class="quote_edit_flex quote_edit_subinfo quote_edit_mtrlmode">
            <div> <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>装柜量:40Q":424箱
            </div>
            <div><svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>净重17.5KG
            </div>
            <div><svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
              </svg>毛重19KG
            </div>
          </div>

        </div>
      </div>

      <div class="liubai"></div>

      <div class="quote_edit_main">
        <div class="quote_edit_main_title">选配</div>

        <div class="quote_edit_main_pz">
          <div class="quote_edit_main_pzname">面料</div>
          <div class="quote_edit_main_pzpic">
            <img src="../assets/mianliao.jpg" class="quote_edit_main_img"></img>
          </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>


        <div class="quote_edit_main_pz">
          <div class="quote_edit_main_pzname">气杆</div>
          <div class="quote_edit_main_pzpic">
            <img src="../assets/qigan.jpg" class="quote_edit_main_img"></img>
          </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>
            </svg>
          </div>
        </div>

        <div class="quote_edit_main_pz">
          <div class="quote_edit_main_pzname">扶手</div>
          <div class="quote_edit_main_pzpic">
            <img src="../assets/fushou.jpg" class="quote_edit_main_img"></img>
          </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>
            </svg>
          </div>
        </div>

        <div class="quote_edit_main_pz">
          <div class="quote_edit_main_pzname">扶手面</div>
          <div class="quote_edit_main_pzpic">
            <img src="../assets/fushou.jpg" class="quote_edit_main_img"></img>
          </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>
            </svg>
          </div>
        </div>


        <div class="quote_edit_main_pz">
          <div class="quote_edit_main_pzname">脚</div>
          <div class="quote_edit_main_pzpic">
            <img src="../assets/jiao.jpg" class="quote_edit_main_img"></img>
          </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>
            </svg>
          </div>
        </div>

        <div class="quote_edit_main_pz">
          <div class="quote_edit_main_pzname">轮子</div>
          <div class="quote_edit_main_pzpic">
            <img src="../assets/lunzi.jpg" class="quote_edit_main_img"></img>
          </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>

      <div class="liubai"></div>

      <div class="quote_edit_main quote_edit_flex">
        <div class="quote_edit_main_qty">数量</div>
        <!-- <div>
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-shuliangjian1"></use>
          </svg>
        </div> -->
        <div class="quote_edit_main_qtyvalue">
          432
        </div>
        <!-- <div>
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-shuliangjia1"></use>
          </svg>
        </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>
          </svg>
        </div>
      </div>

      <div class="quote_edit_main">
        <div class="quote_edit_flex">
          <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">
              <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">XXXXXX港</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">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"><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>


      <div class="liubai"></div>

      <div class="quote_edit_main">
        <div class="quote_edit_main_title">调整费用</div>
        <div style="display:flex;align-items: center;margin-bottom:5px;">
          <div class="quote_edit_main_pzname">优惠比例</div>
          <div class="quote_edit_main_qtyvalue" style="width:20px;text-align: center;">5%</div>
        </div>
        <div style="display:flex;align-items: center;margin-bottom:5px;">
          <div class="quote_edit_main_pzname">其它费用</div>
          <div class="quote_edit_main_qtyvalue" style="width:20px;text-align: center;">20</div>
        </div>
      </div>

      <div class="liubai"></div>
      <div class="quote_edit_main">
        <div class="quote_edit_flex" :class="ifusd==0?'quote_edit_ifusd_0':'quote_edit_ifusd_1'">
          <div class="quote_edit_main_qty">币种</div>
          <div class="quote_edit_main_pzvalue"><span v-if="ifusd==1">美元</span><span v-if="ifusd==0">人民币</span></div>
          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">汇率 6.5</div>

          <div style="font-size: 16px;font-weight: bold;margin-left:20px;" v-if="ifusd==0">含税</div>
          <div style="margin-left:10px;font-size:30px" v-if="ifusd==0">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-uni_icon_kaiguan_kai"></use>
            </svg>
          </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">
              <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"><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>200,500</div>
          <div class="quote_edit_main_pzvalue" style="margin-left:10px;" v-if="ifusd==1">折合美元 30,849.39</div>
        </div>
      </div>

      <div class="liubai"></div>

      <div class="quote_edit_main">
        <div style="display:flex;align-items: center;">
          <div class="quote_edit_main_qty">客户
            <svg class="icon" aria-hidden="true" v-if="ifcust==1">
              <use xlink:href="#icon-yanjing_kai"></use>
            </svg>
            <svg class="icon" aria-hidden="true" v-if="ifcust==0">
              <use xlink:href="#icon-yanjing_bi"></use>
            </svg>
          </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_main_pzvalue"><span v-if="ifcust==1">新西兰某某经销商</span><span v-if="ifcust==0">CT001</span>
        </div>
        <div class="quote_edit_main_pzvalue" style="font-size:12px;padding:5px 0 " v-if="ifcust==1">588 GREAT SOUTH
          ROAD, GREENLANE,
          AUCKLAND, NEW ZEALAND
        </div>
        <div style="color:#FF0000" v-if="ifcust==1">该客户已有3次报价,点击查看</div>
      </div>
    </div>




    <div class="quote_edit_btn_wrap">
      <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>
        </svg>
        确定报价
      </div>
    </div>


    <div v-show="ifch==1">
      <div class="quote_edit_mask"></div>
      <div class="quote_edit_pzch">
        <div style="display:flex">
          <div style="margin:10px 20px;flex:0 0 150px">
            <img src="../assets/qigan_black.jpg" style="width:150px"></img>
          </div>
          <div style="margin:20px">
            <div style="font-size:16px;font-weight:bold">当前选中</div>
            <div style="font-size:16px;margin-top:5px">100黑气杆</div>
          </div>
          <div class="quote_edit_main_pzbtn">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-guanbi"></use>
            </svg>
          </div>
        </div>
        <div class="quote_edit_flex quote_edit_main_title">
          <div style="margin-left:20px">汽杆选择</div>
        </div>
        <div class="quote_edit_pzch_value">

          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100电镀/博特
            </div>
            <div style="position: absolute;right:20px;color:#f00">+10</div>

          </div>


          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100白色喷塑/博特
            </div>
            <div style="position: absolute;right:20px;color:#f00">+5</div>
          </div>


          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100红色喷塑/博特
            </div>
            <div style="position: absolute;right:20px;color:#f00">+5</div>
          </div>


          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <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">

            <div>
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-check1"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_black.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100黑气杆
            </div>
            <div style="position: absolute;right:20px;color:#f00">+0</div>
          </div>

          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100白色喷塑/巨威
            </div>
            <div style="position: absolute;right:20px;color:#f00">+5</div>
          </div>

          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100红色喷塑/巨威
            </div>
            <div style="position: absolute;right:20px;color:#f00">+5</div>
          </div>

          <div class="quote_edit_pzch_value_row">

            <div>
              <svg class="icon" aria-hidden="true" style="color:#888">
                <use xlink:href="#icon-buzouweijinxing"></use>
              </svg>
            </div>

            <div class="quote_edit_main_pzpic">
              <img src="../assets/qigan_dd.jpg" class="quote_edit_main_img"></img>
            </div>

            <div>
              100灰色喷塑/巨威
            </div>
            <div style="position: absolute;right:20px;color:#f00">+5</div>
          </div>


        </div>

        <div class="quote_edit_btn quote_edit_pzch_okbtn">确定</div>

      </div>

    </div>

    <div v-show="ifshow==1">
      <div class="quote_edit_mask"></div>
      <div class="quote_edit_pzch" style="height:300px">

        <div class="quote_edit_flex quote_edit_main_title">
          <div style="margin-left:20px">优惠信息</div>
          <div class="quote_edit_main_pzbtn">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-guanbi"></use>
            </svg>
          </div>
        </div>
        <div class="quote_edit_pzch_value">

          <div class="quote_edit_pzch_value_row">
            <div>
              50~100 优惠1%
            </div>
          </div>

          <div class="quote_edit_pzch_value_row">
            <div>
              101~150 优惠2%
            </div>
          </div>
          <div class="quote_edit_pzch_value_row">
            <div>
              151~200 优惠3%
            </div>
          </div>
          <div class="quote_edit_pzch_value_row">
            <div>
              201~400 优惠4%
            </div>
          </div>
          <div class="quote_edit_pzch_value_row">
            <div>
              401~500 优惠5%
            </div>
          </div>
          <div class="quote_edit_pzch_value_row">
            <div>
              500以上 优惠6%
            </div>
          </div>
        </div>

        <div style="display:flex;align-items: center;position: fixed;bottom: 50px;margin-left:20px;width:100%">
          <div class="quote_edit_main_qty">数量</div>
          <div>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-shuliangjian1"></use>
            </svg>
          </div>
          <div class="quote_edit_main_qtyvalue">
            432
          </div>
          <div>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-shuliangjia1"></use>
            </svg>
          </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>

    </div>

  </div>
</template>
<script>
  export default {
    name: 'quoteedit',
    data() {
      return {
        ifch: 1, //选择配置 0-没有显示  1-显示 
        ifusd: 0, //0-人民币 1-美元
        ifcust: 1, //0-只显示客户编码 1-显示客户名称地址
        ifshow: 0 //0-不显示数量优惠条件 1-显示
      }
    },
    methods: {
      goback() {
        {
          history.back();
        }
      }
    }

  }

</script>
<style>
  body {
    margin: 0;
    padding: 0;
    /* background-color: #fff; */
    font-family: "微软雅黑";
    font-size: 14px;
  }

  .quote_edit_main_pzpic {
    padding: 0 5px 0 0
  }

  .quote_edit_main_img {
    width: 28px;
  }

  .quote_edit_mtrlmode div {
    margin-right: 5px;
  }

  .quote_edit_pzch_value {
    font-size: 15px;
    padding: 5px 20px;
  }

  .quote_edit_pzch_value_row {
    display: flex;
    padding: 0 0 0 10px;
    border-bottom: 1px solid #f5f5f5;
    line-height: 30px;
  }

  .quote_edit_pzch_value_row div {
    margin-right: 10px;
  }

  .quote_edit_pzch_value_checked {
    color: #ef250f
  }

  .quote_edit_mask {
    height: 100%;
    width: 100%;
    background-color: #1d1d1d;
    opacity: 0.8;
    position: fixed;
    top: 0px;
    z-index: 9998;
  }

  .quote_edit_pzch {
    z-index: 9999;
    background-color: #ffffff;
    position: fixed;
    bottom: 0px;
    height: 70%;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 10px 0;
  }

  .topbar {
    min-height: 44px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: fixed;
    width: 100%;
    z-index: 9993;
    display: flex;
    font-size: 18px;
    align-items: center;
  }

  .topbar_left {
    /* flex: 0 0 %; */
    margin-left: 10px;
  }

  .topbar_middle {
    text-align: center;
    flex: 0 0 85%;
  }

  .topbar_right {
    /* flex: 0 0 10%; */
    position: absolute;
    right: 10px;
  }

  #quote_edit {
    position: absolute;
    top: 44px;
    width: 100%;
    padding-bottom: 60px;
  }

  .quote_edit_pic {
    /* overflow: hidden; */
    text-align: center;
  }

  .quote_edit_img {
    width: 80%
  }

  .quote_edit_main {
    margin: 5px 20px;
    padding: 5px 0;
  }

  .quote_edit_main_title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .quote_edit_mtrlname {
    font-size: 16px;
    font-weight: bold;
    line-height: 18px;
    color: #333;
  }

  .quote_edit_subinfo {
    font-size: 12px;
    color: #666;
  }

  .quote_edit_amt {
    color: #ff0000;
    font-weight: bold;
    font-size: 20px;
    margin-top: 5px;
  }

  .quote_edit_amt span {
    font-size: 13px;
    font-weight: 500;
    padding: 0 2px 0 0;
  }

  .quote_edit_main_pz {
    font-size: 14px;
    display: flex;
    line-height: 28px;
  }

  .quote_edit_main_pzname {
    flex: 0 0 65px;
    font-weight: bold;
    color: #666
  }

  .quote_edit_main_pzvalue {
    color: #666;
  }
  
  .quote_flex{
    
    flex: 0 0 55%;
  }

  .quote_edit_main_pzbtn {
    position: absolute;
    right: 20px;
    color: #ccc;
    font-size: 12px;
  }

  .liubai {
    width: 100%;
    height: 10px;
    background-color: #f6f6f6;
  }

  .quote_edit_main_qty {
    font-size: 16px;
    font-weight: bold;
    flex: 0 0 70px;
  }

  .quote_edit_main_qtyvalue {
    background-color: #f6f6f6;
    font-size: 14px;
    padding: 4px 15px;
  }

  .quote_edit_flex {
    display: flex;
    align-items: center;
  }

  .quote_edit_btn_wrap {
    display: flex;
    position: fixed;
    bottom: 0;
    /* background-color: #fc4e2c; */
    width: 100%;
    z-index: 9990;
    align-items: center;
    justify-content: center;
    /* padding: 5px 0 2px 0; */
    box-shadow: 0 -1px 3px #f1f1f1;
  }

  .quote_edit_btn {
    /* background-color: #ffb732; */
    background-color: #fc4e2c;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 8px;
  }

  .quote_edit_ifusd_0 {
    margin-top: -10px;
    margin-bottom: -8px;
  }


  .quote_edit_ifusd_1 {
    margin-top: 3px;
  }

  .quote_edit_pzch_okbtn {
    position: fixed;
    bottom: 0;
    width: 100%;
  }

  .quote_edit_main_pzvalue_diff{
    color:#f00
  }

</style>
