Explorar o código

归档审核时间优先显示end_time

TonyKang %!s(int64=4) %!d(string=hai) anos
pai
achega
139d1aff46
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;