2026.5.13 重点作业

master
xufei 2026-05-13 17:32:07 +08:00
parent 682df9254d
commit da1044b744
2 changed files with 27 additions and 22 deletions

View File

@ -1009,7 +1009,9 @@ class HomePageState extends RouteAwareState<HomePage>
case "特殊作业": case "特殊作业":
await pushPage(WorkTabListPage(), context); await pushPage(WorkTabListPage(), context);
break; break;
case "重点作业":
await pushPage(KeyTasksTabPage(), context);
break;
} }
_getToDoWorkList(pcType); _getToDoWorkList(pcType);

View File

@ -193,28 +193,31 @@ class _KeyTasksConfirmListPageState extends State<KeyTasksConfirmListPage> {
buttonStyle:ButtonStyleType.primary, buttonStyle:ButtonStyleType.primary,
text: '查看'),), text: '查看'),),
const SizedBox(width: 8), if((item['uncheckHiddenCount']==0&&item['unFinishInspectionCount']==0)||item["applyStatus"]==1)...[
Expanded(child: CustomButton( const SizedBox(width: 8),
height: 35, Expanded(child: CustomButton(
onPressed: () async { height: 35,
if( item["applyStatus"]==1){ onPressed: () async {
_goToDetail(item,index,2); if( item["applyStatus"]==1){
}else{ _goToDetail(item,index,2);
final ok = await CustomAlertDialog.showConfirm( }else{
context, final ok = await CustomAlertDialog.showConfirm(
title: '完工申请', context,
content: '确定要提交吗?', title: '完工申请',
cancelText: '取消', content: '确定要提交吗?',
); cancelText: '取消',
if (ok) { );
_upKeyTasksData(item); if (ok) {
_upKeyTasksData(item);
}
} }
} },
}, backgroundColor: h_AppBarColor(),
backgroundColor: h_AppBarColor(), textStyle: const TextStyle(color: Colors.white),
textStyle: const TextStyle(color: Colors.white), buttonStyle:ButtonStyleType.primary,
buttonStyle:ButtonStyleType.primary, text: item["applyStatus"]==1?'开工申请':'完工申请'),),
text: item["applyStatus"]==1?'开工申请':'完工申请'),), ],
],), ],),