From 20e5e58ded0ba23f8d5bf8fdf65a3db69f54560a Mon Sep 17 00:00:00 2001 From: userGyl Date: Mon, 1 Dec 2025 13:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8F=90=E4=BA=A4=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ln_jq_app/lib/pages/c_page/reservation/controller.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ln_jq_app/lib/pages/c_page/reservation/controller.dart b/ln_jq_app/lib/pages/c_page/reservation/controller.dart index 73570e7..418c69d 100644 --- a/ln_jq_app/lib/pages/c_page/reservation/controller.dart +++ b/ln_jq_app/lib/pages/c_page/reservation/controller.dart @@ -334,11 +334,17 @@ class C_ReservationController extends GetxController with BaseControllerMixin { return; } try { - showLoading("提交中"); final selectedStation = stationOptions.firstWhere( - (s) => s.hydrogenId == selectedStationId.value, + (s) => s.hydrogenId == selectedStationId.value, ); + if(selectedStation.siteStatusName != "营运中"){ + showToast("该站点${selectedStation.siteStatusName}"); + return; + } + + showLoading("提交中"); + final dateStr = formattedDate; // "yyyy-MM-dd" final startTimeStr = '$dateStr ${formattedStartTime}:00'; // "yyyy-MM-dd HH:mm:ss" final endTimeStr = '$dateStr ${formattedEndTime}:00';