enterpriseDetail.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <div id="pages">
  3. <mu-appbar style="width: 100%;" color="primary" :title="$t('Company details')">
  4. <router-link to="/enterprisemanage" slot="left">
  5. <mu-icon value="arrow_back"></mu-icon>
  6. </router-link>
  7. </mu-appbar>
  8. <div class="container">
  9. <div class="row">
  10. <h5>{{detail.ComName}}</h5>
  11. <ul>
  12. <li><em>{{$t("Enterprise name")}}:</em><span>{{detail.ComName}}</span></li>
  13. <li><em>{{$t("Enterprise types")}}:</em><span>{{ComType}}</span></li>
  14. <li>
  15. <em>{{$t("Enterprise address")}}:</em><span>{{detail.ProvCode}}{{detail.CityCode}}{{detail.AreaCode}}{{detail.Addr}}</span>
  16. </li>
  17. <li><em>{{$t("Subordinate supervision")}}:</em><span>
  18. <em v-for="(org,index) in detail.Orgs">{{org.Orgname}} <i
  19. v-if="detail.Orgs.length-1 != index">、</i></em>
  20. </span></li>
  21. <li><em>{{$t("Contacts")}}:</em><span>{{Legal}}</span></li>
  22. <li><em>{{$t("phone")}}:</em><span>{{Phone}}</span></li>
  23. </ul>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import axios from 'axios';
  30. let qs = require('qs');
  31. import Global from '../Global.js'
  32. export default {
  33. data() {
  34. return {
  35. detail: {},
  36. // Legal:'',
  37. // Phone:'',
  38. // ComType:'',
  39. }
  40. },
  41. mounted() {
  42. this.writeData();
  43. },
  44. computed: {
  45. Legal() {
  46. if (this.detail.Legal == '' || this.detail.Legal == undefined) {
  47. return this.$t('nothing')
  48. } else {
  49. return this.detail.Legal
  50. }
  51. },
  52. Phone() {
  53. if (this.detail.Phone == '' || this.detail.Phone == undefined) {
  54. return this.$t('nothing')
  55. } else {
  56. return this.detail.Legal
  57. }
  58. },
  59. ComType() {
  60. if (this.detail.ComType == '' || this.detail.ComType == undefined) {
  61. return this.$t('nothing')
  62. } else {
  63. return this.detail.Legal
  64. }
  65. },
  66. },
  67. methods: {
  68. writeData() {
  69. const that = this;
  70. let url = headapi + 'v1/Company/ComInfoDetail';
  71. let param = {
  72. token: localStorage.token,
  73. comId: that.$route.query.ComId
  74. };
  75. let postdata = qs.stringify(param);
  76. axios.post(url, postdata).then(function (data) {
  77. let json = data.data;
  78. if (json.Code == 0) {
  79. that.detail = json.Rs;
  80. } else {
  81. this.Toast(that.TransMemo(json.Memo));
  82. }
  83. }, function (response) {
  84. console.info(response);
  85. })
  86. }
  87. },
  88. }
  89. </script>
  90. <style scoped>
  91. /*mu-header*/
  92. .mu-primary-color {
  93. line-height: 60px;
  94. height: 60px;
  95. background: url("../static/images/comm/headerBg.png") top center no-repeat;
  96. background-size: 100%;
  97. }
  98. /deep/ .mu-appbar-left {
  99. padding-top: 15px;
  100. }
  101. /deep/ .material-icons {
  102. color: #fff;
  103. }
  104. /deep/ .mu-appbar-title {
  105. text-align: center;
  106. }
  107. #pages {
  108. position: absolute;
  109. width: 100%;
  110. overflow: hidden;
  111. display: block;
  112. margin-top: 0px;
  113. top: 0;
  114. bottom: 0;
  115. padding-bottom: 200px;
  116. background: #f2f2f2;
  117. }
  118. .row {
  119. width: 100%;
  120. overflow: hidden;
  121. display: block;
  122. margin: 0 auto;
  123. margin-top: 10px;
  124. background: #fff;
  125. }
  126. .row h5 {
  127. width: 80%;
  128. overflow: hidden;
  129. display: block;
  130. margin: 0 auto;
  131. text-align: center;
  132. font-size: 20px;
  133. color: #FFA200;
  134. padding: 20px;
  135. border-bottom: 1px solid rgba(112, 112, 112, 0.14);
  136. margin-bottom: 20px;
  137. }
  138. .row ul {
  139. width: 80%;
  140. overflow: hidden;
  141. display: block;
  142. margin: 0 auto;
  143. margin-top: 10px;
  144. }
  145. .row li {
  146. width: 100%;
  147. overflow: hidden;
  148. display: block;
  149. margin: 0 auto;
  150. margin-bottom: 10px;
  151. font-size: 16px;
  152. }
  153. .row li em {
  154. float: left;
  155. min-width: 80px;
  156. }
  157. .row li span {
  158. color: #6E6E6E;
  159. }
  160. </style>