|
|
@@ -331,9 +331,20 @@
|
|
|
<div class="card-body px-3 py-0">
|
|
|
<% for (const [i, auditor] of group.auditors.entries()) { %>
|
|
|
<div class="card-text p-2 py-3 row <%- ( i > 0 ? 'border-top' : '') %>">
|
|
|
- <div class="col">
|
|
|
+ <div class="col-10">
|
|
|
<span class="h6"><%- auditor.name %></span>
|
|
|
- <span class="text-muted ml-1"><%- auditor.role %></span>
|
|
|
+ <% if (group.audit_order === 0) { %>
|
|
|
+ <% if (auditor.role && auditor.role.trim()) { %>
|
|
|
+ <span class="text-muted ml-1"><%- auditor.role %></span>
|
|
|
+ <% } %>
|
|
|
+ <% } else { %>
|
|
|
+ <span class="text-muted ml-1">
|
|
|
+ <%- auditor.company %>
|
|
|
+ <% if (auditor.role && auditor.role.trim()) { %>
|
|
|
+ - <%- auditor.role %>
|
|
|
+ <% } %>
|
|
|
+ </span>
|
|
|
+ <% } %>
|
|
|
</div>
|
|
|
<div class="col">
|
|
|
<% if (auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
@@ -515,9 +526,20 @@
|
|
|
<div class="card-body px-3 py-0">
|
|
|
<% for (const [i, auditor] of group.auditors.entries()) { %>
|
|
|
<div class="card-text p-2 py-3 row <%- ( i > 0 ? 'border-top' : '') %>">
|
|
|
- <div class="col">
|
|
|
+ <div class="col-10">
|
|
|
<span class="h6"><%- auditor.name %></span>
|
|
|
- <span class="text-muted ml-1"><%- auditor.role %></span>
|
|
|
+ <% if (group.audit_order === 0) { %>
|
|
|
+ <% if (auditor.role && auditor.role.trim()) { %>
|
|
|
+ <span class="text-muted ml-1"><%- auditor.role %></span>
|
|
|
+ <% } %>
|
|
|
+ <% } else { %>
|
|
|
+ <span class="text-muted ml-1">
|
|
|
+ <%- auditor.company %>
|
|
|
+ <% if (auditor.role && auditor.role.trim()) { %>
|
|
|
+ - <%- auditor.role %>
|
|
|
+ <% } %>
|
|
|
+ </span>
|
|
|
+ <% } %>
|
|
|
</div>
|
|
|
<div class="col">
|
|
|
<% if (auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
@@ -700,9 +722,20 @@
|
|
|
<div class="card-body px-3 py-0">
|
|
|
<% for (const [i, auditor] of group.auditors.entries()) { %>
|
|
|
<div class="card-text p-2 py-3 row <%- ( i > 0 ? 'border-top' : '') %>">
|
|
|
- <div class="col">
|
|
|
+ <div class="col-10">
|
|
|
<span class="h6"><%- auditor.name %></span>
|
|
|
- <span class="text-muted ml-1"><%- auditor.role %></span>
|
|
|
+ <% if (group.audit_order === 0) { %>
|
|
|
+ <% if (auditor.role && auditor.role.trim()) { %>
|
|
|
+ <span class="text-muted ml-1"><%- auditor.role %></span>
|
|
|
+ <% } %>
|
|
|
+ <% } else { %>
|
|
|
+ <span class="text-muted ml-1">
|
|
|
+ <%- auditor.company %>
|
|
|
+ <% if (auditor.role && auditor.role.trim()) { %>
|
|
|
+ - <%- auditor.role %>
|
|
|
+ <% } %>
|
|
|
+ </span>
|
|
|
+ <% } %>
|
|
|
</div>
|
|
|
<div class="col">
|
|
|
<% if (auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
@@ -1489,7 +1522,7 @@
|
|
|
lastAuditorHtml.push('<div class="card"><div class="card-body px-3 py-0">');
|
|
|
for (const [i, auditor] of data.entries()) {
|
|
|
lastAuditorHtml.push(`<div class="card-text p-2 py-3 row ${ ( i > 0 ? 'border-top' : '') }">`);
|
|
|
- lastAuditorHtml.push(`<div class="col"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.role}</span></div>`);
|
|
|
+ lastAuditorHtml.push(`<div class="col-10"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.company}${auditor.role ? ' - ' + auditor.role : ''}</span></div>`);
|
|
|
lastAuditorHtml.push('<div class="col">');
|
|
|
lastAuditorHtml.push('</div>');
|
|
|
lastAuditorHtml.push('</div>');
|