From ea9873e11a265ae1d4188a50c7aadc29deec7574 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期三, 16 十月 2024 17:56:50 +0800 Subject: [PATCH] 无车牌查询 --- src/components/page/IndexXTYH.vue | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/page/IndexXTYH.vue b/src/components/page/IndexXTYH.vue index 39ed77d..6a5cb17 100644 --- a/src/components/page/IndexXTYH.vue +++ b/src/components/page/IndexXTYH.vue @@ -389,24 +389,24 @@ } }, noCarOut(){ - if(this.carNo){ - this.$byutil.postData(this, this.$systemconfig.basePath + '/outPark/outPark2', {code2:this.code2,carNo:this.carNo}, res => { - if(res.success){ - this.outParkId = res.data.id; - this.pay(); - this.showFlag = false; - }else{ - this.$message({ - message: res.msg, type: 'error', duration:2000, - }); - } - - }) - }else{ + if(this.oldCarNo == '鏃犺溅鐗�'){ + if(this.carNo){ + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/car/outParkByPhone', {code2:this.code2,carNo:this.carNo}, res => { + if(res.code===0){ + this.statisticData = res.data; + this.outParkId = this.statisticData.id; + } + }) + }else{ + this.$message({ + message: '璇疯緭鍏ユ墜鏈哄彿', + type: 'error', + }); + } + }else { this.$message({ - message: '璇疯緭鍏ユ墜鏈哄彿', + message: '闈炴硶杈撳叆', type: 'error', - duration:2000, }); } -- Gitblit v1.9.1