浏览代码

总分包导入相关

MaiXinRong 8 月之前
父节点
当前提交
7327ff4243
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/lib/sum_load.js

+ 6 - 0
app/lib/sum_load.js

@@ -479,6 +479,9 @@ class sumLoad {
                 stageId: 'id',
             });
             billsTree.loadDatas(billsData);
+            billsTree.nodes.forEach(x => {
+                x.match = tender.match_code ? x.code === tender.match_code : true;
+            });
             for (const top of billsTree.children) {
                 if ([1].indexOf(top.node_type) < 0) continue;
                 this.recusiveLoadGatherGcl(top, null);
@@ -510,6 +513,9 @@ class sumLoad {
                 stageId: 'id',
             });
             billsTree.loadDatas(billsData);
+            billsTree.nodes.forEach(x => {
+                x.match = tender.match_code ? x.code === tender.match_code : true;
+            });
             for (const top of billsTree.children) {
                 if ([1].indexOf(top.node_type) < 0) continue;
                 this.recusiveLoadGatherGcl(top, null);