start.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <div>
  3. <div class="card">
  4. <h3 class="businessTitle">快速发起</h3>
  5. <div class="icon-area" v-if="meunNames.includes('大中型业务')" @click="goBench('/index/major/placeOrder')">
  6. <svg t="1716189375497" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2709" width="48" height="48">
  7. <path
  8. d="M810.666667 1024H213.333333c-117.333333 0-213.333333-96-213.333333-213.333333V213.333333C0 96 96 0 213.333333 0h597.333334c117.333333 0 213.333333 96 213.333333 213.333333v597.333334c0 117.333333-96 213.333333-213.333333 213.333333z"
  9. fill="#67C23A"
  10. p-id="2710"
  11. data-spm-anchor-id="a313x.collections_detail.0.i17.621d3a811DVWhk"
  12. class="selected"
  13. />
  14. <path
  15. d="M526.933333 360.533333c39.111111 0 71.111111-32.711111 71.111111-73.244444 0-21.333333-10.666667-43.377778-25.6-56.177778 2.133333 4.266667 2.133333 8.533333 2.133334 14.933333 0 28.444444-21.333333 49.777778-47.644445 49.777778-25.6 0-47.644444-21.333333-47.644444-49.777778 0-4.266667 0-8.533333 2.133333-10.666666-12.8 12.8-23.466667 32.711111-23.466666 54.044444-2.133333 39.111111 30.577778 71.111111 68.977777 71.111111z m-2.133333-93.155555c25.6 0 47.644444-21.333333 47.644444-47.644445 0-25.6-21.333333-47.644444-47.644444-47.644444-25.6 0-47.644444 21.333333-47.644444 47.644444s22.044444 47.644444 47.644444 47.644445zM192 702.577778l114.488889 45.511111c-8.533333-19.2-45.511111-305.066667-45.511111-305.066667L192 702.577778z m462.933333 148.622222l6.4-112.355556-255.288889 25.6 248.888889 86.755556z m75.377778-613.688889l-123.022222 19.2c6.4 12.8 10.666667 30.577778 10.666667 45.511111 0 51.911111-41.244444 95.288889-93.155556 95.288889s-93.155556-43.377778-93.155556-95.288889c0-6.4 0-12.8 2.133334-19.2l-149.333334 23.466667c6.4 147.2 71.111111 440.888889 71.111112 440.888889l476.444444-81.777778c-34.844444-36.977778-101.688889-428.088889-101.688889-428.088889zM373.333333 470.755556L574.577778 440.888889l6.4 21.333333-201.244445 30.577778-6.4-22.044444z m43.377778 170.666666l-6.4-25.6 248.888889-36.977778 6.4 25.6-248.888889 36.977778z m-14.933333-73.244444l-8.533334-25.6 320-43.377778 10.666667 25.6-322.133333 43.377778z m0 0"
  16. fill="#FFFFFF"
  17. p-id="2711"
  18. />
  19. </svg>
  20. <div class="icon-word">大中型下单</div>
  21. </div>
  22. <div class="icon-area" v-if="meunNames.includes('个贷业务')" @click="goBench('/index/personal/placeOrder')">
  23. <svg t="1716189375497" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2709" width="48" height="48">
  24. <path
  25. d="M810.666667 1024H213.333333c-117.333333 0-213.333333-96-213.333333-213.333333V213.333333C0 96 96 0 213.333333 0h597.333334c117.333333 0 213.333333 96 213.333333 213.333333v597.333334c0 117.333333-96 213.333333-213.333333 213.333333z"
  26. fill="#67C23A"
  27. p-id="2710"
  28. data-spm-anchor-id="a313x.collections_detail.0.i17.621d3a811DVWhk"
  29. class="selected"
  30. />
  31. <path
  32. d="M526.933333 360.533333c39.111111 0 71.111111-32.711111 71.111111-73.244444 0-21.333333-10.666667-43.377778-25.6-56.177778 2.133333 4.266667 2.133333 8.533333 2.133334 14.933333 0 28.444444-21.333333 49.777778-47.644445 49.777778-25.6 0-47.644444-21.333333-47.644444-49.777778 0-4.266667 0-8.533333 2.133333-10.666666-12.8 12.8-23.466667 32.711111-23.466666 54.044444-2.133333 39.111111 30.577778 71.111111 68.977777 71.111111z m-2.133333-93.155555c25.6 0 47.644444-21.333333 47.644444-47.644445 0-25.6-21.333333-47.644444-47.644444-47.644444-25.6 0-47.644444 21.333333-47.644444 47.644444s22.044444 47.644444 47.644444 47.644445zM192 702.577778l114.488889 45.511111c-8.533333-19.2-45.511111-305.066667-45.511111-305.066667L192 702.577778z m462.933333 148.622222l6.4-112.355556-255.288889 25.6 248.888889 86.755556z m75.377778-613.688889l-123.022222 19.2c6.4 12.8 10.666667 30.577778 10.666667 45.511111 0 51.911111-41.244444 95.288889-93.155556 95.288889s-93.155556-43.377778-93.155556-95.288889c0-6.4 0-12.8 2.133334-19.2l-149.333334 23.466667c6.4 147.2 71.111111 440.888889 71.111112 440.888889l476.444444-81.777778c-34.844444-36.977778-101.688889-428.088889-101.688889-428.088889zM373.333333 470.755556L574.577778 440.888889l6.4 21.333333-201.244445 30.577778-6.4-22.044444z m43.377778 170.666666l-6.4-25.6 248.888889-36.977778 6.4 25.6-248.888889 36.977778z m-14.933333-73.244444l-8.533334-25.6 320-43.377778 10.666667 25.6-322.133333 43.377778z m0 0"
  33. fill="#FFFFFF"
  34. p-id="2711"
  35. />
  36. </svg>
  37. <div class="icon-word">个贷下单</div>
  38. </div>
  39. <div class="icon-area" v-if="meunNames.includes('土地规划市场')" @click="goBench('/index/land/placeOrder')">
  40. <svg t="1716189375497" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2709" width="48" height="48">
  41. <path
  42. d="M810.666667 1024H213.333333c-117.333333 0-213.333333-96-213.333333-213.333333V213.333333C0 96 96 0 213.333333 0h597.333334c117.333333 0 213.333333 96 213.333333 213.333333v597.333334c0 117.333333-96 213.333333-213.333333 213.333333z"
  43. fill="#67C23A"
  44. p-id="2710"
  45. data-spm-anchor-id="a313x.collections_detail.0.i17.621d3a811DVWhk"
  46. class="selected"
  47. />
  48. <path
  49. d="M526.933333 360.533333c39.111111 0 71.111111-32.711111 71.111111-73.244444 0-21.333333-10.666667-43.377778-25.6-56.177778 2.133333 4.266667 2.133333 8.533333 2.133334 14.933333 0 28.444444-21.333333 49.777778-47.644445 49.777778-25.6 0-47.644444-21.333333-47.644444-49.777778 0-4.266667 0-8.533333 2.133333-10.666666-12.8 12.8-23.466667 32.711111-23.466666 54.044444-2.133333 39.111111 30.577778 71.111111 68.977777 71.111111z m-2.133333-93.155555c25.6 0 47.644444-21.333333 47.644444-47.644445 0-25.6-21.333333-47.644444-47.644444-47.644444-25.6 0-47.644444 21.333333-47.644444 47.644444s22.044444 47.644444 47.644444 47.644445zM192 702.577778l114.488889 45.511111c-8.533333-19.2-45.511111-305.066667-45.511111-305.066667L192 702.577778z m462.933333 148.622222l6.4-112.355556-255.288889 25.6 248.888889 86.755556z m75.377778-613.688889l-123.022222 19.2c6.4 12.8 10.666667 30.577778 10.666667 45.511111 0 51.911111-41.244444 95.288889-93.155556 95.288889s-93.155556-43.377778-93.155556-95.288889c0-6.4 0-12.8 2.133334-19.2l-149.333334 23.466667c6.4 147.2 71.111111 440.888889 71.111112 440.888889l476.444444-81.777778c-34.844444-36.977778-101.688889-428.088889-101.688889-428.088889zM373.333333 470.755556L574.577778 440.888889l6.4 21.333333-201.244445 30.577778-6.4-22.044444z m43.377778 170.666666l-6.4-25.6 248.888889-36.977778 6.4 25.6-248.888889 36.977778z m-14.933333-73.244444l-8.533334-25.6 320-43.377778 10.666667 25.6-322.133333 43.377778z m0 0"
  50. fill="#FFFFFF"
  51. p-id="2711"
  52. />
  53. </svg>
  54. <div class="icon-word">土规下单</div>
  55. </div>
  56. <div class="icon-area" v-if="meunNames.includes('资产业务')" @click="goBench('/index/assets/placeOrder')">
  57. <svg t="1716189375497" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2709" width="48" height="48">
  58. <path
  59. d="M810.666667 1024H213.333333c-117.333333 0-213.333333-96-213.333333-213.333333V213.333333C0 96 96 0 213.333333 0h597.333334c117.333333 0 213.333333 96 213.333333 213.333333v597.333334c0 117.333333-96 213.333333-213.333333 213.333333z"
  60. fill="#67C23A"
  61. p-id="2710"
  62. data-spm-anchor-id="a313x.collections_detail.0.i17.621d3a811DVWhk"
  63. class="selected"
  64. />
  65. <path
  66. d="M526.933333 360.533333c39.111111 0 71.111111-32.711111 71.111111-73.244444 0-21.333333-10.666667-43.377778-25.6-56.177778 2.133333 4.266667 2.133333 8.533333 2.133334 14.933333 0 28.444444-21.333333 49.777778-47.644445 49.777778-25.6 0-47.644444-21.333333-47.644444-49.777778 0-4.266667 0-8.533333 2.133333-10.666666-12.8 12.8-23.466667 32.711111-23.466666 54.044444-2.133333 39.111111 30.577778 71.111111 68.977777 71.111111z m-2.133333-93.155555c25.6 0 47.644444-21.333333 47.644444-47.644445 0-25.6-21.333333-47.644444-47.644444-47.644444-25.6 0-47.644444 21.333333-47.644444 47.644444s22.044444 47.644444 47.644444 47.644445zM192 702.577778l114.488889 45.511111c-8.533333-19.2-45.511111-305.066667-45.511111-305.066667L192 702.577778z m462.933333 148.622222l6.4-112.355556-255.288889 25.6 248.888889 86.755556z m75.377778-613.688889l-123.022222 19.2c6.4 12.8 10.666667 30.577778 10.666667 45.511111 0 51.911111-41.244444 95.288889-93.155556 95.288889s-93.155556-43.377778-93.155556-95.288889c0-6.4 0-12.8 2.133334-19.2l-149.333334 23.466667c6.4 147.2 71.111111 440.888889 71.111112 440.888889l476.444444-81.777778c-34.844444-36.977778-101.688889-428.088889-101.688889-428.088889zM373.333333 470.755556L574.577778 440.888889l6.4 21.333333-201.244445 30.577778-6.4-22.044444z m43.377778 170.666666l-6.4-25.6 248.888889-36.977778 6.4 25.6-248.888889 36.977778z m-14.933333-73.244444l-8.533334-25.6 320-43.377778 10.666667 25.6-322.133333 43.377778z m0 0"
  67. fill="#FFFFFF"
  68. p-id="2711"
  69. />
  70. </svg>
  71. <div class="icon-word">资产下单</div>
  72. </div>
  73. </div>
  74. </div>
  75. </template>
  76. <script>
  77. import { mapStores } from 'pinia';
  78. import { useUserStore } from '@/stores/useUserStore';
  79. import { menuStore } from '@/stores/menuStore';
  80. import { showNotify } from 'vant';
  81. export default {
  82. data() {
  83. return {
  84. meunNames: []
  85. };
  86. },
  87. computed: {
  88. ...mapStores(useUserStore),
  89. ...mapStores(menuStore),
  90. },
  91. created() {
  92. this.meunNames = this.menuStore.menuInfo.map(item => item.name);
  93. },
  94. methods: {
  95. goBench(route) {
  96. let hasOpenBar = false;
  97. const postList = this.userStore.userInfo.postList.map((item) => item.name);
  98. const marketPosts = ['销售代表', '客户经理', '客户经理-业务员', '市场一部经理', '市场二部经理', '销售主管', '市场部经理', '营销主管'];
  99. postList.forEach((element) => {
  100. if (marketPosts.includes(element)) {
  101. hasOpenBar = true;
  102. }
  103. });
  104. if (hasOpenBar) {
  105. this.$router.push(route);
  106. } else {
  107. showNotify({ type: 'danger', message: '只有市场部人员才能下单' });
  108. }
  109. },
  110. },
  111. };
  112. </script>
  113. <style scoped>
  114. .card {
  115. background-color: white;
  116. border-radius: 8px;
  117. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  118. padding: 16px;
  119. margin: 10px;
  120. }
  121. .businessTitle {
  122. margin-top: 0px;
  123. }
  124. .icon-area {
  125. display: inline-block;
  126. margin-top: 1%;
  127. width: 25%;
  128. text-align: center;
  129. }
  130. </style>