inquiryOrderReport.vue 7.5 KB

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