quick-launch.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <div class="home-container">
  3. <el-card class="home-container__card">
  4. <div class="title">
  5. <span>
  6. 快速发起
  7. </span>
  8. </div>
  9. <div class="content">
  10. <div class="content-icon" @click="inPage('064132_DA')">
  11. <i class="el-icon-tickets" style="color:#FFFFFF;background-color: #409EFF;border-radius: 5px;font-size: 22px;padding: 8px;"></i>
  12. <span>箱档案</span>
  13. </div>
  14. <div class="content-icon" @click="inPage('064132_MX')">
  15. <i class="el-icon-sold-out" style="color:#FFFFFF;background-color: #18e6e8;border-radius: 5px;font-size: 22px;padding: 8px;"></i>
  16. <span>买箱</span>
  17. </div>
  18. <div class="content-icon" @click="inPage('064132_SELL')">
  19. <i class="el-icon-sell" style="color:#FFFFFF;background-color: #ff1111;border-radius: 5px;font-size: 22px;padding: 8px;"></i>
  20. <span>卖箱</span>
  21. </div>
  22. <div class="content-icon" @click="inPage('064132_CK')">
  23. <i class="el-icon-top" style="color:#FFFFFF;background-color: #ecbf1a;border-radius: 5px;font-size: 22px;padding: 8px;"></i>
  24. <span>出口装运</span>
  25. </div>
  26. <div class="content-icon" @click="inPage('064132_JK')">
  27. <i class="el-icon-bottom" style="color:#FFFFFF;background-color: #1eff11;border-radius: 5px;font-size: 22px;padding: 8px;"></i>
  28. <span>进口返程</span>
  29. </div>
  30. <div class="content-icon" @click="inPage('064132_BT')">
  31. <i class="el-icon-bottom" style="color:#FFFFFF;background-color: #1eff11;border-radius: 5px;font-size: 22px;padding: 8px;"></i>
  32. <span>箱轨迹</span>
  33. </div>
  34. </div>
  35. </el-card>
  36. </div>
  37. </template>
  38. <script>
  39. import { getToken } from "@/util/auth";
  40. export default {
  41. name: "basicContainer",
  42. data() {
  43. return {
  44. largeScreenToken: '',
  45. roleName:''
  46. };
  47. },
  48. props: {
  49. sysType: Number
  50. },
  51. created() {
  52. if (this.sysType == 2) {
  53. this.getWorkDicts('large_screen').then(res => {
  54. this.largeScreenToken = res.data.data[0].dictKey;
  55. })
  56. }
  57. this.roleName=localStorage.getItem("roleName")
  58. },
  59. methods: {
  60. inPage(type) {
  61. //出口
  62. switch (type) {
  63. case "064132_DA":
  64. this.$router.push("/basicData/container/archives");
  65. break;
  66. case "064132_MX":
  67. this.$router.push("/boxManagement/buyContainer/index");
  68. break;
  69. case "064132_SELL":
  70. this.$router.push("/boxManagement/sellingContainers/index");
  71. break;
  72. case "064132_CK":
  73. this.$router.push("/boxManagement/exportShipment/index");
  74. break;
  75. case "064132_JK":
  76. this.$router.push("/boxManagement/importReturnTrip/index");
  77. break;
  78. case "064132_BT":
  79. this.$router.push("/boxManagement/boxTrack/index");
  80. break;
  81. }
  82. }
  83. }
  84. };
  85. </script>
  86. <style lang="scss" scoped>
  87. .home-container {
  88. padding: 5px;
  89. box-sizing: border-box;
  90. height: 100%;
  91. ::v-deep .el-card__body {
  92. padding: 10px 15px;
  93. font-size: 14px;
  94. }
  95. &__card {
  96. width: 100%;
  97. height: 100%;
  98. }
  99. .title {
  100. display: flex;
  101. justify-content: space-between;
  102. }
  103. }
  104. .tradingIcon {
  105. font-size: 36px;
  106. }
  107. .content {
  108. display: flex;
  109. &-icon {
  110. display: flex;
  111. flex-direction: column;
  112. align-items: center;
  113. margin: 1.5vh 1vw 0vh 1vw;
  114. span {
  115. margin-top: 0.2vh;
  116. }
  117. }
  118. }
  119. .content2 {
  120. display: flex;
  121. justify-content: center;
  122. align-items: center;
  123. height: 10vh;
  124. width: 80vw;
  125. .divider {
  126. display: block;
  127. height: 0px;
  128. width: 100%;
  129. margin-top: -20px;
  130. border-top: 1px dashed #dcdfe6;
  131. }
  132. &-item {
  133. margin-left: 1vw;
  134. .card {
  135. width: 100px;
  136. display: flex;
  137. flex-direction: column;
  138. align-items: center;
  139. &-title {
  140. width: 40px;
  141. height: 40px;
  142. text-align: center;
  143. border-radius: 50%;
  144. font-size: 20px;
  145. font-weight: 600;
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. span {
  150. line-height: 20px;
  151. }
  152. }
  153. &-title1 {
  154. color: #037fe1;
  155. background-color: rgba(3, 127, 225, 0.15);
  156. }
  157. &-title2 {
  158. color: #ffa21e;
  159. background-color: rgba(255, 162, 30, 0.15);
  160. }
  161. &-title3 {
  162. color: #fb5b60;
  163. background-color: rgba(251, 91, 96, 0.15);
  164. }
  165. &-title4 {
  166. color: #42bc6f;
  167. background-color: rgba(66, 188, 111, 0.15);
  168. }
  169. &-content {
  170. display: flex;
  171. flex-direction: column;
  172. margin-top: 4px;
  173. &-text {
  174. color: #909399;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. </style>