|
@@ -191,13 +191,11 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
const SizedBox(
|
|
|
height: 20,
|
|
|
),
|
|
|
- Obx(
|
|
|
- () => Row(
|
|
|
- children: [
|
|
|
- _tabRadio(title: "仅当前医生建档", value: 0),
|
|
|
- _tabRadio(title: "当前团队所有居民", value: 1)
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ScopeEnquiryResidents(
|
|
|
+ selectRaidoChange: (int value) {
|
|
|
+ controller.state.selectBoxFilterFounder = value;
|
|
|
+ },
|
|
|
+ selectIndex: controller.state.selectBoxFilterFounder,
|
|
|
),
|
|
|
const SizedBox(
|
|
|
height: 20,
|
|
@@ -242,35 +240,6 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
.first;
|
|
|
},
|
|
|
),
|
|
|
- // Row(
|
|
|
- // children: [
|
|
|
-
|
|
|
- // Obx(
|
|
|
- // () => DropdownButton<ContractStateEnum>(
|
|
|
- // value: controller.state.contractStateSelectedItem,
|
|
|
- // onChanged: (value) {
|
|
|
- // controller.state.contractStateSelectedItem = value;
|
|
|
- // },
|
|
|
- // focusColor: Colors.white,
|
|
|
- // items: [
|
|
|
- // DropdownMenuItem<ContractStateEnum>(
|
|
|
- // value: null,
|
|
|
- // child: Text("全选"),
|
|
|
- // ),
|
|
|
- // ...ContractStateEnum.values
|
|
|
- // .map<DropdownMenuItem<ContractStateEnum>>(
|
|
|
- // (ContractStateEnum value) {
|
|
|
- // return DropdownMenuItem<ContractStateEnum>(
|
|
|
- // value: value,
|
|
|
- // child: Text(
|
|
|
- // controller.ContractStateMap[value.name]!),
|
|
|
- // );
|
|
|
- // }).toList()
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // ],
|
|
|
- // ),
|
|
|
],
|
|
|
),
|
|
|
),
|
|
@@ -279,40 +248,6 @@ class PatientListPage extends GetView<PatientListController> {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Widget _tabRadio({
|
|
|
- required String title,
|
|
|
- required dynamic value,
|
|
|
- }) {
|
|
|
- return InkWell(
|
|
|
- onTap: () {
|
|
|
- controller.changeFilterFounder(value);
|
|
|
- },
|
|
|
- child: Container(
|
|
|
- margin: EdgeInsets.only(right: 15),
|
|
|
- child: Row(
|
|
|
- children: [
|
|
|
- Radio(
|
|
|
- value: value,
|
|
|
- groupValue: controller.state.selectBoxFilterFounder,
|
|
|
- onChanged: (v) {
|
|
|
- controller.changeFilterFounder(value);
|
|
|
- },
|
|
|
- ),
|
|
|
- Text(
|
|
|
- title,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 16,
|
|
|
- color: controller.state.selectBoxFilterFounder == value
|
|
|
- ? const Color(0xff2c77e5)
|
|
|
- : const Color(0xff4c4948),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
Widget _buildListView() {
|
|
|
final scrollController = ScrollController();
|
|
|
scrollController.addListener(
|