<!--
 * @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.contractCode }}</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.contractName }}</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.custName }}</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">{{ detail.nboName }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">合同金额:</view>
            <view class="desc">{{ formatPrice(detail.contractAmount)}}</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">{{ detail.inchargeName }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">公司签约人:</view>
            <view class="desc">{{ detail.signatoryName }}</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">{{ parseTime(detail.contractStartTime, '{y}-{m}-{d}') }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">结束时间:</view>
            <view class="desc">{{ parseTime(detail.contractEndTime, '{y}-{m}-{d}') }}</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">{{ detail.contractType }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <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 justify="space-between" gutter="10">
        <u-col span="6">
          <view class="flex_l">
            <view class="label">创建时间:</view>
            <view class="desc">{{ parseTime(detail.createdTime, '{y}-{m}-{d}') }}</view>
          </view>
        </u-col>
        <u-col span="6">
          <view class="flex_l">
            <view class="label">更新时间:</view>
            <view class="desc">{{ parseTime(detail.updatedTime, '{y}-{m}-{d}') }}</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: 'OmsContractDetail',
    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>
