|
@@ -171,7 +171,7 @@ class _ExaminationPrescriptionState extends State<ExaminationPrescription> {
|
|
|
} else {
|
|
|
PromptBox.toast("更新失败");
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else if (FormInfo.instance.formValue.isNotEmpty) {
|
|
|
String? prescriptionCode =
|
|
|
await _prescriptionManager.createPrescription(
|
|
|
patientCode: widget.patientCode!,
|
|
@@ -184,6 +184,8 @@ class _ExaminationPrescriptionState extends State<ExaminationPrescription> {
|
|
|
"prescription": widget.prescription,
|
|
|
});
|
|
|
FormInfo.instance.formValue.clear();
|
|
|
+ } else {
|
|
|
+ Get.back();
|
|
|
}
|
|
|
},
|
|
|
);
|