feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能
This commit is contained in:
@@ -70,23 +70,25 @@
|
||||
<el-table-column label="开始时间" width="110">
|
||||
<template #default="{ row }">{{ fmtDateOnly(row.planStart) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" align="center" fixed="right">
|
||||
<el-table-column label="操作" width="130" align="center" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" size="small" @click="openDetail(row)">详情</el-button>
|
||||
<el-dropdown trigger="click" @command="(cmd) => onRowCmd(row, cmd)">
|
||||
<el-button link type="primary" size="small">更多 ▾</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="usage">用料</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.workorder:dailyplan') && !['DONE','CANCELLED'].includes(row.status)"
|
||||
:disabled="!hasCombination(row)" command="schedule">自动排产</el-dropdown-item>
|
||||
<el-dropdown-item v-for="a in statusActions(row.status)" :key="a.v" :command="'st:' + a.v">{{ a.l }}</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.workorder:edit') && row.status === 'CREATED'" command="edit" divided>编辑</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.workorder:delete') && row.status === 'CREATED'"
|
||||
command="del" divided style="color:#f56c6c">删除</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
<div style="display:flex;align-items:center;justify-content:center;gap:8px">
|
||||
<el-button link type="primary" size="small" @click="openDetail(row)">详情</el-button>
|
||||
<el-dropdown trigger="click" @command="(cmd) => onRowCmd(row, cmd)">
|
||||
<el-button link type="primary" size="small">更多 ▾</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="usage">用料</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.workorder:dailyplan') && !['DONE','CANCELLED'].includes(row.status)"
|
||||
:disabled="!hasCombination(row)" command="schedule">自动排产</el-dropdown-item>
|
||||
<el-dropdown-item v-for="a in statusActions(row.status)" :key="a.v" :command="'st:' + a.v">{{ a.l }}</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.workorder:edit') && row.status === 'CREATED'" command="edit" divided>编辑</el-dropdown-item>
|
||||
<el-dropdown-item v-if="can('produce.workorder:delete') && row.status === 'CREATED'"
|
||||
command="del" divided style="color:#f56c6c">删除</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user