From c853bdbe55489aba1fae1a2f32903fa465be2e68 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 7 Jul 2026 18:10:51 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E4=BB=93=E5=BA=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/erp/stock/warehouse/index.vue | 71 ------------------------- 1 file changed, 71 deletions(-) diff --git a/src/views/erp/stock/warehouse/index.vue b/src/views/erp/stock/warehouse/index.vue index 4cc48caa..8057676f 100644 --- a/src/views/erp/stock/warehouse/index.vue +++ b/src/views/erp/stock/warehouse/index.vue @@ -119,16 +119,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -344,23 +296,6 @@ const handleDelete = async (id: number) => { } catch {} } -/** 修改默认状态 */ -const handleDefaultStatusChange = async (row: WarehouseVO) => { - try { - // 修改状态的二次确认 - const actionText = row.defaultStatus ? t('ErpStock.Warehouse.set') : t('ErpStock.Warehouse.cancel') - const text = t('ErpStock.Warehouse.confirmDefaultStatus', { action: actionText, name: row.name }) - await message.confirm(text) - // 发起修改状态 - await WarehouseApi.updateWarehouseDefaultStatus(row.id, row.defaultStatus) - // 刷新列表 - await getList() - } catch (e) { - // 取消后,进行恢复按钮 - row.defaultStatus = !row.defaultStatus - } -} - /** 导出按钮操作 */ const handleExport = async () => { try { @@ -391,12 +326,6 @@ const openDetail = async (id: number) => { } } -/** 根据库区ID获取库区名称 */ -const getAreaName = (areaId: number) => { - if (!detailData.value?.areaList) return '-' - return detailData.value.areaList.find((area) => area.id === areaId)?.areaName || '-' -} - /** 选中操作 */ const selectionList = ref([]) const handleSelectionChange = (rows: WarehouseVO[]) => {