BusinessDetailsHeader.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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">{{ business.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="客户名称">{{ business.customerName }}</el-descriptions-item>
  20. <el-descriptions-item label="商机金额(元)">
  21. {{ erpPriceInputFormatter(business.totalPrice) }}
  22. </el-descriptions-item>
  23. <el-descriptions-item label="商机组">{{ business.statusTypeName }}</el-descriptions-item>
  24. <el-descriptions-item label="负责人">{{ business.ownerUserName }}</el-descriptions-item>
  25. <el-descriptions-item label="创建时间">
  26. {{ formatDate(business.createTime) }}
  27. </el-descriptions-item>
  28. </el-descriptions>
  29. </ContentWrap>
  30. </template>
  31. <script lang="ts" setup>
  32. import * as BusinessApi from '@/api/crm/business'
  33. import { formatDate } from '@/utils/formatTime'
  34. import { erpPriceInputFormatter } from '@/utils'
  35. const { business } = defineProps<{ business: BusinessApi.BusinessVO }>()
  36. </script>