|
|
@ -387,62 +387,86 @@ const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
/** 关闭按钮操作 */ |
|
|
|
const handleClose = async (id: number) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('common.confirmColse')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductrepairRequestMainApi.closeProductrepairRequestMain(id) |
|
|
|
message.success(t('common.closeSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 重新添加按钮操作 */ |
|
|
|
const handleReAdd = async (id: number) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('common.confirmReAdd')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductrepairRequestMainApi.reAddProductrepairRequestMain(id) |
|
|
|
message.success(t('common.reAddSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 提交按钮操作 */ |
|
|
|
const handleSubmit = async (id: number) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('common.confirmSubmit')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductrepairRequestMainApi.submitProductrepairRequestMain(id) |
|
|
|
message.success(t('common.submitSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 审批驳回按钮操作 */ |
|
|
|
const handleRefused = async (id: number) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('common.confirmRefused')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductrepairRequestMainApi.refusedProductrepairRequestMain(id) |
|
|
|
message.success(t('common.refusedSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 审批通过按钮操作 */ |
|
|
|
const handleAgree = async (id: number) => { |
|
|
|
const handleAgree = async (id: number) => {. |
|
|
|
try{ |
|
|
|
await message.confirm(t('common.confirmAgree')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductrepairRequestMainApi.agreeProductrepairRequestMain(id) |
|
|
|
message.success(t('common.agreeSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 处理按钮操作 */ |
|
|
|
const handleHandle = async (id: number) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('common.confirmHandle')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductrepairRequestMainApi.handleProductrepairRequestMain(id) |
|
|
|
message.success(t('common.handleSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|