|
@@ -131,7 +131,7 @@ export default {
|
|
|
options: {},
|
|
|
});
|
|
|
window.subscribe('projectId', (newOptions) => {
|
|
|
- console.log(134, newOptions);
|
|
|
+ console.log('用户是扫码进来的134', newOptions);
|
|
|
this.$store.dispatch('baseInit', {
|
|
|
options: newOptions,
|
|
|
callback: () => {
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
this.$store.commit('SET_IS_INIT', true);
|
|
|
this.$nextTick(() => {
|
|
|
console.log(143, newOptions);
|
|
|
- // 如果是无牌车的扫码入场
|
|
|
+ // 如果是无牌车的扫码出入场
|
|
|
if(options?.options?.type && /unlicensedIn|unlicensedOut/.test(options.options.type)) {
|
|
|
this.$store.commit('SET_UNLICENSED_INFO', options.options);
|
|
|
}
|
|
@@ -504,6 +504,7 @@ export default {
|
|
|
this.tabbarActive = name
|
|
|
if (name === '无牌缴费') {
|
|
|
this.$store.dispatch('order/unlicensedRule', (code) => {
|
|
|
+
|
|
|
// CAR_NOT_FOUND 车场扫描道闸入口,发现无车
|
|
|
if (code === 'CAR_NOT_FOUND') {
|
|
|
|
|
@@ -580,6 +581,7 @@ export default {
|
|
|
try {
|
|
|
|
|
|
const qrCodesres = await qrCodes(code); // 无牌车扫码
|
|
|
+ console.log(584, qrCodesres);
|
|
|
// 记录buildingId,确保 buildingId 是最新的数据
|
|
|
window.localStorage.setItem('buildingId', qrCodesres.buildingId);
|
|
|
// 如果是无牌车扫码:出场
|
|
@@ -589,8 +591,26 @@ export default {
|
|
|
});
|
|
|
// return
|
|
|
if (this.unlicensedInfo?.type === 'unlicensedOut') {
|
|
|
- // 查询用户是否存在车牌
|
|
|
- this.$store.dispatch('order/unlicensedRule', (vehicleNo) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: 'parkingFeeDetail',
|
|
|
+ query: {
|
|
|
+ type: 'success',
|
|
|
+ gateId: qrCodesres.gateId,
|
|
|
+ vehicleNo: '',
|
|
|
+ type: this.unlicensedInfo.type
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // const res = await unlicensedCarCheckout({
|
|
|
+ // gateId: qrCodesres.gateId
|
|
|
+ // });
|
|
|
+ // console.log(595, res);
|
|
|
+ // return
|
|
|
+ // 查询用户是否存在车牌(出场扫码不查询车牌,直接前往支付页面)
|
|
|
+ /*this.$store.dispatch('order/unlicensedRule', (vehicleNo) => {
|
|
|
+ if(vehicleNo === 'error') {
|
|
|
+
|
|
|
+ return
|
|
|
+ }
|
|
|
// 出场前,扫码缴费
|
|
|
this.$router.push({
|
|
|
path: 'parkingFeeDetail',
|
|
@@ -601,7 +621,7 @@ export default {
|
|
|
type: this.unlicensedInfo.type
|
|
|
}
|
|
|
})
|
|
|
- });
|
|
|
+ });*/
|
|
|
return
|
|
|
}
|
|
|
// 如果是无牌车扫码:入场
|