inquiryOrderReport.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <template>
  2. <view class="content">
  3. <view class="cont">
  4. <view class="bg">
  5. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3305ca20c3f646c6b465918efb07f849.png"></image>
  6. </view>
  7. <view class="top-box" >
  8. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  9. <view class="top-title">
  10. <image @click="goBack()" src="/static/images/icon_back_w.png"></image>
  11. <view class="title" >健康报告</view>
  12. </view>
  13. </view>
  14. <view class="cont-box" v-if="patient!=null">
  15. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  16. <view class="user">
  17. <image :src="patient.avatar==null?'https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/22cb9518a55040dea74d8f730551a7a2.jpg':JSON.parse(report.patientJson).avatar"></image>
  18. <view class="user-box">
  19. <view class="sex">性别 {{patient.sex==1?"男":"女"}}</view>
  20. <view class="username">年龄 {{patient.age}}岁</view>
  21. </view>
  22. <view class="user-box">
  23. <view class="sex">身高 {{patient.height}}CM</view>
  24. <view class="username">体重 {{patient.weight}}KG</view>
  25. </view>
  26. </view>
  27. <view class="items">
  28. <view class="result-box">
  29. <view class="time">报告时间 {{report.createTime}}</view>
  30. <view class="name">{{report.inquiryResult}}</view>
  31. </view>
  32. <view class="item-box" >
  33. <view class="item">
  34. <view class="title-box">
  35. <view class="title-line"></view>
  36. <view class="title">咨询问题</view>
  37. </view>
  38. <view class="descs" >{{patient.title}}</view>
  39. </view>
  40. <view class="line"></view>
  41. </view>
  42. <view class="item-box" v-if="patient!=null&&patient.medication!=null">
  43. <view class="item">
  44. <view class="title-box">
  45. <view class="title-line"></view>
  46. <view class="title">用药情况</view>
  47. </view>
  48. <view class="descs" >{{patient.medication}}</view>
  49. </view>
  50. <view class="line"></view>
  51. </view>
  52. <view class="item-box" v-if="report!=null&&report.inquiryResult!=null" >
  53. <view class="item">
  54. <view class="title-box">
  55. <view class="title-line"></view>
  56. <view class="title">健康评估</view>
  57. </view>
  58. <view class="descs" >{{report.inquiryResult}}</view>
  59. </view>
  60. <view class="line"></view>
  61. </view>
  62. <view class="item-box" v-for="(item,index) in report.conditioningPlan" >
  63. <view class="item" >
  64. <view class="title-box">
  65. <view class="title-line"></view>
  66. <view class="title">{{item.name=='用药调治'?'健康建议':item.name}}</view>
  67. </view>
  68. <view class="descs" >{{item.value.replace(/\\n/g, '<br>')}}</view>
  69. </view>
  70. <view class="line"></view>
  71. </view>
  72. <!-- <view class="item-box" >
  73. <view class="item">
  74. <view class="title-box">
  75. <view class="title-line"></view>
  76. <view class="title">备注</view>
  77. </view>
  78. <view class="descs" >{{report.remark}}</view>
  79. </view>
  80. </view> -->
  81. </view>
  82. <view class="sign">
  83. 医生签名
  84. <image :src="report.doctorSignUrl"></image>
  85. </view>
  86. <view class="sign">
  87. 药师签名
  88. <image :src="report.drugDoctorSignUrl"></image>
  89. </view>
  90. <view class="tips">
  91. 注:本次咨询,仅为针对患者当前身体情况的咨询问诊建议,不作为长期参考依据。
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </template>
  97. <script>
  98. import {getInquiryOrderReport} from '@/api/inquiryOrder.js'
  99. export default {
  100. data() {
  101. return {
  102. orderId:null,
  103. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  104. report:null,
  105. patient:null,
  106. };
  107. },
  108. onLoad(option) {
  109. this.orderId=option.orderId;
  110. this.getInquiryOrderReport();
  111. },
  112. onShow() {
  113. },
  114. methods:{
  115. getInquiryOrderReport(){
  116. let data = {orderId:this.orderId};
  117. getInquiryOrderReport(data).then(
  118. res => {
  119. if(res.code==200){
  120. if(data!=null){
  121. console.log(res.data)
  122. this.report=res.data;
  123. if(res.data.patientJson!=null){
  124. this.patient=JSON.parse(res.data.patientJson)
  125. }
  126. if(res.data.conditioningPlanJson!=null){
  127. this.report.conditioningPlan=JSON.parse(res.data.conditioningPlanJson)
  128. var list=[]
  129. this.report.conditioningPlan.forEach((item,index)=>{
  130. if(item.value!=""){
  131. list.push(item)
  132. }
  133. })
  134. this.report.conditioningPlan=list;
  135. }
  136. console.log(this.patient)
  137. }
  138. }
  139. },
  140. rej => {}
  141. );
  142. },
  143. goBack(){
  144. uni.navigateBack()
  145. }
  146. }
  147. }
  148. </script>
  149. <style lang="scss">
  150. page{
  151. background-color: #FDF7F0;
  152. height: 100%;
  153. }
  154. .content{
  155. .cont{
  156. position: relative;
  157. width: 100%;
  158. display: flex;
  159. flex-direction: column;
  160. .bg{
  161. width: 100%;
  162. height:650rpx;
  163. // background-color: #2BC7B9;
  164. // background: linear-gradient(#2BC7B9, #88e2da);
  165. position: fixed;
  166. image{
  167. width: 100%;
  168. height:100%;
  169. }
  170. z-index: 1;
  171. }
  172. .top-box{
  173. width: 100%;
  174. position: fixed;
  175. top: 0;
  176. left: 0;
  177. z-index: 1001;
  178. .top-title{
  179. height: 88upx;
  180. // line-height: 88upx;
  181. display: flex;
  182. align-items: center;
  183. justify-content: center;
  184. position: relative;
  185. image{
  186. position: absolute;
  187. left:15rpx;
  188. width:44rpx;
  189. height:44rpx;
  190. }
  191. .title{
  192. font-size: 32upx;
  193. font-family: PingFang SC;
  194. font-weight: bold;
  195. color: #ffffff;
  196. }
  197. }
  198. }
  199. .cont-box{
  200. z-index: 1000;
  201. margin-top: 88rpx;
  202. .user{
  203. width: 100%;
  204. display: flex;
  205. flex-direction: column;
  206. align-items: center;
  207. justify-content: center;
  208. padding: 30rpx;
  209. image{
  210. border-radius: 50%;
  211. border: 2rpx solid #ffffff;
  212. width:120rpx;
  213. height:120rpx;
  214. }
  215. .user-box{
  216. padding: 30rpx;
  217. display: flex;
  218. align-items: center;
  219. justify-content: center;
  220. .sex{
  221. font-size: 28supx;
  222. font-family: PingFang SC;
  223. color: #ffffff;
  224. }
  225. .username{
  226. margin-left: 15rpx;
  227. font-size: 28supx;
  228. font-family: PingFang SC;
  229. color: #ffffff;
  230. }
  231. }
  232. }
  233. .items{
  234. width: 100%;
  235. display: flex;
  236. flex-direction: column;
  237. align-items: flex-start;
  238. justify-content: flex-start;
  239. padding: 20rpx;
  240. .result-box{
  241. width: 100%;
  242. display: flex;
  243. flex-direction: column;
  244. align-items:center;
  245. justify-content: center;
  246. padding: 30rpx;
  247. background-color: #fff;
  248. border-radius: 15rpx;
  249. margin-bottom: 15rpx;
  250. .time{
  251. margin-top: 15rpx;
  252. font-family: PingFang SC;
  253. font-size: 24rpx;
  254. color: #9B9B9B;
  255. }
  256. .title{
  257. margin-top: 15rpx;
  258. font-family: PingFang SC;
  259. font-size: 28rpx;
  260. color: #626468;
  261. }
  262. .name{
  263. margin-top: 30rpx;
  264. font-family: PingFang SC;
  265. font-weight: bold;
  266. font-size: 38rpx;
  267. color: #DF6440;
  268. }
  269. .descs{
  270. font-family: PingFang SC;
  271. font-size: 28rpx;
  272. color: #2A2B2E;
  273. padding: 30rpx;
  274. margin-top: 30rpx;
  275. background-color: #F5F6F6;
  276. border-radius: 10rpx;
  277. }
  278. }
  279. .item-box{
  280. width: 100%;
  281. .item{
  282. width: 100%;
  283. padding: 30rpx;
  284. background-color: #fff;
  285. border-radius:30rpx;
  286. .title-box{
  287. display: flex;
  288. align-items:center;
  289. justify-content: flex-start;
  290. .title{
  291. margin-left: 10rpx;
  292. font-size: 32supx;
  293. font-family: PingFang SC;
  294. color: #2A2B2E;
  295. font-weight: bold;
  296. }
  297. .title-line{
  298. width: 8rpx;
  299. height: 28rpx;
  300. background: #C39A58;
  301. border-radius: 2px 2px 2px 2px;
  302. opacity: 1;
  303. }
  304. }
  305. .descs{
  306. white-space: pre-line;
  307. margin-top: 10rpx;
  308. font-size: 28supx;
  309. font-family: PingFang SC;
  310. color: #2A2B2E;
  311. }
  312. }
  313. .line{
  314. margin: 0rpx 30rpx;
  315. border-bottom: #b5b5b5 3rpx dashed;
  316. }
  317. &:last-child{
  318. .line{
  319. margin: 0rpx 30rpx;
  320. border-bottom:none;
  321. }
  322. }
  323. }
  324. }
  325. .sign{
  326. width: 100%;
  327. display: flex;
  328. align-items: center;
  329. justify-content: center;
  330. margin: 15rpx 0rpx;
  331. color: #9B9B9B;
  332. font-size: 24rpx;
  333. image{
  334. margin-left: 20rpx;
  335. width: 240rpx;
  336. height: 100rpx;
  337. }
  338. }
  339. .tips{
  340. width: 100%;
  341. display: flex;
  342. align-items: center;
  343. justify-content: center;
  344. margin: 15rpx 0rpx;
  345. color: #9B9B9B;
  346. font-size: 24rpx;
  347. }
  348. }
  349. }
  350. }
  351. </style>