"use strict";var n=require("../common/vendor.js"),u=require("../api/inquiryOrder.js");require("../common/request.js");const a={data(){return{orderId:null,statusBarHeight:n.index.getStorageSync("menuInfo").statusBarHeight,report:null,patient:null}},onLoad(t){this.orderId=t.orderId,this.getInquiryOrderReport()},onShow(){},methods:{getInquiryOrderReport(){let t={orderId:this.orderId};u.getInquiryOrderReport(t).then(r=>{if(r.code==200&&t!=null){if(console.log(r.data),this.report=r.data,r.data.patientJson!=null&&(this.patient=JSON.parse(r.data.patientJson)),r.data.conditioningPlanJson!=null){this.report.conditioningPlan=JSON.parse(r.data.conditioningPlanJson);var o=[];this.report.conditioningPlan.forEach((l,e)=>{l.value!=""&&o.push(l)}),this.report.conditioningPlan=o}console.log(this.patient)}},r=>{})},goBack(){n.index.navigateBack()}}};function s(t,r,o,l,e,p){return n.e({a:e.statusBarHeight,b:n.o(i=>p.goBack()),c:e.patient!=null},e.patient!=null?n.e({d:e.statusBarHeight,e:e.patient.avatar==null?"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/22cb9518a55040dea74d8f730551a7a2.jpg":JSON.parse(e.report.patientJson).avatar,f:n.t(e.patient.sex==1?"\u7537":"\u5973"),g:n.t(e.patient.age),h:n.t(e.patient.height),i:n.t(e.patient.weight),j:n.t(e.report.createTime),k:n.t(e.report.inquiryResult),l:n.t(e.patient.title),m:e.patient!=null&&e.patient.medication!=null},e.patient!=null&&e.patient.medication!=null?{n:n.t(e.patient.medication)}:{},{o:e.report!=null&&e.report.inquiryResult!=null},e.report!=null&&e.report.inquiryResult!=null?{p:n.t(e.report.inquiryResult)}:{},{q:n.f(e.report.conditioningPlan,(i,g,d)=>({a:n.t(i.name=="\u7528\u836F\u8C03\u6CBB"?"\u5065\u5EB7\u5EFA\u8BAE":i.name),b:n.t(i.value.replace(/\\n/g,"<br>"))})),r:e.report.doctorSignUrl,s:e.report.drugDoctorSignUrl}):{})}var c=n._export_sfc(a,[["render",s],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_order/inquiryOrderReport.vue"]]);wx.createPage(c);
