From 4d90ce245d6a377bed90871a88b2635a2975fd4d Mon Sep 17 00:00:00 2001 From: ForeverSmiYng Date: Thu, 31 Oct 2024 16:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=8E=E7=BB=86=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 明细行筛选.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/明细行筛选.js b/明细行筛选.js index 895c65b..ecc04d5 100644 --- a/明细行筛选.js +++ b/明细行筛选.js @@ -26,7 +26,10 @@ function myFilter(mainFieldIds, detFieldIds, det_id, comparators, emptyValues = WfForm.controlDetailRowDisplay("detail_" + det_id, "all", false); return; } + //逐行明细判断 + let oldCheckedRows = WfForm.getDetailCheckedRowIndexStr("detail_" + det_id).split(","); + let newCheckedRows = []; det_rowIndexs.forEach(rowIndex => { if (all_rows.includes(rowIndex)) { //逐个筛选字段判断 @@ -50,8 +53,12 @@ function myFilter(mainFieldIds, detFieldIds, det_id, comparators, emptyValues = i++; } WfForm.controlDetailRowDisplay("detail_" + det_id, rowIndex + "", check_res1); + if (check_res1 == false && oldCheckedRows.includes(rowIndex + "")) { + newCheckedRows.push(rowIndex + ""); + } } }); + WfForm.checkDetailRow("detail_" + det_id, newCheckedRows.join(","), true); } function myFilterComparator(mainFV, detFV, detSeparators, index, emptyValue) {