threadInfo.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div class="flex flex-col h-full">
  3. <div class="bg-white info flex-1 overflow-y-auto cellnormall">
  4. <van-cell title="线索名称" :value="info.clueName" />
  5. <van-cell title="线索来源" :value="info.clueSourceValue" />
  6. <van-cell title="电话号码" :value="info.phone" />
  7. <van-cell title="邮箱" :value="info.email" />
  8. <van-cell title="客户行业" :value="info.customerIndustryValue" />
  9. <van-cell title="客户级别" :value="info.customerLevelValue" />
  10. <van-cell title="客户地址" :value="info.address" />
  11. <van-cell title="负责人">
  12. <template #default>
  13. <TranslationComponent :openId="info.inchargerName" />
  14. </template>
  15. </van-cell>
  16. <van-cell title="备注" :value="info.remark" />
  17. </div>
  18. <div class="bottomButton">
  19. <van-button type="primary" class="w-full block">转移线索</van-button>
  20. <van-button type="warning" class="w-full block">转为商机</van-button>
  21. </div>
  22. </div>
  23. </template>
  24. <script setup>
  25. import { ref } from 'vue';
  26. import { useLifecycle } from '@hooks/useCommon.js';
  27. const props = defineProps({
  28. info: {
  29. type: Object,
  30. required: true,
  31. default: () => ({})
  32. }
  33. })
  34. useLifecycle({
  35. load: () => {
  36. // 添加加载逻辑
  37. }
  38. });
  39. </script>
  40. <style lang='scss' scoped>
  41. .bottomButton {
  42. margin: 0 14px;
  43. padding-bottom: 30px;
  44. :deep(.van-button) {
  45. margin-bottom: 20px;
  46. }
  47. }
  48. .info {
  49. margin: 8px 14px 30px 14px;
  50. padding: 14px;
  51. }
  52. </style>