feat: 全项目列表页操作列规范统一 + 问题.md 六条整改
- 操作列按6条标准统一(WMS 13页/MES 18页):fixed right、宽160超限折更多、一列一填充、危险操作link+二次确认置末、页面级新建移工具栏 - 修复MES物料档案启用报错:改走 POST /product-types/status 专用端点,不再被全字段必填校验拦截 - 附件归档清理由按年改为用户选月(精确到月,截止月最晚6个月前,默认当前月-6),前后端同步 - 序列号文案统一为「是=逐件录SN,否=按数量(不录SN)」,MES 下拉改单选框 - 入库货架/层/位置必填校验(InboundEntry 前端 + inbound.go 后端),杜绝有区域无货架的新脏数据 - 生产流程卡新增列表Tab(新接口 GET /process-card/list 分页),去掉筛选默认时间 - 清理遗留 assets_bak/public_bak 备份目录;更新 WMS/MES 前端构建产物(index.html)
This commit is contained in:
@@ -240,12 +240,16 @@ function openDetail(row) {
|
||||
<el-table-column label="创建时间" width="160" align="center">
|
||||
<template #default="{ row }">{{ fmtTime(row.createdAt) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200" align="center" fixed="right">
|
||||
<el-table-column label="操作" width="160" align="center" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" size="small" @click="openDetail(row)">详情</el-button>
|
||||
<el-button v-if="can('role:edit')" link type="primary" size="small" :disabled="row.code === 'admin'" @click="openEdit(row)">编辑权限</el-button>
|
||||
<el-button v-if="can('role:delete')" link type="danger" size="small"
|
||||
:disabled="['admin', 'operator', 'inspector'].includes(row.code)" @click="removeRole(row)">删除</el-button>
|
||||
<el-button v-if="can('role:edit')" type="primary" size="small" :disabled="row.code === 'admin'" @click="openEdit(row)">编辑权限</el-button>
|
||||
<el-popconfirm v-if="can('role:delete')" title="确认删除该角色?" @confirm="removeRole(row)">
|
||||
<template #reference>
|
||||
<el-button link type="danger" size="small"
|
||||
:disabled="['admin', 'operator', 'inspector'].includes(row.code)">删除</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user