|
|
@ -379,10 +379,11 @@ const handleDelete = async (id: number) => { |
|
|
|
// 发起删除 |
|
|
|
await SupplierdeliverRequestMainApi.deleteSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 关闭按钮操作 */ |
|
|
@ -394,10 +395,11 @@ const handleClo = async (id: number) => { |
|
|
|
// 发起关闭 |
|
|
|
await SupplierdeliverRequestMainApi.cloSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('关闭成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 打开按钮操作 */ |
|
|
@ -409,10 +411,11 @@ const handleOpe = async (id: number) => { |
|
|
|
// 发起打开 |
|
|
|
await SupplierdeliverRequestMainApi.opeSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('打开成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 提交审批按钮操作 */ |
|
|
@ -424,10 +427,11 @@ const handleSub = async (id: number) => { |
|
|
|
// 发起提交审批 |
|
|
|
await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('提交审批成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 审批通过按钮操作 */ |
|
|
@ -439,10 +443,11 @@ const handleApp = async (id: number) => { |
|
|
|
// 发起审批通过 |
|
|
|
await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('审批通过成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 驳回按钮操作 */ |
|
|
@ -454,10 +459,11 @@ const handleTur = async (id: number) => { |
|
|
|
// 发起驳回 |
|
|
|
await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('驳回成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 处理按钮操作 */ |
|
|
@ -469,10 +475,11 @@ const genRecords = async (id: number) => { |
|
|
|
// 发起处理 |
|
|
|
await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) |
|
|
|
message.success(t('处理成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} catch {}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|