Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

order-list-item-edit-car.vue 5.3KB

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