Browse Source

agv任务管理

master
han\hanst 4 months ago
parent
commit
f45c83cc22
  1. 32
      src/views/modules/automatedWarehouse/agvTask.vue

32
src/views/modules/automatedWarehouse/agvTask.vue

@ -129,9 +129,6 @@
<el-table-column prop="agvCode" label="AGV编码" width="120" align="center"></el-table-column>
<el-table-column prop="priority" label="优先级" width="80" align="center"></el-table-column>
<el-table-column prop="status" label="状态" width="120" align="center">
<template slot-scope="scope">
<el-tag :type="getStatusType(scope.row.status)">{{ getStatusText(scope.row.status) }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="wmsSendTime" label="WMS发送时间" width="160" align="center">
<template slot-scope="scope">
@ -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('获取任务明细失败')
})
}
},

Loading…
Cancel
Save