Selaa lähdekoodia

变更会签通过时数据展示

ellisran 1 vuosi sitten
vanhempi
commit
01c3c56954
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/controller/change_controller.js

+ 1 - 1
app/controller/change_controller.js

@@ -364,7 +364,7 @@ module.exports = app => {
                             if (change.userGroups[au][0].audit_order !== 0) {
                                 cl['audit_amount_' + change.userGroups[au][0].audit_order] =
                                     (change.userGroups[au][0].audit_type === auditType.key.and &&
-                                        ctx.helper._.findIndex(change.userGroups[0], { status: audit.change.status.checked }) !== -1) ||
+                                        ctx.helper._.findIndex(change.userGroups[au], { status: audit.change.status.checked }) !== -1) ||
                                     (change.shenpiPower && ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId }) !== -1) ?
                                         cl.spamount : (audit_amount[au - 1] !== undefined ? parseFloat(audit_amount[au - 1]) : null);
                             }