From f2f940920681b69db806e03dbb38c30c90b211cc Mon Sep 17 00:00:00 2001 From: dxc Date: Tue, 12 May 2026 15:45:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=B8=BAMOM/BOM=E5=88=86=E7=B1=BB=E5=88=86?= =?UTF-8?q?=E7=BB=84=E5=B1=95=E7=A4=BA/=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=A2=9E=E5=BC=BA=EF=BC=88=E5=88=A0=E9=99=A4=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4+=E5=8E=8B=E7=BC=A9=E5=8C=85150MB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory-web/src/App.vue | 2 +- inventory-web/src/views/bom/BomManage.vue | 2 +- inventory-web/src/views/material/list.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory-web/src/App.vue b/inventory-web/src/App.vue index 1addb68..06a9dfe 100644 --- a/inventory-web/src/App.vue +++ b/inventory-web/src/App.vue @@ -234,7 +234,7 @@ const handleLogout = () => { diff --git a/inventory-web/src/views/bom/BomManage.vue b/inventory-web/src/views/bom/BomManage.vue index ebaf54b..b05c4c0 100644 --- a/inventory-web/src/views/bom/BomManage.vue +++ b/inventory-web/src/views/bom/BomManage.vue @@ -616,7 +616,7 @@ const fetchBomList = async () => { const res = await getBomList({ keyword: searchKeyword.value }) if (res.code === 200) { bomGroups.value = res.data - activeCategories.value = res.data.map((g: any) => g.category) + activeCategories.value = [] } } finally { loading.value = false } } diff --git a/inventory-web/src/views/material/list.vue b/inventory-web/src/views/material/list.vue index cdd7d0d..6f00d5e 100644 --- a/inventory-web/src/views/material/list.vue +++ b/inventory-web/src/views/material/list.vue @@ -1566,7 +1566,7 @@ const beforeAvatarUpload = (rawFile: any) => { return false; } const isCompressed = ['application/zip', 'application/x-zip-compressed', 'application/x-rar-compressed', 'application/vnd.rar', 'application/x-7z-compressed'].includes(rawFile.type); - const maxMB = isCompressed ? 50 : 10; + const maxMB = 150; if (rawFile.size / 1024 / 1024 > maxMB) { ElMessage.error(`文件不能超过 ${maxMB}MB`); return false;