<template>
  <view class="list-item" @click="handleToDetail">
    <view class="list-item-main">
      <text class="left">
        {{ itemData.businessName }}
      </text>
    </view>
    <view class="list-item-desc">
      <text class="left">
        最后跟进时间：{{ itemData.lastTime || '--' }}
      </text>
      <text class="right">
        {{ itemData.ownerUserName }}
      </text>
    </view>
  </view>
</template>

<script>
  export default {
    name: 'DetailBusinessItem',
    props: {
      itemData: {
        type: Object,
        required: true
      }
    },
    data() {
      return {}
    },
    methods: {
      handleToDetail() {
        console.log('to detail')
        this.$Router.navigateTo({
          url: '/pages_crm/business/detail',
          query: {
            id: this.itemData.businessId
          }
        })
      }
    }
  }
</script>

<style scoped lang="scss">
  @import "detailItem";
</style>
