|
@@ -83,9 +83,12 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
|
|
|
isCollapsed: false,
|
|
|
),
|
|
|
onEditingComplete: () async {
|
|
|
- print(textEditingController.text);
|
|
|
- await controller
|
|
|
- .openCapturePage(textEditingController.text);
|
|
|
+ String devicePatientID =
|
|
|
+ controller.currentRecordData?.devicePatientID ?? '';
|
|
|
+ if (devicePatientID.isEmpty) {
|
|
|
+ devicePatientID = textEditingController.text;
|
|
|
+ }
|
|
|
+ await controller.openCapturePage(devicePatientID);
|
|
|
},
|
|
|
readOnly: false,
|
|
|
),
|