|
@@ -320,7 +320,26 @@ export default {
|
|
|
gateId: this.$route.query?.gateId,
|
|
|
endlessLoop: this.endlessLoop,
|
|
|
callback: (res) => {
|
|
|
- console.log(303, res);
|
|
|
+ // 如果 无牌车扫码出场扫码 无需缴费,直接展示无需缴费页面
|
|
|
+ if(/unlicensedOut/.test(res.code) && res?.unlicensed) {
|
|
|
+ this.$router.replace({
|
|
|
+ path: 'parkingFeeMsg?type=pay',
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 如果是无需缴费的话,提示用户无需缴费
|
|
|
+ if (res?.orderDetail?.parkingRecord?.totalFee <= 0) {
|
|
|
+ this.$store.dispatch('order/orderInitRule', res);
|
|
|
+ uni.showModal({
|
|
|
+ showCancel: false,
|
|
|
+ title: '提示',
|
|
|
+ content: '当前无需缴费',
|
|
|
+ complete: () => {
|
|
|
+ this.$router.back()
|
|
|
+ },
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
if (/NOT_FOUND|PARKING_RECORD_NOT_FOUND/.test(res.code)) {
|
|
|
// 当前车辆没有查到账单
|
|
|
this.$router.replace({
|