优化停车劵功能

This commit is contained in:
java110 2022-10-15 13:35:40 +08:00
parent f3dedb3b4e
commit 5a7dbd312d
2 changed files with 20 additions and 2 deletions

View File

@ -22,6 +22,12 @@
<th class="text-center">
<span><vc:i18n name="停车场" namespace="viewShopCoupons"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="停车劵类型" namespace="viewShopCoupons"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="面值" namespace="viewShopCoupons"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="数量" namespace="viewShopCoupons"></vc:i18n></span>
</th>
@ -31,7 +37,14 @@
<tr v-for="coupon in viewShopCouponsInfo.coupons">
<td class="text-center">{{coupon.couponName}}</td>
<td class="text-center">{{coupon.paName}}</td>
<td class="text-center">{{coupon.quantity}}</td>
<td class="text-center">{{coupon.typeCdName}}</td>
<td class="text-center">
<span v-if="coupon.typeCd == '1001'">{{coupon.value}}分钟</span>
<span v-if="coupon.typeCd == '2002'">{{coupon.value}}元</span>
<span v-if="coupon.typeCd == '3003'">{{coupon.value}}折</span>
<span v-if="coupon.typeCd == '4004'">全免</span>
</td>
<td class="text-center">{{coupon.quantity}}张</td>
</tr>
</tbody>
</table>

View File

@ -73,7 +73,12 @@
<td class="text-center">{{parkingCoupon.name}}</td>
<td class="text-center">{{parkingCoupon.typeCdName}}</td>
<td class="text-center">{{parkingCoupon.paName}}</td>
<td class="text-center">{{parkingCoupon.value}}</td>
<td class="text-center">
<span v-if="parkingCoupon.typeCd == '1001'">{{parkingCoupon.value}}分钟</span>
<span v-if="parkingCoupon.typeCd == '2002'">{{parkingCoupon.value}}元</span>
<span v-if="parkingCoupon.typeCd == '3003'">{{parkingCoupon.value}}折</span>
<span v-if="parkingCoupon.typeCd == '4004'">全免</span>
</td>
<td class="text-center">{{parkingCoupon.valuePrice}}</td>
<td class="text-center">
<div class="btn-group">