ContractDetailsHeader.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div>
  3. <div class="flex items-start justify-between">
  4. <div>
  5. <el-col>
  6. <el-row>
  7. <span class="text-xl font-bold">{{ contract.name }}</span>
  8. </el-row>
  9. </el-col>
  10. </div>
  11. <div>
  12. <!-- 右上:按钮 -->
  13. <slot></slot>
  14. </div>
  15. </div>
  16. </div>
  17. <ContentWrap class="mt-10px">
  18. <el-descriptions :column="5" direction="vertical">
  19. <el-descriptions-item label="客户">
  20. {{ contract.customerName }}
  21. </el-descriptions-item>
  22. <el-descriptions-item label="客户签约人">
  23. {{ contract.contactName }}
  24. </el-descriptions-item>
  25. <el-descriptions-item label="合同金额">
  26. {{ contract.productPrice }}
  27. </el-descriptions-item>
  28. <el-descriptions-item label="创建时间">
  29. {{ contract.createTime ? formatDate(contract.createTime) : '空' }}
  30. </el-descriptions-item>
  31. </el-descriptions>
  32. </ContentWrap>
  33. </template>
  34. <script lang="ts" setup>
  35. import * as ContractApi from '@/api/crm/contract'
  36. import { formatDate } from '@/utils/formatTime'
  37. defineOptions({ name: 'ContractDetailsHeader' })
  38. defineProps<{ contract: ContractApi.ContractVO }>()
  39. </script>