Compare commits
4 Commits
047351bc6c
...
aed92c4bed
| Author | SHA1 | Date |
|---|---|---|
|
|
aed92c4bed | |
|
|
51abf06654 | |
|
|
000e0200e7 | |
|
|
c063cdf1bd |
|
|
@ -6,6 +6,8 @@ import '../tools/tools.dart';
|
|||
|
||||
/// 自定义组件
|
||||
class ListItemFactory {
|
||||
static const Color detailtextColor = Colors.black54;
|
||||
|
||||
/// 类型1:横向spaceBetween布局两个文本加按钮
|
||||
static Widget createRowSpaceBetweenItem({
|
||||
required String leftText,
|
||||
|
|
@ -333,7 +335,7 @@ class ListItemFactory {
|
|||
),
|
||||
],
|
||||
),
|
||||
if (!isEdit) Text(text, style: TextStyle()),
|
||||
if (!isEdit) Text(text, style: TextStyle(color: detailtextColor)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -648,7 +648,7 @@ class _MultiDictValuesPickerState extends State<MultiDictValuesPicker> {
|
|||
children: [
|
||||
_buildActionBar(),
|
||||
const Divider(height: 1),
|
||||
_buildHintMessage(),
|
||||
// _buildHintMessage(),
|
||||
Expanded(child: _buildContent()),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ class SpecialListInitData {
|
|||
"projectExecutionLocationCorpName",
|
||||
"applyUnit",
|
||||
"workId",
|
||||
"internalOperationFlag",
|
||||
"hotWorkLeaderConfirmUserName",
|
||||
"hotWorkLeaderConfirmUserId",
|
||||
// 有限空间
|
||||
"applyDepartment",
|
||||
"applyUser",
|
||||
|
|
|
|||
|
|
@ -558,7 +558,6 @@ class _SpecialWorkFilterPageState extends State<SpecialWorkFilterPage> {
|
|||
SpecialWorkTypeEnum.hoistingWork ||
|
||||
widget.workType ==
|
||||
SpecialWorkTypeEnum.breakgroundWork ||
|
||||
widget.workType == SpecialWorkTypeEnum.blindboardWork ||
|
||||
widget.workType == SpecialWorkTypeEnum.cutRoadWork || widget.workType == SpecialWorkTypeEnum.electricityWork)
|
||||
buildChooseRow(
|
||||
labelText: '作业级别',
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ class _HotWorkDetailFormWidgetState extends State<HotWorkDetailFormWidget> {
|
|||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 7,
|
||||
verticalPadding: 5,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
isEdit: false,
|
||||
|
|
@ -235,6 +235,16 @@ class _HotWorkDetailFormWidgetState extends State<HotWorkDetailFormWidget> {
|
|||
onChanged: (value) {},
|
||||
),
|
||||
const Divider(),
|
||||
if (pd['workLevel'] == 'hot_work_level0' && FormUtils.hasValue(pd, 'hotWorkLeaderConfirmUserName')) ...[
|
||||
ItemListWidget.selectableLineTitleTextRightButton(
|
||||
isRequired: false,
|
||||
label: '动火负责人确认负责人',
|
||||
isEditable: false,
|
||||
isClean: false,
|
||||
text: pd['hotWorkLeaderConfirmUserName'] ?? '',
|
||||
),
|
||||
const Divider(),
|
||||
],
|
||||
if (actUserList.isNotEmpty) ...[
|
||||
ItemListWidget.multiLineAutoTitleTextField(
|
||||
label: '动火操作人:',
|
||||
|
|
@ -256,6 +266,8 @@ class _HotWorkDetailFormWidgetState extends State<HotWorkDetailFormWidget> {
|
|||
],
|
||||
ListItemFactory.createYesNoSection(
|
||||
title: '是否安全总监审批',
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 5,
|
||||
groupValue: true,
|
||||
text: pd['14_skip'] == 1 ? '是' : '否',
|
||||
isEdit: false,
|
||||
|
|
@ -263,6 +275,8 @@ class _HotWorkDetailFormWidgetState extends State<HotWorkDetailFormWidget> {
|
|||
),
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 5,
|
||||
title: '是否需要气体检查',
|
||||
groupValue: true,
|
||||
text: pd['gasFlag'] == 1 ? '是' : '否',
|
||||
|
|
|
|||
|
|
@ -44,18 +44,53 @@ class DhWaitPage extends SpecialWorkWaitPageBase {
|
|||
Map<String, dynamic> item,
|
||||
bool isEdit,
|
||||
) async {
|
||||
final hotworkId = item['id'] ?? '';
|
||||
final hotworkCodeId = item['workId'] ?? '';
|
||||
final hotworkInfo = listType == SpecialListType.task ? (item['workInfo'] ?? {}) : item;
|
||||
final hotworkId = '${item['id'] ?? ''}';
|
||||
final hotworkCodeId = '${item['workId'] ?? ''}';
|
||||
|
||||
final Map<String, dynamic> hotworkInfo =
|
||||
listType == SpecialListType.task
|
||||
? (item['workInfo'] as Map<String, dynamic>? ?? <String, dynamic>{})
|
||||
: item;
|
||||
|
||||
final stepId = '${item['stepId'] ?? ''}';
|
||||
final status = '${hotworkInfo['status'] ?? ''}';
|
||||
final stepName = isEdit
|
||||
? (listType == SpecialListType.task
|
||||
final statusName = listType == SpecialListType.task
|
||||
? '${item['stepName'] ?? ''}'
|
||||
: '${hotworkInfo['currentStep'] ?? ''}')
|
||||
: '查看';
|
||||
: '${hotworkInfo['currentStep'] ?? ''}';
|
||||
|
||||
if (listType == SpecialListType.task) {
|
||||
// 非 task 类型,统一进详情页
|
||||
if (listType != SpecialListType.task) {
|
||||
await _openTaskPage(
|
||||
context: context,
|
||||
workId: hotworkId,
|
||||
workCodeId: hotworkCodeId,
|
||||
stepName: statusName,
|
||||
isEdit: isEdit,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// task 类型:先处理特殊步骤
|
||||
if (stepId == '2') {
|
||||
if (isEdit) {
|
||||
await pushPage(
|
||||
SpecialWorkGasList(data: item, addFlag: true),
|
||||
context,
|
||||
);
|
||||
} else {
|
||||
await _openTaskPage(
|
||||
context: context,
|
||||
workId: hotworkId,
|
||||
workCodeId: hotworkCodeId,
|
||||
stepName: statusName,
|
||||
isEdit: false,
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// task 类型:状态为 0 / 2,走申请重编辑或查看
|
||||
if (status == '0' || status == '2') {
|
||||
if (isEdit) {
|
||||
await pushPage(
|
||||
|
|
@ -67,43 +102,63 @@ class DhWaitPage extends SpecialWorkWaitPageBase {
|
|||
context,
|
||||
);
|
||||
} else {
|
||||
await pushPage(
|
||||
HotTaskPage(
|
||||
await _openTaskPage(
|
||||
context: context,
|
||||
workId: hotworkId,
|
||||
stepName: stepName,
|
||||
workCodeId: hotworkCodeId,
|
||||
stepName: '查看',
|
||||
isEdit: false,
|
||||
type: listType,
|
||||
),
|
||||
context,
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// task 类型:延期步骤
|
||||
if (stepId == '12') {
|
||||
if (isEdit) {
|
||||
await pushPage(
|
||||
HotTaskPage(
|
||||
workId: hotworkId,
|
||||
stepName: stepName,
|
||||
workCodeId: hotworkCodeId,
|
||||
isEdit: isEdit,
|
||||
type: listType,
|
||||
),
|
||||
HotDelayPage(data: item, isEdit: true),
|
||||
context,
|
||||
);
|
||||
} else {
|
||||
await _openTaskPage(
|
||||
context: context,
|
||||
workId: hotworkId,
|
||||
workCodeId: hotworkCodeId,
|
||||
stepName: statusName,
|
||||
isEdit: false,
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// 其他情况,统一进任务页
|
||||
await _openTaskPage(
|
||||
context: context,
|
||||
workId: hotworkId,
|
||||
workCodeId: hotworkCodeId,
|
||||
stepName: statusName,
|
||||
isEdit: isEdit,
|
||||
);
|
||||
}
|
||||
Future<void> _openTaskPage({
|
||||
required BuildContext context,
|
||||
required String workId,
|
||||
required String workCodeId,
|
||||
required String stepName,
|
||||
required bool isEdit,
|
||||
}) async {
|
||||
await pushPage(
|
||||
HotTaskPage(
|
||||
workId: hotworkId,
|
||||
workId: workId,
|
||||
stepName: stepName,
|
||||
workCodeId: hotworkCodeId,
|
||||
workCodeId: workCodeId,
|
||||
isEdit: isEdit,
|
||||
type: listType,
|
||||
),
|
||||
context,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget buildCardBody(
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ class _HotWorkApplyPageState extends SpecialWorkApplyBaseState<HotWorkApplyPage>
|
|||
"workEndTime": "请选择作业结束时间",
|
||||
"workContent": "请填写作业内容",
|
||||
"workMonitor": "请填写动火监火人",
|
||||
"hotWorkLeaderConfirmUserName": "请选择动火负责人确认负责人",
|
||||
};
|
||||
|
||||
@override
|
||||
|
|
@ -175,7 +176,7 @@ class _HotWorkApplyPageState extends SpecialWorkApplyBaseState<HotWorkApplyPage>
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
@ -276,6 +277,17 @@ class _HotWorkApplyPageState extends SpecialWorkApplyBaseState<HotWorkApplyPage>
|
|||
onChanged: (value) => setState(() => pd['workContent'] = value),
|
||||
),
|
||||
const Divider(),
|
||||
if (pd['workLevel'] == 'hot_work_level0') ...[
|
||||
ItemListWidget.selectableLineTitleTextRightButton(
|
||||
isRequired: true,
|
||||
label: '动火负责人确认负责人',
|
||||
isEditable: isEditable,
|
||||
isClean: false,
|
||||
text: pd['hotWorkLeaderConfirmUserName'] ?? '请选择',
|
||||
onTap: () => chooseHotworkLeaderConfirmHandle(),
|
||||
),
|
||||
const Divider(),
|
||||
],
|
||||
// 动火操作人(自定义组件)
|
||||
_buildHotWorkActUser(),
|
||||
const Divider(),
|
||||
|
|
@ -293,6 +305,7 @@ class _HotWorkApplyPageState extends SpecialWorkApplyBaseState<HotWorkApplyPage>
|
|||
if (widget.isReEdit && FormUtils.hasValue(form, 'id')) ...[
|
||||
HotWorkDetailFormWidget(pd: form, isEditable: true),
|
||||
],
|
||||
|
||||
// 签字流程组(基类提供)
|
||||
buildGroupsList(),
|
||||
// 其他安全措施
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ class _DlApplyPageState extends SpecialWorkApplyBaseState<DlApplyPage> {
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ class _DtApplyPageState extends SpecialWorkApplyBaseState<DtApplyPage> {
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ class _DzApplyPageState extends SpecialWorkApplyBaseState<DzApplyPage> {
|
|||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 7,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
groupValue: pd['internalOperationFlag'] == 1,
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ class _GcApplyPageState extends SpecialWorkApplyBaseState<GcApplyPage> {
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ class _LsydApplyPageState extends SpecialWorkApplyBaseState<LsydApplyPage> {
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ class _MbcdApplyPageState extends SpecialWorkApplyBaseState<MbcdApplyPage> {
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
|
|||
|
|
@ -75,20 +75,26 @@ class _SxkjApplyPageState extends SpecialWorkApplyBaseState<SxkjApplyPage> {
|
|||
|
||||
@override
|
||||
Future<void> loadExtraData() async {
|
||||
final parentPerm =
|
||||
'dashboard:hazardous:work:confined-space-operations:Confined-Space-Work-Ledger';
|
||||
final targetPerm = '';
|
||||
final menuPath = await RouteService.getMenuPath(parentPerm, targetPerm);
|
||||
|
||||
final data = {
|
||||
"eqWorkType": SpecialWorkTypeEnum.confinedspaceWork.code,
|
||||
"pageSize": 999,
|
||||
"pageIndex": 1,
|
||||
"menuPath": menuPath,
|
||||
"eqCorpinfoId": pd['projectExecutionLocationCorpId'] ?? '',
|
||||
};
|
||||
final limitedSpaceRes = await SpecialWorkApi.specialWorkLimitedSpaceList(data);
|
||||
if (limitedSpaceRes['success'] == true) {
|
||||
limitedSpaceList = limitedSpaceRes['data'] ?? [];
|
||||
}
|
||||
// 清空有限空间台账选择的数据
|
||||
_clearRelatedParties();
|
||||
}
|
||||
Future<void> _clearRelatedParties() async {
|
||||
setState(() {
|
||||
pd['limitedSpaceNameAndCode'] = '';
|
||||
pd['chooseLimitedSpace'] = {};
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -231,7 +237,7 @@ class _SxkjApplyPageState extends SpecialWorkApplyBaseState<SxkjApplyPage> {
|
|||
if (pd['xgfFlag'] == 1) ...[
|
||||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否项目内作业',
|
||||
isRequired: true,
|
||||
|
|
@ -290,7 +296,8 @@ class _SxkjApplyPageState extends SpecialWorkApplyBaseState<SxkjApplyPage> {
|
|||
const Divider(),
|
||||
// 是否重点管控有限空间
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 5,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
title: '是否重点管控有限空间',
|
||||
isRequired: true,
|
||||
groupValue: isLimitedSpace,
|
||||
|
|
@ -426,7 +433,7 @@ class _SxkjApplyPageState extends SpecialWorkApplyBaseState<SxkjApplyPage> {
|
|||
/// 从台账选择有限空间
|
||||
Future<void> _chooseFromLedger() async {
|
||||
if (limitedSpaceList.isEmpty) {
|
||||
ToastUtil.showNormal(context, '暂无可选台账');
|
||||
ToastUtil.showNormal(context, '暂无可选台账,请选择正确的相关方项目');
|
||||
return;
|
||||
}
|
||||
final result = await BottomPicker.show<String>(
|
||||
|
|
@ -504,7 +511,7 @@ class _SxkjApplyPageState extends SpecialWorkApplyBaseState<SxkjApplyPage> {
|
|||
pd['workGuardianUserDepartmentName'] = data['departmentName'];
|
||||
allowChoosePerson['2'] = data;
|
||||
}
|
||||
super.getFlowInit(true);
|
||||
super.clearRelatedPartiesPerson();
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -339,6 +339,7 @@ class _SxkjTzApplyPageState extends State<SxkjTzApplyPage> {
|
|||
const Divider(),
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 5,
|
||||
isEdit: _isEditable,
|
||||
title: '是否有应急指导书',
|
||||
isRequired: true,
|
||||
|
|
|
|||
|
|
@ -271,14 +271,11 @@ class _SxkjTzListPageState extends State<SxkjTzListPage> {
|
|||
return Scaffold(
|
||||
key: _scaffoldKey,
|
||||
appBar: MyAppbar(
|
||||
title: '有限空间作业台账',
|
||||
title: '有限空间管理台账',
|
||||
actions: [
|
||||
TextButton(
|
||||
IconButton(
|
||||
onPressed: _handleApply,
|
||||
child: const Text(
|
||||
'申请',
|
||||
style: TextStyle(color: Colors.white, fontSize: 17),
|
||||
),
|
||||
icon: const Icon(Icons.add, color: Colors.white, size: 30),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -211,6 +211,9 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
if (widget.isReEdit) {
|
||||
form = _toMap(initRes['data']);
|
||||
pd = _toMap((form['workInfo'] ?? const {})['info'] ?? {});
|
||||
if (FormUtils.hasValue(pd, 'xgfId')) {
|
||||
_getRelatedPartiesUserList(true);
|
||||
}
|
||||
} else {
|
||||
pd = _toMap(initRes['data']);
|
||||
pd['xgfFlag'] = 1;
|
||||
|
|
@ -236,7 +239,6 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
await getFlowInit(false);
|
||||
}
|
||||
|
||||
await loadExtraData();
|
||||
await afterInitDataLoaded();
|
||||
|
||||
if (enableSafeProtection) {
|
||||
|
|
@ -477,6 +479,21 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
),
|
||||
);
|
||||
}
|
||||
// 现在动火负责人确认负责人
|
||||
void chooseHotworkLeaderConfirmHandle() {
|
||||
DepartmentAllPersonPicker.show(
|
||||
context,
|
||||
allowXgfFlag: false,
|
||||
personsData: allPersonList,
|
||||
serverData: [],
|
||||
onSelectedWithData: (userId, name, data) {
|
||||
setState(() {
|
||||
pd['hotWorkLeaderConfirmUserName'] = name;
|
||||
pd['hotWorkLeaderConfirmUserId'] = userId;
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// 选择作业单位(部分页面会用到)
|
||||
void chooseWorkUnitHandle({
|
||||
|
|
@ -572,10 +589,10 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
// 同步更新允许列表,用于安全措施确认人、气体分析人
|
||||
if (stepId == '20') {
|
||||
allowChoosePerson['1'] = data;
|
||||
_clearRelatedPartiesPerson();
|
||||
clearRelatedPartiesPerson();
|
||||
} else if (stepId == '21') {
|
||||
allowChoosePerson['2'] = data;
|
||||
_clearRelatedPartiesPerson();
|
||||
clearRelatedPartiesPerson();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
@ -583,7 +600,7 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
}
|
||||
|
||||
// 清空气体检测人和安全措施确认人
|
||||
void _clearRelatedPartiesPerson() {
|
||||
void clearRelatedPartiesPerson() {
|
||||
setState(() {
|
||||
for (Map item in groups) {
|
||||
final stepId = item['stepId']?.toString() ?? '';
|
||||
|
|
@ -642,7 +659,9 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
pd['projectExecutionLocationCorpName'] =
|
||||
json['projectExecutionLocationCorpName'];
|
||||
});
|
||||
_getRelatedPartiesUserList();
|
||||
loadExtraData();
|
||||
_getRelatedPartiesUserList(false);
|
||||
|
||||
},
|
||||
onSelected: (id, name, pdId) {},
|
||||
),
|
||||
|
|
@ -653,7 +672,7 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
}
|
||||
|
||||
// 获取相关方企业用户列表
|
||||
Future<void> _getRelatedPartiesUserList() async {
|
||||
Future<void> _getRelatedPartiesUserList(bool isInit) async {
|
||||
try {
|
||||
final personRes = await BasicInfoApi.getDeptUsers(
|
||||
'',
|
||||
|
|
@ -670,8 +689,10 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
);
|
||||
if (result['success'] == true) {
|
||||
relatedPartiesPersonList = _toMapList(result['data']);
|
||||
if (!isInit) {
|
||||
_initGroupsFromInitData(true);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
ToastUtil.showError(context, '获取相关方人员失败:$e');
|
||||
}
|
||||
|
|
@ -749,7 +770,8 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
if (canSkip == 1) ...[
|
||||
if (skipCondition.isEmpty) ...[
|
||||
ListItemFactory.createYesNoSection(
|
||||
horizontalPadding: 3,
|
||||
horizontalPadding: 2,
|
||||
verticalPadding: 0,
|
||||
isRequired: true,
|
||||
title: '是否$stepName',
|
||||
groupValue: pd['${stepId}_skip'] == 1,
|
||||
|
|
@ -959,6 +981,9 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
|||
Future<bool> checkForm(List groupsToCheck) async {
|
||||
for (final key in requiredRules.keys) {
|
||||
if (pd[key] == null || pd[key] == '') {
|
||||
if (key == 'hotWorkLeaderConfirmUserName' && pd['workLevel'] != 'hot_work_level0') {
|
||||
continue;
|
||||
}
|
||||
ToastUtil.showNormal(context, '${requiredRules[key] ?? ''}');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,7 +220,11 @@ class _SpecialWorkTaskPageBaseState extends State<SpecialWorkTaskPageBase> {
|
|||
|
||||
if (steps.isNotEmpty && widget.isEdit) {
|
||||
LoadingDialogHelper.show();
|
||||
final personRes = await BasicInfoApi.getDeptUsers('', isMyCorp: 1);
|
||||
final personRes = await BasicInfoApi.getDeptUsers(
|
||||
'',
|
||||
isMyCorp: 0,
|
||||
corpinfoId: _initData['workInfo']['corpinfoId'] ?? '',
|
||||
);
|
||||
LoadingDialogHelper.dismiss();
|
||||
if (personRes['success'] == true) {
|
||||
_allPersonList = personRes['data'] ?? [];
|
||||
|
|
@ -941,6 +945,7 @@ class _SpecialWorkTaskPageBaseState extends State<SpecialWorkTaskPageBase> {
|
|||
...buildStepSignWidgets(signInfo),
|
||||
|
||||
if (widget.isEdit) ...[
|
||||
const Divider(),
|
||||
if (pd['locateStepFlag'] == 1) _locationWidget(),
|
||||
if (pd['componentName'] == 'completeDelayTime') _completeDelayTimeWidget(),
|
||||
if (pd['componentName'] == 'personAnderRecordFile') _personAnderRecordFileWidget(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue