Browse Source

归档审核时间优先显示end_time

TonyKang 4 years ago
parent
commit
139d1aff46
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/public/report/js/rpt_archive.js

+ 5 - 1
app/public/report/js/rpt_archive.js

@@ -300,7 +300,11 @@ let rptArchiveObj = {
             let achivedItem = null;
             for (let item of ARCHIVE_LIST) {
                 if (parseInt(item.rpt_id) === currentNode.refId) {
-                    auditDate = new Date(LAST_AUDITOR.begin_time);
+                    if (LAST_AUDITOR.end_time) {
+                        auditDate = new Date(LAST_AUDITOR.end_time);
+                    } else {
+                        auditDate = new Date(LAST_AUDITOR.begin_time);
+                    }
                     achivedAmt = item.items?item.items.length:0;
                     achivedItem = item;
                     break;