|
|
@ -47,170 +47,163 @@ class _InspectionManageCardState extends State<InspectionManageCard> {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Column(
|
|
|
|
return AkuButton(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
onPressed: () {
|
|
|
|
children: [
|
|
|
|
Get.to(
|
|
|
|
16.w.heightBox,
|
|
|
|
InspectionManageDetailsPage(
|
|
|
|
AkuButton(
|
|
|
|
inspectionStatus: widget.cardModel.status,
|
|
|
|
onPressed: () {
|
|
|
|
executeId: widget.cardModel.id,
|
|
|
|
Get.to(
|
|
|
|
),
|
|
|
|
InspectionManageDetailsPage(
|
|
|
|
);
|
|
|
|
inspectionStatus: widget.cardModel.status,
|
|
|
|
},
|
|
|
|
executeId: widget.cardModel.id,
|
|
|
|
child: Container(
|
|
|
|
),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
);
|
|
|
|
padding: EdgeInsets.only(left: 24.w, right: 24.w, bottom: 40.w),
|
|
|
|
},
|
|
|
|
width: double.infinity,
|
|
|
|
child: Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
borderRadius: BorderRadius.circular(8.w), color: Color(0xFFFFFFFF)),
|
|
|
|
padding: EdgeInsets.only(left: 24.w, right: 24.w, bottom: 40.w),
|
|
|
|
child: Column(children: [
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
height: 93.w,
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
borderRadius: BorderRadius.circular(8.w),
|
|
|
|
child: Row(
|
|
|
|
color: Color(0xFFFFFFFF)),
|
|
|
|
children: [
|
|
|
|
child: Column(children: [
|
|
|
|
Text(
|
|
|
|
Container(
|
|
|
|
'${widget.cardModel.name}',
|
|
|
|
height: 93.w,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
width: double.infinity,
|
|
|
|
style: TextStyle(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
color: AppStyle.primaryTextColor,
|
|
|
|
child: Row(
|
|
|
|
fontSize: 32.sp,
|
|
|
|
children: [
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
Text(
|
|
|
|
).expand(),
|
|
|
|
'${widget.cardModel.name}',
|
|
|
|
_inspectionStatus[widget.cardModel.status]
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
.text
|
|
|
|
style: TextStyle(
|
|
|
|
.color(_inspectionColor(widget.cardModel.status))
|
|
|
|
color: AppStyle.primaryTextColor,
|
|
|
|
.bold
|
|
|
|
fontSize: 32.sp,
|
|
|
|
.size(28.sp)
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
.make()
|
|
|
|
).expand(),
|
|
|
|
],
|
|
|
|
_inspectionStatus[widget.cardModel.status]
|
|
|
|
),
|
|
|
|
.text
|
|
|
|
),
|
|
|
|
.color(_inspectionColor(widget.cardModel.status))
|
|
|
|
Divider(height: 1.w),
|
|
|
|
.bold
|
|
|
|
24.w.heightBox,
|
|
|
|
.size(28.sp)
|
|
|
|
Row(
|
|
|
|
.make()
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
],
|
|
|
|
children: [
|
|
|
|
),
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
R.ASSETS_MANAGE_IC_RENWU_PNG,
|
|
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
|
|
height: 40.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Divider(height: 1.w),
|
|
|
|
4.w.widthBox,
|
|
|
|
24.w.heightBox,
|
|
|
|
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Text(
|
|
|
|
R.ASSETS_MANAGE_IC_RENWU_PNG,
|
|
|
|
'巡检编号',
|
|
|
|
width: 40.w,
|
|
|
|
style: _textstyle,
|
|
|
|
height: 40.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
4.w.widthBox,
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
36.w.widthBox,
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
widget.cardModel.code,
|
|
|
|
|
|
|
|
maxLines: 2,
|
|
|
|
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
|
|
|
|
).expand()
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
12.w.heightBox,
|
|
|
|
|
|
|
|
...isManager
|
|
|
|
|
|
|
|
? [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
R.ASSETS_MANAGE_IC_RENWU_PNG,
|
|
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
|
|
height: 40.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
4.w.widthBox,
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'巡检编号',
|
|
|
|
'巡检人',
|
|
|
|
style: _textstyle,
|
|
|
|
style: _textstyle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
widget.cardModel.inspectorName,
|
|
|
|
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
36.w.widthBox,
|
|
|
|
12.w.heightBox,
|
|
|
|
Text(
|
|
|
|
]
|
|
|
|
widget.cardModel.code,
|
|
|
|
: [SizedBox()],
|
|
|
|
maxLines: 2,
|
|
|
|
Row(
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
children: [
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
Image.asset(
|
|
|
|
).expand()
|
|
|
|
R.ASSETS_INSPECTION_IC_XUNJIAN_PNG,
|
|
|
|
],
|
|
|
|
width: 40.w,
|
|
|
|
|
|
|
|
height: 40.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
12.w.heightBox,
|
|
|
|
4.w.widthBox,
|
|
|
|
...isManager
|
|
|
|
Text('规定巡检时间', style: _textstyle),
|
|
|
|
? [
|
|
|
|
Spacer(),
|
|
|
|
Row(
|
|
|
|
Text(
|
|
|
|
children: [
|
|
|
|
'${DateUtil.formatDateStr(widget.cardModel.beginDate, format: "yyyy-MM-dd HH:mm")}~${widget.cardModel?.endDate == null ? '' : DateUtil.formatDateStr(widget.cardModel.endDate, format: "HH:mm")}',
|
|
|
|
Image.asset(
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
R.ASSETS_MANAGE_IC_RENWU_PNG,
|
|
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
|
|
height: 40.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
4.w.widthBox,
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'巡检人',
|
|
|
|
|
|
|
|
style: _textstyle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
widget.cardModel.inspectorName,
|
|
|
|
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
12.w.heightBox,
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
: [SizedBox()],
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
R.ASSETS_INSPECTION_IC_XUNJIAN_PNG,
|
|
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
|
|
height: 40.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
4.w.widthBox,
|
|
|
|
|
|
|
|
Text('规定巡检时间', style: _textstyle),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'${DateUtil.formatDateStr(widget.cardModel.beginDate, format: "yyyy-MM-dd HH:mm")}~${widget.cardModel?.endDate == null ? '' : DateUtil.formatDateStr(widget.cardModel.endDate, format: "HH:mm")}',
|
|
|
|
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
12.w.heightBox,
|
|
|
|
],
|
|
|
|
...widget?.cardModel?.actualBeginDate == null
|
|
|
|
),
|
|
|
|
? [SizedBox()]
|
|
|
|
12.w.heightBox,
|
|
|
|
: [
|
|
|
|
...widget?.cardModel?.actualBeginDate == null
|
|
|
|
Row(
|
|
|
|
? [SizedBox()]
|
|
|
|
children: [
|
|
|
|
: [
|
|
|
|
Image.asset(
|
|
|
|
Row(
|
|
|
|
R.ASSETS_MANAGE_IC_TIME_PNG,
|
|
|
|
children: [
|
|
|
|
width: 40.w,
|
|
|
|
Image.asset(
|
|
|
|
height: 40.w,
|
|
|
|
R.ASSETS_MANAGE_IC_TIME_PNG,
|
|
|
|
),
|
|
|
|
width: 40.w,
|
|
|
|
4.w.widthBox,
|
|
|
|
height: 40.w,
|
|
|
|
Text(
|
|
|
|
),
|
|
|
|
'开始巡检时间',
|
|
|
|
4.w.widthBox,
|
|
|
|
style: _textstyle,
|
|
|
|
Text(
|
|
|
|
),
|
|
|
|
'开始巡检时间',
|
|
|
|
Spacer(),
|
|
|
|
style: _textstyle,
|
|
|
|
Text(
|
|
|
|
),
|
|
|
|
'${DateUtil.formatDateStr(widget.cardModel.actualBeginDate, format: "yyyy-MM-dd HH:mm")}',
|
|
|
|
Spacer(),
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
Text(
|
|
|
|
),
|
|
|
|
'${DateUtil.formatDateStr(widget.cardModel.actualBeginDate, format: "yyyy-MM-dd HH:mm")}',
|
|
|
|
],
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
12.w.heightBox,
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
widget?.cardModel?.actualEndDate == null
|
|
|
|
),
|
|
|
|
? SizedBox()
|
|
|
|
12.w.heightBox,
|
|
|
|
: Row(
|
|
|
|
],
|
|
|
|
children: [
|
|
|
|
widget?.cardModel?.actualEndDate == null
|
|
|
|
Image.asset(
|
|
|
|
? SizedBox()
|
|
|
|
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
|
|
|
|
: Row(
|
|
|
|
width: 40.w,
|
|
|
|
children: [
|
|
|
|
height: 40.w,
|
|
|
|
Image.asset(
|
|
|
|
),
|
|
|
|
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
|
|
|
|
4.w.widthBox,
|
|
|
|
width: 40.w,
|
|
|
|
Text(
|
|
|
|
height: 40.w,
|
|
|
|
'结束巡检时间',
|
|
|
|
),
|
|
|
|
style: _textstyle,
|
|
|
|
4.w.widthBox,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Spacer(),
|
|
|
|
'结束巡检时间',
|
|
|
|
Text(
|
|
|
|
style: _textstyle,
|
|
|
|
'${DateUtil.formatDateStr(widget.cardModel.actualEndDate, format: "yyyy-MM-dd HH:mm")}',
|
|
|
|
),
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
Spacer(),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
],
|
|
|
|
'${DateUtil.formatDateStr(widget.cardModel.actualEndDate, format: "yyyy-MM-dd HH:mm")}',
|
|
|
|
)
|
|
|
|
style: AppStyle().primaryStyle,
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
]),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|