detail.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <el-dialog
  3. title="车辆管理 · 车辆详情"
  4. :visible.sync="isShow"
  5. width="60%"
  6. :append-to-body="true"
  7. >
  8. <div class="order-detail" v-show="true||detail.orderId != ''">
  9. <div flex="main:left" class="group">
  10. <div class="w100">车牌号:{{ detail.carNumber }}</div>
  11. <div>驾驶员:{{ driverList }}</div>
  12. </div>
  13. <div flex="main:left" class="group">
  14. <div class="w100">行驶证资料 上传行驶证</div>
  15. <div>号牌号码:鲁GJT00C</div>
  16. <div>车辆类型:{{ detail.typeName }}</div>
  17. <div class="w100">所有人:{{ detail.owner }}</div>
  18. <div class="w100">住址:{{ detail.address }}</div>
  19. <div>使用性质:{{ detail.useNature }}</div>
  20. <div>品牌型号:XX牌XXXXXXXXXXX</div>
  21. <div>车辆识别代号:{{ detail.vehicleIdCode }}</div>
  22. <div>发动机号码:{{ detail.engineNumber }}</div>
  23. <div>注册日期:{{ detail.registerDate }}</div>
  24. <div>发证日期:{{ detail.issueDate }}</div>
  25. <div>档案编号:{{ detail.fileNo }}</div>
  26. <div>核定载人数:{{ detail.approvedCapacity }}人</div>
  27. <div>总质量:{{ detail.grossMass }}</div>
  28. <div>整备质量:{{ detail.unladenMass }} kg</div>
  29. <div>核定载质量:{{ detail.approvedLoad }}</div>
  30. <div>外廓尺寸:{{ detail.overallDimension }}</div>
  31. <div>准牵引总质量:{{ detail.tractionMass }} kg</div>
  32. <div>检验记录(能源类型):{{ detail.energyType }}</div>
  33. <div>
  34. <div>行驶证第一页:</div>
  35. <img :src="'https://dwx.auyen.com/'+detail.faceUrl"/>
  36. </div>
  37. <div>行驶证第二页:</div>
  38. </div>
  39. </div>
  40. </el-dialog>
  41. </template>
  42. <script>
  43. import { $truckFindById } from '@/service/strategy'
  44. export default {
  45. name: 'truckDetail',
  46. data() {
  47. return {
  48. isShow: false,
  49. detail: {}
  50. }
  51. },
  52. methods: {
  53. open(args) {
  54. this.isShow = true
  55. $truckFindById({ id: args.truckId }).then(res => {
  56. this.detail = res.data
  57. })
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .group {
  64. width: 100%;
  65. flex-wrap: wrap;
  66. border-bottom: 2px solid #eee;
  67. padding: 20px;
  68. padding-top: 10px;
  69. div {
  70. margin-top: 10px;
  71. width: 50%;
  72. // 偶数
  73. &:nth-child(even).hidden {
  74. width: 100%;
  75. }
  76. }
  77. span {
  78. margin-left: 10px;
  79. }
  80. div:empty,
  81. span:empty,
  82. .hidden {
  83. width: 1px;
  84. height: 0;
  85. margin: 0;
  86. padding: 0 !important;
  87. visibility: hidden;
  88. }
  89. .detail {
  90. width: 100%;
  91. padding: 10px 0;
  92. border-top: 1px solid #eee;
  93. flex-wrap: wrap;
  94. .rd {
  95. margin: 0;
  96. margin-bottom: 4px;
  97. & div {
  98. margin: 0;
  99. }
  100. .desc {
  101. font-size: 12px;
  102. margin-left: 10px;
  103. }
  104. // &::before {
  105. // content: "|";
  106. // margin: 0 10px;
  107. // }
  108. // &:first-child::before {
  109. // content: "";
  110. // margin: 0;
  111. // }
  112. }
  113. }
  114. .nm {
  115. margin: 0;
  116. }
  117. .w100 {
  118. width: 100%;
  119. }
  120. }
  121. .btn {
  122. margin-left: 10px;
  123. padding: 0;
  124. }
  125. </style>