Browse Source

feat: 审批退回可选退回的人员应为当前账号之前的人。

lanjianrong 4 năm trước cách đây
mục cha
commit
9d356ca411

+ 3 - 3
src/pages/Quality/Content/Info/Detail/components/Modal/index.tsx

@@ -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)
           })