details.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <div class="lookDetail">
  3. <div class="list-item">
  4. <div class="formContent-item_title">内部车基本信息</div>
  5. <el-row>
  6. <el-col
  7. :span="12"
  8. v-for="(item,index) in interiorCar"
  9. :key="index"
  10. >
  11. <el-col :span="8">{{item.name}}</el-col>
  12. <el-col :span="12">{{item.label}}</el-col>
  13. </el-col>
  14. </el-row>
  15. <div class="formContent-item_title">充值详情</div>
  16. <el-row>
  17. <el-col
  18. :span="12"
  19. v-for="(item,index) in rechargeDetails"
  20. :key="index"
  21. >
  22. <el-col :span="8">{{item.name}}</el-col>
  23. <el-col
  24. :span="12"
  25. :title='item.label'
  26. class="whitespace"
  27. >{{item.label}}</el-col>
  28. </el-col>
  29. </el-row>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. export default {
  35. props: ['params'],
  36. data () {
  37. return {
  38. interiorCar: [
  39. {
  40. name: '车主名称',
  41. label: ''
  42. }, {
  43. name: '门牌号码',
  44. label: '-'
  45. }, {
  46. name: '车牌号码',
  47. label: ''//platNo
  48. }, {
  49. name: '车牌类型',
  50. label: '',//carType
  51. }, {
  52. name: '手机号',
  53. label: ''//
  54. }
  55. ],
  56. rechargeDetails: [
  57. {
  58. name: '收费类型',
  59. label: '-'//0
  60. }, {
  61. name: '收费类型',
  62. label: '-'//1
  63. }, {
  64. name: '充值数额',
  65. label: ''//chargeNumber 2
  66. }, {
  67. name: '赠送数额',
  68. label: '-'//3
  69. }, {
  70. name: '充值时段',
  71. label: '-'//4
  72. }, {
  73. name: '订单类型',
  74. label: '-'//5
  75. }, {
  76. name: '操作备注',
  77. label: '-'//6
  78. }, {
  79. name: '订单号码',
  80. label: ''//orderNo 7
  81. }, {
  82. name: '操作时间',
  83. label: '-'//8
  84. }, {
  85. name: '审核时间',
  86. label: '-'//9
  87. }, {
  88. name: '操作人员',
  89. label: '-'//10
  90. }, {
  91. name: '审核人员',
  92. label: '-'//11
  93. }
  94. ]
  95. }
  96. },
  97. created () {
  98. this.interiorCar[0].label = this.params.row.userName;
  99. this.interiorCar[2].label = this.params.row.fullCarNoStr;
  100. this.interiorCar[3].label = this.params.row.carType == 0 ? '临时车'
  101. : this.params.row.carType == 1 ? 'VIP车'
  102. : this.params.row.carType == 2 ? '月租车'
  103. : this.params.row.carType == 3 ? '充时车'
  104. : this.params.row.carType == 4 ? '时租车'
  105. : this.params.row.carType == 5 ? '产权车'
  106. : this.params.row.carType == 6 ? '计次车'
  107. : this.params.row.carType == 7 ? '贵宾卡'
  108. : this.params.row.carType == 8 ? '员工卡' : '--';
  109. this.interiorCar[4].label = this.params.row.tel;
  110. debugger
  111. this.rechargeDetails[1].label = this.params.row.carType == 0 ? '临时车'
  112. : this.params.row.carType == 1 ? 'VIP车'
  113. : this.params.row.carType == 2 ? '月租车'
  114. : this.params.row.carType == 3 ? '充时车'
  115. : this.params.row.carType == 4 ? '时租车'
  116. : this.params.row.carType == 5 ? '产权车'
  117. : this.params.row.carType == 6 ? '计次车'
  118. : this.params.row.carType == 7 ? '贵宾卡'
  119. : this.params.row.carType == 8 ? '员工卡' : '--';
  120. this.rechargeDetails[2].label = this.params.row.chargeNumber;
  121. this.rechargeDetails[3].label = this.params.row.credit || '--';
  122. this.rechargeDetails[6].label = this.params.row.remark
  123. this.rechargeDetails[7].label = this.params.row.orderNo;
  124. this.rechargeDetails[8].label = this.params.row.payTime;
  125. }
  126. }
  127. </script>
  128. <style lang="scss" scoped>
  129. .el-col {
  130. margin: 8px 0 !important;
  131. }
  132. .whitespace {
  133. white-space: nowrap;
  134. overflow: hidden;
  135. text-overflow: ellipsis;
  136. }
  137. </style>