|
@@ -68,16 +68,18 @@ import { listTestReport, getTestReport, delTestReport, addTestReport, updateTest
|
|
|
this.patientJson=null;
|
|
|
getTestReport(orderId).then(response => {
|
|
|
this.item = response.data;
|
|
|
- if(response.data.formJson!=null){
|
|
|
- this.formJson=JSON.parse(response.data.formJson);
|
|
|
- console.log(this.formJson)
|
|
|
- };
|
|
|
- if(response.data.conditioningPlanJson!=null){
|
|
|
- this.conditioningPlanJson=JSON.parse(response.data.conditioningPlanJson)
|
|
|
- };
|
|
|
- if(response.data.patientJson!=null){
|
|
|
- this.patientJson=JSON.parse(response.data.patientJson)
|
|
|
- };
|
|
|
+ if(response.data){
|
|
|
+ if(response.data.formJson!=null){
|
|
|
+ this.formJson=JSON.parse(response.data.formJson);
|
|
|
+ console.log(this.formJson)
|
|
|
+ }
|
|
|
+ if(response.data.conditioningPlanJson!=null){
|
|
|
+ this.conditioningPlanJson=JSON.parse(response.data.conditioningPlanJson)
|
|
|
+ }
|
|
|
+ if(response.data.patientJson!=null){
|
|
|
+ this.patientJson=JSON.parse(response.data.patientJson)
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
}
|