|
@@ -37,6 +37,9 @@ class HealthCheckListController extends GetxController {
|
|
|
idNumber: '',
|
|
|
);
|
|
|
|
|
|
+ DateTime? startTime;
|
|
|
+ DateTime? endTime;
|
|
|
+
|
|
|
/// 手动填写的病人名字
|
|
|
PatientDTO? patientInfo = PatientDTO();
|
|
|
|
|
@@ -68,8 +71,6 @@ class HealthCheckListController extends GetxController {
|
|
|
int? pageSize = 10,
|
|
|
int? pageIndex = 1,
|
|
|
String? keyword = "",
|
|
|
- DateTime? startTime,
|
|
|
- DateTime? endTime,
|
|
|
}) async {
|
|
|
tableLoading = true;
|
|
|
currPageIndex = pageIndex!;
|
|
@@ -78,8 +79,8 @@ class HealthCheckListController extends GetxController {
|
|
|
pageSize: pageSize,
|
|
|
pageIndex: pageIndex,
|
|
|
keyword: keyword,
|
|
|
- startTime: startTime,
|
|
|
- endTime: endTime,
|
|
|
+ startTime: this.startTime,
|
|
|
+ endTime: this.endTime,
|
|
|
);
|
|
|
|
|
|
List<ResidentModel> _residentList = [];
|
|
@@ -198,9 +199,9 @@ class HealthCheckListController extends GetxController {
|
|
|
|
|
|
_initData() async {
|
|
|
var now = DateTime.now();
|
|
|
- var startTime = new DateTime(now.year, now.month, now.day);
|
|
|
- var endTime = startTime.add(Duration(hours: 23, minutes: 59, seconds: 59));
|
|
|
- await getRegisterInfoPage(startTime: startTime, endTime: endTime);
|
|
|
+ startTime = new DateTime(now.year, now.month, now.day);
|
|
|
+ endTime = startTime!.add(Duration(hours: 23, minutes: 59, seconds: 59));
|
|
|
+ await getRegisterInfoPage();
|
|
|
Get.find<IDeviceManager>().onScanCode.addListener(_onScanCode);
|
|
|
}
|
|
|
|