|
|
|
|
@ -61,7 +61,6 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
userProvider ??= Provider.of<UserProvider>(context, listen: false);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
// appBar: DefaultAppBar(title:taskProvider?.taskRequestModel?.taskType?.id==7?'Recall and Alert Details': context.translation.taskRequest),
|
|
|
|
|
appBar: DefaultAppBar(title: context.translation.taskRequest),
|
|
|
|
|
body: Consumer<TaskRequestProvider>(builder: (context, taskProvider, child) {
|
|
|
|
|
TaskData? taskModel = taskProvider.taskRequestModel;
|
|
|
|
|
@ -270,6 +269,16 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
|
|
|
|
|
'${context.translation.assetNo}: ${taskModel.asset?.assetNumber ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.manufacture}: ${taskModel.asset?.manufacturer ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.model}: ${taskModel.asset?.model ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.serialNo}: ${taskModel.asset?.serialNo ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.assetType}: ${taskModel.asset?.assetTypeName ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.site}: ${taskModel.asset?.siteName ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.building}: ${taskModel.asset?.buildingName ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.floor}: ${taskModel.asset?.floorName ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.department}: ${taskModel.asset?.departmentName ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.room}: ${taskModel.asset?.roomName ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.supplier}: ${taskModel.asset?.supplierName ?? "-"}'.bodyText(context),
|
|
|
|
|
'PO Number: ${taskModel.asset?.poNumber ?? "-"}'.bodyText(context),
|
|
|
|
|
'${context.translation.installationDate}: ${taskModel.asset?.installationDate?.toAssetDetailsFormat ?? "-"}'.bodyText(context),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: const SizedBox();
|
|
|
|
|
|