|
@@ -1,3 +1,4 @@
|
|
|
+import 'package:fis_common/index.dart';
|
|
|
import 'package:fis_ui/index.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:fis_i18n/i18n.dart';
|
|
@@ -41,70 +42,73 @@ 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,
|
|
|
+ if (FPlatform.isWindows)
|
|
|
+ SizedBox(
|
|
|
+ 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,
|
|
|
),
|
|
|
- contentPadding:
|
|
|
- const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
|
|
|
- // isDense: true,
|
|
|
- isCollapsed: false,
|
|
|
+ onEditingComplete: () async {
|
|
|
+ print(textEditingController.text);
|
|
|
+ await controller
|
|
|
+ .openCapturePage(textEditingController.text);
|
|
|
+ },
|
|
|
+ readOnly: false,
|
|
|
),
|
|
|
- onEditingComplete: () async {
|
|
|
- print(textEditingController.text);
|
|
|
- await controller
|
|
|
- .openCapturePage(textEditingController.text);
|
|
|
- },
|
|
|
- readOnly: false,
|
|
|
),
|
|
|
- ),
|
|
|
- Expanded(
|
|
|
- child: FSizedBox(
|
|
|
- width: 10,
|
|
|
+ if (FPlatform.isWindows)
|
|
|
+ Expanded(
|
|
|
+ child: FSizedBox(
|
|
|
+ width: 10,
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- SizedBox(
|
|
|
- width: 60,
|
|
|
- height: 36,
|
|
|
- child: VButton(
|
|
|
- label: "采集",
|
|
|
- onTap: () async {
|
|
|
- print(textEditingController.text);
|
|
|
- await controller
|
|
|
- .openCapturePage(textEditingController.text);
|
|
|
- },
|
|
|
+ if (FPlatform.isWindows)
|
|
|
+ SizedBox(
|
|
|
+ width: 60,
|
|
|
+ height: 36,
|
|
|
+ child: VButton(
|
|
|
+ label: "采集",
|
|
|
+ onTap: () async {
|
|
|
+ print(textEditingController.text);
|
|
|
+ await controller
|
|
|
+ .openCapturePage(textEditingController.text);
|
|
|
+ },
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- Expanded(child: FSizedBox()),
|
|
|
+ if (FPlatform.isWindows) Expanded(child: FSizedBox()),
|
|
|
GetBuilder<ConsultationRecordViewController>(
|
|
|
id: "record_filter_tab",
|
|
|
builder: (_) {
|