wlzboy
2025-12-04 af8cab142a6b15c06e131a8474574dd5b00df982
app/pagesTask/detail.vue
@@ -804,6 +804,14 @@
      
      // 检查车辆状态并出发
      checkVehicleAndDepart() {
        // 检查出发时间是否为空或1900年(修复:防止无效时间)
        if (!this.taskDetail.plannedStartTime || this.taskDetail.plannedStartTime.startsWith('1900')) {
          this.$modal.confirm('任务的转运时间未设置或无效,需要先修改任务补充转运时间后才能出发。是否现在去修改?').then(() => {
            this.handleEdit()
          }).catch(() => {})
          return
        }
        // 获取任务车辆ID
        const vehicleId = this.getVehicleId();
        if (!vehicleId) {