feat: 完成多模块迭代更新

- 新增过程巡检按步骤上报、数量不符上报、工位退料功能
- 增加工单工程编号三级归属字段
- 新增物料安全库存与缺货预警
- 新增附件管理、退库单管理模块
- 优化生产看板展示逻辑与前端页面文案
- 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
SunYF
2026-09-15 16:37:39 +08:00
parent 951f3dfecd
commit 4a5e2d7bac
494 changed files with 24702 additions and 139223 deletions
+17
View File
@@ -7,8 +7,15 @@ import { fmtTime } from '../utils/format'
import { getRealName } from '../utils/auth'
import PageHelp from '../components/PageHelp.vue'
import MaterialSelect from '../components/MaterialSelect.vue'
import AttachmentPanel from '../components/AttachmentPanel.vue'
import { helpSemi } from '../help'
// 半成品/成品附件(bizType=semibizId=SN
const attachDrawer = reactive({ visible: false, sn: '' })
function openAttach(row) {
Object.assign(attachDrawer, { visible: true, sn: row.sn })
}
/* ---------- 半成品/成品入库(携带已完成工序,连续扫码) ---------- */
// 物料下拉由 MaterialSelect 组件按需远程搜索(最近 100 条)
@@ -214,6 +221,11 @@ function search() {
<el-table-column label="创建时间" width="160" align="center">
<template #default="{ row }">{{ fmtTime(row.createdAt) }}</template>
</el-table-column>
<el-table-column label="操作" width="90" align="center" fixed="right">
<template #default="{ row }">
<el-button link type="success" size="small" @click="openAttach(row)">附件</el-button>
</template>
</el-table-column>
</el-table>
<div class="pager">
<el-pagination background layout="total, prev, pager, next" :total="total"
@@ -223,6 +235,11 @@ function search() {
</el-tab-pane>
</el-tabs>
</el-card>
<!-- 半成品/成品附件抽屉(bizType=semibizId=SN):入库资料 / 试验记录单 -->
<el-drawer v-model="attachDrawer.visible" :title="`半成品附件:${attachDrawer.sn}`" size="620px">
<AttachmentPanel biz-type="semi" :biz-id="attachDrawer.sn" title="附件入库资料 / 试验记录" />
</el-drawer>
<PageHelp :data="helpSemi" page="Semi" />
</template>