feat: 新增工序签字功能,移除移料指令模块
新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
@@ -81,7 +81,7 @@ async function startStocktake() {
|
||||
finishResult.value = null
|
||||
scopeVisible.value = false
|
||||
ElMessage.success(
|
||||
`盘点已发起:${scopeLabel()},盘点单号 ${active.no},目标 ${active.totalTargets} 项,库存已锁定`
|
||||
`盘点已发起:${scopeLabel()},盘点单号 ${active.no},目标 ${active.totalTargets} 项,库存已冻结`
|
||||
)
|
||||
await loadHistory()
|
||||
nextTick(() => idRef.value?.focus())
|
||||
@@ -211,7 +211,7 @@ async function cancelStocktake() {
|
||||
let reason
|
||||
try {
|
||||
const res = await ElMessageBox.prompt(
|
||||
`确认取消盘点单 ${active.no}?取消后将解锁库存,本次已扫记录作废。请填写取消原因:`,
|
||||
`确认取消盘点单 ${active.no}?取消后将解冻库存,本次已扫记录作废。请填写取消原因:`,
|
||||
'取消盘点', { type: 'warning', inputPlaceholder: '如:发起范围选错 / 扫码错误过多', inputValidator: v => (v && v.trim() ? true : '请填写取消原因') }
|
||||
)
|
||||
reason = res.value
|
||||
@@ -219,7 +219,7 @@ async function cancelStocktake() {
|
||||
cancelling.value = true
|
||||
try {
|
||||
await request.post('/stocktake/cancel', { stocktakeNo: active.no, reason })
|
||||
ElMessage.success('盘点已取消,库存已解锁')
|
||||
ElMessage.success('盘点已取消,库存已解冻')
|
||||
finishResult.value = null
|
||||
records.value = []
|
||||
active.no = ''; active.totalTargets = 0; active.counted = 0; active.status = ''
|
||||
@@ -270,9 +270,9 @@ async function exportDetail(row) {
|
||||
// 进入页面即加载进行中盘点单 + 历史,无需手动点击查询
|
||||
onMounted(async () => { await loadActive(); await loadHistory() })
|
||||
|
||||
// 流程步骤引导:发起盘点(锁库存) → 扫码/录入实盘 → 完成(未盘项+写回)
|
||||
// 流程步骤引导:发起盘点(冻结库存) → 扫码/录入实盘 → 完成(未盘项+写回)
|
||||
const flowSteps = [
|
||||
{ title: '发起盘点', desc: '选范围,冻结快照并锁定库存' },
|
||||
{ title: '发起盘点', desc: '选范围,冻结库存并保存快照' },
|
||||
{ title: '扫码实盘', desc: '扫批次号/SN,录入实盘数' },
|
||||
{ title: '完成盘点', desc: '处理未盘项,二次确认写回' }
|
||||
]
|
||||
@@ -311,7 +311,7 @@ const currentStep = computed(() => {
|
||||
<el-descriptions-item label="盘点进度">{{ active.no ? `已盘 ${active.counted} / ${active.totalTargets}` : '-' }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-alert v-if="active.no" type="warning" :closable="false" show-icon class="mt12"
|
||||
title="盘点期间该范围库存已锁定,禁止出库/入库/锁定,直至完成或取消。" />
|
||||
title="盘点期间该范围库存已冻结,禁止出库/入库,直至完成或取消。" />
|
||||
<div class="mt12">
|
||||
<el-button type="primary" :loading="starting" :disabled="!canStart || (!!active.no)"
|
||||
@click="openScope">
|
||||
@@ -424,7 +424,7 @@ const currentStep = computed(() => {
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-alert v-if="finishDlg.adjust" type="warning" :closable="false" show-icon
|
||||
title="写回将按差异修正库存量(锁定量不动,可用量自动重算),此操作不可逆。" />
|
||||
title="写回将按差异修正库存量,此操作不可逆。" />
|
||||
<template #footer>
|
||||
<el-button @click="finishDlg.visible = false">返回</el-button>
|
||||
<el-button type="warning" :loading="finishDlg.submitting" @click="submitFinish">确认完成</el-button>
|
||||
|
||||
Reference in New Issue
Block a user