소스 검색

计量,部位台账,导出Excel,隐藏未展开树结构数据

MaiXinRong 4 주 전
부모
커밋
f3b54216b7
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      app/public/js/ledger_bwtz.js
  2. 2 0
      app/public/js/stage_bwtz.js

+ 4 - 2
app/public/js/ledger_bwtz.js

@@ -299,7 +299,8 @@ $(document).ready(() => {
                 code: node.code, b_code: node.b_code, name: node.name, unit: node.unit,
                 dgn_qty1: node.dgn_qty1, dgn_qty2: node.dgn_qty2, dgn_price: node.dgn_price,
                 unit_price: node.unit_price, quantity: node.quantity, total_price: node.total_price,
-                drawing_code: node.drawing_code, memo: node.memo, _hidden: !node.visible,
+                drawing_code: node.drawing_code, memo: node.memo,
+                _hidden: !node.visible,
             });
             if (node.unitTree && node.unitTree.nodes.length > 0) {
                 groupData.push({ code: node.code, b_code: node.b_code, start: data.length, count: node.unitTree.nodes.length });
@@ -308,7 +309,8 @@ $(document).ready(() => {
                         code: unitNode.code, b_code: unitNode.b_code,
                         name: unitNode.pos_name ? unitNode.pos_name : unitNode.name, unit: unitNode.unit,
                         unit_price: unitNode.unit_price, quantity: unitNode.quantity, total_price: unitNode.total_price,
-                        drawing_code: unitNode.drawing_code_merge, memo: unitNode.memo_merge, _hidden: !node.visible || !unitNode.visible,
+                        drawing_code: unitNode.drawing_code_merge, memo: unitNode.memo_merge,
+                        _hidden: !node.visible || !unitNode.visible,
                     });
                 }
             }

+ 2 - 0
app/public/js/stage_bwtz.js

@@ -361,6 +361,7 @@ $(document).ready(() => {
                 end_contract_tp: node.end_contract_tp, end_qc_tp: node.end_qc_tp, end_gather_tp: node.end_gather_tp,
                 end_gather_percent: node.end_gather_percent,
                 drawing_code: node.drawing_code, postil: node.postil, memo: node.memo, gxby: getGxbyText(node), dagl: getDaglText(node),
+                _hidden: !node.visible,
             });
             if (node.unitTree) {
                 for (const unitNode of node.unitTree.nodes) {
@@ -377,6 +378,7 @@ $(document).ready(() => {
                         end_gather_percent: unitNode.end_gather_percent,
                         drawing_code: unitNode.drawing_code_merge, postil: unitNode.postil_merge, memo: unitNode.memo_merge,
                         gxby: getGxbyText(unitNode), dagl: getDaglText(unitNode),
+                        _hidden: !node.visible || !unitNode.visible,
                     });
                 }
             }