|
@@ -23,6 +23,7 @@ class ServicePackageContractController extends FControllerBase {
|
|
|
List<LabelDTO> normalOptions = [];
|
|
|
PatientDTO patient = PatientDTO();
|
|
|
String templateCode = '';
|
|
|
+ ContractRecordDTO? contractRecordDTO;
|
|
|
@override
|
|
|
void onInit() {
|
|
|
// final p = Get.parameters;
|
|
@@ -72,6 +73,12 @@ class ServicePackageContractController extends FControllerBase {
|
|
|
patient = dto;
|
|
|
state.phone = dto.phone ?? '';
|
|
|
}
|
|
|
+ contractRecordDTO = await _servicePackManager.getDoctorContractRecord();
|
|
|
+ state.designatedDoctorName = contractRecordDTO?.contractedDoctorName ?? '';
|
|
|
+ state.designatedDoctorPhone =
|
|
|
+ contractRecordDTO?.contractedDoctorPhone ?? '';
|
|
|
+ state.teamLeaderName = contractRecordDTO?.teamLeaderName ?? '';
|
|
|
+ state.guidingDoctorName = contractRecordDTO?.preceptorName ?? '';
|
|
|
}
|
|
|
|
|
|
String setNormalLabels(List<String> normalValueList) {
|
|
@@ -102,6 +109,10 @@ class ServicePackageContractController extends FControllerBase {
|
|
|
servicePacks: state.selectedServicePackageCode.split('、'),
|
|
|
photos: ["data:image/png;base64,${state.userImage ?? ''}"],
|
|
|
notes: state.notes,
|
|
|
+ contractedDoctorName: state.designatedDoctorName,
|
|
|
+ contractedDoctorPhone: state.designatedDoctorPhone,
|
|
|
+ teamLeaderName: state.teamLeaderName,
|
|
|
+ renewalContractCode: state.guidingDoctorName,
|
|
|
),
|
|
|
);
|
|
|
}
|