feat: 完成客户第12条需求+多系统改造

1. 新增预警表添加工单号字段,支持按工单号检索预警
2. 添加工单过滤在制品/绩效报表/预警中心查询
3. 补全WMS台账字段口径与权限配置
4. 修复备料单与数量不符处理流程
5. 新增配送进度/库位联动/自动出库功能
6. 修复AGV配送状态更新逻辑
7. 优化退料与库存管理细节
This commit is contained in:
SunYF
2026-09-19 17:04:58 +08:00
parent 62e45b7379
commit 05b0b8a909
89 changed files with 7912 additions and 429 deletions
+5 -1
View File
@@ -57,8 +57,10 @@ function onTabChange(name) {
if (name === 'return' && !retQueried.value) loadReturn()
}
// 缺口按净领用计算:净领用 = 已出库 − 已退回(退料自动回补缺口,退料后可再次补料)
function gapOf(row) {
return Math.max((row.totalQty || 0) - (row.outQty || 0), 0)
const net = (row.outQty || 0) - (row.returnedQty || 0)
return Math.max((row.totalQty || 0) - net, 0)
}
async function load() {
@@ -159,6 +161,8 @@ function statusView(row) {
<template #default="{ row }">{{ row.availableQty ?? 0 }}</template>
</el-table-column>
<el-table-column prop="outQty" label="已出库" width="90" align="center" />
<el-table-column prop="returnedQty" label="已退回" width="90" align="center" />
<el-table-column prop="consumedQty" label="已消耗" width="90" align="center" />
<el-table-column label="缺口" width="90" align="center">
<template #default="{ row }">{{ gapOf(row) }}</template>
</el-table-column>