Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

order-list-item-logoff-etc.vue 4.9KB

2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <!-- ETC注销业务订单ITEM
  2. 订单类型 :审核中、审核不通过、已完成-->
  3. <template>
  4. <view :class="item.orderStatus == OrderStatus.已取消 ? 'item finished' : 'item'" @click.stop="gotoOrderDetails(item)">
  5. <view class="head">
  6. <view class="name">
  7. <image :src="`${$imgUrl}order/icon-star-green.png`" class="icon"></image>
  8. <text class="title">{{item.productName ?? ''}}</text>
  9. </view>
  10. <view class="status text-green" :class="{'text-orange':item.orderStep == OrderStatus.已完成 || item.orderStep == OrderStatus.已结束
  11. || item.orderStep == OrderStatus['换货-设备已回收'] || item.orderStep == OrderStatus.退款成功 || item.orderStep == OrderStatus.退货成功}">
  12. {{getOrderStatusName(item.orderStep)}}</view>
  13. </view>
  14. <view class="detail">
  15. <view class="orders">
  16. <view class="order-text">
  17. <text class="type">售后单号:</text>
  18. <text class="value">{{item.orderId}}</text>
  19. </view>
  20. <view class="order-text odd">
  21. <text class="type">业务类型:</text>
  22. <text class="value">{{item.orderType}}</text>
  23. </view>
  24. <view class="order-text">
  25. <text class="type">车牌号:</text>
  26. <text class="value">{{item.vehiclePlate}}</text>
  27. </view>
  28. </view>
  29. <view class="money"><text class="cny">¥</text><text class="amount">{{item.amount / 100 ?? '0.00'}}</text></view>
  30. </view>
  31. <!-- 审核不通过 -->
  32. <view class="btns" v-if="item.orderStep == OrderStatus.审核不通过">
  33. <view class="btn btn-primary" @click.stop="gotoLogoffETC(item)">重新申请</view>
  34. </view>
  35. </view>
  36. </template>
  37. <script lang="ts" setup>
  38. import useOrderSkip from "@/composables/order/useOrderSkip";
  39. import {getOrderStatusName} from "@/utils/utils";
  40. import {OrderStatus} from "@/datas/enum";
  41. defineProps({
  42. item: {
  43. type: Object,
  44. default: () => ({}),
  45. },
  46. });
  47. //办理订单按钮跳转业务逻辑
  48. const {gotoOrderDetails,gotoLogoffETC} = useOrderSkip();
  49. </script>
  50. <style lang="scss" scoped>
  51. .item {
  52. background: #ffffff;
  53. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  54. border-radius: 20rpx;
  55. box-sizing: border-box;
  56. display: flex;
  57. flex-direction: column;
  58. margin: 30rpx 30rpx 0rpx;
  59. }
  60. .bg-white .item {
  61. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  62. }
  63. .item .head {
  64. display: flex;
  65. justify-content: space-between;
  66. align-items: center;
  67. padding: 20rpx 28rpx;
  68. border-bottom: 1px solid #dcdcdc;
  69. }
  70. .item .head {
  71. .head-row {
  72. display: flex;
  73. width: 100%;
  74. justify-content: space-between;
  75. align-items: center;
  76. }
  77. .name {}
  78. .name>text {
  79. font-size: 26rpx;
  80. font-family: Noto Sans S Chinese;
  81. font-weight: 400;
  82. color: #999999;
  83. line-height: 36rpx;
  84. }
  85. }
  86. .item .head .icon {
  87. width: 48rpx;
  88. height: 48rpx;
  89. }
  90. .item .head .name {
  91. display: flex;
  92. align-items: center;
  93. }
  94. .text-green {
  95. font-size: 26rpx;
  96. color: #00b38b;
  97. }
  98. .text-orange {
  99. font-size: 26rpx;
  100. color: #ff8000;
  101. }
  102. .text-black {
  103. font-size: 28rpx;
  104. color: #333;
  105. font-weight: 500;
  106. }
  107. .title {
  108. font-size: 30rpx;
  109. color: #333;
  110. }
  111. .tag-green {
  112. font-size: 22rpx;
  113. height: 40rpx;
  114. line-height: 40rpx;
  115. padding: 0 12rpx;
  116. border-radius: 6rpx;
  117. background: #d9f4ee;
  118. color: #00b38b;
  119. }
  120. .tag-grey {
  121. font-size: 22rpx;
  122. height: 40rpx;
  123. line-height: 40rpx;
  124. padding: 0 12rpx;
  125. border-radius: 6rpx;
  126. background: #e8e8e8;
  127. color: #666;
  128. }
  129. .detail {
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. padding: 30rpx 32rpx;
  134. }
  135. .detail .type {
  136. font-size: 26rpx;
  137. color: #999;
  138. }
  139. .detail .value {
  140. font-size: 26rpx;
  141. color: #333;
  142. }
  143. .finished .detail .value {
  144. color: #999;
  145. }
  146. .detail .odd {
  147. margin: 20rpx 0;
  148. }
  149. .cny {
  150. font-size: 26rpx;
  151. color: #333;
  152. }
  153. .finished .cny {
  154. color: #999;
  155. }
  156. .amount {
  157. font-size: 40rpx;
  158. font-weight: bold;
  159. }
  160. .bottom .amount {
  161. color: #ff8000;
  162. }
  163. .finished .amount {
  164. color: #999;
  165. }
  166. .btns {
  167. position: relative;
  168. display: flex;
  169. align-items: center;
  170. justify-content: flex-end;
  171. border-top: 1px solid #dcdcdc;
  172. margin: 0 30rpx;
  173. padding: 20rpx 0;
  174. }
  175. .bottom {
  176. display: flex;
  177. justify-content: space-between;
  178. align-items: center;
  179. border-top: 1px solid #dcdcdc;
  180. margin: 0 30rpx;
  181. padding: 20rpx 0;
  182. }
  183. .btn {
  184. height: 60rpx;
  185. line-height: 58rpx;
  186. border-radius: 30rpx;
  187. padding: 0 24rpx;
  188. font-size: 26rpx;
  189. box-sizing: border-box;
  190. margin-right: 20rpx;
  191. }
  192. .btns .btn:last-child {
  193. margin: 0;
  194. }
  195. .btns .state {
  196. position: absolute;
  197. left: 0;
  198. font-size: 26rpx;
  199. font-family: Noto Sans S Chinese;
  200. font-weight: 400;
  201. color: #999999;
  202. line-height: 58rpx;
  203. text {
  204. font-size: 26rpx;
  205. font-family: Noto Sans S Chinese;
  206. font-weight: 400;
  207. color: #00B38B;
  208. line-height: 58rpx;
  209. }
  210. }
  211. .btn-primary {
  212. border: 1px solid #00b38b;
  213. color: #00b38b;
  214. }
  215. .btn-disable {
  216. border: 1px solid #999;
  217. color: #999;
  218. }
  219. .btn-normal {
  220. border: 1px solid #dcdcdc;
  221. color: #333;
  222. }
  223. </style>