<!--
 * @Author: liuzhenlin 461480418@qq.ocm
 * @Date: 2023-02-15 16:25:58
 * @LastEditors: liuzhenlin
 * @LastEditTime: 2023-02-17 17:16:54
 * @Description: file content
 * @FilePath: \oms\pages\project\components\projectDetail.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.nboName }}</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.custName }}</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.estTransPrice }}</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">{{ parseTime(detail.estTransTime, '{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.contactName }}</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.contactTelephone }}</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">{{ selectDictLabel(salesModelOptions, detail.salesModel) }}</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.distributorName }}</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">{{ parseTime(detail.nextFollowTime, '{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">{{ parseTime(detail.finalFollowTime, '{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">{{ parseTime(detail.planPurchaseTime, '{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.riskProfile }}</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.difficulty }}</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.competitor }}</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.intervention }}</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">{{ parseTime(detail.technicalSupportTime, '{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.technicalSupportName }}</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.technicalSupportContent }}</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.parentReceiver }}</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">{{ parseTime(detail.nboBudgetTime, '{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.capitalSource }}</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.productSatisfaction }}</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.purchasingWay }}</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">{{ parseTime(detail.purchasingTime, '{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.makerName }}</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.makerDept }}</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.dealerSalesName }}</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.accendant }}</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">{{ selectDictLabel(yesOrNoOptions, detail.isAdoptDashoo) }}</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.createdName }}</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">{{ parseTime(detail.createdTime, '{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">{{ 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: 'OmsCustomerDetail',
    props: {
      detail: {
        type: [Object],
        default: {},
      },
    },
    data() {
      return {
        salesModelOptions: [],
        yesOrNoOptions: [],
      }
    },

    mounted() {},

    methods: {
      init() {
        Promise.all([this.getDicts('proj_sales_model'), this.getDicts('sys_yes_no')]).then(([salesModel, yesOrNo]) => {
          this.salesModelOptions = salesModel.data.values || []
          this.yesOrNoOptions = yesOrNo.data.values || []
        })
      },
    },
  }
</script>

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