|
@@ -17,7 +17,7 @@ import uni from '@/utils/uniHooks';
|
|
|
// import greenCom from '../components/green/home.vue';
|
|
|
// import officeBlueCom from '../components/officeBlue/home.vue';
|
|
|
// import purpleCom from '../components/purple/home.vue';
|
|
|
-import { parkingLots, qrCodes, unlicensedCarCheckIn, getConfValueOfKey, getVehicles, parkingRecord, checkEligibility, addVehicles } from '@/api/parking';
|
|
|
+import { parkingLots, qrCodes, unlicensedCarCheckIn, getConfValueOfKey, getVehicles, parkingRecord, checkEligibility, addVehicles, getPortalsByLbs } from '@/api/parking';
|
|
|
import { reject } from 'lodash';
|
|
|
|
|
|
export default {
|
|
@@ -67,6 +67,9 @@ export default {
|
|
|
// 2.19新增内容
|
|
|
eligibility: {}, //
|
|
|
eventId: '',
|
|
|
+ // 2.22新增内容:https://kerryprops.atlassian.net/browse/KIP-13059
|
|
|
+ portalsByLbsList: [],
|
|
|
+ portalsByLbsInfo: {}
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -119,6 +122,7 @@ export default {
|
|
|
async mounted() {
|
|
|
console.log(1111111);
|
|
|
this.getVehiclesINTMP()
|
|
|
+ this.getPortalsByLbs()
|
|
|
setTimeout(() => {
|
|
|
window?.toWXSendMsg({
|
|
|
type: 'nowRoute',
|
|
@@ -929,6 +933,71 @@ export default {
|
|
|
// 无牌车这边去支付的时候,属于场内缴费,需要调用场内缴费的接口 /parking/check-out
|
|
|
this.$store.commit('SET_ENDLESS_LOOP', '');
|
|
|
this.toHandleSearch(this.unlicensedCar);
|
|
|
+ },
|
|
|
+ async getPortalsByLbs() {
|
|
|
+ try {
|
|
|
+ const res = await getPortalsByLbs(this.groupId, this.mallId);
|
|
|
+ this.portalsByLbsList = res.displayFunctionList.filter(elm => elm.enabled).map(elm => elm.code)
|
|
|
+ this.portalsByLbsInfo = res
|
|
|
+ } catch (e) {
|
|
|
+ console.log('getPortalsByLbs', e)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async menuToPage(type) {
|
|
|
+ let query = {}
|
|
|
+ switch (type){
|
|
|
+ case 'PAYMENT_RECORDS': // 缴费记录
|
|
|
+ query = {
|
|
|
+ ...this.$route.query,
|
|
|
+ }
|
|
|
+ query.fromPage = ''
|
|
|
+ query.format = ''
|
|
|
+ query.loginCount = ''
|
|
|
+ this.$store.commit('SET_REGRESH_PAGE_KEY')
|
|
|
+ this.$router.push({path: 'parkingFeeList', query});
|
|
|
+ break
|
|
|
+ case 'COUPON_EXCHANGE': // 停车券兑换
|
|
|
+ this.$store.dispatch('clearUnlicensed');
|
|
|
+ uni.setStorageSync('loadData', '');
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
+ "url": "/pages/pointsMall/pointsMall?exchangeTypes=2" // 去 login 页面 1 去登录
|
|
|
+ })
|
|
|
+ break
|
|
|
+ case 'PARKING_INVOICE': // 停车开票
|
|
|
+ const isJump = await this.jumpToPreJudgmentOfParkingInvoice();
|
|
|
+ if (isJump) return
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.removeStorageSync('invoiceindex');
|
|
|
+ this.$store.dispatch('clearUnlicensed');
|
|
|
+ this.$store.commit('SET_REGRESH_PAGE_KEY')
|
|
|
+ query = {
|
|
|
+ ...this.$route.query,
|
|
|
+ }
|
|
|
+ query.fromPage = ''
|
|
|
+ query.format = ''
|
|
|
+ query.loginCount = ''
|
|
|
+ uni.setStorageSync('loadData', '');
|
|
|
+
|
|
|
+ this.$router.push({path: 'parkingReceipt', query});
|
|
|
+ break
|
|
|
+ case 'VEHICLE_MANAGE': // 车辆管理
|
|
|
+ this.$store.dispatch('clearUnlicensed');
|
|
|
+ this.$store.commit('SET_REGRESH_PAGE_KEY')
|
|
|
+ uni.setStorageSync('loadData', '');
|
|
|
+ query = {
|
|
|
+ ...this.$route.query,
|
|
|
+ }
|
|
|
+ query.fromPage = ''
|
|
|
+ query.format = ''
|
|
|
+ query.loginCount = ''
|
|
|
+ uni.removeStorageSync('passLogin');
|
|
|
+ this.$router.push({path: 'vehicleManagement', query});
|
|
|
+ break
|
|
|
+ case 'PARKING_BENEFITS': // 停车权益
|
|
|
+ console.log('停车权益', this.portalsByLbsInfo)
|
|
|
+ this.$router.push({path: 'parkingRights', query: this.portalsByLbsInfo});
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
};
|