|
|
@@ -1429,9 +1429,9 @@ const loadCooperationData = {
|
|
|
const c = stageCooperation.find(x => {return x.ledger_id == id});
|
|
|
if (c) return c.sign_path;
|
|
|
}
|
|
|
- return auditor.sign_path;
|
|
|
+ return '';
|
|
|
} else {
|
|
|
- return auditor.sign_path;
|
|
|
+ return '';
|
|
|
}
|
|
|
},
|
|
|
_loadImCooperationData: function (ctx, data, options, csRela) {
|
|
|
@@ -1448,7 +1448,7 @@ const loadCooperationData = {
|
|
|
|
|
|
const stageCooperation = [];
|
|
|
for (const sa of data.stage_audit) {
|
|
|
- stageCooperation.push(data.ledger_cooperation.filter(x => {return x.user_id === sa.aid}));
|
|
|
+ if (sa.end_time) stageCooperation.push(data.ledger_cooperation.filter(x => {return x.user_id === sa.aid}));
|
|
|
}
|
|
|
for (const d of data[options.table]) {
|
|
|
const bills = data.mem_stage_bills.find(x => {return x.id === d.lid});
|
|
|
@@ -1460,8 +1460,10 @@ const loadCooperationData = {
|
|
|
}
|
|
|
|
|
|
for (const [i, cs] of coSignOrder.entries()) {
|
|
|
- d['co_sign' + (i+1)] = d.cooperation[cs] || '';
|
|
|
+ if (data.stage_audit[cs] && data.stage_audit[cs].end_time)
|
|
|
+ d['co_sign' + (i+1)] = d.cooperation[cs] || (data.stage_audit[cs] ? data.stage_audit[cs].sign_path : '');
|
|
|
}
|
|
|
+ console.log(d);
|
|
|
}
|
|
|
},
|
|
|
fun: function (ctx, data, fieldsKey, options, csRela) {
|