危险作业需求变更bug

master
hs 2026-06-15 16:06:22 +08:00
parent 3c4e30bc88
commit 1362a301c0
3 changed files with 7 additions and 4 deletions

View File

@ -926,7 +926,7 @@ class ItemListWidget {
required VoidCallback? onTapFile, //
double fontSize = 14, //
bool isEdit = true,
String buttonText = '气体分析详情',
String buttonText = '',
double horizontalnum = horizontal_inset,
bool isRequired = false,
final String fileUrl = '',
@ -991,7 +991,7 @@ class ItemListWidget {
],
),
),
if (isEdit)
if (isEdit && buttonText.isNotEmpty)
CustomButton(
text: buttonText,
height: 30,

View File

@ -508,7 +508,10 @@ class _SxkjApplyPageState extends SpecialWorkApplyBaseState<SxkjApplyPage> {
if (!FormUtils.hasValue(pd, 'workDepartment')) {
personList = allPersonList;
}
if (personList.isEmpty) {
ToastUtil.showNormal(context, '暂无该部门人员');
return;
}
DepartmentAllPersonPicker.show(
context,
allowXgfFlag: false,

View File

@ -395,7 +395,7 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
/// initData
void _initGroupsFromInitData(bool isRefresh) {
_clearAllPerson();
if (!widget.isReEdit) _clearAllPerson();
final List steps =
(initData['settingSignSteps'] is List)
? List.from(initData['settingSignSteps'])