|
@@ -22,11 +22,12 @@ export default {
|
|
|
* @param dispatch
|
|
|
* @param state
|
|
|
* @param gateId 车场闸机口ID
|
|
|
+ * @param qrCodeId 车场出入口code 编号
|
|
|
* @param vehicleNo 车牌号(包含临牌)
|
|
|
* @param callback 回调函数,用于接口报错时,展示对应的信息
|
|
|
* @param endlessLoop 用于判断当前用户是否扫码进入
|
|
|
*/
|
|
|
- async orderInit( {commit,dispatch,state},{gateId = '',vehicleNo = '',callback,endlessLoop, enquiryFarePolling, buildingId = ''} ) {
|
|
|
+ async orderInit( {commit,dispatch,state},{gateId = '', qrCodeId = '', vehicleNo = '',callback,endlessLoop, enquiryFarePolling, buildingId = ''} ) {
|
|
|
try {
|
|
|
commit('clearOrderInfo');
|
|
|
const unlicensed = vehicleNo.indexOf('临') > -1 || !vehicleNo; // true: 临时车牌;false:普通车牌
|
|
@@ -40,8 +41,8 @@ export default {
|
|
|
message: '正在努力加载中....',
|
|
|
duration: 0
|
|
|
});
|
|
|
- const method = unlicensed && endlessLoop && gateId || !vehicleNo ? unlicensedCarCheckout : checkOut
|
|
|
- const res = await method(vehicleNo, unlicensed, gateId, buildingId);
|
|
|
+ const method = unlicensed && endlessLoop && qrCodeId || !vehicleNo ? unlicensedCarCheckout : checkOut
|
|
|
+ const res = await method(vehicleNo, unlicensed, qrCodeId, buildingId);
|
|
|
// const res = checkOutQHResponse
|
|
|
Toast.clear();
|
|
|
if ( res?.parkingRecord?.totalFee <= 0 ) {
|