瀏覽代碼

辅材排序调整

MaiXinRong 1 年之前
父節點
當前提交
963edfd574
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/public/js/gcl_gather.js

+ 7 - 0
app/public/js/gcl_gather.js

@@ -715,6 +715,13 @@ const gclGatherModel = (function () {
                 gatherfields(glx, lx, ancillaryGclGatherFields);
             }
         }
+        gcl.gatherAncGcl.sort((a, b) => {
+            if (a.is_aux === b.is_aux) {
+                return a.name < b.name ? -1 : 1;
+            } else {
+                return a.is_aux - b.is_aux;
+            }
+        });
     }
 
     function reGatherAncillaryGcl(fields) {