三轮车购买

This commit is contained in:
zmj 2023-10-19 09:04:58 +08:00
parent 3558026d1e
commit ce5e98f8fe

View File

@ -176,6 +176,7 @@
<view class="info"> <view class="info">
<text>可监管车辆数量 {{datas.monitor_num}}</text> <text>可监管车辆数量 {{datas.monitor_num}}</text>
<text>购买车辆 {{datas.buy_num}}</text>
<view @click="showPop=true" class="not_leased"> <view @click="showPop=true" class="not_leased">
<view class=""> <view class="">
租赁 {{datas.rent_num}}<text v-if="datas.apply_num">(待审核:{{datas.apply_num}})</text> 租赁 {{datas.rent_num}}<text v-if="datas.apply_num">(待审核:{{datas.apply_num}})</text>
@ -230,7 +231,8 @@
<text> {{item.rent_user.user_name}}</text> <text> {{item.rent_user.user_name}}</text>
<view style="float: right;"> <view style="float: right;">
<text style="color: green;" v-if="item.type==1">自有车辆</text> <text style="color: green;" v-if="item.type==1">自有车辆</text>
<text style="color: orange;" v-else>租赁车辆</text> <text style="color: orange;" v-if='item.type==0'>租赁车辆</text>
<text style="color: orange;" v-if='item.type==2'>购买车辆</text>
</view> </view>
</view> </view>
<view class="li"> <view class="li">
@ -393,8 +395,7 @@
getvehicleListApi().then(res => { getvehicleListApi().then(res => {
this.datas = res.data this.datas = res.data
res.data.apply.length >= 2 ? this.applicationList = res.data.apply : this.applicationList = res.data.apply.length >= 2 ? this.applicationList = res.data.apply : this.applicationList =
res res.data.apply.slice(0, 2)
.data.apply.slice(0, 2)
this.dataList = res.data.car_list this.dataList = res.data.car_list
this.showLoading = false this.showLoading = false
}) })