From 1c026d31f198749fe8fb226dcb495977b6fe68b0 Mon Sep 17 00:00:00 2001 From: xufei <727302827@qq.com> Date: Thu, 18 Sep 2025 09:58:02 +0800 Subject: [PATCH] =?UTF-8?q?2025.9.18=20=E5=A2=9E=E5=8A=A0120=E5=AD=97?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home/tap/item_list_widget.dart | 2 ++ .../dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart | 1 + .../dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart | 1 + .../dt_work/aqcs_work_detail/breakground_safe_func_sure.dart | 1 + .../dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart | 1 + .../gc_work/aqcs_work_detail/highwork_safe_func_sure.dart | 1 + .../lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart | 1 + .../mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart | 1 + .../sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart | 1 + 9 files changed, 10 insertions(+) diff --git a/lib/pages/home/tap/item_list_widget.dart b/lib/pages/home/tap/item_list_widget.dart index 108b006..0a4d5bc 100644 --- a/lib/pages/home/tap/item_list_widget.dart +++ b/lib/pages/home/tap/item_list_widget.dart @@ -28,6 +28,7 @@ class ItemListWidget { ValueChanged? onChanged, ValueChanged? onFieldSubmitted, int maxLines = 5, + bool showMaxLength = false, // 新增参数:数字输入控制 bool isNumericInput = false, // 是否为数字输入 @@ -75,6 +76,7 @@ class ItemListWidget { onChanged: onChanged, onSubmitted: onFieldSubmitted, keyboardType: actualKeyboardType, + maxLength: showMaxLength?120:null, style: TextStyle(fontSize: fontSize), maxLines: 1, // 添加输入格式化器(如果是数字输入) diff --git a/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart index f4887e0..05785a8 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart @@ -373,6 +373,7 @@ class _HotworkSafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart index 81c52b0..b8eb193 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart @@ -426,6 +426,7 @@ class _CutroadSafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart index a3d2595..924de28 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart @@ -385,6 +385,7 @@ class _BreakgroundSafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart index 3f0688a..b2015be 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart @@ -384,6 +384,7 @@ class _HoistworkSafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart index 4040a32..ee66d3a 100644 --- a/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart @@ -373,6 +373,7 @@ class _HighworkSafeFuncSureState extends State { label: '其他安全措施:', isEditable: true, + showMaxLength:true, hintText: '请输入其他安全措施', controller: _otherController, ), diff --git a/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart index 7da6078..daea020 100644 --- a/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart @@ -374,6 +374,7 @@ class _ElectricitySafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart index 595a122..0e649e1 100644 --- a/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart @@ -387,6 +387,7 @@ class _BlindboardSafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart index 9789bb4..00dd378 100644 --- a/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart @@ -372,6 +372,7 @@ class _SpaceworkSafeFuncSureState extends State { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController,