| | |
| | | <!-- 转运任务特有信息 --> |
| | | <view class="detail-section" v-if="taskDetail.taskType === 'EMERGENCY_TRANSFER' && taskDetail.emergencyInfo"> |
| | | <view class="section-title">患者信息</view> |
| | | <view class="info-item" v-if="taskDetail.emergencyInfo.patientName"> |
| | | <view class="label">患者姓名</view> |
| | | <view class="value">{{ taskDetail.emergencyInfo.patientName }}</view> |
| | | <view class="info-item"> |
| | | <view class="label">联系人</view> |
| | | <view class="value">{{ taskDetail.emergencyInfo.patientContact || '未设置' }}</view> |
| | | </view> |
| | | <view class="info-item" v-if="taskDetail.emergencyInfo.patientPhone"> |
| | | <view class="info-item"> |
| | | <view class="label">患者姓名</view> |
| | | <view class="value">{{ taskDetail.emergencyInfo.patientName || '未设置' }}</view> |
| | | </view> |
| | | <view class="info-item"> |
| | | <view class="label">联系电话</view> |
| | | <view class="value">{{ taskDetail.emergencyInfo.patientPhone }}</view> |
| | | <view class="value">{{ taskDetail.emergencyInfo.patientPhone || '未设置' }}</view> |
| | | </view> |
| | | <view class="info-item" v-if="taskDetail.emergencyInfo.patientGender"> |
| | | <view class="label">性别</view> |
| | |
| | | getTask(this.taskId).then(response => { |
| | | this.taskDetail = response.data || response |
| | | // 调试:打印返回的数据 |
| | | console.log('任务详情完整数据:', JSON.stringify(this.taskDetail, null, 2)) |
| | | console.log('任务类型字段值:', this.taskDetail.taskType) |
| | | console.log('任务状态字段值:', this.taskDetail.taskStatus) |
| | | console.log('出发地址:', this.taskDetail.departureAddress) |
| | | console.log('目的地址:', this.taskDetail.destinationAddress) |
| | | // console.log('任务详情完整数据:', JSON.stringify(this.taskDetail, null, 2)) |
| | | // console.log('任务类型字段值:', this.taskDetail.taskType) |
| | | // console.log('任务状态字段值:', this.taskDetail.taskStatus) |
| | | // console.log('出发地址:', this.taskDetail.departureAddress) |
| | | // console.log('目的地址:', this.taskDetail.destinationAddress) |
| | | }).catch(error => { |
| | | console.error('加载任务详情失败:', error) |
| | | this.$modal.showToast('加载任务详情失败') |