charge-orderList.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script setup lang="ts">
  2. import router from '@/router'
  3. defineProps<{
  4. orderList: Api.xsbOrderList[]
  5. subPackOrder: any
  6. }>()
  7. </script>
  8. <template>
  9. <view class="">
  10. <view v-for="item in orderList" :key="item.orderNumber" class="mt-20rpx mt20rpx rounded-16rpx bg-#FFF p-24rpx" @click="router.push({ name: 'charge-order-detail' })">
  11. <view class="flex items-center justify-between">
  12. <view>
  13. <view class="text-28rpx font-bold">
  14. {{ item.shopName }}
  15. </view>
  16. <view class="mt-20rpx text-24rpx text-#AAA">
  17. 订单时间:{{ item.createTime || '未知' }}
  18. </view>
  19. <view class="mt-20rpx text-24rpx text-#AAA">
  20. 终端名称:{{ item.orderItemList?.[0]?.goodsName || '未知' }}
  21. </view>
  22. </view>
  23. <view class="text-28rpx text-#4EDC86">
  24. {{ subPackOrder?.handleCommonOrderStatusText(item) }}
  25. </view>
  26. </view>
  27. <view class="my-20rpx h-2rpx w-full bg-#F0F0F0" />
  28. <view class="flex items-center justify-between">
  29. <view class="text-28rpx">
  30. 充电费用:
  31. </view>
  32. <view class="text-32rpx text-#FF6464 font-800">
  33. <text class="text-18rpx">
  34. </text>
  35. {{ item.actualTotal }}
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <style lang="scss" scoped></style>