|
@@ -419,6 +419,7 @@ class MedicalController extends FControllerBase {
|
|
|
return url.startsWith('https://') || url.startsWith('http://');
|
|
|
}
|
|
|
|
|
|
+// TODO Baka 体检暂时写法 需要封装
|
|
|
Future<Map> uploadData(Map data) async {
|
|
|
if (data['ECG_POINT'] != null && !isUploaded(data['ECG_POINT'])) {
|
|
|
File ecgPointFile =
|
|
@@ -447,6 +448,12 @@ class MedicalController extends FControllerBase {
|
|
|
String? imageUrl = await rpc.storage.upload(imageFile!, fileType: "jpg");
|
|
|
data['ECG12'] = imageUrl ?? '';
|
|
|
}
|
|
|
+ if (data['ECG12_30s'] != null && !isUploaded(data['ECG12_30s'])) {
|
|
|
+ // ... 上传图片
|
|
|
+ final imageFile = UploadUtils.convertBase64ToXFile(data['ECG12_30s']);
|
|
|
+ String? imageUrl = await rpc.storage.upload(imageFile!, fileType: "jpg");
|
|
|
+ data['ECG12_30s'] = imageUrl ?? '';
|
|
|
+ }
|
|
|
return data;
|
|
|
}
|
|
|
|
|
@@ -472,6 +479,12 @@ class MedicalController extends FControllerBase {
|
|
|
Get.back();
|
|
|
}
|
|
|
onSelectExam.emit(this, true);
|
|
|
+ saveCachedRecord();
|
|
|
+ // await recordDataCacheManager.saveRecordData(
|
|
|
+ // appDataId,
|
|
|
+ // patientCode,
|
|
|
+ // output,
|
|
|
+ // );
|
|
|
print(result);
|
|
|
}
|
|
|
|