|
|
|
|
@ -185,8 +185,8 @@ class _EditServiceReportState extends State<EditServiceReport> with TickerProvid
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
|
margin: const EdgeInsets.symmetric(vertical: 16),
|
|
|
|
|
decoration: BoxDecoration(color: AColors.grey, borderRadius: BorderRadius.circular(AppStyle.getBorderRadius(context)), boxShadow: [
|
|
|
|
|
const BoxShadow(
|
|
|
|
|
decoration: BoxDecoration(color: AColors.grey, borderRadius: BorderRadius.circular(AppStyle.getBorderRadius(context)), boxShadow: const [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: AColors.grey,
|
|
|
|
|
offset: Offset(0, -1),
|
|
|
|
|
)
|
|
|
|
|
@ -195,70 +195,70 @@ class _EditServiceReportState extends State<EditServiceReport> with TickerProvid
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
// Report type and Reasons
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
// Report Status
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// ASubTitle(_subtitle.reportType),
|
|
|
|
|
// _validate && _serviceReport.type == null
|
|
|
|
|
// ? ASubTitle(
|
|
|
|
|
// _subtitle.requiredWord,
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
// )
|
|
|
|
|
// : const SizedBox.shrink(),
|
|
|
|
|
// const SizedBox(
|
|
|
|
|
// height: 4,
|
|
|
|
|
// ),
|
|
|
|
|
// ServiceReportTypeMenu(
|
|
|
|
|
// initialValue: _serviceReport.type,
|
|
|
|
|
// onSelect: (status) {
|
|
|
|
|
// _serviceReport.type = status;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(
|
|
|
|
|
// width: 8,
|
|
|
|
|
// ),
|
|
|
|
|
// visit date
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
ASubTitle(_subtitle.visitDate),
|
|
|
|
|
_validate && _serviceReport.visitDate == null
|
|
|
|
|
? ASubTitle(
|
|
|
|
|
_subtitle.requiredWord,
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
)
|
|
|
|
|
: const SizedBox.shrink(),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ADatePicker(
|
|
|
|
|
date: _serviceReport.visitDate,
|
|
|
|
|
from: DateTime.now().subtract(const Duration(days: 365)),
|
|
|
|
|
to: DateTime.now().add(const Duration(days: 365)),
|
|
|
|
|
onDatePicker: (date) {
|
|
|
|
|
_serviceReport.visitDate = date;
|
|
|
|
|
setState(() {});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// // Report Status
|
|
|
|
|
// // Expanded(
|
|
|
|
|
// // child: Column(
|
|
|
|
|
// // crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// // children: [
|
|
|
|
|
// // ASubTitle(_subtitle.reportType),
|
|
|
|
|
// // _validate && _serviceReport.type == null
|
|
|
|
|
// // ? ASubTitle(
|
|
|
|
|
// // _subtitle.requiredWord,
|
|
|
|
|
// // color: Colors.red,
|
|
|
|
|
// // )
|
|
|
|
|
// // : const SizedBox.shrink(),
|
|
|
|
|
// // const SizedBox(
|
|
|
|
|
// // height: 4,
|
|
|
|
|
// // ),
|
|
|
|
|
// // ServiceReportTypeMenu(
|
|
|
|
|
// // initialValue: _serviceReport.type,
|
|
|
|
|
// // onSelect: (status) {
|
|
|
|
|
// // _serviceReport.type = status;
|
|
|
|
|
// // },
|
|
|
|
|
// // ),
|
|
|
|
|
// // ],
|
|
|
|
|
// // ),
|
|
|
|
|
// // ),
|
|
|
|
|
// // const SizedBox(
|
|
|
|
|
// // width: 8,
|
|
|
|
|
// // ),
|
|
|
|
|
// // visit date
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// ASubTitle(_subtitle.visitDate),
|
|
|
|
|
// _validate && _serviceReport.visitDate == null
|
|
|
|
|
// ? ASubTitle(
|
|
|
|
|
// _subtitle.requiredWord,
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
// )
|
|
|
|
|
// : const SizedBox.shrink(),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: ADatePicker(
|
|
|
|
|
// date: _serviceReport.visitDate,
|
|
|
|
|
// from: DateTime.now().subtract(const Duration(days: 365)),
|
|
|
|
|
// to: DateTime.now().add(const Duration(days: 365)),
|
|
|
|
|
// onDatePicker: (date) {
|
|
|
|
|
// _serviceReport.visitDate = date;
|
|
|
|
|
// setState(() {});
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(
|
|
|
|
|
// height: 8,
|
|
|
|
|
// ),
|
|
|
|
|
// device sn
|
|
|
|
|
Visibility(
|
|
|
|
|
visible: widget.request.deviceSerialNumber == null,
|
|
|
|
|
@ -400,7 +400,7 @@ class _EditServiceReportState extends State<EditServiceReport> with TickerProvid
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
ASubTitle("Return to Service"),
|
|
|
|
|
const ASubTitle("Return to Service"),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
@ -721,7 +721,7 @@ class _EditServiceReportState extends State<EditServiceReport> with TickerProvid
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 8),
|
|
|
|
|
ASubTitle(_subtitle.workPreformed),
|
|
|
|
|
const ASubTitle("Solutions"),
|
|
|
|
|
const SizedBox(height: 4),
|
|
|
|
|
ATextFormField(
|
|
|
|
|
initialValue: _serviceReport?.workPreformed,
|
|
|
|
|
@ -930,7 +930,7 @@ class _EditServiceReportState extends State<EditServiceReport> with TickerProvid
|
|
|
|
|
//const SizedBox(height: 8,),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 8),
|
|
|
|
|
ASubTitle("technical comment"),
|
|
|
|
|
const ASubTitle("Technical comment"),
|
|
|
|
|
const SizedBox(height: 4),
|
|
|
|
|
ATextFormField(
|
|
|
|
|
initialValue: _serviceReport?.comment,
|
|
|
|
|
|