diff --git a/src/views/modules/automatedWarehouse/agvTask.vue b/src/views/modules/automatedWarehouse/agvTask.vue
index 156e9c7..91637bf 100644
--- a/src/views/modules/automatedWarehouse/agvTask.vue
+++ b/src/views/modules/automatedWarehouse/agvTask.vue
@@ -129,9 +129,6 @@
-
- {{ getStatusText(scope.row.status) }}
-
@@ -561,22 +558,19 @@ export default {
// 处理展开行变化
handleExpandChange(row, expandedRows) {
- const isExpanded = expandedRows.some(r => r.id === row.id);
- if (isExpanded) {
- // 展开时加载明细数据
- if (!row.details || row.details.length === 0) {
- getTransportTaskDetails(row.taskNo).then(({data}) => {
- if (data && data.code === 0) {
- // 使用Vue.set确保响应式更新
- this.$set(row, 'details', data.details || [])
- // 强制更新表格
- this.$forceUpdate()
- }
- }).catch(error => {
- console.error('获取任务明细失败:', error)
- this.$message.error('获取任务明细失败')
- })
- }
+ // 展开时加载明细数据
+ if (!row.details || row.details.length === 0) {
+ getTransportTaskDetails(row.taskNo).then(({data}) => {
+ if (data && data.code === 0) {
+ // 使用Vue.set确保响应式更新
+ this.$set(row, 'details', data.details || [])
+ // 强制更新表格
+ this.$forceUpdate()
+ }
+ }).catch(error => {
+ console.error('获取任务明细失败:', error)
+ this.$message.error('获取任务明细失败')
+ })
}
},