You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rescind-carId-select-list.vue 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view v-if="state.list && state.list.length > 0">
  3. <view
  4. class="list"
  5. v-for="(item, index) in state.list" :key="index"
  6. @click="goDetails(item)"
  7. >
  8. <view class="car-color">
  9. <text class="yanse">{{ getVehiclePlateColorPai(item.vehicleColor) }}</text>
  10. <image class="car" :src='`${$imgUrl}issuance/car.png`' mode=""></image>
  11. </view>
  12. <view class="content">
  13. <view class="content-top">
  14. <text class="vehiclePlate">{{ item.vehicleNum }}</text>
  15. <text v-if="item.auditStatus === 'COMPLETE'" class="statusdsh">待审核</text>
  16. </view>
  17. <view class="content-time">申请时间:{{ item.applyTime }}</view>
  18. </view>
  19. <image class="arrow" :src='`${$imgUrl}issuance/arrow.png`' mode=""></image>
  20. </view>
  21. </view>
  22. <NoDataView v-else text="暂无解除车牌占用订单"></NoDataView>
  23. <!-- <view class="list" @click="goDetails">
  24. <image class="car" src="/static/image/myx.png" mode=""></image>
  25. <view class="content">
  26. <view class="content-top">
  27. <text class="vehiclePlate">贵A12345</text>
  28. <text class="statusbtg">审核不通过</text>
  29. </view>
  30. <view class="content-time">申请时间:2025年02月21日</view>
  31. </view>
  32. <image class="arrow" src="/static/image/myx.png" mode=""></image>
  33. </view>
  34. <view class="list" @click="goDetails">
  35. <image class="car" src="/static/image/myx.png" mode=""></image>
  36. <view class="content">
  37. <view class="content-top">
  38. <text class="vehiclePlate">贵A12345</text>
  39. <text class="statusywc">已完成</text>
  40. </view>
  41. <view class="content-time">申请时间:2025年02月21日</view>
  42. </view>
  43. <image class="arrow" src="/static/image/myx.png" mode=""></image>
  44. </view> -->
  45. </template>
  46. <script setup lang="ts">
  47. import {navTo} from "@/utils/utils";
  48. import { releasePlateaList } from "@/utils/network/api.js";
  49. import {ref, reactive} from "vue";
  50. import {requestNew} from "@/utils/network/request.js";
  51. import { onLoad } from "@dcloudio/uni-app";
  52. import NoDataView from "@/components/no-data-view/no-data-view.vue";
  53. import { getVehiclePlateColorPaiShow, getVehiclePlateColorPai } from "@/datas/vehiclePlateColor";
  54. const state = reactive({
  55. list: []
  56. });
  57. const status = [
  58. {label: '待审核', value: 'AUDIT_FAIL'},
  59. {label: '已解除车牌占用', value: 'HANDLED_SUCCESS'},
  60. {label: '已关闭', value: 'UNHANDLED'},
  61. ]
  62. onLoad(() => {
  63. getList()
  64. });
  65. const getList = () => {
  66. const options = {
  67. type: 2,
  68. data: {},
  69. method: "POST",
  70. showLoading: true,
  71. };
  72. requestNew(releasePlateaList, options).then((res) => {
  73. let data = res.assOrders || [];
  74. state.list = data.map(item => {
  75. let vehicleIdArr = item.vehicleId.split('_');
  76. item.vehicleNum = vehicleIdArr[0];
  77. item.vehicleColor = vehicleIdArr[1];
  78. return item
  79. })
  80. });
  81. };
  82. const goDetails = (item) => {
  83. navTo(`/subpackage/after-sale/rescind-carId/rescind-carId-select-details?orderNo=${item.orderNo}`)
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. .list{
  88. background: #FFFFFF;
  89. border-radius: 12rpx;
  90. border: 1px solid #FFFFFF;
  91. width: 90%;
  92. margin: 30rpx auto;
  93. padding: 20rpx;
  94. box-sizing: border-box;
  95. display: flex;
  96. align-items: center;
  97. .car-color{
  98. position: relative;
  99. .yanse {
  100. position: absolute;
  101. background: red;
  102. color: white;
  103. border-radius: 15rpx 0 15rpx 0;
  104. text-align: center;
  105. font-size: 24rpx;
  106. top: 0;
  107. left: 0;
  108. padding: 2rpx 6rpx;
  109. background-color: rgb(56,139,252);
  110. }
  111. }
  112. .content{
  113. font-weight: 400;
  114. width: 76%;
  115. margin-left: 20rpx;
  116. .content-top{
  117. margin-bottom: 20rpx;
  118. .vehiclePlate{
  119. font-size: 30rpx;
  120. color: #01243A;
  121. }
  122. // 待审核
  123. .statusdsh{
  124. font-size: 24rpx;
  125. color: #1458E5;
  126. background: #E3ECFF;
  127. border-radius: 6rpx;
  128. border: 1px solid #1458E5;
  129. margin-left: 20rpx;
  130. padding: 6rpx 14rpx;
  131. }
  132. // 不通过
  133. .statusbtg{
  134. font-size: 24rpx;
  135. color: #C2A760;
  136. background: #F8F4E7;
  137. border-radius: 6rpx;
  138. border: 1px solid #C2A760;
  139. margin-left: 20rpx;
  140. padding: 2rpx 4rpx;
  141. }
  142. // 已完成
  143. .statusywc{
  144. font-size: 24rpx;
  145. color: #42D175;
  146. background: #E6FFEF;
  147. border-radius: 6rpx;
  148. border: 1px solid #42D175;
  149. margin-left: 20rpx;
  150. padding: 2rpx 4rpx;
  151. }
  152. }
  153. .content-time{
  154. font-size: 26rpx;
  155. color: #999999;
  156. }
  157. }
  158. .car{
  159. width: 100rpx;
  160. height: 100rpx;
  161. }
  162. .arrow{
  163. width: 18rpx;
  164. height: 34rpx;
  165. }
  166. }
  167. </style>