Quellcode durchsuchen

总额计量,del相关

MaiXinRong vor 4 Jahren
Ursprung
Commit
66875a85e8
1 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
  1. 10 2
      app/public/js/stage.js

+ 10 - 2
app/public/js/stage.js

@@ -966,10 +966,18 @@ $(document).ready(() => {
                             const colSetting = sheet.zh_setting.cols[iCol];
                             if (sheet.zh_setting.dgnUpFields.indexOf(colSetting.field) !== -1) {
                                 if (node.b_code && node.b_code !== '') continue;
+                            } else if (colSetting.field === 'contract_qty') {
+                                if (node.is_tp) continue;
+                            } else if (colSetting.field === 'contract_tp') {
+                                if (!node.is_tp) continue;
                             } else if (colSetting.field !== 'postil') {
-                                if (node.children && node.children.length > 0) { continue; }
+                                if (node.children && node.children.length > 0) {
+                                    continue;
+                                }
                                 const nodePos = stagePos.getLedgerPos(node.id);
-                                if (nodePos && nodePos.length > 0) { continue; }
+                                if (nodePos && nodePos.length > 0) {
+                                    continue;
+                                }
                             }
 
                             if (sheet.zh_setting.dgnUpFields.indexOf(colSetting.field) !== -1) {