From 06963a4ccdfd277a555e8dd01750749e15d7e8d7 Mon Sep 17 00:00:00 2001 From: ForeverSmiYng Date: Mon, 4 Nov 2024 09:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/明细行筛选.js b/明细行筛选.js index ecc04d5..5be4c82 100644 --- a/明细行筛选.js +++ b/明细行筛选.js @@ -1,4 +1,4 @@ -//浏览框或选择框字段的筛选功能函数 +//明细表筛选功能函数 function myFilter(mainFieldIds, detFieldIds, det_id, comparators, emptyValues = undefined, mainFieldSeparators = undefined, detFieldSeparators = undefined, rows = undefined) { let all_rows_str = WfForm.getDetailAllRowIndexStr("detail_" + det_id); if (all_rows_str.length == 0) { @@ -24,6 +24,7 @@ function myFilter(mainFieldIds, detFieldIds, det_id, comparators, emptyValues = //如果所有主表筛选字段均为空值,即无筛选,显示所有明细行,函数结束 if (mainFieldValues.length == 0) { WfForm.controlDetailRowDisplay("detail_" + det_id, "all", false); + WfForm.controlDetailRowDisableCheck("detail_" + det_id, "all", false); return; } @@ -53,6 +54,7 @@ function myFilter(mainFieldIds, detFieldIds, det_id, comparators, emptyValues = i++; } WfForm.controlDetailRowDisplay("detail_" + det_id, rowIndex + "", check_res1); + WfForm.controlDetailRowDisableCheck("detail_" + det_id, rowIndex + "", check_res1); if (check_res1 == false && oldCheckedRows.includes(rowIndex + "")) { newCheckedRows.push(rowIndex + ""); }