|
@@ -11,6 +11,8 @@ import 'package:vnote_device_plugin/consts/types.dart';
|
|
|
import 'package:vitalapp/pages/medical/controller.dart';
|
|
|
import 'package:vitalapp/store/store.dart';
|
|
|
|
|
|
+import 'table_input_dialog/widgets/physical_exam_electrocardiogram.dart';
|
|
|
+
|
|
|
class HeartCheckNew extends GetView<MedicalController> {
|
|
|
const HeartCheckNew({super.key});
|
|
|
|
|
@@ -22,49 +24,18 @@ class HeartCheckNew extends GetView<MedicalController> {
|
|
|
height: double.maxFinite,
|
|
|
color: Colors.white,
|
|
|
child: HeartTableCheck(
|
|
|
- checkDialog: _buildMedical(),
|
|
|
+ checkDialog: PhysicalExamElectrocardiogram(
|
|
|
+ _buildDeviceImage(DeviceTypes.TWELVEHEART),
|
|
|
+ _buildMedicalInput(DeviceTypes.TWELVEHEART),
|
|
|
+ _buildSaveButton()
|
|
|
+ ),
|
|
|
checkKey: "HEIECG",
|
|
|
),
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Widget _buildMedical() {
|
|
|
- return Scaffold(
|
|
|
- appBar: VAppBar(
|
|
|
- titleText: "体检心电",
|
|
|
- actions: [
|
|
|
- if (Get.arguments != null)
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(right: 16),
|
|
|
- child: Text(
|
|
|
- Get.arguments,
|
|
|
- style: TextStyle(fontSize: 25, color: Colors.white),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- body: Container(
|
|
|
- color: Colors.white,
|
|
|
- child: Stack(
|
|
|
- children: [
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- _buildDeviceImage(DeviceTypes.TWELVEHEART),
|
|
|
- _buildMedicalInput(DeviceTypes.TWELVEHEART),
|
|
|
- ],
|
|
|
- ),
|
|
|
- Positioned(
|
|
|
- right: 16,
|
|
|
- bottom: 16,
|
|
|
- child: _buildSaveButton(),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
Widget _buildMedicalInput(String? currentTab) {
|
|
|
return Expanded(
|
|
|
flex: currentTab == DeviceTypes.TWELVEHEART ? 18 : 11,
|