|
|
|
|
@ -68,7 +68,9 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
initialVisitCard(requestDetailProvider: requestProvider, userProvider: _userProvider),
|
|
|
|
|
assetDetailCard(requestDetailProvider: requestProvider, userProvider: _userProvider),
|
|
|
|
|
12.height,
|
|
|
|
|
if (context.userProvider.user!.type == UsersTypes.engineer) ...[
|
|
|
|
|
if (context.userProvider.user!.type == UsersTypes.engineer &&
|
|
|
|
|
!requestProvider.isReadOnlyRequest &&
|
|
|
|
|
requestProvider.currentWorkOrder!.data!.nextStep?.workOrderNextStepEnum == WorkOrderNextStepEnum.activity) ...[
|
|
|
|
|
costCard(context, requestProvider),
|
|
|
|
|
12.height,
|
|
|
|
|
],
|
|
|
|
|
@ -310,14 +312,13 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
if (!requestProvider.isReadOnlyRequest) ...[
|
|
|
|
|
//workOrderNextStepStatus == WorkOrderNextStepEnum.assignToMe
|
|
|
|
|
if (!requestProvider.isReadOnlyRequest && userProvider.user?.type == UsersTypes.engineer && workOrder.nextStep?.workOrderNextStepEnum == WorkOrderNextStepEnum.activity) ...[
|
|
|
|
|
8.height,
|
|
|
|
|
const Divider().defaultStyle(context),
|
|
|
|
|
MultiFilesPicker(
|
|
|
|
|
label: context.translation.attachments,
|
|
|
|
|
files: _workOrderAttachments,
|
|
|
|
|
// attachment: _workOrderAttachments,
|
|
|
|
|
buttonColor: AppColor.primary10,
|
|
|
|
|
onlyImages: false,
|
|
|
|
|
buttonIcon: 'quotation_icon'.toSvgAsset(color: AppColor.primary10),
|
|
|
|
|
@ -483,13 +484,16 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
Text(
|
|
|
|
|
'Travel Cost: ${provider.currentWorkOrder!.data?.travelCost ?? '-'}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
), Text(
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'Quot Amount: ${provider.currentWorkOrder!.data?.qAmount ?? '-'}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
), Text(
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'PR No: ${provider.currentWorkOrder!.data?.prNo ?? '-'}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
), Text(
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'PO No: ${provider.currentWorkOrder!.data?.poNo ?? '-'}',
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
|
|
|
|
|
),
|
|
|
|
|
|