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