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 "特殊作业":
await pushPage(WorkTabListPage(), context);
break;
case "重点作业":
await pushPage(KeyTasksTabPage(), context);
break;
}
_getToDoWorkList(pcType);

View File

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