index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <div class="h-full flex p-3 flex-col businessDetail">
  3. <div class="w-full bg-white p-2 mb-2 shadow-md rounded-md flex items-center">
  4. <div class="icon mr-4">
  5. <el-link :underline="false" @click="backPath()">
  6. <el-icon class="el-icon--right"><icon-view /></el-icon> 返回客户列表
  7. </el-link>
  8. </div>
  9. <div class="mr-8">
  10. <el-select v-model="value" placeholder="请选择" style="width: 150px">
  11. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  12. </el-select>
  13. </div>
  14. </div>
  15. <!-- 内容 -->
  16. <div class="flex-1 flex flex-col overflow-y-auto overflow-x-hidden scroll-bar">
  17. <div class="w-full h-auto flex justify-between">
  18. <div class="bg-white shadow-md rounded-md" style="width: 46%;">
  19. <Information />
  20. </div>
  21. <div class="bg-white ml-2 shadow-md rounded-md flex-1">
  22. <Attachment />
  23. </div>
  24. </div>
  25. <div class="w-full h-auto flex justify-between mt-2">
  26. <div class="bg-white shadow-md rounded-md" style="width: 65%;">
  27. <RelatedTasks />
  28. </div>
  29. <div class="bg-white ml-2 shadow-md rounded-md flex-1">
  30. <OperationRecord />
  31. </div>
  32. </div>
  33. <div class="w-full h-auto flex justify-between mt-2">
  34. <div class="bg-white shadow-md rounded-md w-full">
  35. <RelatedContacts />
  36. </div>
  37. </div>
  38. <div class="w-full h-auto flex justify-between mt-2">
  39. <div class="bg-white shadow-md rounded-md w-full">
  40. <RelatedBusiness />
  41. </div>
  42. </div>
  43. <div class="w-full h-auto flex justify-between mt-2">
  44. <div class="bg-white shadow-md rounded-md w-full">
  45. <RelatedOrders />
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </template>
  51. <script lang="ts" setup>
  52. import { ref, reactive, onMounted, inject } from "vue";
  53. import type { FormInstance, FormRules } from 'element-plus'
  54. import { backPath } from '@/utils/tools'
  55. import { Edit, ArrowLeft as IconView } from '@element-plus/icons-vue'
  56. import { stageStatus } from '../api'
  57. import Information from '../component/information.vue'
  58. import Attachment from '../component/attachment.vue'
  59. import RelatedTasks from '../component/relatedTasks.vue';
  60. import OperationRecord from '../component/operationRecord.vue';
  61. import RelatedBusiness from '../component/relatedBusiness.vue';
  62. import RelatedContacts from "../component/relatedContacts.vue";
  63. import RelatedOrders from "../component/relatedOrders.vue"
  64. const value = ref('')
  65. const stageStatusVal = ref('')
  66. const options = [
  67. {
  68. value: 'Option1',
  69. label: 'Option1',
  70. },
  71. {
  72. value: 'Option2',
  73. label: 'Option2',
  74. },
  75. {
  76. value: 'Option3',
  77. label: 'Option3',
  78. },
  79. {
  80. value: 'Option4',
  81. label: 'Option4',
  82. },
  83. {
  84. value: 'Option5',
  85. label: 'Option5',
  86. },
  87. ]
  88. function handleScroll(event: any) { // 滚表横向滚动
  89. if (event.deltaY) {
  90. event.preventDefault();
  91. const element = event.currentTarget;
  92. element.scrollLeft += event.deltaY;
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .businessDetail {
  98. .icon {
  99. .el-link {
  100. color: #0052CC;
  101. }
  102. }
  103. .text {
  104. .el-link {
  105. color: #fff;
  106. font-size: 14px;
  107. }
  108. }
  109. .backDarkBlue {
  110. background-color: #0052CC;
  111. color: #fff;
  112. }
  113. .backGray {
  114. background-color: #F4F5F7;
  115. color: #000;
  116. }
  117. .startStep {
  118. clip-path: polygon(0% 0%,
  119. 90% 0%,
  120. 100% 50%,
  121. 90% 100%,
  122. 0% 100%);
  123. }
  124. .nextStep {
  125. clip-path: polygon(0% 0%,
  126. 90% 0%,
  127. 100% 50%,
  128. 90% 100%,
  129. 0% 100%,
  130. 10% 50%);
  131. }
  132. .endStep {
  133. clip-path: polygon(0% 0%,
  134. 100% 0%,
  135. 100% 100%,
  136. 0% 100%,
  137. 10% 50%);
  138. }
  139. .itemPing {
  140. padding-top: 4px;
  141. padding-bottom: 4px;
  142. }
  143. .selectClas >>> .el-select__wrapper {
  144. background-color: none !important;
  145. box-shadow: none !important;
  146. }
  147. }
  148. </style>