From ae478a3d5dab28dd598d39f27429e4a544b15ad2 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期四, 25 十二月 2025 22:48:06 +0800
Subject: [PATCH] feat:已完成时,检查附件是否上传

---
 app/pagesTask/create-normal.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/pagesTask/create-normal.vue b/app/pagesTask/create-normal.vue
index a2a7bdf..b43d69e 100644
--- a/app/pagesTask/create-normal.vue
+++ b/app/pagesTask/create-normal.vue
@@ -91,7 +91,7 @@
           class="form-input" 
           type="digit" 
           placeholder="璇疯緭鍏ヨ椹跺叕閲屾暟" 
-          v-model="taskForm.distance"
+          v-model="taskForm.transferDistance"
         />
       </view>
       
@@ -186,7 +186,7 @@
         plannedEndTime: '',
         startLocation: '',
         endLocation: '',
-        distance: '',
+        transferDistance: '',
         remark: ''
       },
       vehicles: [],
@@ -497,7 +497,7 @@
           // 鐧惧害鍦板浘杩斿洖鐨勮窛绂诲崟浣嶆槸绫�,闇�瑕佽浆鎹负鍏噷
           const distanceInMeters = response.data.distance
           const distanceInKm = distanceInMeters / 1000
-          this.taskForm.distance = distanceInKm.toFixed(2)
+          this.taskForm.transferDistance = distanceInKm.toFixed(2)
           
           console.log('璺濈璁$畻鎴愬姛:', distanceInMeters, '绫� =', distanceInKm, '鍏噷')
           
@@ -576,7 +576,7 @@
         plannedEndTime: this.taskForm.plannedEndTime,
         departureAddress: this.taskForm.startLocation,
         destinationAddress: this.taskForm.endLocation,
-        estimatedDistance: this.taskForm.distance ? parseFloat(this.taskForm.distance) : null,
+        transferDistance: this.taskForm.transferDistance ? parseFloat(this.taskForm.transferDistance) : null,
         remark: this.taskForm.remark
       }
       

--
Gitblit v1.9.1