Browse Source

完善

master
han\hanst 3 months ago
parent
commit
ae3b9f656a
  1. 14
      src/views/modules/automatedWarehouse/agvTask.vue
  2. 106
      src/views/modules/dashboard/picking-board.vue
  3. 13
      src/views/modules/dashboard/robot-picking-board.vue

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

@ -263,41 +263,41 @@
<!-- AGV状态表格 --> <!-- AGV状态表格 -->
<el-table :data="agvList" border style="width: 100%;" height="300" class="zxClass"> <el-table :data="agvList" border style="width: 100%;" height="300" class="zxClass">
<el-table-column prop="id" label="AGV编号" width="100" align="center"></el-table-column>
<el-table-column prop="soc" label="电量" width="120" align="center">
<el-table-column prop="id" label="AGV编号" min-width="100" align="center"></el-table-column>
<el-table-column prop="soc" label="电量" min-width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-progress :percentage="scope.row.soc" :color="getBatteryColor(scope.row.soc)"></el-progress> <el-progress :percentage="scope.row.soc" :color="getBatteryColor(scope.row.soc)"></el-progress>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="agvStat" label="状态" width="120" align="center">
<el-table-column prop="agvStat" label="状态" min-width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="getAgvStatusType(scope.row.agvStat)"> <el-tag :type="getAgvStatusType(scope.row.agvStat)">
{{ getAgvStatusText(scope.row.agvStat) }} {{ getAgvStatusText(scope.row.agvStat) }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="cargo" label="载货状态" width="100" align="center">
<el-table-column prop="cargo" label="载货状态" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.cargo ? 'success' : 'info'"> <el-tag :type="scope.row.cargo ? 'success' : 'info'">
{{ scope.row.cargo ? '有货' : '空载' }} {{ scope.row.cargo ? '有货' : '空载' }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="offline" label="连接状态" width="100" align="center">
<el-table-column prop="offline" label="连接状态" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.offline ? 'danger' : 'success'"> <el-tag :type="scope.row.offline ? 'danger' : 'success'">
{{ scope.row.offline ? '离线' : '在线' }} {{ scope.row.offline ? '离线' : '在线' }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="位置信息" width="200" align="center">
<el-table-column label="位置信息" min-width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div>X: {{ scope.row.x }}mm</div> <div>X: {{ scope.row.x }}mm</div>
<div>Y: {{ scope.row.y }}mm</div> <div>Y: {{ scope.row.y }}mm</div>
<div>角度: {{ (scope.row.theta / 1000).toFixed(1) }}°</div> <div>角度: {{ (scope.row.theta / 1000).toFixed(1) }}°</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="offPlat" label="控制模式" width="100" align="center">
<el-table-column prop="offPlat" label="控制模式" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.offPlat ? 'warning' : 'primary'"> <el-tag :type="scope.row.offPlat ? 'warning' : 'primary'">
{{ scope.row.offPlat ? '手动' : '自动' }} {{ scope.row.offPlat ? '手动' : '自动' }}

106
src/views/modules/dashboard/picking-board.vue

@ -125,102 +125,20 @@ export default {
// //
workOrders: [ workOrders: [
{ {
workOrderNo: '3020124',
materialName: '80506561',
workOrderTime: '2025-01-20 08:30:00',
completedCount: 2,
totalCount: 5,
details: [
{
pickingBatchNo: 'W00001',
pickingMaterialName: '70000213-0045',
pickingQty: '1,000',
status: '完成',
storageBatchNo: 'W01100',
storageLocation: 'RG01'
},
{
pickingBatchNo: 'W00010',
pickingMaterialName: '70000235-0046',
pickingQty: '5,000',
status: '分拣中',
storageBatchNo: 'W01100',
storageLocation: 'RG01'
},
{
pickingBatchNo: 'W00012',
pickingMaterialName: '70004562-0075',
pickingQty: '1,000',
status: '等待分拣',
storageBatchNo: 'W01100',
storageLocation: 'RG01'
},
{
pickingBatchNo: 'W00012',
pickingMaterialName: '70004358-0254',
pickingQty: '1,000',
status: '等待分拣',
storageBatchNo: 'W01101',
storageLocation: 'RG02'
},
{
pickingBatchNo: 'W00033',
pickingMaterialName: '70000220-0335',
pickingQty: '5,000',
status: '等待分拣',
storageBatchNo: 'W01101',
storageLocation: 'RG02'
}
]
workOrderNo: '',
materialName: '',
workOrderTime: '',
completedCount: '',
totalCount: '',
details: []
}, },
{ {
workOrderNo: '3020125',
materialName: '80506562',
workOrderTime: '2025-01-20 10:00:00',
completedCount: 1,
totalCount: 5,
details: [
{
pickingBatchNo: 'W00002',
pickingMaterialName: '70000213-0046',
pickingQty: '1,000',
status: '完成',
storageBatchNo: 'W01102',
storageLocation: 'RG03'
},
{
pickingBatchNo: 'W00011',
pickingMaterialName: '70000235-0047',
pickingQty: '5,000',
status: '分拣中',
storageBatchNo: 'W01102',
storageLocation: 'RG03'
},
{
pickingBatchNo: 'W00013',
pickingMaterialName: '70004562-0078',
pickingQty: '1,000',
status: '等待分拣',
storageBatchNo: 'W01102',
storageLocation: 'RG03'
},
{
pickingBatchNo: 'W00013',
pickingMaterialName: '70004358-0256',
pickingQty: '1,000',
status: '等待分拣',
storageBatchNo: 'W01103',
storageLocation: 'RG04'
},
{
pickingBatchNo: 'W00034',
pickingMaterialName: '70000220-0337',
pickingQty: '5,000',
status: '等待分拣',
storageBatchNo: 'W01103',
storageLocation: 'RG04'
}
]
workOrderNo: '',
materialName: '',
workOrderTime: '',
completedCount: '',
totalCount: '',
details: []
} }
] ]
} }

13
src/views/modules/dashboard/robot-picking-board.vue

@ -285,6 +285,19 @@ export default {
if (message && message.code === 0) { if (message && message.code === 0) {
this.containerPickingList = message.data.containerList this.containerPickingList = message.data.containerList
this.materialPickingList = message.data.materialList this.materialPickingList = message.data.materialList
// storageBatchNo.length>10,status
this.containerPickingList.forEach(item => {
if (item.storageBatchNo && item.storageBatchNo.length < 10) {
item.status = '分拣中'
}
})
this.materialPickingList.forEach(item => {
if (item.storageBatchNo && item.storageBatchNo.length < 10) {
item.status = '分拣中'
}
})
} }
}, },

Loading…
Cancel
Save