<!--
 * @Author: liuzhenlin 461480418@qq.ocm
 * @Date: 2023-02-15 16:25:58
 * @LastEditors: liuzhenlin
 * @LastEditTime: 2023-02-16 11:17:12
 * @Description: file content
 * @FilePath: \oms\pages\customer\components\customerDetail.vue
-->
<template>
  <view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="12">
          <view class="flex_l">
            <view class="label">创建人:</view>
            <view class="desc">{{ detail.createdName }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row>
        <u-col span="12">
          <view class="flex_l">
            <view class="label">创建时间:</view>
            <view class="desc">{{ detail.createdTime }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row>
        <u-col span="12">
          <view class="flex_l">
            <view class="label">下次联系时间:</view>
            <view class="desc">{{ detail.followUpDate }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="6">
          <view class="flex_l">
            <view class="label">跟进次数:</view>
            <view class="desc">{{ abstract.followCount }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">未跟进时长:</view>
            <view class="desc">{{ abstract.notFollowDay }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="6">
          <view class="flex_l">
            <view class="label">项目数量:</view>
            <view class="desc">{{ abstract.business }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">项目总额:</view>
            <view class="desc">{{ formatPrice(abstract.businessTotal) }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="6">
          <view class="flex_l">
            <view class="label">成交次数:</view>
            <view class="desc">{{ abstract.DealCount }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">成交总额:</view>
            <view class="desc">{{ formatPrice(abstract.DrawTotal) }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="6">
          <view class="flex_l">
            <view class="label">回款总额:</view>
            <view class="desc">{{ formatPrice(abstract.PaymentTotal) }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">未回款总额:</view>
            <view class="desc">{{ formatPrice(abstract.NotPaymentTotal) }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="6">
          <view class="flex_l">
            <view class="label">开票总额:</view>
            <view class="desc">{{ formatPrice(abstract.DrawTotal) }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
    <view class="info-item">
      <u-row justify="space-between" gutter="10">
        <u-col span="12">
          <view class="flex_l">
            <view class="label">备注:</view>
            <view class="desc">{{ detail.remark }}</view>
          </view>
        </u-col>
      </u-row>
    </view>
  </view>
</template>

<script>
  export default {
    name: 'OmsCustomerDetail',
    props: {
      detail: {
        type: [Object],
        default: {},
      },
      abstract: {
        type: [Object],
        default: {},
      },
    },
    data() {
      return {
        // abstract: {
        //   followContent: '', //跟进次数
        //   notFollowDay: '', //未跟进天数
        //   business: '', //项目数量
        //   businessTotal: '', //项目总额
        //   dealCotal: '', //成交次数
        //   dealTotal: '', //成交总额
        //   paymentTotal: '', //回款总额
        //   notPaymentTotal: '', //未回款总额
        //   drawTotal: '', //开票总额
        // },
      }
    },

    mounted() {
      console.log(this.abstract)
    },

    methods: {},
  }
</script>

<style lang="scss" scoped>
  .info-item {
    padding: 20rpx;
    .label {
      color: #646464;
      font-size: 26rpx;
    }
    .desc {
      font-size: 26rpx;
      text-indent: 20rpx;
    }
  }
</style>
