V3.52修改BOM另存为问题

This commit is contained in:
dxc
2026-06-26 16:09:52 +08:00
parent 6a895347d0
commit 4fb5a96c4c
2 changed files with 10 additions and 4 deletions

View File

@ -239,7 +239,7 @@ const handleLogout = () => {
<footer v-if="!isLoginPage" class="app-footer">
<span class="version-tag">
<el-icon style="vertical-align: middle; margin-right: 4px"><InfoFilled /></el-icon>
当前版本:V3.51
当前版本:V3.52
</span>
</footer>

View File

@ -855,20 +855,26 @@ const submitForm = async () => {
parent_id: form.parent_id,
is_enabled: form.is_enabled,
children: form.children
.filter((c: any) => c.child_id !== null)
.map((c: any) => ({
child_id: c.child_id,
dosage: c.dosage,
remark: c.remark || ''
}))
}
saving.value = true
try {
const res = await publishDraft({ bom_no: pureBomNo.value, version: form.version })
const res = await saveBom(payload)
if (res.code === 200) {
ElMessage.success('发布成功')
ElMessage.success('保存成功')
localStorage.removeItem('pending_bom_draft_no')
localStorage.removeItem('pending_bom_draft_version')
originalDraftHash.value = ''
dialogVisible.value = false
fetchBomList()
} else {
ElMessage.error(res.msg || '发布失败')
ElMessage.error(res.msg || '保存失败')
}
} finally {
saving.value = false