123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <template>
- <view v-if="state.list && state.list.length > 0">
- <view
- class="list"
- v-for="(item, index) in state.list" :key="index"
- @click="goDetails(item)"
- >
- <view class="car-color">
- <text class="yanse">{{ getVehiclePlateColorPai(item.vehicleColor) }}</text>
- <image class="car" :src='`${$imgUrl}issuance/car.png`' mode=""></image>
- </view>
- <view class="content">
- <view class="content-top">
- <text class="vehiclePlate">{{ item.vehicleNum }}</text>
- <text
- class="statusdsh"
- :class="{
- statusdsh: item.orderStep === 'WAITING_AUDIT',
- statusbtg: item.orderStep === 'AUDIT_FAIL',
- statusywc: item.orderStep === 'COMPLETED',
- }"
- >
- {{ getCodeName('ASS_ORDER_STEP', item.orderStep) }}
- </text>
- </view>
- <view class="content-time">申请时间:{{ item.applyTime }}</view>
- </view>
- <image class="arrow" :src='`${$imgUrl}issuance/arrow.png`' mode=""></image>
- </view>
- </view>
- <NoDataView v-else text="暂无解除车牌占用订单"></NoDataView>
- <!-- <view class="list" @click="goDetails">
- <image class="car" src="/static/image/myx.png" mode=""></image>
- <view class="content">
- <view class="content-top">
- <text class="vehiclePlate">贵A12345</text>
- <text class="statusbtg">审核不通过</text>
- </view>
- <view class="content-time">申请时间:2025年02月21日</view>
- </view>
- <image class="arrow" src="/static/image/myx.png" mode=""></image>
- </view>
- <view class="list" @click="goDetails">
- <image class="car" src="/static/image/myx.png" mode=""></image>
- <view class="content">
- <view class="content-top">
- <text class="vehiclePlate">贵A12345</text>
- <text class="statusywc">已完成</text>
- </view>
- <view class="content-time">申请时间:2025年02月21日</view>
- </view>
- <image class="arrow" src="/static/image/myx.png" mode=""></image>
- </view> -->
- </template>
-
- <script setup lang="ts">
- import {navTo} from "@/utils/utils";
- import { releasePlateaList } from "@/utils/network/api.js";
- import {ref, reactive} from "vue";
- import {requestNew} from "@/utils/network/request.js";
- import { onLoad } from "@dcloudio/uni-app";
- import NoDataView from "@/components/no-data-view/no-data-view.vue";
- import { getVehiclePlateColorPaiShow, getVehiclePlateColorPai } from "@/datas/vehiclePlateColor";
- import { getCodeName } from '@/datas/queryKey.js'
-
- const state = reactive({
- list: []
- });
-
- const status = [
- {label: '待审核', value: 'AUDIT_FAIL'},
- {label: '已解除车牌占用', value: 'HANDLED_SUCCESS'},
- {label: '已关闭', value: 'UNHANDLED'},
- ]
-
- onLoad(() => {
- getList()
- });
-
- const getList = () => {
- const options = {
- type: 2,
- data: {},
- method: "POST",
- showLoading: true,
- };
- requestNew(releasePlateaList, options).then((res) => {
- let data = res.assOrders || [];
- state.list = data.map(item => {
- let vehicleIdArr = item.vehicleId.split('_');
- item.vehicleNum = vehicleIdArr[0];
- item.vehicleColor = vehicleIdArr[1];
- return item
- })
- });
- };
-
- const goDetails = (item) => {
- navTo(`/subpackage/after-sale/rescind-carId/rescind-carId-select-details?orderNo=${item.orderNo}`)
- }
- </script>
-
- <style lang="scss" scoped>
- .list{
- background: #FFFFFF;
- border-radius: 12rpx;
- border: 1px solid #FFFFFF;
- width: 90%;
- margin: 30rpx auto;
- padding: 20rpx;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- .car-color{
- position: relative;
- .yanse {
- position: absolute;
- background: red;
- color: white;
- border-radius: 15rpx 0 15rpx 0;
- text-align: center;
- font-size: 24rpx;
- top: 0;
- left: 0;
- padding: 2rpx 6rpx;
- background-color: rgb(56,139,252);
- }
- }
- .content{
- font-weight: 400;
- width: 76%;
- margin-left: 20rpx;
- .content-top{
- margin-bottom: 20rpx;
- .vehiclePlate{
- font-size: 30rpx;
- color: #01243A;
- }
- // 待审核
- .statusdsh{
- font-size: 24rpx;
- color: #1458E5;
- background: #E3ECFF;
- border-radius: 6rpx;
- border: 1px solid #1458E5;
- margin-left: 20rpx;
- padding: 6rpx 14rpx;
- }
- // 不通过
- .statusbtg{
- font-size: 24rpx;
- color: #C2A760;
- background: #F8F4E7;
- border-radius: 6rpx;
- border: 1px solid #C2A760;
- margin-left: 20rpx;
- padding: 2rpx 4rpx;
- }
- // 已完成
- .statusywc{
- font-size: 24rpx;
- color: #42D175;
- background: #E6FFEF;
- border-radius: 6rpx;
- border: 1px solid #42D175;
- margin-left: 20rpx;
- padding: 2rpx 4rpx;
- }
- }
- .content-time{
- font-size: 26rpx;
- color: #999999;
- }
- }
- .car{
- width: 100rpx;
- height: 100rpx;
- }
- .arrow{
- width: 18rpx;
- height: 34rpx;
- }
- }
- </style>
|