<template>
<div class="container">
  <top-nav
    title="客户详情"
    :showQuery="false"
  >
  </top-nav>
  <div class="main">
    <div class="box-context">
      <div class="ls-row">
        <div class="row-header">
          <span class="icon iconfont icon-jichuxinxi"></span>
          <span >客户评估</span>
        </div>
      </div>
      <div class="ls-row">
        <span class="row-header">目标交易产品</span>
        <span class="row-content">{{ formData.product }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">产品类型</span>
        <span class="row-content">{{ formData.productTypeName }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">推广时间</span>
        <span class="row-content">{{ formData.promotionTimeName }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">导入关键要素</span>
        <span class="row-content">{{ formData.keyElementsName }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">未来潜力评估</span>
        <span class="row-content">{{ formData.potential }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">预估年销售额(USD)</span>
        <span class="row-content">{{ formData.salesQuota }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">主要竞争对手</span>
        <span class="row-content">{{ formData.competitor}}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">预估份额</span>
        <span class="row-content">{{ formData.estShare }}</span>
      </div>
      <div class="ls-row">
        <span class="row-header">申请理由</span>
        <span class="row-content">{{ formData.reason }}</span>
      </div>
    </div> <!--   context-->
  </div>

</div>
</template>

<script>


  export default{
    name: 'cm-eval',
    created(){
      this.customerId = this.$route.params.customerId;
      this.getCmEvalInfo();
    },
    mounted(){

    },
    methods:{
      getCmEvalInfo(){
        this.$axios.post({
          domain: 'crmCmUrl',
          url: 'cmEval.getCmEvalInfo',
          data: {
            customerId: this.customerId,
          },
          requestType: 'body',
          isShow: false,
          success: function (res) {
            if (res.errorCode === 200) {
              this.formData = res.data || {};
            }
          }.bind(this),
          error: function(err){
            console.log(err)
          },
        })

      },
    },
    data(){
      return{
        customerId: '',
        formData: {},
      }
    }
  }
</script>

<style scoped lang="scss">
@import './public/css/cm.scss';
</style>
