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

0018683: 【一体机】【新建档案】登录账号后立即点击“新建档案-手动录入“,点击姓名和身份证,未弹出输入框,无法手动录入

finlay 10 сар өмнө
parent
commit
56a21ef018

+ 2 - 1
lib/helper/goto_helper.dart

@@ -36,6 +36,7 @@ abstract class NavGotoHelper {
     } else {
       Routes.parameters["patientInfo"] = null;
     }
-    Get.offNamed('/redirect', id: NavIds.HOME);
+
+    Get.offAllNamed('/redirect', id: NavIds.HOME);
   }
 }

+ 0 - 12
lib/pages/patient_info/view.dart

@@ -58,8 +58,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           content: controller.state.name,
           isRequired: isRequiredName,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
-            // controller=Get.find<PatientInfomationController>();
             final result = await VDialogInput(
               title: "姓名",
               initialValue: controller.state.name,
@@ -80,7 +78,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           onTap: () async {
             if (isCanEditId) {
               print("点击修改证件号");
-              Get.lazyPut(() => PatientInfomationController());
               final result = await VDialogInput(
                 title: "证件号",
                 initialValue: controller.state.cardNo,
@@ -114,7 +111,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
             label: "人群分类",
             content: controller.state.labels.join("、"),
             onTap: () async {
-              Get.lazyPut(() => PatientInfomationController());
               var allLabels = await Get.find<ILabelManager>().getAllLabels();
               final result = await Get.dialog(
                 VDialogLabelSelect(
@@ -134,7 +130,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "联系电话",
           content: controller.state.phoneNo,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogInput(
               title: "联系电话",
               initialValue: controller.state.phoneNo,
@@ -161,7 +156,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "联系人姓名",
           content: controller.state.emergencyName,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogInput(
               title: "联系人姓名",
               initialValue: controller.state.emergencyName,
@@ -179,7 +173,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "联系人电话",
           content: controller.state.emergencyPhone,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogInput(
               title: "联系人电话",
               initialValue: controller.state.emergencyPhone,
@@ -206,7 +199,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "性别",
           content: RpcEnumLabels.gender[state.gender],
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogSelect<GenderEnum, GenderEnum>(
               title: "选择性别",
               source: const [
@@ -231,7 +223,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "民族",
           content: state.nation,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogSelect<String, String>(
               title: "选择民族",
               source: Nations.china,
@@ -255,7 +246,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
               ? DataTimeUtils.formatDateString(controller.state.birthday!)
               : "",
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             bool _isLocalStation = AppParameters.data.isLocalStation;
             DateTime? result;
             if (kIsWeb || _isLocalStation) {
@@ -307,7 +297,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "户籍地址",
           content: controller.state.permanentResidenceAddress,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogInput(
               title: "户籍地址",
               initialValue: controller.state.permanentResidenceAddress,
@@ -325,7 +314,6 @@ class PatientInfomationPage extends GetView<PatientInfomationController> {
           label: "现住地址",
           content: controller.state.address,
           onTap: () async {
-            Get.lazyPut(() => PatientInfomationController());
             final result = await VDialogInput(
               title: "现住地址",
               initialValue: controller.state.address,

+ 1 - 1
lib/routes/routes.dart

@@ -194,7 +194,7 @@ class Routes {
           if (Get.isRegistered<PatientInfomationController>()) {
             await Get.delete<PatientInfomationController>();
           }
-          Get.put<PatientInfomationController>(PatientInfomationController());
+          Get.put(PatientInfomationController());
 
           Get.lazyPut(() => CrowdLabelsController());