Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

order-list-item-cancel-numberplate.vue 4.8KB

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