|
|
|
|
@ -31,6 +31,7 @@ class WorkOrderDetailsPage extends StatelessWidget {
|
|
|
|
|
SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: const EdgeInsets.all(16),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
decoration: ShapeDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
|
|
|
|
|
@ -44,25 +45,13 @@ class WorkOrderDetailsPage extends StatelessWidget {
|
|
|
|
|
8.height,
|
|
|
|
|
Text(serviceRequest.requestCode, style: AppTextStyles.heading5.copyWith(color: const Color(0xFF3B3D4A))),
|
|
|
|
|
8.height,
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
'${context.translation.assetName}: ${workOrder.callRequest.asset.modelDefinition.assetName}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575)),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'${context.translation.status}: ${workOrder.currentSituation.name}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575)),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
Text(workOrder.visitDate?.toServiceRequestCardFormat ?? "", textAlign: TextAlign.end, style: AppTextStyles.tinyFont.copyWith(color: const Color(0xFF3B3D4A))),
|
|
|
|
|
],
|
|
|
|
|
Text(
|
|
|
|
|
'${context.translation.assetName}: ${workOrder.callRequest.asset.modelDefinition.assetName}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575)),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'${context.translation.status}: ${workOrder.currentSituation.name}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575)),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'${context.translation.orderWorkNumber}: ${workOrder.workOrderNo}',
|
|
|
|
|
@ -72,6 +61,7 @@ class WorkOrderDetailsPage extends StatelessWidget {
|
|
|
|
|
'${context.translation.assignedEmployee}: ${workOrder.assignedEmployee?.name ?? ""}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575)),
|
|
|
|
|
),
|
|
|
|
|
Text('${context.translation.visitDate}: ${workOrder.visitDate?.toServiceRequestDetailsFormat ?? ""}', style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575))),
|
|
|
|
|
Text('${context.translation.assetSN}: ${workOrder.callRequest.asset.assetSerialNo ?? ""}', style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575))),
|
|
|
|
|
Text('${context.translation.assetName}: ${workOrder.callRequest.asset.modelDefinition.assetName ?? ""}', style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575))),
|
|
|
|
|
Text('${context.translation.assetNumber}: ${workOrder.callRequest.asset.assetNumber ?? ""}', style: AppTextStyles.bodyText.copyWith(color: const Color(0xFF757575))),
|
|
|
|
|
|