index.vue 4.4 KB

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