|
|
@ -4,6 +4,7 @@ import 'dart:io';
|
|
|
|
// Flutter imports:
|
|
|
|
// Flutter imports:
|
|
|
|
import 'package:aku_new_community_manager/const/api.dart';
|
|
|
|
import 'package:aku_new_community_manager/const/api.dart';
|
|
|
|
import 'package:aku_new_community_manager/models/manager/facilities/facilities_check_list_model.dart';
|
|
|
|
import 'package:aku_new_community_manager/models/manager/facilities/facilities_check_list_model.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
|
|
|
|
// Project imports:
|
|
|
|
// Project imports:
|
|
|
|
import 'package:aku_new_community_manager/style/app_style.dart';
|
|
|
|
import 'package:aku_new_community_manager/style/app_style.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart';
|
|
|
@ -11,7 +12,6 @@ import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_single_chec
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
|
|
|
|
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
|
|
|
|
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community_manager/utils/network/net_util.dart';
|
|
|
|
import 'package:aku_new_community_manager/utils/network/net_util.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
@ -51,11 +51,10 @@ class _FacilitiesInspectReportDetailPageState
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
// TODO: implement initState
|
|
|
|
// TODO: implement initState
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
|
if(!editEnable){
|
|
|
|
if (!editEnable) {
|
|
|
|
if(widget.model!.situation==1){
|
|
|
|
if (widget.model!.situation == 1) {
|
|
|
|
_scene = 1;
|
|
|
|
_scene = 1;
|
|
|
|
}
|
|
|
|
} else if (widget.model!.situation == 2) {
|
|
|
|
else if(widget.model!.situation==2){
|
|
|
|
|
|
|
|
_scene = 2;
|
|
|
|
_scene = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -79,9 +78,7 @@ class _FacilitiesInspectReportDetailPageState
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_descriptionCard(
|
|
|
|
_descriptionCard(
|
|
|
|
widget.facilitiesType == 1 ? '设施情况' : '设备情况',
|
|
|
|
widget.facilitiesType == 1 ? '设施情况' : '设备情况', widget.model),
|
|
|
|
widget.model
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
_scenePhotoCard(widget.model),
|
|
|
|
_scenePhotoCard(widget.model),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -104,7 +101,7 @@ class _FacilitiesInspectReportDetailPageState
|
|
|
|
"detail": _describtion,
|
|
|
|
"detail": _describtion,
|
|
|
|
"imgUrls": _scenePhotoUrl,
|
|
|
|
"imgUrls": _scenePhotoUrl,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (baseModel.success!) {
|
|
|
|
if (baseModel.success) {
|
|
|
|
Get.back();
|
|
|
|
Get.back();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
BotToast.showText(text: baseModel.msg);
|
|
|
|
BotToast.showText(text: baseModel.msg);
|
|
|
@ -136,9 +133,10 @@ class _FacilitiesInspectReportDetailPageState
|
|
|
|
// 12.w.heightBox,
|
|
|
|
// 12.w.heightBox,
|
|
|
|
// _buildTile(R.ASSETS_MESSAGE_IC_PHONE_PNG, '联系电话', model!.??''),
|
|
|
|
// _buildTile(R.ASSETS_MESSAGE_IC_PHONE_PNG, '联系电话', model!.??''),
|
|
|
|
// 12.w.heightBox,
|
|
|
|
// 12.w.heightBox,
|
|
|
|
_buildTile(R.ASSETS_MANAGE_ADDRESS_PNG, '检查场地', model?.facilitiesName??''),
|
|
|
|
_buildTile(
|
|
|
|
|
|
|
|
R.ASSETS_MANAGE_ADDRESS_PNG, '检查场地', model?.facilitiesName ?? ''),
|
|
|
|
12.w.heightBox,
|
|
|
|
12.w.heightBox,
|
|
|
|
_buildTile(R.ASSETS_MANAGE_CLOCK_PNG, '规定任务时间', model?.beginDate??''),
|
|
|
|
_buildTile(R.ASSETS_MANAGE_CLOCK_PNG, '规定任务时间', model?.beginDate ?? ''),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.box
|
|
|
|
.box
|
|
|
@ -166,37 +164,32 @@ class _FacilitiesInspectReportDetailPageState
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _descriptionCard(
|
|
|
|
Widget _descriptionCard(
|
|
|
|
String title, FacilitiesCheckListModel? model,
|
|
|
|
String title,
|
|
|
|
|
|
|
|
FacilitiesCheckListModel? model,
|
|
|
|
// int index,
|
|
|
|
// int index,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: ['$title'.text.color(kTextPrimaryColor).size(32.sp).bold.make()],
|
|
|
|
children: [
|
|
|
|
|
|
|
|
'$title'.text.color(kTextPrimaryColor).size(32.sp).bold.make()
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
16.w.heightBox,
|
|
|
|
16.w.heightBox,
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AkuSingleCheckButton(
|
|
|
|
AkuSingleCheckButton(
|
|
|
|
text: '正常',
|
|
|
|
text: '正常', value: 1, gropValue: _scene, onPressed: () {}),
|
|
|
|
value: 1,
|
|
|
|
|
|
|
|
gropValue: _scene,
|
|
|
|
|
|
|
|
onPressed: () {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
16.w.widthBox,
|
|
|
|
16.w.widthBox,
|
|
|
|
AkuSingleCheckButton(
|
|
|
|
AkuSingleCheckButton(
|
|
|
|
text: '异常',
|
|
|
|
text: '异常', value: 2, gropValue: _scene, onPressed: () {}),
|
|
|
|
value: 2,
|
|
|
|
|
|
|
|
gropValue: _scene,
|
|
|
|
|
|
|
|
onPressed: () {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
32.w.heightBox,
|
|
|
|
32.w.heightBox,
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: ['补充说明'.text.color(kTextPrimaryColor).size(32.sp).bold.make()],
|
|
|
|
children: [
|
|
|
|
|
|
|
|
'补充说明'.text.color(kTextPrimaryColor).size(32.sp).bold.make()
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
16.w.heightBox,
|
|
|
|
16.w.heightBox,
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|