medical-records-detail.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>住院病历</title>
  6. <link rel="stylesheet" href="../../../css/bootstrap.min.css" />
  7. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css"/>
  8. <link rel="stylesheet" type="text/css" href="../../../css/cross.css"/>
  9. <link rel="stylesheet" href="../../../plugins/toastr/toastr.min.css">
  10. <link rel="stylesheet" href="../css/common.css" />
  11. </head>
  12. <body>
  13. <div id="app" v-cloak>
  14. <div class="p15" style="padding-left: 50px;">
  15. <div class="flex vc ptb15">
  16. <span class="c-666 c-f15 mr10" style="width: 90px;">姓&emsp;&emsp;名:</span>
  17. <div class="flex1 c-333 c-f15">
  18. {{model.patientName}}
  19. </div>
  20. </div>
  21. <div class="flex vc ptb15" v-if="model.admissionTime">
  22. <span class="c-666 c-f15 mr10" style="width: 90px;">入院时间:</span>
  23. <div class="flex1 c-333 c-f15">
  24. {{model.admissionTime}}
  25. </div>
  26. </div>
  27. <div class="flex vc ptb15" v-if="model.admittingDiagnosisName">
  28. <span class="c-666 c-f15 mr10" style="width: 90px;">入院诊断:</span>
  29. <div class="flex1 c-333 c-f15">
  30. {{model.admittingDiagnosisName}}
  31. </div>
  32. </div>
  33. <div class="flex vc ptb15" v-if="model.dischargeTime">
  34. <span class="c-666 c-f15 mr10" style="width: 90px;">出院时间:</span>
  35. <div class="flex1 c-333 c-f15">
  36. {{model.dischargeTime}}
  37. </div>
  38. </div>
  39. <div class="flex vc ptb15" v-if="model.dischargeDiagnosisName">
  40. <span class="c-666 c-f15 mr10" style="width: 90px;">出院诊断:</span>
  41. <div class="flex1 c-333 c-f15">
  42. {{model.dischargeDiagnosisName}}
  43. </div>
  44. </div>
  45. <div class="flex vc ptb15" v-if="model.advice">
  46. <span class="c-666 c-f15 mr10" style="width: 90px;">医嘱小结:</span>
  47. <div class="flex1 c-333 c-f15">
  48. {{model.advice}}
  49. </div>
  50. </div>
  51. <div class="flex ptb15" v-if="model.imgList&&model.imgList.length">
  52. <span class="c-666 c-f15 mr10" style="width: 90px;">病历图片:</span>
  53. <div v-if="model.imgList.length>0" class="flex1 c-333 c-f15">
  54. <img :src="item" v-for="item in model.imgList" width="85px" height="85px" class="mr10 mb10"/>
  55. </div>
  56. <div v-else class="flex1 c-999 c-f15">
  57. 暂无图片
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <script type="text/javascript" src="../../../js/vue.js"></script>
  63. <script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
  64. <script type="text/javascript" src="../../../js/es6-promise.js" charset="utf-8"></script>
  65. <script type="text/javascript" src="../../../plugins/toastr/toastr.min.js"></script>
  66. <script type="text/javascript" src="../../../api/http-request.js"></script>
  67. <script type="text/javascript" src="../../../api/rehabilitation-api.js"></script>
  68. <script type="text/javascript" src="../../../js/util.js" charset="utf-8"></script>
  69. <script type="text/javascript" src="../../../plugins/layer/layer.min.js" ></script>
  70. <script>
  71. var httpData = GetRequest()
  72. new Vue({
  73. el:"#app",
  74. data: {
  75. medicalRecordsCode: httpData['medicalRecordsCode'],
  76. model: undefined
  77. },
  78. mounted: function() {
  79. this.selectByMedicalCode(this.medicalRecordsCode)
  80. },
  81. methods: {
  82. // 获取住院病历
  83. selectByMedicalCode: function(medicalRecordsCode){
  84. var vm = this;
  85. var params = {
  86. medical: medicalRecordsCode
  87. };
  88. rehaAPI.selectByMedicalCode(params).then(function(res){
  89. if(res.status==200){
  90. vm.model = res.data[0]
  91. if(vm.model.images){
  92. var arr = vm.model.images || vm.model.images !='' ? vm.model.images.split(','):[]
  93. var arr1 = []
  94. $.each(arr, function(index, item){
  95. item = httpRequest.getImgUrl(item)
  96. arr1.push(item)
  97. return item
  98. })
  99. vm.model.imgList = arr1
  100. }
  101. }else {
  102. showErrorMessage(res.msg);
  103. }
  104. })
  105. },
  106. }
  107. })
  108. </script>
  109. </body>
  110. </html>