inquiryOrderReport.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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://zkzh-2025.oss-cn-beijing.aliyuncs.com/appimgs/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" :key="index">
  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 class="descs" v-if="item.value !== null && item.value !== undefined"
  62. v-html="item.value.replace(/\\n/g, '<br>')">
  63. </view>
  64. <view class="descs" v-else>数据加载中...</view>
  65. </view>
  66. <view class="line"></view>
  67. </view>
  68. </view>
  69. <view class="sign">
  70. {{report.deptId==39?'药师':"医生"}}签名
  71. <image :src="report.doctorSignUrl"></image>
  72. </view>
  73. <view class="tips">
  74. 注:本次会诊,仅为针对患者当前身体情况的咨询问诊建议,不作为长期参考依据。
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. import {getInquiryOrderReport} from '@/api/inquiryOrder.js'
  82. export default {
  83. data() {
  84. return {
  85. orderId:null,
  86. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  87. report:null,
  88. patient:null,
  89. };
  90. },
  91. onLoad(option) {
  92. this.orderId=option.orderId;
  93. console.log("qxj orderId:"+this.orderId);
  94. this.getInquiryOrderReport();
  95. },
  96. onShow() {
  97. },
  98. methods:{
  99. getInquiryOrderReport(){
  100. let data = {orderId:this.orderId};
  101. getInquiryOrderReport(data).then(res => {
  102. if(res.code==200){
  103. if(data!=null){
  104. this.report=res.data;
  105. if(res.data.patientJson!=null){
  106. this.patient=JSON.parse(res.data.patientJson)
  107. }
  108. if(res.data.conditioningPlanJson!=null){
  109. this.report.conditioningPlan=JSON.parse(res.data.conditioningPlanJson)
  110. }
  111. console.log(this.patient);
  112. }
  113. }
  114. },
  115. rej => {}
  116. );
  117. },
  118. goBack(){
  119. uni.navigateBack()
  120. }
  121. }
  122. }
  123. </script>
  124. <style lang="scss">
  125. page{
  126. background-color: #FDF7F0;
  127. height: 100%;
  128. }
  129. .content{
  130. .cont{
  131. position: relative;
  132. width: 100%;
  133. display: flex;
  134. flex-direction: column;
  135. .bg{
  136. width: 100%;
  137. height:650rpx;
  138. background-color: #2583EB;
  139. background: linear-gradient(#2583EB, #E0F5FF);
  140. position: fixed;
  141. image{
  142. width: 100%;
  143. height:100%;
  144. }
  145. z-index: 1;
  146. }
  147. .top-box{
  148. width: 100%;
  149. position: fixed;
  150. top: 0;
  151. left: 0;
  152. z-index: 1001;
  153. .top-title{
  154. height: 88upx;
  155. // line-height: 88upx;
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. position: relative;
  160. image{
  161. position: absolute;
  162. left:15rpx;
  163. width:44rpx;
  164. height:44rpx;
  165. }
  166. .title{
  167. font-size: 32upx;
  168. font-family: PingFang SC;
  169. font-weight: bold;
  170. color: #ffffff;
  171. }
  172. }
  173. }
  174. .cont-box{
  175. z-index: 1000;
  176. margin-top: 88rpx;
  177. .user{
  178. width: 100%;
  179. display: flex;
  180. flex-direction: column;
  181. align-items: center;
  182. justify-content: center;
  183. padding: 30rpx;
  184. image{
  185. border-radius: 50%;
  186. border: 2rpx solid #ffffff;
  187. width:120rpx;
  188. height:120rpx;
  189. }
  190. .user-box{
  191. padding: 30rpx;
  192. display: flex;
  193. align-items: center;
  194. justify-content: center;
  195. .sex{
  196. font-size: 28supx;
  197. font-family: PingFang SC;
  198. color: #ffffff;
  199. }
  200. .username{
  201. margin-left: 15rpx;
  202. font-size: 28supx;
  203. font-family: PingFang SC;
  204. color: #ffffff;
  205. }
  206. }
  207. }
  208. .items{
  209. width: 100%;
  210. display: flex;
  211. flex-direction: column;
  212. align-items: flex-start;
  213. justify-content: flex-start;
  214. padding: 20rpx;
  215. .result-box{
  216. width: 100%;
  217. display: flex;
  218. flex-direction: column;
  219. align-items:center;
  220. justify-content: center;
  221. padding: 30rpx;
  222. background-color: #fff;
  223. border-radius: 15rpx;
  224. margin-bottom: 15rpx;
  225. .time{
  226. margin-top: 15rpx;
  227. font-family: PingFang SC;
  228. font-size: 24rpx;
  229. color: #9B9B9B;
  230. }
  231. .title{
  232. margin-top: 15rpx;
  233. font-family: PingFang SC;
  234. font-size: 28rpx;
  235. color: #626468;
  236. }
  237. .name{
  238. margin-top: 30rpx;
  239. font-family: PingFang SC;
  240. font-weight: bold;
  241. font-size: 38rpx;
  242. color: #DF6440;
  243. }
  244. .descs{
  245. font-family: PingFang SC;
  246. font-size: 28rpx;
  247. color: #2A2B2E;
  248. padding: 30rpx;
  249. margin-top: 30rpx;
  250. background-color: #F5F6F6;
  251. border-radius: 10rpx;
  252. }
  253. }
  254. .item-box{
  255. width: 100%;
  256. .item{
  257. width: 100%;
  258. padding: 30rpx;
  259. background-color: #fff;
  260. border-radius:30rpx;
  261. .title-box{
  262. display: flex;
  263. align-items:center;
  264. justify-content: flex-start;
  265. .title{
  266. margin-left: 10rpx;
  267. font-size: 32supx;
  268. font-family: PingFang SC;
  269. color: #2A2B2E;
  270. font-weight: bold;
  271. }
  272. .title-line{
  273. width: 8rpx;
  274. height: 28rpx;
  275. background: #2583EB;
  276. border-radius: 2px 2px 2px 2px;
  277. opacity: 1;
  278. }
  279. }
  280. .descs{
  281. white-space: pre-line;
  282. margin-top: 10rpx;
  283. font-size: 28supx;
  284. font-family: PingFang SC;
  285. color: #2A2B2E;
  286. }
  287. }
  288. .line{
  289. margin: 0rpx 30rpx;
  290. border-bottom: #b5b5b5 3rpx dashed;
  291. }
  292. }
  293. }
  294. .sign{
  295. width: 100%;
  296. display: flex;
  297. align-items: center;
  298. justify-content: center;
  299. margin: 15rpx 0rpx;
  300. color: #9B9B9B;
  301. font-size: 24rpx;
  302. image{
  303. margin-left: 20rpx;
  304. width: 240rpx;
  305. height: 100rpx;
  306. }
  307. }
  308. .tips{
  309. width: 100%;
  310. display: flex;
  311. align-items: center;
  312. justify-content: center;
  313. margin: 15rpx 0rpx;
  314. color: #9B9B9B;
  315. font-size: 24rpx;
  316. padding:0 24rpx;
  317. margin-bottom: 20rpx;
  318. }
  319. }
  320. }
  321. }
  322. </style>