You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

order-list-item.vue 3.7KB

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