|
@@ -4,6 +4,7 @@ import 'package:fis_ui/values/paddings.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:fis_ui/interface/interactive_container.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
+import 'package:vitalapp/managers/interfaces/scanning_image.dart';
|
|
|
import 'package:vitalapp/pages/consultation_record_view/widgets/button_group.dart';
|
|
|
import '../index.dart';
|
|
|
import 'package:fis_i18n/i18n.dart';
|
|
@@ -34,18 +35,33 @@ class OperationButtonsRow extends GetView<ConsultationRecordViewController>
|
|
|
i18nBook.remedical.examinationDetails.t,
|
|
|
() => controller.showInspectionDetailsDialog(),
|
|
|
),
|
|
|
+ SizedBox(width: 8),
|
|
|
if (controller.currentRecordData?.isCanCreateReport ?? false) ...[
|
|
|
_buildTextButton(
|
|
|
i18nBook.remedical.writeReport.t,
|
|
|
() => controller.editReport(),
|
|
|
),
|
|
|
+ SizedBox(width: 8),
|
|
|
],
|
|
|
- if (controller.isCanDelete)
|
|
|
+ if (controller.isCanDelete) ...[
|
|
|
_buildTextButton(
|
|
|
i18nBook.common.delete.t,
|
|
|
() => controller.deleteRecord(
|
|
|
controller.desktopListSelectedRecordCode, this),
|
|
|
),
|
|
|
+ SizedBox(width: 8),
|
|
|
+ ],
|
|
|
+ if (controller.currentRecordData?.isCollecting ?? false) ...[
|
|
|
+ _buildTextButton(
|
|
|
+ "结束扫查",
|
|
|
+ () {
|
|
|
+ Get.find<IScanningImage>()
|
|
|
+ .endScan(controller.desktopListSelectedRecordCode);
|
|
|
+ controller.findRecordPages();
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ SizedBox(width: 8),
|
|
|
+ ],
|
|
|
];
|
|
|
|
|
|
return Container(
|
|
@@ -62,9 +78,8 @@ class OperationButtonsRow extends GetView<ConsultationRecordViewController>
|
|
|
),
|
|
|
child: Align(
|
|
|
alignment: Alignment.center,
|
|
|
- child: ButtonGroup(
|
|
|
- buttonPadding: FPaddings.MINI_BUTTON,
|
|
|
- spacing: FSpacings.MINI_BUTTON,
|
|
|
+ child: Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
children: children,
|
|
|
),
|
|
|
),
|