|
@@ -135,7 +135,7 @@ const AuditModal: React.FC<iAuditModalProps> = props => {
|
|
|
for (let index = 0; index < 3; index++) {
|
|
|
if (index === 0) {
|
|
|
const newAuditors = auditors
|
|
|
- .filter(item => item.progress === '')
|
|
|
+ .filter(item => item.progress === '' && item.audit_order < curAuditor.auditOrder)
|
|
|
.map(item => {
|
|
|
return mapUser(item.name, item.id, item.position, item.company, item.mobile)
|
|
|
})
|
|
@@ -143,7 +143,7 @@ const AuditModal: React.FC<iAuditModalProps> = props => {
|
|
|
}
|
|
|
if (index === 1) {
|
|
|
const newAuditors = auditors
|
|
|
- .filter(item => item.progress === '0')
|
|
|
+ .filter(item => item.progress === '0' && item.audit_order < curAuditor.auditOrder)
|
|
|
.map(item => {
|
|
|
return mapUser(item.name, item.id, item.position, item.company, item.mobile)
|
|
|
})
|
|
@@ -151,7 +151,7 @@ const AuditModal: React.FC<iAuditModalProps> = props => {
|
|
|
}
|
|
|
if (index === 2) {
|
|
|
const newAuditors = auditors
|
|
|
- .filter(item => item.progress === '1')
|
|
|
+ .filter(item => item.progress === '1' && item.audit_order < curAuditor.auditOrder)
|
|
|
.map(item => {
|
|
|
return mapUser(item.name, item.id, item.position, item.company, item.mobile)
|
|
|
})
|