|
@@ -11,10 +11,8 @@ import 'package:vitalapp/components/search_input.dart';
|
|
|
import 'package:vitalapp/consts/rpc_enum_labels.dart';
|
|
|
import 'package:vitalapp/consts/styles.dart';
|
|
|
import 'package:vitalapp/managers/contract/index.dart';
|
|
|
-import 'package:vitalapp/pages/controllers/crowd_labels.dart';
|
|
|
import 'package:vitalapp/pages/home/controller.dart';
|
|
|
-import 'package:vitalapp/pages/patient/create/view.dart';
|
|
|
-import 'package:vitalapp/pages/patient/list/widgets/crowd_select_label.dart';
|
|
|
+import 'package:vitalapp/pages/patient/create/widgets/quick_create.dart';
|
|
|
import 'package:vitalapp/pages/patient/list/widgets/status.dart';
|
|
|
import 'package:vitalapp/pages/patient/list/widgets/tab_button.dart';
|
|
|
import 'package:vitalapp/pages/patient/list/widgets/tab_button_group.dart';
|
|
@@ -98,7 +96,7 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
return Expanded(
|
|
|
child: Container(
|
|
|
color: Colors.white,
|
|
|
- child: const CreatePatientPage(),
|
|
|
+ child: const QuickCreatePatientPage(),
|
|
|
),
|
|
|
);
|
|
|
} else {
|
|
@@ -133,9 +131,16 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
scaffoldKey: Get.find<HomeController>().homeScaffoldKey,
|
|
|
onConfirm: () {
|
|
|
controller.reloadList(isFilter: true);
|
|
|
- VDynamicDrawerWrapper.hide(
|
|
|
- scaffoldKey: Get.find<HomeController>().homeScaffoldKey,
|
|
|
- );
|
|
|
+ Get.back();
|
|
|
+ // VDynamicDrawerWrapper.hide(
|
|
|
+ // scaffoldKey: Get.find<HomeController>().homeScaffoldKey,
|
|
|
+ // );
|
|
|
+ },
|
|
|
+ onCancel: () {
|
|
|
+ Get.back();
|
|
|
+ // VDynamicDrawerWrapper.hide(
|
|
|
+ // scaffoldKey: Get.find<HomeController>().homeScaffoldKey,
|
|
|
+ // );
|
|
|
},
|
|
|
child: Scrollbar(
|
|
|
controller: scrollController,
|
|
@@ -206,16 +211,16 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
const SizedBox(
|
|
|
height: 20,
|
|
|
),
|
|
|
- const Text(
|
|
|
- '人群分类:',
|
|
|
- style: TextStyle(fontSize: 20),
|
|
|
- ),
|
|
|
- const SizedBox(
|
|
|
- height: 20,
|
|
|
- ),
|
|
|
- CrowdSelectLabelView(
|
|
|
- controller: controller.crowdLabelsController,
|
|
|
- ),
|
|
|
+ // const Text(
|
|
|
+ // '人群分类:',
|
|
|
+ // style: TextStyle(fontSize: 20),
|
|
|
+ // ),
|
|
|
+ // const SizedBox(
|
|
|
+ // height: 20,
|
|
|
+ // ),
|
|
|
+ // CrowdSelectLabelView(
|
|
|
+ // controller: controller.crowdLabelsController,
|
|
|
+ // ),
|
|
|
],
|
|
|
),
|
|
|
),
|
|
@@ -263,7 +268,7 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
crossAxisCount: 3,
|
|
|
mainAxisSpacing: 16,
|
|
|
crossAxisSpacing: 20,
|
|
|
- childAspectRatio: 360 / 200,
|
|
|
+ childAspectRatio: 360 / 180,
|
|
|
),
|
|
|
children: children,
|
|
|
),
|
|
@@ -339,14 +344,14 @@ class _PatientCard extends StatelessWidget {
|
|
|
const SizedBox(height: 8),
|
|
|
LayoutBuilder(
|
|
|
builder: (context, c) {
|
|
|
- final width = c.maxWidth - 80 - 20;
|
|
|
+ final width = c.maxWidth - 80;
|
|
|
// 不和状态标签重叠,并保持一定距离
|
|
|
return SizedBox(width: width, child: _buildBaseInfoRow());
|
|
|
},
|
|
|
),
|
|
|
const SizedBox(height: 12),
|
|
|
// Expanded(child: _buildClassTags()),
|
|
|
- _buildClassTags(),
|
|
|
+ // _buildClassTags(),
|
|
|
const SizedBox(height: 6),
|
|
|
_buildPhone(),
|
|
|
const SizedBox(height: 6),
|
|
@@ -354,13 +359,13 @@ class _PatientCard extends StatelessWidget {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
- Positioned(
|
|
|
- top: 0,
|
|
|
- right: 0,
|
|
|
- child: _PatientSignStatusTag(
|
|
|
- dto: dto,
|
|
|
- ),
|
|
|
- ),
|
|
|
+ // Positioned(
|
|
|
+ // top: 0,
|
|
|
+ // right: 0,
|
|
|
+ // child: _PatientSignStatusTag(
|
|
|
+ // dto: dto,
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
],
|
|
|
);
|
|
|
return Material(
|