危险作业bug修改4
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 2.4 KiB |
|
|
@ -47,7 +47,7 @@ class _workTabDhListState extends State<workTabDhList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.hotWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class _WorkTabDlListState extends State<WorkTabDlList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.cutRoadWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class _WorkTabDtListState extends State<WorkTabDtList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.breakgroundWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class _WorkTabDzListState extends State<WorkTabDzList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.hoistingWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class _WorkTabGcListState extends State<WorkTabGcList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.highWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class _WorkTabLsydListState extends State<WorkTabLsydList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.electricityWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class _WorkTabMbcdListState extends State<WorkTabMbcdList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.blindboardWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class _WorkTabSpaceListState extends State<WorkTabSpaceList> {
|
||||||
_loading = true;
|
_loading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final res = await SpecialWorkApi.getSpecialWorkStepList('confinedspace_work');
|
final res = await SpecialWorkApi.getSpecialWorkStepList(SpecialWorkTypeEnum.confinedspaceWork.code);
|
||||||
if (res != null && res['success'] == true) {
|
if (res != null && res['success'] == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final rawData = res['data'] ?? [];
|
final rawData = res['data'] ?? [];
|
||||||
|
|
|
||||||
|
|
@ -556,7 +556,11 @@ abstract class SpecialWorkApplyBaseState<T extends SpecialWorkApplyBasePage>
|
||||||
// 同步更新允许列表,用于安全措施确认人、气体分析人
|
// 同步更新允许列表,用于安全措施确认人、气体分析人
|
||||||
if (stepId == '20') {
|
if (stepId == '20') {
|
||||||
allowChoosePersonList[0] = data;
|
allowChoosePersonList[0] = data;
|
||||||
|
if (allowChoosePersonList.length > 1) {
|
||||||
|
allowChoosePersonList[1] = data;
|
||||||
|
}else{
|
||||||
|
allowChoosePersonList.add(data);
|
||||||
|
}
|
||||||
_clearRelatedPartiesPerson();
|
_clearRelatedPartiesPerson();
|
||||||
} else if (stepId == '21') {
|
} else if (stepId == '21') {
|
||||||
allowChoosePersonList[1] = data;
|
allowChoosePersonList[1] = data;
|
||||||
|
|
|
||||||