<template>
  <div id="taskdetail">
    <div class="toparea_dt" :class="colortop">
      <div class="taskcode_dt">
        SC181211001
        <svg class="icon" aria-hidden="true" v-if="ifnew==1">
          <use xlink:href="#icon-ziyuan"></use>
        </svg>
      </div>
      <div class="taskflag_dt">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-weikaishi" v-if="taskflag_dt=='待审核'"></use>
          <use xlink:href="#icon-jindu" v-if="taskflag_dt=='在进行'"></use>
          <use xlink:href="#icon-CombinedShape" v-if="taskflag_dt=='已完成'"></use>
        </svg>
        {{taskflag_dt}}
      </div>
    </div>
    <div class="taskinfo_dt">
      <div class="cust_dt">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-kehu"></use>
        </svg>
        广东省佛山市顺德区某某经销商
      </div>
    </div>
    <div class="reptel_dt">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-address_dt"></use>
      </svg>
      <span>王利云</span>
      <span style="margin-left:10px;">13800138000</span>
    </div>
    <div class="address_dt">地址：广东省顺德市芙蓉中路二段115号湖南千思湖南千思湖南千思湖南千思湖南千思</div>

    <div class="liubai_dt"></div>

    <div class="middlearea">
      <div class="taskinfo_dttitle_dt">
        <div class="title_dt">业务员：</div>
        <div class="taskinfo_dtitem">张大三</div>
      </div>
      <div class='taskinfo_dtflex'>
        <div class="taskinfo_dttitle_dt">
          <div class="title_dt ">订货日期：</div>
          <div class="taskinfo_dtitem leftsize">2018-12-10</div>
        </div>
        <div class="taskinfo_dttitle_dt">
          <div class="title_dt rightside">交货日期：</div>
          <div class="taskinfo_dtitem requiredate">2018-12-30</div>
        </div>
      </div>
      <div class="taskinfo_dtamt">
        <div class="taskinfo_dttitle_dt">
          <div class="title_dt">金额：</div>
          <div class="taskinfo_dtitem taskamt leftsize">¥100000</div>
        </div>
        <div class="taskinfo_dttitle_dt dingjin">
          <div class="title_dt rightside">订金：</div>
          <div class="taskinfo_dtitem taskamt">¥30000</div>
        </div>
      </div>
      <div class="taskinfo_dtamt">
        <div class="taskinfo_dttitle_dt">
          <div class="title_dt">已收金额：</div>
          <div class="taskinfo_dtitem taskamt leftsize">¥60000</div>
        </div>
        <div class="taskinfo_dttitle_dt dingjin">
          <div class="title_dt rightside">未收金额：</div>
          <div class="taskinfo_dtitem taskamt">¥40000</div>
        </div>
      </div>
      <div class="taskinfo_dttitle_dt">
        <div class="title_dt">结算方式：</div>
        <div class="taskinfo_dtitem">款到发货</div>
      </div>
      <div class="taskinfo_dttitle_dt" style="margin-top:10px; ">
        <div class="title_dt">货运部：</div>
        <div class="taskinfo_dtitem">佳杰物流</div>
      </div>
      <div class="taskinfo_dttitle_dt">
        <div class="title_dt">货运电话：</div>
        <div class="taskinfo_dtitem">13928952902</div>
      </div>
      <div class="hyaddress_dt">货运部地址：乐从水藤加油站后面陆通物流园A6座12-16仓湖南大本营</div>
    </div>

    <div class="dscrp">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-wentibuchong"></use>
      </svg>
      我是备注信息，如果没有，就不显示这一个div了。哔哩吧啦哔哩吧啦，哔哩吧啦哔哩吧啦，哔哩吧啦哔哩吧啦，哔哩吧啦哔哩吧啦！
    </div>

    <div class="liubai_dt"></div>

    <div class="subtitle_dt">订单进度跟踪</div>
    <div class="jindu">
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzhoutiaowancheng"></use>
        </svg>
        审核时间：2018-12-11 09:30
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzhoutiaowancheng"></use>
        </svg>
        物料清单审核：2018-12-11 15:32
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzhoutiaowancheng"></use>
        </svg>
        主计划建立：2018-12-12 14:29
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        物料订购：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        唛头确认：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-baifenbi"></use>
        </svg>
        材料入库比例：33%
        <span class="jindubtn">欠料情况</span>
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        排程审核：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-baifenbi"></use>
        </svg>
        发料通知：90%
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-baifenbi"></use>
        </svg>
        发料比例：10%
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-baifenbi"></use>
        </svg>
        木工：90%
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-baifenbi"></use>
        </svg>
        裁剪：10%
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-baifenbi"></use>
        </svg>
        入库：2%&nbsp&nbsp(20/1000)
      </div>
      <div> <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        订船日期：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        装柜日期：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        发货开单日期：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        仓审日期：
      </div>
      <div>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-buzouweijinxing"></use>
        </svg>
        财务审核日期：
      </div>


    </div>

    <div class="liubai_dt"></div>
    <div class="subtitle_dt">订单明细</div>
    <div class="taskmx">


    </div>

  </div>
</template>

<script>
  export default {

    name: 'saletaskDetail',
    data() {
      return {
        taskflag_dt: '待审核',
        ifnew: 1
      };
    },
    computed: {
      colortop: function () {
        return {
          bgcolorred: this.taskflag_dt == "待审核",
          bgcolorgreen: this.taskflag_dt == "在进行",
          bgcolorblue: this.taskflag_dt == "已完成"
        };
      },
    }
  }

</script>

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

  #taskdetail{
      background-color: #fff;
  }

  .toparea_dt {
    color: white;
    background-color: rgb(252, 78, 44);
    height: 80px;
    display: flex;
  }

  .bgcolorred {
    background-color: rgb(252, 78, 44)
  }

  .bgcolorgreen {
    background-color: rgb(141, 192, 38);
  }

  .bgcolorblue {
    background-color: dodgerblue;
  }

  .taskcode_dt {
    font-size: 22px;
    font-weight: bold;
    padding: 10px;
    line-height: 30px;
  }

  .taskflag_dt {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    line-height: 30px;
    position: absolute;
    right: 20px;
  }

  .taskinfo_dt {
    background-color: #fff;
    width: 100%;
    height: 35px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    position: absolute;
    top: 50px;
  }

  .cust_dt {
    font-size: 16px;
    font-weight: bold;
    padding: 10px
  }

  .reptel_dt {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0 2px 10px;
  }

  .address_dt {
    font-size: 13px;
    margin-left: 30px;
    margin-right: 20px;
    margin-bottom: 10px;
    color: #666;
  }

  .hyaddress_dt {
    font-size: 13px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #666;
  }

  .liubai_dt {
    width: 100%;
    height: 10px;
    background-color: rgb(246, 246, 246);
  }

  .middlearea {
    margin: 10px;
    font-size: 14px;
  }

  .taskinfo_dtflex {
    display: flex;
    /* height: 60px; */
    align-items: center;
  }

  .taskinfo_dttitle_dt {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
  }

  .title_dt {
    width: 80px;
    text-align: right
  }

  .taskinfo_dtitem {
    font-weight: normal;
    color: #333;

  }

  .taskinfo_dtamt {
    display: flex;
  }

  .taskamt {
    font-weight: bold;
    color: red;
  }

  .leftsize {
    width: 100px;
  }

  .dscrp {
    border-radius: 10px;
    background: rgb(240, 237, 237);
    padding: 10px 20px;
    margin: 0 20px 10px 20px;
    font-size: 15px;
    color: #555;
    line-height: 18px;
  }

  .subtitle_dt {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin: 0 20px;
    height: 42px;
    line-height: 43px;
  }

  .jindu {
    border-top: 1px solid #f0f0f0;
    margin: 0 20px;
    font-size: 15px;
    line-height: 30px;
    padding: 10px 0;
  }

  .jindubtn {
    margin-left: 20px;
    border: 1px solid #bbb;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 13px;
  }

</style>
