MaiXinRong 2 năm trước cách đây
mục cha
commit
76aa317111
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/public/js/shenpi.js

+ 2 - 2
app/public/js/shenpi.js

@@ -761,7 +761,7 @@ $(document).ready(function () {
             const self = this;
             const data = { type: 'audit-ass'};
             if (assist) {
-                const newAss = this.assList.find(x => { return x.ass_user_id === assist.id; });
+                const newAss = this.showAssList.find(x => { return x.ass_user_id === assist.id; });
                 if (!newAss) {
                     data.add = { user_id: this.uid, ass_user_id: assist.id, name: assist.name, company: assist.company, role: assist.role, ass_ledger_id: node.ledger_id + '' };
                 } else {
@@ -769,7 +769,7 @@ $(document).ready(function () {
                 }
             }
             if (node.ass_audit_id) {
-                const orgAss = this.assList.find(x => { return x.ass_user_id === node.ass_audit_id; });
+                const orgAss = this.showAssList.find(x => { return x.ass_user_id === node.ass_audit_id; });
                 const rela_lid = orgAss.ass_ledger_id ? orgAss.ass_ledger_id.split(',') : [];
                 rela_lid.splice(rela_lid.indexOf(node.ledger_id + ''), 1);
                 if (rela_lid.length === 0) {