feat: 完成产线MES系统全流程功能迭代与优化
本提交完成了多个核心模块的功能完善与业务对齐: 1. 工位终端:固定工位配置、移除自选工位逻辑、适配配置化工位号 2. MES核心:重构工位组合逻辑、新增工单/流程状态管理、补全报工/追溯逻辑 3. WMS客户端:新增修改密码功能、优化帮助弹窗逻辑 4. 文档与权限:补充完整操作手册、统一菜单名称与权限描述 5. 修复多业务校验:排产数量校验、工单状态校验、工位绑定规则
This commit is contained in:
@@ -53,8 +53,8 @@
|
||||
<el-table :data="rows" border size="small">
|
||||
<el-table-column prop="operator" label="操作人" min-width="110" />
|
||||
<el-table-column prop="date" label="日期" width="110" />
|
||||
<el-table-column prop="processCode" label="工序" width="80" align="center" />
|
||||
<el-table-column prop="processName" label="工序名" min-width="130" show-overflow-tooltip />
|
||||
<el-table-column prop="processCode" label="工位" width="80" align="center" />
|
||||
<el-table-column prop="processName" label="工位名" min-width="130" show-overflow-tooltip />
|
||||
<el-table-column prop="doneCount" label="完成数" width="90" align="right" />
|
||||
<el-table-column prop="okCount" label="合格数" width="90" align="right" />
|
||||
<el-table-column prop="ngCount" label="NG数" width="90" align="right" />
|
||||
@@ -117,7 +117,7 @@ async function load() {
|
||||
// 导出 CSV(块6):按当前查询结果生成,含 BOM 以便 Excel 打开中文不乱码
|
||||
function exportCsv() {
|
||||
if (!rows.value.length) return ElMessage.warning('当前无数据可导出')
|
||||
const header = ['操作人', '日期', '工序', '工序名', '完成数', '合格数', 'NG数', '合格率']
|
||||
const header = ['操作人', '日期', '工位', '工位名', '完成数', '合格数', 'NG数', '合格率']
|
||||
const lines = rows.value.map((r) => {
|
||||
const rate = Number(r.doneCount) ? ((Number(r.okCount) / Number(r.doneCount)) * 100).toFixed(1) + '%' : '-'
|
||||
return [r.operator, r.date, r.processCode, r.processName, r.doneCount, r.okCount, r.ngCount, rate]
|
||||
|
||||
Reference in New Issue
Block a user