|
@@ -714,12 +714,15 @@ module.exports = app => {
|
|
|
where: { project_id: ctx.session.sessionProject.id, enable: 1 },
|
|
|
columns: ['id', 'name', 'company', 'role', 'enable', 'is_admin', 'account_group', 'mobile'],
|
|
|
});
|
|
|
- for (const s of trDetailList) {
|
|
|
- // s.curAuditor = null;
|
|
|
- // 根据期状态返回展示用户
|
|
|
- s.curAuditor = await ctx.service.paymentDetailAudit.getAuditorByStatus(s.id, s.status, s.times);
|
|
|
- const userInfo = ctx.helper._.find(accountList, { id: s.uid });
|
|
|
- s.user_name = userInfo ? userInfo.name : '';
|
|
|
+ if (trDetailList.length > 0) {
|
|
|
+ for (const s of trDetailList) {
|
|
|
+ // s.curAuditor = null;
|
|
|
+ // 根据期状态返回展示用户
|
|
|
+ s.curAuditor = await ctx.service.paymentDetailAudit.getAuditorByStatus(s.id, s.status, s.times);
|
|
|
+ const userInfo = ctx.helper._.find(accountList, { id: s.uid });
|
|
|
+ s.user_name = userInfo ? userInfo.name : '';
|
|
|
+ }
|
|
|
+ trDetailList[0].emptySign = await ctx.service.paymentRptAudit.haveEmptySign(trDetailList[0].id);
|
|
|
}
|
|
|
const renderData = {
|
|
|
tender: ctx.tender,
|