流程任务催办限制优化

zzq
刘妍 2024-06-15 11:41:34 +08:00
parent 490817f62d
commit 2f4a09b26a
1 changed files with 10 additions and 1 deletions

View File

@ -138,7 +138,7 @@
var query = {
id: record.id,
};
if (record.isStart == 1 && record.isCancel == 0) {
if (record.isFinished == 1 || record.isAgain == 1) {
return createMessage.warning('重新提交和结束的流程不能催办');
}
const data = await urge(query);
@ -154,6 +154,15 @@
taskId: record.id,
id: record.processId,
};
// isFinished 1
// isAgain 1
// isStart 1 0
// isCancel 1 1 0
if (record.isFinished == 1 || record.isAgain == 1) {
return createMessage.warning('重新提交和结束的流程不能撤销');
} else if (record.isStart != 0 && record.isCancel != 1) {
return createMessage.warning('不能撤销');
}
if (record.isStart == 0) {
const data = await revoke({
id: record.id,