|
@@ -761,7 +761,7 @@ $(document).ready(function () {
|
|
const self = this;
|
|
const self = this;
|
|
const data = { type: 'audit-ass'};
|
|
const data = { type: 'audit-ass'};
|
|
if (assist) {
|
|
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) {
|
|
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 + '' };
|
|
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 {
|
|
} else {
|
|
@@ -769,7 +769,7 @@ $(document).ready(function () {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (node.ass_audit_id) {
|
|
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(',') : [];
|
|
const rela_lid = orgAss.ass_ledger_id ? orgAss.ass_ledger_id.split(',') : [];
|
|
rela_lid.splice(rela_lid.indexOf(node.ledger_id + ''), 1);
|
|
rela_lid.splice(rela_lid.indexOf(node.ledger_id + ''), 1);
|
|
if (rela_lid.length === 0) {
|
|
if (rela_lid.length === 0) {
|