|
|
@ -651,7 +651,10 @@ const butttondata = (row) => { |
|
|
|
defaultButtons.mainListFinishBtn({ |
|
|
|
hide: isShowMainButton(row, ['0']), |
|
|
|
hasPermi: 'qms:Q2:finish' |
|
|
|
}) // 完成 |
|
|
|
}), // 完成 |
|
|
|
defaultButtons.mainListSendBtn({ |
|
|
|
hide: isShowMainButton(row, ['0']), |
|
|
|
}) // 发送邮件 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -667,6 +670,9 @@ const buttonTableClick = async (val, row) => { |
|
|
|
// 删除 |
|
|
|
handleFinish(row.id) |
|
|
|
} |
|
|
|
else if (val == 'send') { |
|
|
|
handleSend(row.id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const handleFinish = async (id: number) => { |
|
|
@ -678,6 +684,19 @@ const handleFinish = async (id: number) => { |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
const handleSend = async (id: number) => { |
|
|
|
try { |
|
|
|
// 发送邮件的二次确认 |
|
|
|
await message.confirm('确认发送邮件吗?') |
|
|
|
// 发送邮件 |
|
|
|
await Q2Api.sendQ2(id) |
|
|
|
message.success(t('邮件发送成功')) |
|
|
|
// message.success(t('common.success')) |
|
|
|
// 刷新列表 |
|
|
|
// await getList() |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|