feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -9,13 +9,27 @@ import { fmtNum } from '../utils/format'
|
||||
const router = useRouter()
|
||||
const overview = ref({})
|
||||
const loaded = ref(false)
|
||||
// 缺货预警(客户诉求 问题记录 L473:安全库存/缺货预警进 WMS 首页)
|
||||
const shortage = ref([])
|
||||
|
||||
async function load() {
|
||||
overview.value = await request.get('/display/overview')
|
||||
loaded.value = true
|
||||
}
|
||||
|
||||
onMounted(load)
|
||||
async function loadShortage() {
|
||||
try {
|
||||
const d = await request.get('/stock/shortage')
|
||||
shortage.value = d?.list || []
|
||||
} catch (e) {
|
||||
shortage.value = []
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
load()
|
||||
loadShortage()
|
||||
})
|
||||
|
||||
const cards = [
|
||||
{ key: 'totalQty', label: '在库总量' },
|
||||
@@ -53,6 +67,26 @@ const entries = [
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-card v-if="shortage.length" shadow="never" class="mb12" style="margin-top:12px">
|
||||
<template #header>
|
||||
<span style="color:#f56c6c;font-weight:600">缺货预警({{ shortage.length }} 项物料可用量低于安全库存)</span>
|
||||
</template>
|
||||
<el-table :data="shortage" border size="small" empty-text="暂无缺货物料">
|
||||
<el-table-column prop="materialCode" label="物料编码" min-width="140" />
|
||||
<el-table-column prop="materialName" label="物料名称" min-width="150" />
|
||||
<el-table-column prop="spec" label="规格" min-width="110">
|
||||
<template #default="{ row }">{{ row.spec || '-' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="safetyStock" label="安全库存" width="100" align="center" />
|
||||
<el-table-column prop="availQty" label="可用量" width="90" align="center" />
|
||||
<el-table-column label="缺口" width="90" align="center">
|
||||
<template #default="{ row }">
|
||||
<span style="color:#f56c6c;font-weight:600">{{ row.shortQty }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
|
||||
<el-card shadow="never" header="快捷入口">
|
||||
<div class="entries">
|
||||
<el-button v-for="e in entries" :key="e.path" size="large"
|
||||
|
||||
Reference in New Issue
Block a user