|
|
|
@ -88,7 +88,33 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
if (model.state != ViewState.ErrorLocal)
|
|
|
|
if (model.state != ViewState.ErrorLocal)
|
|
|
|
...List.generate(
|
|
|
|
...List.generate(
|
|
|
|
model.medicalReportList.length,
|
|
|
|
model.medicalReportList.length,
|
|
|
|
(index) => Container(
|
|
|
|
(index) => InkWell(
|
|
|
|
|
|
|
|
onTap: (){
|
|
|
|
|
|
|
|
if (model.medicalReportList[index].status ==
|
|
|
|
|
|
|
|
1) {
|
|
|
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
|
|
|
PATIENT_MEDICAL_REPORT_DETAIL,
|
|
|
|
|
|
|
|
arguments: {
|
|
|
|
|
|
|
|
'patient': patient,
|
|
|
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
|
|
|
'arrivalType': arrivalType,
|
|
|
|
|
|
|
|
'medicalReport':
|
|
|
|
|
|
|
|
model.medicalReportList[index]
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
|
|
|
PATIENT_MEDICAL_REPORT_INSERT,
|
|
|
|
|
|
|
|
arguments: {
|
|
|
|
|
|
|
|
'patient': patient,
|
|
|
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
|
|
|
'arrivalType': arrivalType,
|
|
|
|
|
|
|
|
'type': MedicalReportStatus.ADD,
|
|
|
|
|
|
|
|
'medicalReport':
|
|
|
|
|
|
|
|
model.medicalReportList[index]
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
child: CardWithBgWidget(
|
|
|
|
child: CardWithBgWidget(
|
|
|
|
hasBorder: false,
|
|
|
|
hasBorder: false,
|
|
|
|
@ -178,32 +204,6 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
// ""),
|
|
|
|
// ""),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
if (model.medicalReportList[index].status ==
|
|
|
|
|
|
|
|
1) {
|
|
|
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
|
|
|
PATIENT_MEDICAL_REPORT_DETAIL,
|
|
|
|
|
|
|
|
arguments: {
|
|
|
|
|
|
|
|
'patient': patient,
|
|
|
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
|
|
|
'arrivalType': arrivalType,
|
|
|
|
|
|
|
|
'medicalReport':
|
|
|
|
|
|
|
|
model.medicalReportList[index]
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
|
|
|
PATIENT_MEDICAL_REPORT_INSERT,
|
|
|
|
|
|
|
|
arguments: {
|
|
|
|
|
|
|
|
'patient': patient,
|
|
|
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
|
|
|
'arrivalType': arrivalType,
|
|
|
|
|
|
|
|
'type': MedicalReportStatus.ADD,
|
|
|
|
|
|
|
|
'medicalReport':
|
|
|
|
|
|
|
|
model.medicalReportList[index]
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
@ -215,7 +215,6 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -224,6 +223,8 @@ class MedicalReportPage extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 15,)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|