|
|
@@ -10,10 +10,7 @@ export const getProcessStatus = (approvalWay: ApprovalWay, accounts: IProcessAcc
|
|
|
// 指定用户 退回上一环节为上报审批时,判断流程状态和指定用户一样
|
|
|
if (approvalWay === ApprovalWay.ACCOUNT || approvalWay === ApprovalWay.REPORT) {
|
|
|
const { status } = accounts[0];
|
|
|
- if (status === ProcessStatus.ACTIVATING) return ProcessStatus.ACTIVATING;
|
|
|
- if (status === ProcessStatus.APPROVED) return ProcessStatus.APPROVED;
|
|
|
- if (status === ProcessStatus.FAILED) return ProcessStatus.FAILED;
|
|
|
- return ProcessStatus.WAITING;
|
|
|
+ return status;
|
|
|
}
|
|
|
// 会签 或者 依次审批
|
|
|
if (approvalWay === ApprovalWay.JOINTLYSIGN || approvalWay === ApprovalWay.ORDERAPPROVAL) {
|