From 3e3cd7ad6d3787dac450deef5d5173de11abab94 Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期一, 26 一月 2026 11:03:44 +0800
Subject: [PATCH] 修改为下单类型

---
 ui/car_wx_app/pages/examine/index.vue |   36 +++++++++++++++++++++++++++++-------
 1 files changed, 29 insertions(+), 7 deletions(-)

diff --git a/ui/car_wx_app/pages/examine/index.vue b/ui/car_wx_app/pages/examine/index.vue
index 8b26b47..d282e89 100644
--- a/ui/car_wx_app/pages/examine/index.vue
+++ b/ui/car_wx_app/pages/examine/index.vue
@@ -162,7 +162,7 @@
         <u-button class="btn-list" @click="goThistory" text="琛岀▼鍘嗗彶"></u-button>
         <u-button class="btn-list" @click="goToAdvanceList" text="鍨粯鍒楄〃"></u-button>
         <!-- <u-button class="btn-budget" @click="goToAdvanceBudget" type="success" text="鍨粯棰勭畻"></u-button> -->
-        <u-button class="btn-submit" @click="submitForm" type="primary" text="鎻愪氦"></u-button>
+        <u-button :loading="loading" class="btn-submit" @click="submitForm" type="primary" text="鎻愪氦"></u-button>
       </view>
 
     </view>
@@ -255,7 +255,7 @@
         <u-button class="btn-list" @click="goThistory" text="琛岀▼鍘嗗彶"></u-button>
         <u-button class="btn-list" @click="goToAdvanceList" text="鍨粯鍒楄〃"></u-button>
         <!-- <u-button class="btn-budget" @click="goToAdvanceBudget" type="success" text="鍨粯棰勭畻"></u-button> -->
-        <u-button class="btn-submit" @click="submitForm" type="primary" text="鎻愪氦"></u-button>
+        <u-button :loading="loading" class="btn-submit" @click="submitForm" type="primary" text="鎻愪氦"></u-button>
       </view>
 
 
@@ -334,7 +334,7 @@
         <u-button class="cancel-btn" @click="showPopup = false" type="info" plain>
           鍙栨秷
         </u-button>
-        <u-button class="submit-btn" @click="handleSubmit" type="primary">
+        <u-button  class="submit-btn" @click="handleSubmit" type="primary">
           鎻愪氦
         </u-button>
       </view>
@@ -452,7 +452,7 @@
       mapList: {},
       activeActive: {},
       isHk:false,
-
+		loading: false
     };
   },
   onLoad(options) {
@@ -984,7 +984,9 @@
 
     // 琛ㄥ崟鎻愪氦鏃堕獙璇佸浘鐗囨槸鍚﹀畬鏁达紙鏍规嵁闇�姹傝皟鏁村繀濉」锛�
     submitForm() {
-
+		if(this.loading){
+			return;
+		}
 
       // 鏍规嵁褰撳墠婵�娲荤殑鏍囩椤垫墽琛屼笉鍚岀殑鎻愪氦閫昏緫
       if (this.activeTab == 'upload') {
@@ -1008,7 +1010,7 @@
         } else {
           // 楠岃瘉鏄惁鑷冲皯涓婁紶浜嗕竴寮犲浘鐗�
           // 鏀堕泦鎵�鏈変笂浼犵殑鍥剧墖鍦板潃锛堢敤閫楀彿鍒嗛殧锛�
-
+			this.loading = true;
           const voucherUrls = this.uploadAreas.filter(item => item.imageUrl!=='').map(item => item.imageUrl).join(',');
           this.form.voucherUrl = voucherUrls;
 
@@ -1020,7 +1022,9 @@
               if (this.form.tripType == 1) {
                 /*璁剧疆 */
                 // console.log(this.form);
-
+			setTimeout(()=>{
+							this.loading = false
+						},2000)
                 uni.setStorageSync("signContractForm", this.form);
                 setTimeout(() => {
                   uni.$u.route('/pages/signContract/index');
@@ -1029,6 +1033,9 @@
                 /* 涓婁紶琛岀▼鍙戣溅 */
                 carUploadTrip(this.form).then((res) => {
                   if (res == 1) {
+					  setTimeout(()=>{
+					  	this.loading = false
+					  },2000)
                     uni.$u.toast('鎿嶄綔鎴愬姛')
                     // 閲嶇疆琛ㄥ崟
                     this.form = {
@@ -1047,12 +1054,18 @@
                   }
                 }).catch(err => {
                   uni.$u.toast('鎻愪氦澶辫触')
+				  setTimeout(()=>{
+				  	this.loading = false
+				  },2000)
                 })
               }
 
             }
           }).catch(errors => {
             uni.$u.toast('鏍¢獙澶辫触')
+			setTimeout(()=>{
+				this.loading = false
+			},2000)
           })
 
 
@@ -1084,6 +1097,9 @@
             this.cleanedForm = this.cleanFormData({ ...this.form })
             carUploadFinance(this.cleanedForm).then((res) => {
               if (res == 1) {
+				  setTimeout(()=>{
+				  	this.loading = false
+				  },2000)
                 uni.$u.toast('鎿嶄綔鎴愬姛')
                 // 閲嶇疆琛ㄥ崟
                 this.form = {
@@ -1098,10 +1114,16 @@
               }
             }).catch(err => {
               uni.$u.toast('鎻愪氦澶辫触')
+			  setTimeout(()=>{
+			  	this.loading = false
+			  },2000)
             })
           }
         }).catch(errors => {
           uni.$u.toast('鏍¢獙澶辫触')
+		  setTimeout(()=>{
+		  	this.loading = false
+		  },2000)
         })
       }
 

--
Gitblit v1.8.0