|
@@ -890,8 +890,9 @@
|
|
|
auditConst = JSON.parse('<%- JSON.stringify(audit.material) %>');
|
|
|
}
|
|
|
postData(url, data, function (result) {
|
|
|
- const { auditHistory, user } = result
|
|
|
+ const { auditHistory, auditors, user } = result
|
|
|
let historyHTML = ''
|
|
|
+ const leftAuditors = auditors;
|
|
|
auditHistory.forEach((auditors, idx) => {
|
|
|
if(idx === auditHistory.length - 1 && auditHistory.length !== 1) {
|
|
|
historyHTML += `<div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show"
|
|
@@ -999,7 +1000,7 @@
|
|
|
class="pull-right
|
|
|
${auditConst.statusClass[auditor.status]}">${auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''}
|
|
|
${auditor.status === auditConst.status.checkNo ? user.name : ''}
|
|
|
- ${auditor.status === auditConst.status.checkNoPre ? auditors[index-1].name : ''}
|
|
|
+ ${auditor.status === auditConst.status.checkNoPre ? (leftAuditors.find(item => item.order === auditor.sort-1) ? leftAuditors.find(item => item.order === auditor.sort-1).name : '') : ''}
|
|
|
</span>
|
|
|
</p>
|
|
|
<p class="text-muted mb-0">${auditor.role}</p>
|