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

dialysisParameters_print.vue 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-row style="float:right;">
  6. <el-col :span="24">
  7. <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
  8. </el-col>
  9. </el-row>
  10. </div>
  11. <div class="app-container" style="background-color: white;">
  12. <div id="print_content">
  13. <div class="print_main_content">
  14. <div class="order_title_panl">
  15. <span class="main_title">透析参数打印单</span>
  16. </div>
  17. <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
  18. <p>打印单日期:{{nowDate}}</p>
  19. </div>
  20. <div class="table_panel">
  21. <table class="table">
  22. <thead>
  23. <tr>
  24. <td width="50">姓名</td>
  25. <td width="50">透析模式</td>
  26. <td width="50">上次透后体重(kg)</td>
  27. <td width="50">透前体重(kg)</td>
  28. <td width="50">干体重(kg)</td>
  29. <td width="50">透前血压(mmhg)</td>
  30. <td width="50">目标超滤量</td>
  31. <td width="50">血流量(ml/min)</td>
  32. <td width="50">抗凝剂(首剂)(维持)(总量)</td>
  33. <td width="50">透析器/灌流器</td>
  34. </tr>
  35. <tr v-for="(item,index) in tableData" :key="index">
  36. <td>{{item.patient.name}}</td>
  37. <td>{{item.treatment_mode.name}}</td>
  38. <td>{{getLastWeight(item.patient.id)?getLastWeight(item.patient.id):''}}</td>
  39. <td>{{getWeightBefor(item.patient.id)?getWeightBefor(item.patient.id):''}}</td>
  40. <td>{{getDryWeight(item.patient.id)?getDryWeight(item.patient.id):''}}</td>
  41. <td>{{getSysBloodPressure(item.patient.id)?getSysBloodPressure(item.patient.id):''}}</td>
  42. <td>{{getTargetUltrafiltration(item.patient.id)?getTargetUltrafiltration(item.patient.id):''}}</td>
  43. <td>{{getBloodFlowVolume(item.patient.id)?getBloodFlowVolume(item.patient.id):''}}</td>
  44. <td>
  45. <span>
  46. <span v-if="getAnticoagulant(item.patient.id) == 0"></span>
  47. <span v-if="getAnticoagulant(item.patient.id) == 1">无肝素</span>
  48. <span v-if="getAnticoagulant(item.patient.id) == 2">普通肝素</span>
  49. <span v-if="getAnticoagulant(item.patient.id) == 3">低分子肝素</span>
  50. <span v-if="getAnticoagulant(item.patient.id) == 4">阿加曲班</span>
  51. <span v-if="getAnticoagulant(item.patient.id) == 5">枸橼酸钠</span>
  52. <span v-if="getAnticoagulant(item.patient.id) == 6">低分子肝素钙</span>
  53. <span v-if="getAnticoagulant(item.patient.id) == 7">低分子肝素钠</span>
  54. <span v-if="getAnticoagulant(item.patient.id) == 8">依诺肝素</span>
  55. <span v-if="getAnticoagulant(item.patient.id) == 9">达肝素</span>
  56. <span v-if="getAnticoagulant(item.patient.id) == 10">体外抗凝</span>
  57. </span>
  58. <span>
  59. {{getAnticoagulantShouji(item.patient.id)?getAnticoagulantShouji(item.patient.id):''}}
  60. <span v-if="getAnticoagulant(item.patient.id) == 1 && getAnticoagulantShouji(item.patient.id)!=''">mg</span>
  61. <span v-if="getAnticoagulant(item.patient.id) == 2 && getAnticoagulantShouji(item.patient.id)!=''">iu/h</span>
  62. <span v-if="getAnticoagulant(item.patient.id) == 3 && getAnticoagulantShouji(item.patient.id)!=''">iu</span>
  63. <span v-if="getAnticoagulant(item.patient.id) == 4 && getAnticoagulantShouji(item.patient.id)!=''">mg</span>
  64. <span v-if="getAnticoagulant(item.patient.id)== 5 && getAnticoagulantShouji(item.patient.id)!=''">mg</span>
  65. <span v-if="getAnticoagulant(item.patient.id) == 6 && getAnticoagulantShouji(item.patient.id)!=''">iu</span>
  66. <span v-if="getAnticoagulant(item.patient.id) == 7 && getAnticoagulantShouji(item.patient.id)!=''">iu</span>
  67. <span v-if="getAnticoagulant(item.patient.id) == 8 && getAnticoagulantShouji(item.patient.id)!=''">iu</span>
  68. <span v-if="getAnticoagulant(item.patient.id) == 9 &&getAnticoagulantShouji(item.patient.id)!=''">iu</span>
  69. <span v-if="getAnticoagulant(item.patient.id) == 10 && getAnticoagulantShouji(item.patient.id)!=''">mg</span>
  70. </span>
  71. <span>
  72. {{getAnticoagulantWeichi(item.patient.id)?getAnticoagulantWeichi(item.patient.id):''}}
  73. <span v-if="getAnticoagulant(item.patient.id) == 1 && getAnticoagulantWeichi(item.patient.id)!=''">mg/h</span>
  74. <span v-if="getAnticoagulant(item.patient.id) == 2 && getAnticoagulantWeichi(item.patient.id)!=''">iu/h</span>
  75. <span v-if="getAnticoagulant(item.patient.id) == 3 && getAnticoagulantWeichi(item.patient.id)!=''">iu/h</span>
  76. <span v-if="getAnticoagulant(item.patient.id) == 4 && getAnticoagulantWeichi(item.patient.id)!=''">mg/h</span>
  77. <span v-if="getAnticoagulant(item.patient.id) == 5 && getAnticoagulantWeichi(item.patient.id)!=''">ml/h</span>
  78. <span v-if="getAnticoagulant(item.patient.id) == 6 && getAnticoagulantWeichi(item.patient.id)!=''">iu/h</span>
  79. <span v-if="getAnticoagulant(item.patient.id) == 7 && getAnticoagulantWeichi(item.patient.id)!=''">iu/h</span>
  80. <span v-if="getAnticoagulant(item.patient.id) == 8 && getAnticoagulantWeichi(item.patient.id)!=''">iu/h</span>
  81. <span v-if="getAnticoagulant(item.patient.id) == 9 && getAnticoagulantWeichi(item.patient.id)!=''">iu/h</span>
  82. <span v-if="getAnticoagulant(item.patient.id) == 10 && getAnticoagulantWeichi(item.patient.id)!=''">mg</span>
  83. </span>
  84. <span>
  85. {{getAnticoagulantZongliang(item.patient.id)?getAnticoagulantZongliang(item.patient.id):''}}
  86. <span v-if="getAnticoagulant(item.patient.id) == 1 && getAnticoagulantZongliang(item.patient.id)!=''">mg</span>
  87. <span v-if="getAnticoagulant(item.patient.id) == 2 && getAnticoagulantZongliang(item.patient.id)!=''">iu</span>
  88. <span v-if="getAnticoagulant(item.patient.id) == 3 && getAnticoagulantZongliang(item.patient.id)!=''">iu</span>
  89. <span v-if="getAnticoagulant(item.patient.id)== 4 && getAnticoagulantZongliang(item.patient.id)!=''">mg</span>
  90. <span v-if="getAnticoagulant(item.patient.id) == 5 && getAnticoagulantZongliang(item.patient.id)!=''">mg</span>
  91. <span v-if="getAnticoagulant(item.patient.id) == 6 && getAnticoagulantZongliang(item.patient.id)!=''">iu/h</span>
  92. <span v-if="getAnticoagulant(item.patient.id) == 7 && getAnticoagulantZongliang(item.patient.id)!=''">iu</span>
  93. <span v-if="getAnticoagulant(item.patient.id) == 8 && getAnticoagulantZongliang(item.patient.id)!=''">iu</span>
  94. <span v-if="getAnticoagulant(item.patient.id) == 9 && getAnticoagulantZongliang(item.patient.id)!=''">iu/h</span>
  95. <span v-if="getAnticoagulant(item.patient.id) == 10 && getAnticoagulantZongliang(item.patient.id)!=''">mg</span>
  96. </span>
  97. </td>
  98. <td>
  99. <span>{{getDialyzerPerfusionApparatus(item.patient.id)?getDialyzerPerfusionApparatus(item.patient.id):''}}</span></td>
  100. </tr>
  101. </thead>
  102. </table>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </template>
  109. <script>
  110. const moment = require('moment')
  111. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  112. import print from 'print-js'
  113. import {getDialysisBatchParameters} from '@/api/consumable'
  114. export default {
  115. components:{
  116. BreadCrumb
  117. },
  118. data(){
  119. return{
  120. crumbs: [
  121. { path: false, name: '耗材药品' },
  122. { path: false, name: '打印' }
  123. ],
  124. tableData:[],
  125. nowDate:"",
  126. start_time:"",
  127. prescriptionList:[],
  128. dialysisBefor:[]
  129. }
  130. },
  131. methods:{
  132. printAction: function() {
  133. const style = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
  134. printJS({
  135. printable: 'print_content',
  136. type: 'html',
  137. documentTitle: ' ',
  138. style: style,
  139. scanStyles: false
  140. })
  141. },
  142. getLastWeight(id){
  143. var lastweight = ""
  144. for(let i=0;i<this.dialysisBefor.length;i++){
  145. if(this.dialysisBefor[i].patient_id == id){
  146. lastweight = this.dialysisBefor[i].weight_after_last_transparency
  147. }
  148. }
  149. return lastweight
  150. },
  151. getWeightBefor(id){
  152. var assessmentBeforWeight = ""
  153. for(let i=0;i<this.dialysisBefor.length;i++){
  154. if(this.dialysisBefor[i].patient_id == id){
  155. assessmentBeforWeight = this.dialysisBefor[i].weight_before
  156. }
  157. }
  158. return assessmentBeforWeight
  159. },
  160. getDryWeight(id){
  161. var dryWeight = ""
  162. for(let i=0;i<this.dialysisBefor.length;i++){
  163. if(this.dialysisBefor[i].patient_id == id){
  164. dryWeight = this.dialysisBefor[i].dry_weight
  165. }
  166. }
  167. return dryWeight
  168. },
  169. getSysBloodPressure(id){
  170. var sysBloodPressure = ""
  171. for(let i=0;i<this.dialysisBefor.length;i++){
  172. if(this.dialysisBefor[i].patient_id == id){
  173. sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
  174. }
  175. }
  176. return sysBloodPressure
  177. },
  178. getTargetUltrafiltration(id){
  179. var targetUltrafiltration = ""
  180. for(let i=0;i<this.prescriptionList.length;i++){
  181. if(this.prescriptionList[i].patient_id == id){
  182. targetUltrafiltration = this.prescriptionList[i].target_ultrafiltration
  183. }
  184. }
  185. return targetUltrafiltration
  186. },
  187. getBloodFlowVolume(id){
  188. var bloodFlowVolume = ""
  189. for(let i=0;i<this.prescriptionList.length;i++){
  190. if(this.prescriptionList[i].patient_id == id){
  191. bloodFlowVolume = this.prescriptionList[i].blood_flow_volume
  192. }
  193. }
  194. return bloodFlowVolume
  195. },
  196. getDialyzerPerfusionApparatus(id){
  197. var dialyzerPerfusionApparatus = ""
  198. for(let i=0;i<this.prescriptionList.length;i++){
  199. if(this.prescriptionList[i].patient_id == id){
  200. dialyzerPerfusionApparatus = this.prescriptionList[i].dialyzer_perfusion_apparatus
  201. }
  202. }
  203. return dialyzerPerfusionApparatus
  204. },
  205. getAnticoagulant(id){
  206. var anticoagulant = ""
  207. for(let i=0;i<this.prescriptionList.length;i++){
  208. if(this.prescriptionList[i].patient_id == id){
  209. anticoagulant = this.prescriptionList[i].anticoagulant
  210. }
  211. }
  212. return anticoagulant
  213. },
  214. getAnticoagulantShouji(id){
  215. var shouji = ""
  216. for(let i=0;i<this.prescriptionList.length;i++){
  217. if(this.prescriptionList[i].patient_id == id){
  218. shouji = this.prescriptionList[i].anticoagulant_shouji
  219. }
  220. }
  221. return shouji
  222. },
  223. getAnticoagulantWeichi(id){
  224. var weichi = ""
  225. for(let i=0;i<this.prescriptionList.length;i++){
  226. if(this.prescriptionList[i].patient_id == id){
  227. weichi = this.prescriptionList[i].anticoagulant_weichi
  228. }
  229. return weichi
  230. }
  231. },
  232. getAnticoagulantZongliang(id){
  233. var zongliang = ""
  234. for(let i=0;i<this.prescriptionList.length;i++){
  235. if(this.prescriptionList[i].patient_id == id){
  236. zongliang = this.prescriptionList[i].anticoagulant_zongliang
  237. }
  238. }
  239. return zongliang
  240. }
  241. },
  242. created(){
  243. var nowDate = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  244. this.nowDate = nowDate
  245. var startime = this.$route.query.startime
  246. console.log("startime",startime)
  247. this.start_time = startime
  248. },
  249. mounted(){
  250. var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
  251. console.log("打印数据",ids)
  252. getDialysisBatchParameters(ids.join(','),this.start_time).then(response=>{
  253. if(response.data.state == 1){
  254. var schedule = response.data.data.schedule
  255. console.log("schedule",schedule)
  256. this.tableData = schedule
  257. var prescription = response.data.data.prescription
  258. this.prescriptionList = prescription
  259. console.log("prescription",prescription)
  260. var dialysbefor = response.data.data.dialysbefor
  261. console.log("dialysbefor",dialysbefor)
  262. this.dialysisBefor = dialysbefor
  263. }
  264. })
  265. }
  266. }
  267. </script>
  268. <style rel="stylesheet/scss" lang="scss" scoped>
  269. .print_main_content {
  270. background-color: white;
  271. max-width: 1500px;
  272. margin: 0 auto;
  273. padding: 0 0 20px 0;
  274. .order_title_panl {
  275. text-align: center;
  276. .main_title {
  277. font-size: 18px;
  278. line-height: 40px;
  279. font-weight: 500;
  280. }
  281. }
  282. .table_panel {
  283. .table {
  284. width: 100%;
  285. border: 1px solid;
  286. border-collapse: collapse;
  287. padding: 2px;
  288. thead {
  289. tr {
  290. td {
  291. border: 1px solid;
  292. text-align: center;
  293. font-size: 14px;
  294. padding: 15px 5px;
  295. }
  296. }
  297. }
  298. tbody {
  299. tr {
  300. td {
  301. border: 1px solid;
  302. text-align: center;
  303. font-size: 14px;
  304. padding: 10px 5px;
  305. .proj {
  306. padding: 5px 0;
  307. text-align: left;
  308. .proj_title {
  309. font-size: 16px;
  310. font-weight: 500;
  311. line-height: 25px;
  312. }
  313. .proj_item {
  314. font-size: 15px;
  315. line-height: 20px;
  316. .zone_name {
  317. font-weight: 500;
  318. }
  319. }
  320. }
  321. }
  322. }
  323. }
  324. }
  325. }
  326. }
  327. </style>