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/edit.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/pagesTask/edit.vue b/app/pagesTask/edit.vue
index ee17c8b..0be25aa 100644
--- a/app/pagesTask/edit.vue
+++ b/app/pagesTask/edit.vue
@@ -53,7 +53,7 @@
           class="form-input" 
           type="digit" 
           placeholder="璇疯緭鍏ヨ椹跺叕閲屾暟" 
-          v-model="taskForm.distance"
+          v-model="taskForm.transferDistance"
         />
       </view>
       
@@ -165,7 +165,7 @@
         plannedEndTime: '',
         startLocation: '',
         endLocation: '',
-        distance: '',
+        transferDistance: '',
         remark: ''
       },
       loading: false
@@ -209,7 +209,7 @@
         this.taskForm.plannedEndTime = this.taskDetail.plannedEndTime || ''
         this.taskForm.startLocation = this.taskDetail.departureAddress || ''
         this.taskForm.endLocation = this.taskDetail.destinationAddress || ''
-        this.taskForm.distance = this.taskDetail.estimatedDistance || ''
+        this.taskForm.transferDistance = this.taskDetail.transferDistance || ''
         this.taskForm.remark = this.taskDetail.remark || ''
         
         // 璁剧疆杞﹁締淇℃伅
@@ -289,7 +289,7 @@
       
       // 鐩戝惉mixin涓殑璺濈璁$畻瀹屾垚浜嬩欢
       this.$once('distance-calculated', (distance) => {
-        this.taskForm.distance = this.formatDistance(distance)
+        this.taskForm.transferDistance = this.formatDistance(distance)
       })
       
       this.closeMapSelector()
@@ -360,7 +360,7 @@
         destinationLatitude: this.addressCoordinates.endLocation ? this.addressCoordinates.endLocation.lat : null,
         
         // 璺濈锛堜富浠诲姟瀛楁锛�
-        distance: 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