Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

printTwo.vue 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <div id='prescription-print' class="prescription-print">
  3. <div class="printTitle">血液透析中心处方笺</div>
  4. <div class="infoTitle">
  5. <p>姓名:{{patient.name}}</p>
  6. <p>性别:
  7. <span v-if="patient.gender == 1">男</span>
  8. <span v-if="patient.gender == 2">女</span>
  9. </p>
  10. <p>年龄:{{patient.age}}岁</p>
  11. </div>
  12. <div class="infoMain">
  13. <p style="margin-bottom: 10px;">门诊号:</p>
  14. <p style="margin-bottom: 10px;">科室:</p>
  15. <p style="margin-bottom: 10px;">医保卡号:</p>
  16. <p style="margin-bottom: 10px;">电话:{{patient.phone}}</p>
  17. <p>地址:{{patient.home_address}}</p>
  18. <p>临床诊断:{{patient.diagnose}}</p>
  19. </div>
  20. <div class="prescriptionBox">
  21. <p class="Rp">Rp:</p>
  22. <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
  23. <p class="drugsOne">{{item.advice_name}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
  24. <p style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></p>
  25. </div>
  26. </div>
  27. <div class="doctorBox">
  28. <p>医师:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
  29. <p>日期:{{getTime(advicePrint[0].advice_date)}}</p>
  30. </div>
  31. <div class="actionBar">
  32. <p>审核:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
  33. <p>配对:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
  34. <p>核对:{{getDoctor(advicePrint[0].checker)}}</p>
  35. <p>发药:{{getDoctor(advicePrint[0].execution_staff)}}</p>
  36. <p>药费:{{advicePrint[0].price}}</p>
  37. </div>
  38. </div>
  39. </template>
  40. <script>
  41. import { jsGetAge, uParseTime } from '@/utils/tools'
  42. import {getAllDoctorList} from "@/api/project/project"
  43. export default {
  44. props:{
  45. patient:Object,
  46. advicePrint:Array,
  47. hisPatient:Object,
  48. },
  49. data(){
  50. return{
  51. doctorList:[]
  52. }
  53. },
  54. methods:{
  55. getAllDoctorList(){
  56. getAllDoctorList().then(response=>{
  57. if(response.data.state == 1){
  58. var doctor = response.data.data.doctor
  59. this.doctorList = doctor
  60. }
  61. })
  62. },
  63. getDoctor(id){
  64. var name = ""
  65. for(let i=0;i<this.doctorList.length;i++){
  66. if(id == this.doctorList[i].admin_user_id){
  67. name = this.doctorList[i].user_name
  68. }
  69. }
  70. return name
  71. },
  72. getTime(value, temp) {
  73. if (value != undefined) {
  74. return uParseTime(value, temp)
  75. }
  76. return ''
  77. },
  78. },
  79. created(){
  80. this.getAllDoctorList()
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .printTitle{
  86. font-size: 22px;
  87. text-align: center;
  88. font-weight: bold;
  89. }
  90. .infoTitle{
  91. display: flex;
  92. border-bottom: 2px solid #000;
  93. margin-top:10px;
  94. line-height: 24px;
  95. padding:0 10px;
  96. }
  97. .infoTitle p{
  98. width: 200px;
  99. }
  100. .infoMain{
  101. display: flex;
  102. flex-wrap: wrap;
  103. border-bottom: 2px solid #000;
  104. padding:0 10px;
  105. }
  106. .infoMain p{
  107. width: 50%;
  108. line-height: 24px;
  109. }
  110. .prescriptionBox{
  111. padding:0 10px;
  112. height:600px;
  113. }
  114. .Rp{
  115. font-size: 22px;
  116. font-weight: bold;
  117. }
  118. .drugsBox{
  119. padding-left: 40px;
  120. margin-bottom: 10px;
  121. }
  122. .drugsBox p{
  123. line-height: 30px;
  124. }
  125. .drugsOne{
  126. line-height: 24px;
  127. }
  128. .drugsOne span{
  129. margin-right: 20px;
  130. }
  131. .doctorBox{
  132. display: flex;
  133. justify-content: space-between;
  134. padding:0 10px;
  135. line-height: 24px;
  136. border-bottom: 2px solid #000;
  137. }
  138. .actionBar{
  139. display: flex;
  140. justify-content: space-between;
  141. line-height: 24px;
  142. padding:0 10px;
  143. }
  144. .actionBar p{
  145. width:150px;
  146. }
  147. </style>