feat: 新增工序签字功能,移除移料指令模块

新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
SunYF
2026-10-05 20:15:38 +08:00
parent c33acab9c8
commit f1cf57e9b2
181 changed files with 9785 additions and 9699 deletions
@@ -58,7 +58,7 @@
<template #default="{row}">{{ fmtQty(row.sentQty) }}</template>
</el-table-column>
<el-table-column label="已接料" width="90" align="center">
<template #default="{row}">{{ fmtQty(row.receivedQty) }}</template>
<template #default="{row}">{{ Number(row.sentQty || 0) > 0 ? fmtQty(row.receivedQty) : '—' }}</template>
</el-table-column>
<el-table-column label="分批进度" min-width="150">
<template #default="{row}">
@@ -70,7 +70,9 @@
</el-table-column>
<el-table-column label="操作" width="100" align="center" fixed="right">
<template #default="{row}">
<el-button size="small" type="success" :disabled="row.status === 'DONE'" :loading="receiving && receivingNo === row.requestNo" @click="receive(row)">已接料</el-button>
<el-tooltip content="仓库发出后才能确认接料" :disabled="Number(row.sentQty || 0) > 0" placement="top">
<el-button size="small" type="success" :disabled="row.status === 'DONE' || Number(row.sentQty || 0) <= 0" :loading="receiving && receivingNo === row.requestNo" @click="receive(row)">确认接料</el-button>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="operator" label="操作人" width="90" />
@@ -117,7 +119,9 @@
<el-table-column prop="totalQty" label="需求" width="70" align="center" />
<el-table-column prop="outQty" label="已发出" width="75" align="center" />
<el-table-column prop="returnedQty" label="已退回" width="75" align="center" />
<el-table-column prop="receivedQty" label="已接料" width="75" align="center" />
<el-table-column label="已接料" width="75" align="center">
<template #default="{row}">{{ Number(row.outQty || 0) > 0 ? fmtQty(row.receivedQty) : '—' }}</template>
</el-table-column>
<el-table-column prop="consumedQty" label="已消耗" width="75" align="center" />
<el-table-column label="在途" width="70" align="center">
<template #default="{row}"><span :style="row.inTransit > 0 ? 'color:#E6A23C;font-weight:600' : ''">{{ row.inTransit }}</span></template>
@@ -142,6 +146,7 @@
<div style="color:#909399;font-size:12px;margin-top:8px">
口径:净领用 = 已发出 − 已退回;在途 = 已发出 − 已接料;工位余 = 已接料 − 已消耗 − 已退回;恒等式:入库总量 = 在库 + 在途 + 工位余 + 已消耗 + 退库回仓 + 盘点差异。
异常判定只标三类硬异常:<b>超领</b>(净领用 &gt; 需求)、<b>完结剩料</b>(台账领料完结但工位仍压料)、<b>在途等待</b>(已发出未接料,含已送达未扫码);生产中的待发缺口属正常状态,不标色。
<br>注:「已接料」为<b>本工单+图号的累计接料量</b>(MES 按工单汇总,不细分到每行),并非本行发出对应的接料;某行「已发出」为 0 时该列显示「—」,详情见上方接料明细。
</div>
<div style="margin-top:10px;text-align:right">
<el-button size="small" @click="exportLedgerCsv">导出 CSV</el-button>