|
|
@ -402,62 +402,62 @@ const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
/** 关闭按钮操作 */ |
|
|
|
const handleClose = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmColse')) |
|
|
|
await UnplannedreceiptRequestMainApi.closeUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.closeSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
await message.confirm(t('common.confirmColse')) |
|
|
|
tableObject.loading = true |
|
|
|
await UnplannedreceiptRequestMainApi.closeUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.closeSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 重新添加按钮操作 */ |
|
|
|
const handleReAdd = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmReAdd')) |
|
|
|
await UnplannedreceiptRequestMainApi.reAddUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.reAddSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
await message.confirm(t('common.confirmReAdd')) |
|
|
|
tableObject.loading = true |
|
|
|
await UnplannedreceiptRequestMainApi.reAddUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.reAddSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 提交按钮操作 */ |
|
|
|
const handleSubmit = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmSubmit')) |
|
|
|
await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.submitSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
await message.confirm(t('common.confirmSubmit')) |
|
|
|
tableObject.loading = true |
|
|
|
await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.submitSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 审批驳回按钮操作 */ |
|
|
|
const handleRefused = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmRefused')) |
|
|
|
await UnplannedreceiptRequestMainApi.refusedUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.refusedSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
await message.confirm(t('common.confirmRefused')) |
|
|
|
tableObject.loading = true |
|
|
|
await UnplannedreceiptRequestMainApi.refusedUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.refusedSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 审批通过按钮操作 */ |
|
|
|
const handleAgree = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmAgree')) |
|
|
|
await UnplannedreceiptRequestMainApi.agreeUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.agreeSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
await message.confirm(t('common.confirmAgree')) |
|
|
|
tableObject.loading = true |
|
|
|
await UnplannedreceiptRequestMainApi.agreeUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.agreeSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 处理按钮操作 */ |
|
|
|
const handleHandle = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmHandle')) |
|
|
|
await UnplannedreceiptRequestMainApi.handleUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.handleSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
await message.confirm(t('common.confirmHandle')) |
|
|
|
tableObject.loading = true |
|
|
|
await UnplannedreceiptRequestMainApi.handleUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.handleSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
@ -478,9 +478,11 @@ const handleDelete = async (id: number) => { |
|
|
|
try { |
|
|
|
// 删除的二次确认 |
|
|
|
await message.delConfirm() |
|
|
|
tableObject.loading = true |
|
|
|
// 发起删除 |
|
|
|
await UnplannedreceiptRequestMainApi.deleteUnplannedreceiptRequestMain(id) |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|