Explorar el Código

归档审核时间优先显示end_time

TonyKang hace 4 años
padre
commit
139d1aff46
Se han modificado 1 ficheros con 5 adiciones y 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;
             let achivedItem = null;
             for (let item of ARCHIVE_LIST) {
             for (let item of ARCHIVE_LIST) {
                 if (parseInt(item.rpt_id) === currentNode.refId) {
                 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;
                     achivedAmt = item.items?item.items.length:0;
                     achivedItem = item;
                     achivedItem = item;
                     break;
                     break;