Эх сурвалжийг харах

fixed: 0018456: 【健康体检】【处方】健康指导>开处方,不选择任何处方,点击“确定”,返回”未知的RPC服务异常”

loki.wu 11 сар өмнө
parent
commit
30ff1f7451

+ 3 - 1
lib/pages/check/prescription/examination_prescription.dart

@@ -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();
         }
       },
     );