index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <dev v-if="saberTenantId != 409341">
  3. <div v-if="billType && saberTenantId != 212186 && saberTenantId != 504978">
  4. <tongjiSchool v-if="billType == 1"></tongjiSchool>
  5. <landTransportation v-else-if="billType == 7"></landTransportation>
  6. <jiatongPage v-else-if="billType == 8"></jiatongPage>
  7. <noctite v-else-if="billType == 9"></noctite>
  8. <equipment-control v-else-if="billType == 10"></equipment-control>
  9. <tireindex v-else-if="billType == 11" :sysType="billType"></tireindex>
  10. <defaultPage v-else :sysType="billType"></defaultPage>
  11. </div>
  12. <div v-else-if="saberTenantId == 212186" style="padding: 10px">
  13. <el-card class="home-container__card">
  14. <div class="title">
  15. <span>
  16. 快速发起
  17. </span>
  18. </div>
  19. <div class="content">
  20. <div class="content-icon" @click="inPage('/productionManagement/index')">
  21. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  22. <span style="font-size: 14px">模拟生产</span>
  23. </div>
  24. </div>
  25. </el-card>
  26. </div>
  27. <div v-else-if="saberTenantId == 504978" style="padding: 10px">
  28. <el-card class="home-container__card">
  29. <div class="title">
  30. <span>
  31. 快速发起
  32. </span>
  33. </div>
  34. <div class="content">
  35. <div class="content-icon" @click="inPage('/EquipmentArchives/index')">
  36. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  37. <span style="font-size: 14px">设备档案</span>
  38. </div>
  39. <div class="content-icon" @click="inPage('/maintenanceQ/index')">
  40. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  41. <span style="font-size: 14px">设备维修</span>
  42. </div>
  43. </div>
  44. </el-card>
  45. </div>
  46. </dev>
  47. </template>
  48. <script>
  49. import tireindex from '@/views/wel/home/tirezujian/tireindex';
  50. import defaultPage from "@/views/wel/home/defaultPage";
  51. import tongjiSchool from "@/views/wel/home/tongjiSchool";
  52. import landTransportation from "@/views/wel/home/landTransportation/landTransportation";
  53. import jiatongPage from "@/views/wel/home/jiatongPage/landTransportation";
  54. import noctite from "@/views/wel/home/noctite/landTransportation";
  55. import equipmentControl from "@/views/wel/home/equipmentControl/landTransportation";
  56. import { getUserInfo } from "@/api/system/user";
  57. import { setStore } from "@/util/store";
  58. import { areaTypeTree } from "@/api/basicData/customerInformation";
  59. export default {
  60. name: "wel",
  61. data() {
  62. return {
  63. billType: "",
  64. saberTenantId:''
  65. };
  66. },
  67. created() {
  68. console.log(JSON.parse(localStorage.getItem('saber-tenantId')).content)
  69. this.saberTenantId = JSON.parse(localStorage.getItem('saber-tenantId')).content
  70. // console.log(localStorage.getItem('saber-tenantId'))
  71. getUserInfo().then(res => {
  72. this.billType = res.data.data.billType;
  73. localStorage.setItem('sysitemType', this.billType)
  74. });
  75. if (!localStorage.getItem('areaTypeTree')) {
  76. areaTypeTree().then(res => {
  77. localStorage.setItem('areaTypeTree', JSON.stringify(res.data.data));
  78. })
  79. }
  80. },
  81. components: {
  82. tireindex,
  83. tongjiSchool,
  84. defaultPage,
  85. jiatongPage,
  86. noctite,
  87. equipmentControl,
  88. landTransportation
  89. },
  90. methods: {
  91. inPage(url){
  92. this.$router.push(url);
  93. },
  94. }
  95. };
  96. </script>
  97. <style lang="scss" scoped>
  98. .content {
  99. display: flex;
  100. &-icon {
  101. display: flex;
  102. flex-direction: column;
  103. align-items: center;
  104. margin: 1.5vh 1vw 0vh 1vw;
  105. span {
  106. margin-top: 0.2vh;
  107. }
  108. }
  109. }
  110. .tradingIcon {
  111. font-size: 36px;
  112. }
  113. </style>