From a49c9ae977ac6b18a46bd9d62894f12327b87bfa Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 25 Jun 2024 16:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AE=A1=E5=85=A5/=E9=A2=84=E8=AE=A1?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=AD=98=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/expectin/index.ts | 5 +++++ src/api/wms/expectout/index.ts | 4 ++-- src/views/wms/inventoryManage/expectin/index.vue | 13 +++++++++++-- src/views/wms/inventoryManage/expectout/index.vue | 12 ++++++++++-- 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/api/wms/expectin/index.ts b/src/api/wms/expectin/index.ts index 895ea616b..ab98fbc19 100644 --- a/src/api/wms/expectin/index.ts +++ b/src/api/wms/expectin/index.ts @@ -44,6 +44,11 @@ export const deleteExpectin = async (id: number) => { return await request.delete({ url: `/wms/expectin/delete?id=` + id }) } +// 批量删除预计出库存 +export const deleteExpectinIds = async (ids: string) => { + return await request.delete({ url: `/wms/expectin/deleteIds?ids=` + ids }) +} + // 导出预计入库存 Excel export const exportExpectin = async (params) => { if (params.isSearch) { diff --git a/src/api/wms/expectout/index.ts b/src/api/wms/expectout/index.ts index 819320553..64329d4d5 100644 --- a/src/api/wms/expectout/index.ts +++ b/src/api/wms/expectout/index.ts @@ -46,8 +46,8 @@ export const deleteExpectout = async (id: number) => { } // 批量删除预计出库存 -export const deleteExpectoutIds = async (ids: String) => { - return await request.delete({ url: `/wms/expectout/delete?ids=` + ids }) +export const deleteExpectoutIds = async (ids: string) => { + return await request.delete({ url: `/wms/expectout/deleteIds?ids=` + ids }) } // 导出预计出库存 Excel diff --git a/src/views/wms/inventoryManage/expectin/index.vue b/src/views/wms/inventoryManage/expectin/index.vue index b85574fd7..98e4ec8bd 100644 --- a/src/views/wms/inventoryManage/expectin/index.vue +++ b/src/views/wms/inventoryManage/expectin/index.vue @@ -160,9 +160,18 @@ const handleSelectionDelete = async ()=>{ if(rows.length==0){ return } - console.log('批量删除',rows) - // await ExpectoutApi.deleteExpectoutIds(rows.join(',')) //换入库接口 + try { + // 删除的二次确认 + await message.delConfirm() + tableObject.loading = true + // 发起删除 + console.log('批量删除',rows.join(',')) + await ExpectinApi.deleteExpectinIds(rows.join(',')) + message.success(t('common.delSuccess')) + tableObject.loading = false + // 刷新列表 getList() + } catch {} } // 列表-操作按钮 diff --git a/src/views/wms/inventoryManage/expectout/index.vue b/src/views/wms/inventoryManage/expectout/index.vue index 3adf1c7a4..973c12b43 100644 --- a/src/views/wms/inventoryManage/expectout/index.vue +++ b/src/views/wms/inventoryManage/expectout/index.vue @@ -160,10 +160,18 @@ const handleSelectionDelete = async ()=>{ if(rows.length==0){ return } - console.log('批量删除',rows) + try { + // 删除的二次确认 + await message.delConfirm() + tableObject.loading = true + // 发起删除 + console.log('批量删除',rows.join(',')) await ExpectoutApi.deleteExpectoutIds(rows.join(',')) + message.success(t('common.delSuccess')) + tableObject.loading = false + // 刷新列表 getList() - + } catch {} } // 列表-操作按钮 const butttondata = [