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:
SunYF
2026-10-10 18:09:17 +08:00
parent f6a26256c5
commit 56d56648f9
224 changed files with 687 additions and 1874 deletions
+17 -28
View File
@@ -70,34 +70,20 @@
<el-table-column label="开始时间" width="110">
<template #default="{ row }">{{ fmtDateOnly(row.planStart) }}</template>
</el-table-column>
<el-table-column label="操作" width="390" fixed="right">
<el-table-column label="操作" width="160" fixed="right">
<template #default="{ row }">
<el-button size="small" @click="openDetail(row)">详情</el-button>
<el-button size="small" @click="openUsage(row)">用料</el-button>
<el-tooltip v-if="can('produce.workorder:dailyplan') && !['DONE','CANCELLED'].includes(row.status)"
:disabled="hasCombination(row)" content="请先选择工艺组合" placement="top">
<span style="margin-right:12px">
<el-button size="small" type="success" plain :disabled="!hasCombination(row)" @click="openAutoSchedule(row)">自动排产</el-button>
</span>
</el-tooltip>
<el-dropdown
v-if="can('produce.workorder:edit') && statusActions(row.status).length"
trigger="click" @command="(cmd) => changeStatus(row, cmd)">
<el-button size="small" type="primary">{{ statusActionBtn(row.status) }}</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item v-for="a in statusActions(row.status)" :key="a.v" :command="a.v">{{ a.l }}</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<el-dropdown
v-if="(row.status === 'CREATED' && can('produce.workorder:edit')) || (can('produce.workorder:delete') && ['CREATED','PENDING','CONFIRMED'].includes(row.status))"
trigger="click" @command="(cmd) => moreAction(row, cmd)">
<el-button link type="primary" size="small" @click="openDetail(row)">详情</el-button>
<el-dropdown trigger="click" @command="(cmd) => onRowCmd(row, cmd)">
<el-button size="small">更多 ▾</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item v-if="can('produce.workorder:edit') && row.status === 'CREATED'" command="edit">编辑</el-dropdown-item>
<el-dropdown-item v-if="can('produce.workorder:delete') && ['CREATED','PENDING','CONFIRMED'].includes(row.status)" command="del" divided>删除</el-dropdown-item>
<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') && ['CREATED','PENDING','CONFIRMED'].includes(row.status)"
command="del" divided style="color:#f56c6c">删除</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
@@ -613,10 +599,13 @@ async function del(row) {
load()
}
// 操作列「更多」菜单分发:工位组合 / 编辑 / 删除
function moreAction(row, cmd) {
if (cmd === 'edit') openEdit(row)
else if (cmd === 'del') del(row)
// 操作列「更多 ▾」菜单分发:用料 / 自动排产 / 状态操作 / 编辑 / 删除
function onRowCmd(row, cmd) {
if (cmd === 'usage') return openUsage(row)
if (cmd === 'schedule') return openAutoSchedule(row)
if (cmd === 'edit') return openEdit(row)
if (cmd === 'del') return del(row)
if (cmd.startsWith('st:')) return changeStatus(row, cmd.slice(3))
}
// ---- 自动排产(引导式,M9 定稿:预览逐日可调、总数据必须对上)----