|
@@ -4,6 +4,7 @@ import 'package:fis_i18n/i18n.dart';
|
|
|
import 'package:fis_jsonrpc/rpc.dart';
|
|
|
import 'package:fis_ui/base_define/page.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
+import 'package:vitalapp/components/button.dart';
|
|
|
import 'package:vitalapp/pages/consultation_record_view/index.dart';
|
|
|
import 'package:vitalapp/pages/consultation_record_view/widgets/search_input.dart';
|
|
|
|
|
@@ -16,6 +17,8 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
+ final borderRadius = BorderRadius.all(Radius.circular(3));
|
|
|
+ final textEditingController = TextEditingController();
|
|
|
return Container(
|
|
|
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 15),
|
|
|
child: Column(
|
|
@@ -38,6 +41,68 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
|
|
|
),
|
|
|
),
|
|
|
Expanded(child: FSizedBox()),
|
|
|
+ Container(
|
|
|
+ width: 200,
|
|
|
+ height: 36,
|
|
|
+ child: TextField(
|
|
|
+ controller: textEditingController,
|
|
|
+ textAlign: TextAlign.start,
|
|
|
+ textAlignVertical: TextAlignVertical.center,
|
|
|
+ maxLines: 1,
|
|
|
+ decoration: InputDecoration(
|
|
|
+ enabledBorder: OutlineInputBorder(
|
|
|
+ borderRadius: borderRadius,
|
|
|
+ borderSide: const BorderSide(color: Colors.grey),
|
|
|
+ ),
|
|
|
+ focusedBorder: OutlineInputBorder(
|
|
|
+ borderRadius: borderRadius,
|
|
|
+ borderSide:
|
|
|
+ BorderSide(color: Theme.of(context).primaryColor),
|
|
|
+ ),
|
|
|
+ errorBorder: OutlineInputBorder(
|
|
|
+ borderRadius: borderRadius,
|
|
|
+ borderSide: BorderSide(
|
|
|
+ color: Theme.of(context).colorScheme.error),
|
|
|
+ ),
|
|
|
+ // suffixIcon: suffixIcon,
|
|
|
+ // errorText: "112323",
|
|
|
+ errorMaxLines: 1,
|
|
|
+ fillColor: Colors.white,
|
|
|
+ filled: true,
|
|
|
+ hintText: "体检号",
|
|
|
+ hintStyle: const TextStyle(
|
|
|
+ fontSize: 16,
|
|
|
+ color: Colors.black54,
|
|
|
+ ),
|
|
|
+ contentPadding:
|
|
|
+ const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
|
|
|
+ // isDense: true,
|
|
|
+ isCollapsed: false,
|
|
|
+ ),
|
|
|
+ onEditingComplete: () async {
|
|
|
+ print(textEditingController.text);
|
|
|
+ await controller.openCapturePage();
|
|
|
+ },
|
|
|
+ readOnly: false,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: FSizedBox(
|
|
|
+ width: 10,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(
|
|
|
+ width: 60,
|
|
|
+ height: 36,
|
|
|
+ child: VButton(
|
|
|
+ label: "采集",
|
|
|
+ onTap: () async {
|
|
|
+ print(textEditingController.text);
|
|
|
+ await controller.openCapturePage();
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Expanded(child: FSizedBox()),
|
|
|
GetBuilder<ConsultationRecordViewController>(
|
|
|
id: "record_filter_tab",
|
|
|
builder: (_) {
|