|
|
@ -46,15 +46,7 @@ class _InspectionPointDetailPageState extends State<InspectionPointDetailPage> {
|
|
|
|
_easyRefreshController = EasyRefreshController();
|
|
|
|
_easyRefreshController = EasyRefreshController();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String inspectionPattern(int type) {
|
|
|
|
|
|
|
|
switch (type) {
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
return '巡检模式1';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void dispose() {
|
|
|
|
void dispose() {
|
|
|
@ -72,8 +64,7 @@ class _InspectionPointDetailPageState extends State<InspectionPointDetailPage> {
|
|
|
|
MaterialHeader(valueColor: AlwaysStoppedAnimation(kPrimaryColor)),
|
|
|
|
MaterialHeader(valueColor: AlwaysStoppedAnimation(kPrimaryColor)),
|
|
|
|
firstRefresh: true,
|
|
|
|
firstRefresh: true,
|
|
|
|
onRefresh: () async {
|
|
|
|
onRefresh: () async {
|
|
|
|
BaseModel baseModel = await ManageFunc.getInspectionPointCheckDetail(
|
|
|
|
BaseModel baseModel = await _getModels;
|
|
|
|
widget.executePointId);
|
|
|
|
|
|
|
|
if (baseModel.data != null) {
|
|
|
|
if (baseModel.data != null) {
|
|
|
|
_detialModel = InspectionCheckDetialModel.fromJson(baseModel.data);
|
|
|
|
_detialModel = InspectionCheckDetialModel.fromJson(baseModel.data);
|
|
|
|
_onload = false;
|
|
|
|
_onload = false;
|
|
|
@ -100,6 +91,22 @@ class _InspectionPointDetailPageState extends State<InspectionPointDetailPage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future get _getModels async {
|
|
|
|
|
|
|
|
switch (widget.status) {
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
return ManageFunc.getInspectionPointCheckDetailUnbegin(
|
|
|
|
|
|
|
|
widget.executePointId);
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
return ManageFunc.getInspectionPointCheckDetail(widget.executePointId);
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
return ManageFunc.getInspectionPointCheckDetailUnbegin(
|
|
|
|
|
|
|
|
widget.executePointId);
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return ManageFunc.getInspectionPointCheckDetail(widget.executePointId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _selfPhotoCard() {
|
|
|
|
Widget _selfPhotoCard() {
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
@ -430,7 +437,7 @@ class _InspectionPointDetailPageState extends State<InspectionPointDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'${inspectionPattern(model.type)}',
|
|
|
|
'${model.inspectionPattern}',
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|