Переглянути джерело

标段汇总,清单排序相关

MaiXinRong 3 роки тому
батько
коміт
8115deb69a
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/lib/ledger.js

+ 1 - 1
app/lib/ledger.js

@@ -508,7 +508,7 @@ class gatherTree extends baseTree {
     resortChildrenDefault() {
         const helper = this.ctx.helper;
         this.resortChildrenByCustom((x, y) => {
-            const iCode = helper.compareCode(x.code, y.code);
+            const iCode = (x.code || y.code) ? helper.compareCode(x.code, y.code) : helper.compareCode(x.b_code, y.b_code);
             if (iCode) return iCode;
             if (!x.name) return -1;
             if (!y.name) return 1;