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