Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

order-list-item.vue 3.5KB

2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!-- 订单列表 -->
  2. <template>
  3. <!-- 搜索框 -->
  4. <view class="as-layout-horizontal as-gravity-center-start search-layout">
  5. <view class="search-box">
  6. <image :src="`${$imgUrl}service/icon-search.png`" class="icon"></image>
  7. <input class="search" placeholder="请输入车牌号" @input="onKeyInput" />
  8. </view>
  9. <view class="search-btn" @click="doSearch">搜索</view>
  10. </view>
  11. <empty-view :mode="config.emptyHint.mode" :content="config.emptyHint.hint" v-if="ordersList.length === 0" />
  12. <template v-else>
  13. <!-- 列表 -->
  14. <block v-for="(item,index) in ordersList" :key="index">
  15. <!-- 新办订单 -->
  16. <order-list-item-new :item="item" v-if="item.orderType == 'ISSUE'" />
  17. <!-- 卡签同时更换/更换卡/更换签订单 -->
  18. <order-list-item-card-sign :item="item" v-else-if="item.orderType == OrderTypes.同时换卡换签 || item.orderType == 'REPLACEMENT_CARD' || item.orderType == 'REPLACEMENT_SIGNATURE'" />
  19. <!-- 增补OBU订单 -->
  20. <order-list-item-obu :item="item" v-else-if="item.orderType == 'SUPPLEMENT_OBU'" />
  21. <!-- 公务车增补OBU订单 -->
  22. <order-list-item-obu :item="item" v-else-if="item.orderType == 'OFFICAL_SUPPLEMENT_OBU'" />
  23. <!-- ETC注销业务类型订单 -->
  24. <order-list-item-logoff-etc :item="item" v-else-if="item.orderType == OrderTypes.ETC注销" />
  25. <!-- 车辆信息变更 -->
  26. <order-list-item-edit-car :item="item" v-else-if="item.orderType == OrderTypes.车辆信息变更" />
  27. <!-- 解除车牌占用 -->
  28. <order-list-item-cancel-numberplate :item="item" v-else-if="item.orderType == OrderTypes.解除车牌占用" />
  29. <!-- 单位账户充值开户订单 -->
  30. <order-list-item-recharge :item="item" v-else-if="item.orderType == 'EXCHANGE_CARD_TYPE'" />
  31. </block>
  32. <uni-load-more :status="params.status" iconType="snow" :icon-size="16" :content-text="config.contentTxt"
  33. v-if="ordersList.length > 0"/>
  34. </template>
  35. </template>
  36. <script setup lang="ts">
  37. import orderListItemNew from "./order-list-item-new.vue";
  38. import orderListItemCardSign from "./order-list-item-card-sign.vue";
  39. import orderListItemObu from "./order-list-item-obu.vue";
  40. import orderListItemLogoffEtc from "./order-list-item-logoff-etc.vue";
  41. import orderListItemEditCar from "./order-list-item-edit-car.vue";
  42. import orderListItemCancelNumberplate from './order-list-item-cancel-numberplate.vue';
  43. import orderListItemRecharge from "./order-list-item-cancel-recharge.vue";
  44. import {OrderTypes} from "@/datas/enum";
  45. import useOrderListItem from "@/composables/order/useOrderListItem";
  46. const props = defineProps({
  47. index: {
  48. type: Number,
  49. default () {
  50. return 0
  51. }
  52. },
  53. refresh:{ //是否刷新列表
  54. type:Boolean,
  55. default:true
  56. }
  57. })
  58. const {config,params,ordersList,doSearch,onKeyInput} = useOrderListItem(props);
  59. </script>
  60. <style lang="scss" scoped>
  61. .search-layout{
  62. padding-top: 80rpx;
  63. .search-box {
  64. margin: 30rpx 30rpx 0rpx 30rpx;
  65. height: 80rpx;
  66. background: #FFFFFF;
  67. border: 1px solid #DCDCDC;
  68. border-radius: 40rpx;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. box-sizing: border-box;
  73. flex: 1;
  74. }
  75. .search-box .icon {
  76. width: 48rpx;
  77. height: 48rpx;
  78. margin: 0 20rpx;
  79. }
  80. .search-box .search {
  81. flex: 1;
  82. margin-right: 20rpx;
  83. height: 100%;
  84. padding: 0 10rpx;
  85. font-size: 28rpx;
  86. color: #00b38b;
  87. }
  88. .search-btn{
  89. color: white;
  90. background-color: #00B38B;
  91. width: 140rpx;
  92. height: 75rpx;
  93. line-height: 75rpx;
  94. font-size: 32rpx;
  95. border-radius: 40rpx;
  96. text-align: center;
  97. margin-right: 30rpx;
  98. margin-top: 30rpx;
  99. }
  100. }
  101. </style>