From eadd5784244d98dca21e5788440004432af8e803 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 12 九月 2023 15:45:20 +0800
Subject: [PATCH] 修改前端页面

---
 src/components/page/Index2.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/components/page/Index2.vue b/src/components/page/Index2.vue
index a5ed5f6..95653ca 100644
--- a/src/components/page/Index2.vue
+++ b/src/components/page/Index2.vue
@@ -76,6 +76,7 @@
                 showFlag2:true,
                 status3:0,
                 carNo:"",
+                oldCarNo:"",
                 code2:""
             }
         },
@@ -93,6 +94,7 @@
                 this.statisticData = res.data;
                 this.outParkId = this.statisticData.id;
                 this.status3 = this.statisticData.status3;
+                this.oldCarNo = this.statisticData.carNo;
                 this.payFlag = false
                 if(this.status3==1){
                     this.$message({
@@ -120,19 +122,27 @@
                 })
             },
             noCarOut(){
-                if(this.carNo){
+                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;
-                        }
+                      if(res.code===0){
+                        this.statisticData = res.data;
+                        this.outParkId = this.statisticData.id;
+                      }
                     })
-                }else{
+                  }else{
                     this.$message({
-                        message: '璇疯緭鍏ユ墜鏈哄彿',
-                        type: 'error',
+                      message: '璇疯緭鍏ユ墜鏈哄彿',
+                      type: 'error',
                     });
+                  }
+                }else {
+                  this.$message({
+                    message: '闈炴硶杈撳叆',
+                    type: 'error',
+                  });
                 }
+
             },
         }
     }

--
Gitblit v1.9.1