2026.5.13 重点作业修改

master
xufei 2026-05-13 09:01:31 +08:00
parent 171cb3acf6
commit 682df9254d
1 changed files with 19 additions and 16 deletions

View File

@ -54,7 +54,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
/// /
late bool chooseCheckType = false;
Map checkData = {};
late var form = null;
int form=0 ;
@override
void initState() {
@ -134,6 +134,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
const Divider(),
ListItemFactory.createBuildSimpleSection('被检查单位现场负责人情况'),
// if (form != null && int.parse('${form['hiddenNumber'] ?? '0'}') > 0) ...[
if(form>0)
ListItemFactory.createYesNoSection(
title: '是否申辩:',
groupValue: !chooseCheckType,
@ -150,6 +151,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
});
},
),
// ],
const Divider(),
if (chooseCheckType)
Column(
@ -387,22 +389,23 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
}
Future<void> _getDetail() async {
// try {
// LoadingDialogHelper.show();
// final result = await SafetyCheckApi.safeCheckDetail(widget.inspectionId);
// LoadingDialogHelper.hide();
// if (result != null) {
// setState(() {
// final data = result['data'];
// form = data;
// checkData = data['inspectedPartyConfirmation'] ?? {};
// });
// }
// } catch (e) {
// LoadingDialogHelper.hide();
// ToastUtil.showNormal(context, '详情获取失败');
// }
try {
LoadingDialogHelper.show();
final result = await KeyTasksApi.getKeyTasksSafetyEnvironmentalInspectionDetail(widget.inspectionId);
LoadingDialogHelper.hide();
if (result['success']) {
setState(() {
final data = result['data'];
List<dynamic> dangerList=data['hiddenList']??[];
form=dangerList.length;
});
}
} catch (e) {
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '详情获取失败');
}
}
///
Future<void> _sign() async {