Browse Source

中间计量,排序调整

MaiXinRong 1 year ago
parent
commit
c5f444fbcf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/lib/stage_im.js
  2. 1 1
      app/public/js/stage_im.js

+ 1 - 1
app/lib/stage_im.js

@@ -1044,7 +1044,7 @@ class StageIm {
         // 生成数据
         this._recursiveBuildImData(this.billsTree.children);
         // 排序
-        if (this.stage.im_type !== imType.tz.value) {
+        if (this.stage.im_type !== imType.tz.value && stage.im_type !== imType.bb.value) {
             this.ImData.sort(function(x, y) {
                 const iCode = self.ctx.helper.compareCode(x.code, y.code);
                 return iCode === 0 ? x.lIndex - y.lIndex : iCode;

+ 1 - 1
app/public/js/stage_im.js

@@ -951,7 +951,7 @@ const stageIm = (function () {
     }
 
     function _sortImData() {
-        if (stage.im_type !== imType.tz.value) {
+        if (stage.im_type !== imType.tz.value && stage.im_type !== imType.bb.value) {
             ImData.sort(function (x, y) {
                 const iCode = compareCode(x.code, y.code);
                 return iCode === 0 ? x.lIndex - y.lIndex : iCode;