|
|
|
@ -68,8 +68,10 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
initialVisitCard(requestDetailProvider: requestProvider, userProvider: _userProvider),
|
|
|
|
initialVisitCard(requestDetailProvider: requestProvider, userProvider: _userProvider),
|
|
|
|
assetDetailCard(requestDetailProvider: requestProvider, userProvider: _userProvider),
|
|
|
|
assetDetailCard(requestDetailProvider: requestProvider, userProvider: _userProvider),
|
|
|
|
12.height,
|
|
|
|
12.height,
|
|
|
|
costCard(context, requestProvider),
|
|
|
|
if (context.userProvider.user!.type == UsersTypes.engineer) ...[
|
|
|
|
12.height,
|
|
|
|
costCard(context, requestProvider),
|
|
|
|
|
|
|
|
12.height,
|
|
|
|
|
|
|
|
],
|
|
|
|
contactInfoCard(context, requestProvider.currentWorkOrder!.data!),
|
|
|
|
contactInfoCard(context, requestProvider.currentWorkOrder!.data!),
|
|
|
|
20.height,
|
|
|
|
20.height,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -120,7 +122,7 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.width,
|
|
|
|
8.width,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
if(workOrder.itgFormWorkOrderStatus!=null)...[
|
|
|
|
if (workOrder.itgFormWorkOrderStatus != null) ...[
|
|
|
|
StatusLabel(
|
|
|
|
StatusLabel(
|
|
|
|
label: workOrder.itgFormWorkOrderStatus,
|
|
|
|
label: workOrder.itgFormWorkOrderStatus,
|
|
|
|
id: 0,
|
|
|
|
id: 0,
|
|
|
|
@ -470,12 +472,12 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
// Text(
|
|
|
|
|
|
|
|
// 'Spare Part Cost: ${provider.currentWorkOrder!.data?.sparePartCost ?? '-'}',
|
|
|
|
|
|
|
|
// style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'Spare Part Cost: ${provider.currentWorkOrder!.data?.sparePartCost ?? '-'}',
|
|
|
|
'Labor Cost: ${provider.currentWorkOrder!.data?.labourCost ?? '-'}',
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'Labour Cost: ${provider.currentWorkOrder!.data?.labourCost ?? '-'}',
|
|
|
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
|