|
|
@ -187,7 +187,7 @@ const butttondata = (row) => { |
|
|
|
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:inventoryinit-request-main:agree'}), // 审批通过 |
|
|
|
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:inventoryinit-request-main:handle'}), // 处理 |
|
|
|
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:inventoryinit-request-main:update'}), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:inventoryinit-request-main:delete'}), // 删除 |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -207,8 +207,6 @@ const buttonTableClick = async (val, row) => { |
|
|
|
handleHandle(row.id) |
|
|
|
} else if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -293,17 +291,17 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
} |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
|
try { |
|
|
|
// 删除的二次确认 |
|
|
|
await message.delConfirm() |
|
|
|
// 发起删除 |
|
|
|
await InventoryinitRequestMainApi.deleteInventoryinitRequestMain(id) |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
// const handleDelete = async (id: number) => { |
|
|
|
// try { |
|
|
|
// // 删除的二次确认 |
|
|
|
// await message.delConfirm() |
|
|
|
// // 发起删除 |
|
|
|
// await InventoryinitRequestMainApi.deleteInventoryinitRequestMain(id) |
|
|
|
// message.success(t('common.delSuccess')) |
|
|
|
// // 刷新列表 |
|
|
|
// await getList() |
|
|
|
// } catch {} |
|
|
|
// } |
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
@ -313,7 +311,7 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await InventoryinitRequestMainApi.exportInventoryinitRequestMain(setSearchParams) |
|
|
|
const data = await InventoryinitRequestMainApi.exportInventoryinitRequestMain(tableObject.params) |
|
|
|
download.excel(data, '库存初始化申请主.xlsx') |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|