index.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <div class="page-detail">
  3. <page-detail-layout :tabs="tabs" v-model:tab-active-key="tabActiveKey" :index-config="indexConfig" title="江西大同环境治理有限公司">
  4. <template #titleRight>
  5. <img src="/@/assets/images/page-detail-layout/customer/SS_user.png" alt="" />
  6. <a-tag color="blue">企业单位</a-tag>
  7. </template>
  8. <template #toolBtn>
  9. <a-button danger ghost type="primary" size="small">加入黑名单</a-button>
  10. <a-button danger ghost type="primary" size="small">释放公海</a-button>
  11. <a-button ghost type="primary" size="small">客户转移</a-button>
  12. <a-button type="primary" size="small">信息编辑</a-button>
  13. </template>
  14. <template #titleBottom>
  15. <a-tag color="#f0f4fe" v-for="(tagItem, tagIndex) in tagList" :key="tagIndex">
  16. <div class="tag-stl">
  17. <img :src="tagItem.icon" alt="" />
  18. <span class="title-render">{{ tagItem.title }}</span>
  19. </div>
  20. </a-tag>
  21. </template>
  22. <template #BasicInfo>
  23. <BasicInfo />
  24. </template>
  25. </page-detail-layout>
  26. </div>
  27. </template>
  28. <script setup>
  29. import { reactive, ref } from 'vue';
  30. import PageDetailLayout from '/@/components/business/page-detail-layout/index.vue';
  31. import BasicInfo from './components/BasinInfo.vue';
  32. const stepsData = [
  33. {
  34. title: '标段备案',
  35. time: '2024-09-18',
  36. status: 'completed',
  37. number: 1,
  38. lineTopNum: 100,
  39. },
  40. {
  41. title: '商机管理',
  42. time: '2024-09-20',
  43. status: 'completed',
  44. number: 2,
  45. lineTopNum: 100,
  46. },
  47. {
  48. title: '项目立项',
  49. time: '2024-10-11',
  50. status: 'completed',
  51. number: 3,
  52. lineTopNum: 100,
  53. },
  54. {
  55. title: '投标评审',
  56. status: 'current',
  57. number: 4,
  58. lineTopNum: 0,
  59. },
  60. {
  61. title: '投标管理',
  62. status: 'todo',
  63. number: 5,
  64. lineTopNum: 0,
  65. },
  66. {
  67. title: '中标捷报',
  68. status: 'todo',
  69. number: 6,
  70. lineTopNum: 0,
  71. },
  72. {
  73. title: '合同签订',
  74. status: 'todo',
  75. number: 7,
  76. lineTopNum: 0,
  77. },
  78. ];
  79. const getImgUrl = (name) => {
  80. return new URL('/src/assets/images/page-detail-layout/customer/' + name + '.svg', import.meta.url).href;
  81. };
  82. const tagList = [
  83. {
  84. title: '天眼查',
  85. icon: getImgUrl('icon-tianyancha'),
  86. },
  87. {
  88. title: '线索登记',
  89. icon: getImgUrl('icon-xiansuodengji'),
  90. },
  91. {
  92. title: '标签管理',
  93. icon: getImgUrl('icon-biaoqianguanli'),
  94. },
  95. {
  96. title: '曾用名',
  97. icon: getImgUrl('icon-cengyongming'),
  98. },
  99. ];
  100. const tabs = ref([
  101. {
  102. title: '基本信息',
  103. key: 'BasicInfo',
  104. slotName: 'BasicInfo',
  105. selectedIcon: getImgUrl('icon-jibenxinxi-all'),
  106. unSelectedIcon: getImgUrl('icon-jibenxinxi'),
  107. },
  108. {
  109. title: '关联公司',
  110. key: 'LinkCompany',
  111. slotName: 'LinkCompany',
  112. selectedIcon: getImgUrl('icon-guanliangongsi-all'),
  113. unSelectedIcon: getImgUrl('icon-guanliangongsi'),
  114. },
  115. {
  116. title: '营销团队',
  117. key: 'MarketTeam',
  118. slotName: 'MarketTeam',
  119. selectedIcon: getImgUrl('icon-yingxiaotuandui-all'),
  120. unSelectedIcon: getImgUrl('icon-yingxiaotuandui'),
  121. },
  122. {
  123. title: '跟进情况',
  124. key: 'FollowUp',
  125. slotName: 'FollowUp',
  126. selectedIcon: getImgUrl('icon-genjinqingkuang-all'),
  127. unSelectedIcon: getImgUrl('icon-genjinqingkuang'),
  128. },
  129. {
  130. title: '合作项目',
  131. key: 'CooperativeProject',
  132. slotName: 'CooperativeProject',
  133. selectedIcon: getImgUrl('icon-hezuoxiangmu-all'),
  134. unSelectedIcon: getImgUrl('icon-hezuoxiangmu'),
  135. },
  136. {
  137. title: '客户决策链',
  138. key: 'CustomerDecisionChain',
  139. slotName: 'CustomerDecisionChain',
  140. selectedIcon: getImgUrl('icon-kehujuecelian-all'),
  141. unSelectedIcon: getImgUrl('icon-kehujuecelian'),
  142. },
  143. {
  144. title: '合同管理',
  145. key: 'ContractManagement',
  146. slotName: 'ContractManagement',
  147. selectedIcon: getImgUrl('icon-hetongguanli-all'),
  148. unSelectedIcon: getImgUrl('icon-hetongguanli'),
  149. },
  150. {
  151. title: '投资&竞争管理',
  152. key: 'InvestmentCompetitionManagement',
  153. slotName: 'InvestmentCompetitionManagement',
  154. selectedIcon: getImgUrl('icon-touzijingzheng-all'),
  155. unSelectedIcon: getImgUrl('icon-touzijingzheng'),
  156. },
  157. {
  158. title: '客户评价',
  159. key: 'CustomerReview',
  160. slotName: 'CustomerReview',
  161. selectedIcon: getImgUrl('icon-kehupingjia-all'),
  162. unSelectedIcon: getImgUrl('icon-kehupingjia'),
  163. },
  164. {
  165. title: '信息资料',
  166. key: 'InfoMaterial',
  167. slotName: 'InfoMaterial',
  168. selectedIcon: getImgUrl('icon-xinxiziliao-all'),
  169. unSelectedIcon: getImgUrl('icon-xinxiziliao'),
  170. },
  171. {
  172. title: '编辑记录',
  173. key: 'EditReport',
  174. slotName: 'EditReport',
  175. selectedIcon: getImgUrl('icon-bianjijilu-all'),
  176. unSelectedIcon: getImgUrl('icon-bianjijilu'),
  177. },
  178. ]);
  179. const indexConfig = reactive({
  180. sourceData: [
  181. {
  182. label: '客户类型',
  183. value: '控股',
  184. },
  185. {
  186. label: '归属公司',
  187. value: '青山',
  188. },
  189. {
  190. label: '合同数量',
  191. value: '1',
  192. },
  193. {
  194. label: '累计合同金额(元)',
  195. value: '333,333,333',
  196. },
  197. {
  198. label: '累计收款(元)',
  199. value: '333,333,333',
  200. },
  201. {
  202. label: '累计开票(元)',
  203. value: '333,333,333',
  204. },
  205. {
  206. label: '累计未回款(元)',
  207. value: '333,333,333',
  208. },
  209. {
  210. label: '归属营销经理',
  211. value: '刘玉宁',
  212. },
  213. ],
  214. labelKey: 'label',
  215. valueKey: 'value',
  216. });
  217. </script>
  218. <style lang="scss" scoped>
  219. .page-detail {
  220. width: 100%;
  221. .tag-stl {
  222. display: flex;
  223. gap: 5px;
  224. align-items: center;
  225. .title-render {
  226. color: #999999;
  227. font-size: 14px;
  228. }
  229. }
  230. }
  231. </style>