DialysisPrintOrdersixtySeven.vue 62KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636
  1. <template>
  2. <div>
  3. <div id="dialysis-print-box-1">
  4. <div
  5. id="dialysis-print-box-1-1"
  6. class="dialysis-print-order print-template-two print_page_main_content"
  7. >
  8. <div style="display: inline-block; width: 100%; text-align: center">
  9. <div
  10. class="order-yy-name"
  11. style="
  12. letter-spacing: 0;
  13. font-weight: 600;
  14. font-size: 22px;
  15. display: inline-block;
  16. "
  17. >
  18. {{ orgname }}
  19. </div>
  20. <div
  21. class="order-title"
  22. style="
  23. letter-spacing: 0;
  24. font-weight: 600;
  25. font-size: 22px;
  26. display: inline-block;
  27. "
  28. >
  29. 血液净化治疗记录单
  30. </div>
  31. <div class="infoTitle"> 透前情况</div>
  32. <div style="margin: 10px 0px;">
  33. <table class="table" border="1"
  34. style="border-collapse: collapse;text-align: left;width: 100%;
  35. ">
  36. <tr>
  37. <td>姓名:{{ patientInfo.name }}</td>
  38. <td>性别: {{ patientInfo_gender_1 ? "男" : "女" }}</td>
  39. <td>年龄:{{ getAge(patientInfo) }}岁</td>
  40. <td>门诊号: {{
  41. patientInfo.dialysis_no
  42. ? patientInfo.dialysis_no
  43. : "/"
  44. }}</td>
  45. </tr>
  46. <tr>
  47. <td>病床床号:
  48. <span>
  49. {{
  50. dialysisOrder &&
  51. dialysisOrder.DeviceNumber &&
  52. dialysisOrder.DeviceNumber.number.length > 0
  53. ? dialysisOrder.DeviceNumber.number
  54. : patientInfo.DialysisSchedule.device_number.number
  55. }}
  56. </span>
  57. </td>
  58. <td>治疗时间:{{getTime(prescription.record_date,"{y}-{m}-{d}") }}</td>
  59. <td>干体重:{{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg</td>
  60. <td>上次透后体重:
  61. {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}kg
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>透前体重:
  66. {{
  67. predialysis.weight_before ? predialysis.weight_before : "/"
  68. }}kg
  69. </td>
  70. <td>透析总次数:{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }}次</td>
  71. <td colspan="2">患者评估:
  72. 入科方式:
  73. <span v-if="receiverTreatmentAccess.way == 1">步行</span>
  74. <span v-if="receiverTreatmentAccess.way == 2">扶行</span>
  75. <span v-if="receiverTreatmentAccess.way == 3">轮椅</span>
  76. <span v-if="receiverTreatmentAccess.way == 4">平车</span>
  77. 意识:
  78. <span v-if="receiverTreatmentAccess.consciousness == 1">清醒</span>
  79. <span v-if="receiverTreatmentAccess.consciousness == 2">嗜睡</span>
  80. <span v-if="receiverTreatmentAccess.consciousness == 4">模糊</span>
  81. <span v-if="receiverTreatmentAccess.consciousness == 3">昏迷</span>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td colspan="4">
  86. <span style="width: 14%;">血管通路:{{ predialysis.blood_access_part_opera_name }}</span>
  87. <span style="width: 14%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">部位:{{ predialysis.blood_access_part_id }}</span>
  88. <div style="width: 20%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">
  89. <span>通路评估:内瘘:
  90. <span v-if="predialysis.internal_fistula.indexOf('自体内瘘') >-1">自体内瘘</span>
  91. <span v-if="predialysis.internal_fistula.indexOf('震颤-存在') >-1">震颤-存在</span>
  92. <span v-if="predialysis.internal_fistula.indexOf('震颤-减弱') >-1">震颤-减弱</span>
  93. <span v-if="predialysis.internal_fistula.indexOf('震颤-无') >-1">震颤-无</span>
  94. </span>
  95. </div>
  96. <!-- <span style="width: 14%;">震颤:</span>
  97. <span style="width: 14%;">外观:</span> -->
  98. <span style="width: 14%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">置换方式:
  99. {{
  100. getDisplaceLiquiPart(prescription.displace_liqui_part)
  101. }}
  102. </span>
  103. <span style="width: 14%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">置换总量:
  104. {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}L
  105. </span>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td colspan="4">
  110. <div>
  111. 透前生命体征:
  112. T <span>
  113. {{predialysis.temperature
  114. ? predialysis.temperature : "/"
  115. }} ℃
  116. </span>&nbsp;
  117. P <span>
  118. {{
  119. predialysis.pulse_frequency
  120. ? predialysis.pulse_frequency
  121. : "/"
  122. }}次/分
  123. </span>&nbsp;
  124. R <span>
  125. {{
  126. predialysis.breathing_rate
  127. ? predialysis.breathing_rate
  128. : "/"
  129. }}次/分
  130. </span>&nbsp;
  131. BP <span>
  132. {{predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/"}} /
  133. {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : '/' }}mmHg
  134. </span>&nbsp;
  135. </div>
  136. </td>
  137. </tr>
  138. </table>
  139. </div>
  140. <div class="infoTitle">透析处方</div>
  141. <div style="margin: 10px 0px;">
  142. <table class="table" border="1"
  143. style="border-collapse: collapse;text-align: left;width: 100%;
  144. ">
  145. <tr>
  146. <td>治疗模式:
  147. <span v-if="prescription.mode_id == 1">HD</span>
  148. <span v-if="prescription.mode_id == 2">HDF</span>
  149. <span v-if="prescription.mode_id == 3">HD+HP</span>
  150. <span v-if="prescription.mode_id == 4">HP</span>
  151. <span v-if="prescription.mode_id == 5">HF</span>
  152. <span v-if="prescription.mode_id == 6">SCUF</span>
  153. <span v-if="prescription.mode_id == 7">IUF</span>
  154. <span v-if="prescription.mode_id == 8">HFHD</span>
  155. <span v-if="prescription.mode_id == 9"> HFHD+HP</span>
  156. <span v-if="prescription.mode_id == 10">PHF</span>
  157. <span v-if="prescription.mode_id == 11">HFR</span>
  158. <span v-if="prescription.mode_id == 12">HDF+HP</span>
  159. <span v-if="prescription.mode_id == 13">CRRT</span>
  160. <span v-if="prescription.mode_id == 14">腹水回输</span>
  161. <span v-if="prescription.mode_id == 15">HD前置换</span>
  162. <span v-if="prescription.mode_id == 16">HD后置换</span>
  163. <span v-if="prescription.mode_id == 17">HDF前置换</span>
  164. <span v-if="prescription.mode_id == 18">HDF后置换</span>
  165. <span v-if="prescription.mode_id == 19"> IUF+HD</span>
  166. <span v-if="prescription.mode_id == 22"> 血浆胆红素吸附+HDF</span>
  167. <span v-if="prescription.mode_id == 23"> 血浆胆红素吸附</span>
  168. <span v-if="prescription.mode_id == 24">I-HDF</span>
  169. <span v-if="prescription.mode_id == 25"> HD高通</span>
  170. <span v-if="prescription.mode_id == 29"> PE</span>
  171. <span v-if="prescription.mode_id == 30">血浆胆红素吸附+HP</span>
  172. </td>
  173. <td>
  174. 透析时长:
  175. {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }} h
  176. {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }} min
  177. </td>
  178. <td>预超:{{prescription.target_ultrafiltration }}L</td>
  179. <td>血流量:{{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}ml/min</td>
  180. </tr>
  181. <tr>
  182. <td colspan="4">抗凝剂:
  183. {{prescription.anticoagulant_name?prescription.anticoagulant_name : "/"}}
  184. 首剂:{{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji: ""}}
  185. <span>
  186. <span v-if="prescription.anticoagulant == 4">iu</span>
  187. <span v-if="prescription.anticoagulant == 3">iu</span>
  188. <span v-if="prescription.anticoagulant == 2">mg</span>
  189. <span v-if="prescription.anticoagulant == 5">ml</span>
  190. <span v-if="prescription.anticoagulant == 6">iu</span>
  191. <span v-if="prescription.anticoagulant == 7">iu</span>
  192. <span v-if="prescription.anticoagulant == 8">iu</span>
  193. <span v-if="prescription.anticoagulant == 9">iu</span>
  194. <span v-if="prescription.anticoagulant == 10">iu</span>
  195. <span v-if="prescription.anticoagulant == 11">iu</span>
  196. <span v-if="prescription.anticoagulant == 13">iu</span>
  197. <span v-if="prescription.anticoagulant == 17">mg</span>
  198. </span>
  199. 维持:{{prescription.anticoagulant_weichi? prescription.anticoagulant_weichi : ""}}
  200. <span v-if="prescription.anticoagulant == 2">mg/h</span>
  201. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  202. <span v-if="prescription.anticoagulant == 4">ml</span>
  203. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  204. <span v-if="prescription.anticoagulant == 6">iu/h</span>
  205. <span v-if="prescription.anticoagulant == 7">iu/h</span>
  206. <span v-if="prescription.anticoagulant == 8">iu/h</span>
  207. <span v-if="prescription.anticoagulant == 9">iu/h</span>
  208. <span v-if="prescription.anticoagulant == 10">iu/h</span>
  209. <span v-if="prescription.anticoagulant == 11">iu/h</span>
  210. <span v-if="prescription.anticoagulant == 13">iu/h</span>
  211. <span v-if="prescription.anticoagulant == 17">mg/h</span>
  212. 总量:{{prescription.anticoagulant_zongliang? prescription.anticoagulant_zongliang: ""}}
  213. <span v-if="prescription.anticoagulant == 2">mg</span>
  214. <span v-if="prescription.anticoagulant == 3">iu</span>
  215. <span v-if="prescription.anticoagulant == 4">ml</span>
  216. <span v-if="prescription.anticoagulant == 5">ml</span>
  217. <span v-if="prescription.anticoagulant == 6">iu</span>
  218. <span v-if="prescription.anticoagulant == 7">iu</span>
  219. <span v-if="prescription.anticoagulant == 8">iu</span>
  220. <span v-if="prescription.anticoagulant == 9">iu</span>
  221. <span v-if="prescription.anticoagulant == 10">iu</span>
  222. <span v-if="prescription.anticoagulant == 11">iu</span>
  223. <span v-if="prescription.anticoagulant == 13">iu</span>
  224. <span v-if="prescription.anticoagulant == 17">mg</span>
  225. </td>
  226. </tr>
  227. <tr>
  228. <td colspan="2">透析机:{{predialysis.machine_type ? predialysis.machine_type : ""}}</td>
  229. <td colspan="2">透析器/灌流器:
  230. {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }}
  231. {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
  232. </td>
  233. </tr>
  234. <tr>
  235. <td colspan="4">
  236. <span style="width: 14%;">透析液:
  237. 流量: {{prescription.dialysate_flow?prescription.dialysate_flow:"" }} ml/min
  238. 温度: {{ prescription.dialysate_temperature }} ℃
  239. 钾:{{ prescription.kalium }} mmol/L
  240. 钠:{{ prescription.sodium }} mmol/L
  241. 钙:{{ prescription.calcium }} mmol/L
  242. 碳酸氢盐: {{ prescription.bicarbonate }} mmol/L
  243. CI : 109 mmol/L
  244. Mg: 0.5mmol/L
  245. </span>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td colspan="2"></td>
  250. <td colspan="2">
  251. 处方医生:
  252. <span
  253. style="height: 30px; display: inline-block">
  254. {{ getAdminUser(doctor_advices[0].advice_doctor) }}
  255. </span>
  256. <!-- <img
  257. style="height: 60px; width:30%"
  258. :src="setAdminUserES(doctor_advices[0].advice_doctor)"
  259. alt=""
  260. srcset=""
  261. v-else
  262. /> -->
  263. </td>
  264. </tr>
  265. </table>
  266. </div>
  267. <div class="infoTitle">透析记录</div>
  268. <div style="margin: 10px 0px;">
  269. <table class="table" border="1"
  270. style="border-collapse: collapse;width: 100%;"
  271. >
  272. <tr>
  273. <th rowspan="2" width="50">时间</th>
  274. <th colspan="3" style="text-align: center;">生命体征</th>
  275. <th colspan="7" style="text-align: center;">机器数据</th>
  276. <th rowspan="2" width="170">备注</th>
  277. <th rowspan="2" width="80">签名</th>
  278. </tr>
  279. <tr>
  280. <th width="70">血压<br>mmHg</th>
  281. <th width="40">呼吸<br>次/分</th>
  282. <th width="40">心率<br>次/分</th>
  283. <th width="50">血流量<br>ml/min</th>
  284. <th width="50">静脉压<br>mmHg</th>
  285. <th width="50">透析液<br>温度℃</th>
  286. <th width="50">置换率<br>L/h</th>
  287. <th width="50">超滤量<br>ml</th>
  288. <th width="50">超滤率<br>ml/h</th>
  289. <th width="50">电导率<br>ms/cm</th>
  290. </tr>
  291. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  292. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  293. <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
  294. {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
  295. <td>{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
  296. <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
  297. <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
  298. <td>{{monitor.venous_pressure? monitor.venous_pressure: ""}}</td>
  299. <td>{{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}</td>
  300. <td>{{monitor.replacement_rate? monitor.replacement_rate: ""}}</td>
  301. <td>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</td>
  302. <td>{{monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}</td>
  303. <td>{{monitor.conductivity? monitor.conductivity: ""}}</td>
  304. <td>
  305. {{monitor.symptom?monitor.symptom:"" }}&nbsp;
  306. {{monitor.dispose? monitor.dispose: ""}}&nbsp;
  307. {{monitor.result? monitor.result: ""}}
  308. </td>
  309. <td>
  310. <span
  311. style="height: 30px; display: inline-block">
  312. {{ getAdminUser(monitor.monitoring_nurse) }}
  313. </span>
  314. <!-- <img v-if="setAdminUserES(monitor.monitoring_nurse) != ''"
  315. style="height: 60px"
  316. :src="setAdminUserES(monitor.monitoring_nurse)"
  317. alt=""
  318. srcset=""
  319. v-else
  320. /> -->
  321. </td>
  322. </tr>
  323. </table>
  324. </div>
  325. <div style="margin-bottom: 10px;" v-if="org_id!=10375">
  326. <table class="table" border="1"
  327. style="border-collapse: collapse;text-align: center;width: 100%;"
  328. >
  329. <tr>
  330. <th width="10%">开立时间</th>
  331. <th width="45%">医嘱内容</th>
  332. <th width="10%">医生签名</th>
  333. <th width="10%">执行时间</th>
  334. <th width="10%">护士签名</th>
  335. </tr>
  336. <tr
  337. v-for="(advice, advice_index) in doctor_advices"
  338. :key="advice_index"
  339. >
  340. <td height="32px">
  341. <span v-if="advice.start_time">
  342. {{ getTime(advice.start_time, "{h}:{i}") }}
  343. </span>
  344. </td>
  345. <td
  346. height="32px"
  347. class="advice-name"
  348. style="padding-left: 7px"
  349. >
  350. <div :rowspan="advice.prescriptionChild.length" v-for="(it,key) in advice.prescriptionChild" style="border: none;">
  351. <div style="border: none;">
  352. <span>{{ it.advice_name }}</span>
  353. <span v-if="it && it.advice_desc"
  354. >({{ it.advice_desc
  355. }}{{ it.drug_spec_unit }})</span
  356. >
  357. <span v-if="it.prescribing_number"
  358. >&nbsp;&nbsp; {{ it.prescribing_number
  359. }}{{ it.prescribing_number_unit }}</span
  360. >
  361. <span v-if="it.single_dose != 0"
  362. >{{ it.single_dose
  363. }}{{ it.single_dose_unit }}</span
  364. >
  365. <span>{{ it.delivery_way}}</span>
  366. <span>{{
  367. it.execution_frequency
  368. }}</span>
  369. <span v-if="it.remark !=''"
  370. >({{ it.remark }})</span
  371. >
  372. </div>
  373. </div>
  374. </td>
  375. <td height="32px">
  376. <span>
  377. {{ getAdminUser(advice.advice_doctor) }}
  378. </span>
  379. </td>
  380. <td height="32px">
  381. <span v-if="advice.execution_time">{{
  382. getTime(advice.execution_time, "{h}:{i}")
  383. }}</span>
  384. </td>
  385. <td height="32px">
  386. <span>
  387. {{ getAdminUser(advice.execution_staff) }}
  388. </span>
  389. </td>
  390. </tr>
  391. </table>
  392. </div>
  393. <div class="infoTitle">透后情况</div>
  394. <div style="margin: 10px 0px;">
  395. <table class="table" border="1"
  396. style="border-collapse: collapse;text-align: left;width: 100%;
  397. ">
  398. <tr>
  399. <td>透后体重:
  400. {{
  401. afterdialysis.weight_after
  402. ? parseFloat(
  403. afterdialysis.weight_after -
  404. afterdialysis.additional_weight
  405. ).toFixed(1)
  406. : "/"
  407. }} kg
  408. </td>
  409. <td>实超:{{ afterdialysis.actual_ultrafiltration }}ml</td>
  410. <td>实际治疗时长:
  411. {{
  412. afterdialysis.actual_treatment_hour
  413. ? afterdialysis.actual_treatment_hour
  414. : "0"
  415. }}小时{{
  416. afterdialysis.actual_treatment_minute
  417. ? afterdialysis.actual_treatment_minute
  418. : "0"
  419. }}分钟
  420. </td>
  421. <td>下机时间:
  422. {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ? getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }}
  423. </td>
  424. </tr>
  425. <tr>
  426. <td colspan="4">
  427. <div>
  428. 透后生命体征:
  429. T: <span>
  430. {{ afterdialysis.temperature }} ℃
  431. </span>&nbsp;
  432. P: <span>
  433. {{ afterdialysis.pulse_frequency }} 次/分
  434. </span>&nbsp;
  435. R: <span>
  436. {{ afterdialysis.breathing_rate }} 次/分
  437. </span>&nbsp;
  438. BP: <span>
  439. {{ afterdialysis.systolic_blood_pressure }} / {{ afterdialysis.diastolic_blood_pressure }}mmHg
  440. </span>&nbsp;
  441. </div>
  442. </td>
  443. </tr>
  444. <tr>
  445. <td colspan="2">
  446. <span>通路评估:
  447. 内瘘:{{
  448. afterdialysis.internal_fistula
  449. ? afterdialysis.internal_fistula
  450. : ""
  451. }}
  452. 导管:{{
  453. afterdialysis.catheter ? afterdialysis.catheter : ""
  454. }}
  455. </span>
  456. </td>
  457. <td>
  458. <span>透析器凝血:
  459. {{
  460. afterdialysis &&
  461. afterdialysis
  462. ? afterdialysis.cruor
  463. : "/"
  464. }}
  465. </span>
  466. </td>
  467. <td>
  468. <span>实际置换量:
  469. {{
  470. afterdialysis.actual_displacement
  471. ? afterdialysis.actual_displacement
  472. : ""
  473. }}L
  474. </span>
  475. </td>
  476. </tr>
  477. </table>
  478. </div>
  479. <div class="infoTitle">治疗小结</div>
  480. <div style="height: 80px;margin: 10px 0px;text-align: left;">
  481. <span>治疗小结:{{summary.dialysis_summary?summary.dialysis_summary:'/'}}</span>
  482. </div>
  483. <div style="text-align: left;width: 100%;">
  484. <table>
  485. <tr>
  486. <td width="8%">上机护士:</td>
  487. <td width="10%">
  488. <div>
  489. <span>
  490. {{
  491. getAdminUser(
  492. dialysisOrder == null
  493. ? 0
  494. : dialysisOrder.start_nurse
  495. )
  496. }}</span>
  497. </div>
  498. </td>
  499. <td width="8%">核对护士:</td>
  500. <td width="10%">
  501. <span>{{getAdminUser(check==null?0:check.modifier)}}</span>
  502. <!-- <img style="height:65px;width: 90%;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else> -->
  503. </td>
  504. <td width="8%">下机护士:</td>
  505. <td width="10%">
  506. <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
  507. <!-- <img style="height:65px;width: 90%;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else> -->
  508. </td>
  509. <td width="5%">医生:</td>
  510. <td width="10%">
  511. <!-- <span>{{getAdminUser(prescription.creater)}}</span> -->
  512. <span v-if="doctor_advices[0]!=null&&doctor_advices[0].advice_doctor>0">{{ getAdminUser(doctor_advices[0].advice_doctor) }}</span>
  513. <span v-if="doctor_advices[0]!=null&&doctor_advices[0].advice_doctor==0">{{getAdminUser(prescription.creater)}}</span>
  514. <!-- <img style="height:65px;width: 90%;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else> -->
  515. </td>
  516. </tr>
  517. </table>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. </template>
  524. <script>
  525. import CheckBox from "../batch_print/option_check_box";
  526. import { getDialysisRecord } from "@/api/dialysis";
  527. import { getDataConfig } from "@/utils/data";
  528. import { jsGetAge, uParseTime } from "@/utils/tools";
  529. import LabelBox from "../printItem/LabelBox";
  530. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  531. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  532. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  533. import print from "print-js";
  534. export default {
  535. name: "dialysisPrintOrderSix",
  536. props: ["childResponse"],
  537. components: {
  538. // DialysisPrintOrderOne,
  539. // DialysisPrintOrderTwo,
  540. CheckBox,
  541. LabelBox,
  542. BreadCrumb,
  543. },
  544. data() {
  545. return {
  546. way_arr: [],
  547. consciousness_arr: [],
  548. appetite_arr: [],
  549. posture_arr: [],
  550. sick_condition_arr: [],
  551. precaution_arr: [],
  552. intake_arr: [],
  553. nutrition_arr: [],
  554. crumbs: [
  555. { path: false, name: "透析管理" },
  556. { path: false, name: "打印单" },
  557. ],
  558. operators: [],
  559. adminUser: [],
  560. check: {},
  561. xtdate: "",
  562. dialysisOrder: {
  563. DeviceNumber: [],
  564. },
  565. displaceLiquiPartOptions: [],
  566. operatorMaps: {},
  567. complications: [
  568. "低血压",
  569. "高血压",
  570. "心律失常",
  571. "头晕",
  572. "头痛",
  573. "呕吐",
  574. "抽搐",
  575. "出血",
  576. "心衰",
  577. "腹痛",
  578. ],
  579. jilurow: 0,
  580. advice_jilurow: 0,
  581. loading: false,
  582. orgname: "",
  583. patientInfo_gender_1: false,
  584. patientInfo_gender_2: false,
  585. patientInfo_source_2: false,
  586. patientInfo_source_1: false,
  587. modeOptions: {},
  588. replacementWays: [],
  589. perfusionApparatus: [],
  590. anticoagulantsConfit: {},
  591. bloodAccessParOpera: {},
  592. dialysateFormulationOptions: {},
  593. totollength: 0,
  594. queryParams: {
  595. xtdate: "",
  596. xtno: "",
  597. patient_id:0,
  598. },
  599. patientInfo: {
  600. birth: "",
  601. age: "",
  602. DialysisSchedule: {
  603. device_number: { number: "" },
  604. device_zone: { name: "" },
  605. },
  606. gender: 0,
  607. },
  608. predialysis: {
  609. score: "",
  610. internal_fistula: "",
  611. internal_fistula_skin: "",
  612. catheter: "",
  613. blood_access_part_opera_name: "",
  614. },
  615. afterdialysis: {
  616. complications_index: "",
  617. },
  618. lastafterdialysis: {},
  619. prescription: {
  620. dialysate_formulation_name: "",
  621. device: {},
  622. },
  623. advices: [],
  624. users: [],
  625. monitors: [],
  626. monitors2: [],
  627. summary: {},
  628. receiverTreatmentAccess: {},
  629. org_template_info: {},
  630. doctor_advices: [],
  631. doctor_advices_2: [],
  632. advice_groups: [],
  633. advice_groups_2: [],
  634. print_length: 0,
  635. blood_access_part: [],
  636. blood_access_part_opera: [],
  637. AlPanel: {
  638. id: 0,
  639. name: "",
  640. type: 1,
  641. shouji: 2,
  642. weichi: 2,
  643. zongliang: 2,
  644. gaimingcheng: -1,
  645. gaijiliang: -1,
  646. shouji_unit: "mg",
  647. weichi_unit: "mg/h",
  648. zongliang_unit: "mg",
  649. gaimingcheng_unit: "",
  650. gaijiliang_unit: "",
  651. },
  652. org_id: 0,
  653. };
  654. },
  655. methods: {
  656. // 获取当前年份,用于年龄计算
  657. getoldAge() {
  658. let date = new Date();
  659. let year = date.getFullYear();
  660. let year_d =
  661. this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
  662. let year_m = this.xtdate.split("-")[1];
  663. let birth_m = this.patientInfo.birth.split("-")[1];
  664. let year_date = this.xtdate.split("-")[2];
  665. let birth_date = this.patientInfo.birth.split("-")[2];
  666. // console.log(year,'今年年月')
  667. // console.log(this.xtdate.split('-'),'病人就诊年月')
  668. console.log(this.patientInfo.birth, "病人生日");
  669. // console.log(year_d,'year_d')
  670. if (year_m < birth_m) {
  671. return year_d - 1;
  672. } else if (year_m == birth_m) {
  673. if (year_date < birth_date) {
  674. return year_d - 1;
  675. } else {
  676. return year_d;
  677. }
  678. } else {
  679. return year_d;
  680. }
  681. },
  682. checkData() {
  683. if (this.receiverTreatmentAccess.way == 0) {
  684. this.$message.error("入科方式未填");
  685. } else if (this.predialysis.symptom_before_dialysis == "") {
  686. this.$message.error("透前症状未填");
  687. } else if (this.predialysis.temperature == "") {
  688. this.$message.error("透前体温未填");
  689. } else if (this.predialysis.pulse_frequency == "") {
  690. this.$message.error("透前脉搏未填");
  691. } else if (this.predialysis.breathing_rate == "") {
  692. this.$message.error("透前呼吸频率未填");
  693. } else if (
  694. this.predialysis.systolic_blood_pressure == 0 ||
  695. this.predialysis.diastolic_blood_pressure == 0
  696. ) {
  697. this.$message.error("透前血压未填完整");
  698. } else if (this.predialysis.puncture_way == "") {
  699. this.$message.error("穿刺方式未填");
  700. } else if (this.predialysis.puncture_needle == "") {
  701. this.$message.error("穿刺针未填");
  702. } else if (
  703. this.predialysis.blood_access_part_id == "" &&
  704. this.predialysis.blood_access_part_opera_name == ""
  705. ) {
  706. this.$message.error("血管通路未填");
  707. } else if (this.predialysis.internal_fistula == "") {
  708. this.$message.error("透前内瘘未填");
  709. } else if (this.predialysis.catheter == "") {
  710. this.$message.error("透前导管未填");
  711. } else if (this.prescription.mode_id == "") {
  712. this.$message.error("透析方式未填");
  713. } else if (
  714. this.prescription.displace_liqui_part == 0 &&
  715. this.prescription.mode_id == 2
  716. ) {
  717. this.$message.error("置换方式未填");
  718. } else if (
  719. this.prescription.displace_liqui_value == 0 &&
  720. this.prescription.mode_id == 2
  721. ) {
  722. this.$message.error("置换量未填");
  723. } else if (this.prescription.blood_flow_volume == 0) {
  724. this.$message.error("血流量未填");
  725. } else if (
  726. this.prescription.dialysis_duration_hour == 0 &&
  727. this.prescription.dialysis_duration_minute == 0
  728. ) {
  729. this.$message.error("透析时间未填");
  730. } else if (
  731. this.prescription.dialyzer_perfusion_apparatus == "" &&
  732. this.prescription.dialysis_dialyszers == ""
  733. ) {
  734. this.$message.error("透析器未填");
  735. } else if (this.prescription.dialysis_irrigation == "") {
  736. this.$message.error("灌流器未填");
  737. } else if (
  738. this.prescription.plasma_separator == "" &&
  739. this.org_id == 9538
  740. ) {
  741. this.$message.error("血浆分离器未填");
  742. } else if (
  743. this.prescription.bilirubin_adsorption_column == "" &&
  744. this.org_id == 9538
  745. ) {
  746. this.$message.error("胆红素吸附柱未填");
  747. } else if (this.predialysis.weight_before == 0) {
  748. this.$message.error("透前体重未填");
  749. } else if (this.predialysis.dry_weight == 0) {
  750. this.$message.error("干体重未填");
  751. } else if (this.prescription.target_ultrafiltration == 0) {
  752. this.$message.error("计划超滤量未填");
  753. } else if (this.prescription.calcium == 0) {
  754. this.$message.error("钙未填");
  755. } else if (this.prescription.sodium == 0) {
  756. this.$message.error("钠未填");
  757. } else if (this.prescription.kalium == 0) {
  758. this.$message.error("钾未填");
  759. } else if (this.prescription.bicarbonate == 0) {
  760. this.$message.error("碳酸氢根未填");
  761. } else if (this.prescription.dialysate_flow == 0) {
  762. this.$message.error("透析液流量未填");
  763. } else if (this.prescription.anticoagulant == 0) {
  764. this.$message.error("抗凝剂未填");
  765. } else if (
  766. this.prescription.anticoagulant_gaimingcheng == "" &&
  767. this.prescription.anticoagulant == 5
  768. ) {
  769. this.$message.error("钙名称未填");
  770. } else if (
  771. this.prescription.anticoagulant_gaijiliang == "" &&
  772. this.prescription.anticoagulant == 5
  773. ) {
  774. this.$message.error("钙剂量未填");
  775. } else if (this.afterdialysis.temperature == 0) {
  776. this.$message.error("透后体温未填");
  777. } else if (this.afterdialysis.pulse_frequency == 0) {
  778. this.$message.error("透后脉搏未填");
  779. } else if (this.afterdialysis.breathing_rate == 0) {
  780. this.$message.error("透后呼吸频率未填");
  781. } else if (
  782. this.afterdialysis.systolic_blood_pressure == 0 ||
  783. this.afterdialysis.diastolic_blood_pressure == 0
  784. ) {
  785. this.$message.error("透后血压未填完整");
  786. } else if (
  787. this.afterdialysis.actual_treatment_hour == 0 &&
  788. this.afterdialysis.actual_treatment_minute == 0
  789. ) {
  790. this.$message.error("实际治疗时间未填");
  791. } else if (this.afterdialysis.cruor == "") {
  792. this.$message.error("透析器凝血未填");
  793. } else if (this.afterdialysis.internal_fistula == "") {
  794. this.$message.error("透后内瘘未填");
  795. } else if (this.afterdialysis.catheter == "") {
  796. this.$message.error("透后导管未填");
  797. } else if (this.afterdialysis.weight_after == 0) {
  798. this.$message.error("透后体重未填");
  799. } else if (this.afterdialysis.weight_loss == 0) {
  800. this.$message.error("透后体重减少未填");
  801. } else if (this.afterdialysis.dialysis_intakes == 0) {
  802. this.$message.error("透析中入量未填");
  803. } else if (this.afterdialysis.actual_ultrafiltration == 0) {
  804. this.$message.error("实际超滤量未填");
  805. } else if (this.summary.dialysis_summary == "") {
  806. this.$message.error("透析小结未填");
  807. } else if (
  808. this.dialysisOrder == null ||
  809. this.dialysisOrder.puncture_nurse == 0
  810. ) {
  811. this.$message.error("穿刺护士未填");
  812. } else if (
  813. this.dialysisOrder == null ||
  814. this.dialysisOrder.start_nurse == 0
  815. ) {
  816. this.$message.error("治疗护士未填");
  817. } else if (this.dialysisOrder == null && this.check.creater == 0) {
  818. this.$message.error("核对人员未填");
  819. } else if (
  820. this.dialysisOrder != null &&
  821. this.dialysisOrder.start_nurse == this.check.modifier &&
  822. this.check.creater == 0
  823. ) {
  824. this.$message.error("核对人员未填");
  825. } else if (
  826. this.dialysisOrder != null &&
  827. this.dialysisOrder.start_nurse == this.check.creater &&
  828. this.check.modifier == 0
  829. ) {
  830. this.$message.error("核对人员未填");
  831. } else if (
  832. this.dialysisOrder != null &&
  833. this.dialysisOrder.start_nurse != this.check.creater &&
  834. this.dialysisOrder.start_nurse != this.check.modifier &&
  835. this.check.creater == 0
  836. ) {
  837. this.$message.error("核对人员未填");
  838. } else if (
  839. this.dialysisOrder == null ||
  840. this.dialysisOrder.finish_nurse == 0
  841. ) {
  842. this.$message.error("下机护士未填");
  843. } else if (this.prescription.creater == 0) {
  844. this.$message.error("医生签名未填");
  845. } else if (this.tableAdvice.length > 0) {
  846. let num = 0;
  847. this.tableAdvice.map((item) => {
  848. if (item.id > 0 && (item.created_time || item.start_time)) {
  849. this.users.map((it) => {
  850. if (it.id == item.advice_doctor) {
  851. if (it.user_type == 3) {
  852. num++;
  853. this.$message.closeAll();
  854. this.$message.error("存在不是医生保存的医嘱");
  855. } else if (
  856. it.id == item.execution_staff &&
  857. item.execution_staff > 0
  858. ) {
  859. if (it.user_type == 2) {
  860. num++;
  861. this.$message.closeAll();
  862. this.$message.error("存在不是护士执行的医嘱");
  863. }
  864. } else if (it.id == item.checker && item.checker > 0) {
  865. if (it.user_type == 2) {
  866. num++;
  867. this.$message.closeAll();
  868. this.$message.error("存在不是护士核对的医嘱");
  869. }
  870. }
  871. } else if (
  872. it.id == item.execution_staff &&
  873. item.execution_staff > 0
  874. ) {
  875. if (it.user_type == 2) {
  876. num++;
  877. this.$message.closeAll();
  878. this.$message.error("存在不是护士执行的医嘱");
  879. }
  880. } else if (it.id == item.checker && item.checker > 0) {
  881. if (it.user_type == 2) {
  882. num++;
  883. this.$message.closeAll();
  884. this.$message.error("存在不是护士核对的医嘱");
  885. }
  886. }
  887. });
  888. }
  889. });
  890. if (num == 0) {
  891. this.$message.success("核对完成");
  892. }
  893. } else {
  894. this.$message.success("核对完成");
  895. }
  896. },
  897. getDisplaceLiquiPart: function (val) {
  898. let displace_liqui_part_name = "/";
  899. const displace_liqui_part = this.displaceLiquiPartOptions;
  900. for (let i = 0; i < displace_liqui_part.length; i++) {
  901. if (displace_liqui_part[i].id == val) {
  902. displace_liqui_part_name = displace_liqui_part[i].name;
  903. }
  904. }
  905. return displace_liqui_part_name;
  906. },
  907. replacementWaysById: function (val) {
  908. let replacementWaysname = "/";
  909. // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  910. for (let i = 0; i < this.replacementWays.length; i++) {
  911. if (this.replacementWays[i].id == val) {
  912. replacementWaysname = this.replacementWays[i].name;
  913. }
  914. }
  915. return replacementWaysname;
  916. },
  917. QueryPartById: function (val) {
  918. let vascular_access_part_name = "/";
  919. const vascular_access = getDataConfig("hemodialysis", "vascular_access");
  920. for (let i = 0; i < vascular_access.length; i++) {
  921. if (vascular_access[i].id == val) {
  922. vascular_access_part_name = vascular_access[i].name;
  923. }
  924. }
  925. return vascular_access_part_name;
  926. },
  927. getAdminUser(id) {
  928. if (id == 0) {
  929. return "";
  930. }
  931. if (id == undefined) {
  932. return "";
  933. }
  934. for (let i = 0; i < this.adminUser.length; i++) {
  935. if (this.adminUser[i].id == id) {
  936. return this.adminUser[i].name;
  937. }
  938. }
  939. },
  940. getTime(value, temp) {
  941. if (value == 0) {
  942. return "";
  943. }
  944. if (value != undefined) {
  945. return uParseTime(value, temp);
  946. }
  947. return "";
  948. },
  949. getUnit: function (val) {
  950. switch (val) {
  951. case 1:
  952. return "g";
  953. break;
  954. case 2:
  955. return "ml";
  956. break;
  957. }
  958. },
  959. printThisPage() {
  960. var ptime = Math.round(new Date().getTime() / 1000);
  961. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  962. const style =
  963. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  964. if (this.org_template_info.template_id == 1) {
  965. printJS({
  966. printable: "dialysis-print-box",
  967. type: "html",
  968. style: style,
  969. scanStyles: false,
  970. });
  971. } else if (
  972. this.org_template_info.template_id == 2 ||
  973. this.org_template_info.template_id == 0
  974. ) {
  975. printJS({
  976. printable: "dialysis-print-box-1",
  977. type: "html",
  978. style: style,
  979. scanStyles: false,
  980. });
  981. }
  982. },
  983. getNumber() {
  984. if (this.dialysisOrder != null) {
  985. return (
  986. this.patientInfo.DialysisSchedule.device_zone.name +
  987. this.dialysisOrder.DeviceNumber.number
  988. );
  989. } else {
  990. return (
  991. this.patientInfo.DialysisSchedule.device_zone.name +
  992. this.patientInfo.DialysisSchedule.device_number.number
  993. );
  994. }
  995. },
  996. getXuserName(id) {
  997. if (id <= 0) {
  998. return "";
  999. }
  1000. var name = "";
  1001. if (this.users == null || typeof this.users.length === "undefined") {
  1002. return name;
  1003. }
  1004. var leng = this.users.length;
  1005. if (leng == 0) {
  1006. return name;
  1007. }
  1008. for (let index = 0; index < leng; index++) {
  1009. if (this.users[index].id == id) {
  1010. name = this.users[index].name;
  1011. break;
  1012. }
  1013. }
  1014. return name;
  1015. },
  1016. setAdminUserES(id) {
  1017. if (id == 0) {
  1018. return "";
  1019. }
  1020. if (id in this.operatorMaps) {
  1021. return this.operatorMaps[id].url;
  1022. } else {
  1023. return "";
  1024. }
  1025. },
  1026. modeName(mode_id) {
  1027. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1028. typeof this.modeOptions[mode_id].name !== "undefined"
  1029. ? this.modeOptions[mode_id].name
  1030. : "";
  1031. },
  1032. getDialysisRecord() {
  1033. this.loading = true;
  1034. // getDialysisRecord(this.queryParams).then(response => {
  1035. var response = this.childResponse;
  1036. if (response.data.state == 1) {
  1037. this.adminUser = response.data.data.users;
  1038. this.users = response.data.data.users;
  1039. this.patientInfo = response.data.data.patientInfo;
  1040. this.patientInfo.birth = uParseTime(
  1041. this.patientInfo.birthday,
  1042. "{y}-{m}-{d}"
  1043. );
  1044. // console.log(this.patientInfo.birth,'测试生日')
  1045. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1046. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1047. this.patientInfo.first_dialysis_date = uParseTime(
  1048. response.data.data.patientInfo.first_dialysis_date,
  1049. "{y}-{m}-{d}"
  1050. );
  1051. } else {
  1052. this.patientInfo.first_dialysis_date = "";
  1053. }
  1054. this.check = response.data.data.check;
  1055. this.xtdate = response.data.data.xtdate;
  1056. this.predialysis = response.data.data.PredialysisEvaluation;
  1057. // console.log('透前评估', this.predialysis)
  1058. this.predialysis.blood_access_part_opera_name =
  1059. this.bloodAccessParOperaName(
  1060. this.predialysis.blood_access_part_opera_id
  1061. );
  1062. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  1063. // console.log('透后体重', this.afterdialysis)
  1064. this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
  1065. // console.log("上次透后体重", this.lastafterdialysis.weight_after);
  1066. this.operators = response.data.data.operators;
  1067. // console.log("operators", this.operators);
  1068. this.dialysisOrder =
  1069. response.data.data.dialysisOrder === null
  1070. ? null
  1071. : response.data.data.dialysisOrder;
  1072. // console.log("上机233232323232", this.dialysisOrder);
  1073. if (this.operators.length > 0) {
  1074. var operatorsLen = this.operators.length;
  1075. for (var index = 0; index < operatorsLen; index++) {
  1076. this.$set(
  1077. this.operatorMaps,
  1078. this.operators[index].creator,
  1079. this.operators[index]
  1080. );
  1081. }
  1082. }
  1083. this.afterdialysis.txqnx = -1;
  1084. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  1085. this.afterdialysis.txqnx = 0;
  1086. }
  1087. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  1088. this.afterdialysis.txqnx = 1;
  1089. }
  1090. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  1091. this.afterdialysis.txqnx = 2;
  1092. }
  1093. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  1094. this.afterdialysis.txqnx = 3;
  1095. }
  1096. this.afterdialysis.complications =
  1097. this.afterdialysis.complication.split(",");
  1098. this.afterdialysis.complications_other = [];
  1099. this.afterdialysis.complications_index = [];
  1100. var acllen = this.afterdialysis.complications.length;
  1101. for (let index = 0; index < acllen; index++) {
  1102. if (
  1103. this.complications.indexOf(
  1104. this.afterdialysis.complications[index]
  1105. ) >= 0
  1106. ) {
  1107. this.afterdialysis.complications_index.push(
  1108. this.afterdialysis.complications[index]
  1109. );
  1110. } else if (
  1111. this.complications.indexOf(
  1112. this.afterdialysis.complications[index]
  1113. ) < 0 &&
  1114. this.afterdialysis.complications_other.indexOf(
  1115. this.afterdialysis.complications[index]
  1116. ) < 0
  1117. ) {
  1118. this.afterdialysis.complications_other.push(
  1119. this.afterdialysis.complications[index]
  1120. );
  1121. }
  1122. }
  1123. this.afterdialysis.complications_other =
  1124. this.afterdialysis.complications_other.join(",");
  1125. this.prescription = response.data.data.dialysisPrescription;
  1126. // console.log("透析处方", this.prescription);
  1127. this.receiverTreatmentAccess =
  1128. response.data.data.receiverTreatmentAccess;
  1129. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1130. var rwLen = this.replacementWays.length;
  1131. this.prescription.replacement = "";
  1132. for (let index = 0; index < rwLen; index++) {
  1133. if (
  1134. this.replacementWays[index].id == this.prescription.replacement_way
  1135. ) {
  1136. this.prescription.replacement = this.replacementWays[index].name;
  1137. break;
  1138. }
  1139. }
  1140. this.prescription.dialysate_formulation_name =
  1141. this.dialysateFormulationName(
  1142. this.prescription.dialysate_formulation
  1143. );
  1144. var paLen = this.perfusionApparatus.length;
  1145. this.prescription.perfusion_apparatus_name = "";
  1146. for (let index = 0; index < paLen; index++) {
  1147. if (
  1148. this.perfusionApparatus[index].id ==
  1149. this.prescription.perfusion_apparatus
  1150. ) {
  1151. this.prescription.perfusion_apparatus_name =
  1152. this.perfusionApparatus[index].name;
  1153. break;
  1154. }
  1155. }
  1156. var acLen = this.anticoagulantsConfit.length;
  1157. var thisALID = this.prescription.anticoagulant;
  1158. this.prescription.anticoagulant_name = "";
  1159. if (
  1160. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1161. this.anticoagulantsConfit[thisALID] != null
  1162. ) {
  1163. this.prescription.anticoagulant_name =
  1164. this.anticoagulantsConfit[thisALID].name;
  1165. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1166. }
  1167. this.advices = response.data.data.advices;
  1168. this.tableAdvice = response.data.data.advices;
  1169. // console.log("医嘱数据2222222222", this.advices);
  1170. this.monitors = response.data.data.monitors;
  1171. this.summary = response.data.data.summary;
  1172. this.org_template_info = response.data.data.org_template_info;
  1173. if (this.monitors.length <= 6) {
  1174. var nl = 6;
  1175. this.print_length = 6;
  1176. for (let index = 0; index < nl; index++) {
  1177. if (
  1178. this.monitors[index] == undefined ||
  1179. this.monitors[index].length <= 0
  1180. ) {
  1181. this.monitors2.push([]);
  1182. } else {
  1183. continue;
  1184. }
  1185. }
  1186. }
  1187. var tempmonitorflag = true;
  1188. for (let index = 0; index < this.monitors.length; index++) {
  1189. const monitor = this.monitors[index];
  1190. this.monitors[index].end = "";
  1191. if (Object.keys(monitor).length > 0 && index > 1) {
  1192. if (
  1193. (this.dialysisOrder &&
  1194. monitor.operate_time == this.dialysisOrder.end_time)&&(this.org_id!=10414)
  1195. ) {
  1196. this.monitors[index].end = "【结束透析】";
  1197. tempmonitorflag = false;
  1198. }
  1199. if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
  1200. this.monitors[index].end = "【结束透析】";
  1201. }
  1202. }
  1203. }
  1204. this.jilurow = this.monitors.length + 1;
  1205. this.advice_jilurow = this.advices.length + 1;
  1206. var childMap = {};
  1207. for (const index in this.advices) {
  1208. if (this.advices[index].parent_id == 0) {
  1209. continue;
  1210. }
  1211. if (!(this.advices[index].parent_id in childMap)) {
  1212. childMap[this.advices[index].parent_id] = [];
  1213. }
  1214. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1215. }
  1216. var advices = [];
  1217. for (const index in this.advices) {
  1218. if (this.advices[index].parent_id > 0) {
  1219. continue;
  1220. }
  1221. var item = this.advices[index];
  1222. if (item.id in childMap) {
  1223. item.children = childMap[item.id];
  1224. } else {
  1225. item.children = [];
  1226. }
  1227. advices.push(item);
  1228. }
  1229. var leftAdvice = [];
  1230. var rightAdvice = [];
  1231. var adlen = advices.length;
  1232. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  1233. for (var i = 0; i < halfLen; i++) {
  1234. leftAdvice.push(advices[i]);
  1235. rightAdvice.push(advices[i + halfLen]);
  1236. }
  1237. if (halfLen < 5) {
  1238. var nl = 5 - leftAdvice.length;
  1239. for (let index = 0; index < nl; index++) {
  1240. leftAdvice.push([]);
  1241. }
  1242. var nl = 5 - rightAdvice.length;
  1243. for (let index = 0; index < nl; index++) {
  1244. rightAdvice.push([]);
  1245. }
  1246. }
  1247. this.advices = [];
  1248. for (var i = 0; i < halfLen; i++) {
  1249. var item = [];
  1250. item.push(leftAdvice[i]);
  1251. item.push(rightAdvice[i]);
  1252. this.advices.push(item);
  1253. }
  1254. this.loading = false;
  1255. this.doctor_advices =
  1256. response.data.data.advices == null ? [] : response.data.data.advices;
  1257. for (let index = 0; index < this.doctor_advices.length; index++) {
  1258. this.doctor_advices[index]["isShow"] = 2;
  1259. }
  1260. if (this.doctor_advices.length <= 6) {
  1261. var nl = 6;
  1262. this.print_length = 6;
  1263. for (let index = 0; index < nl; index++) {
  1264. if (
  1265. this.doctor_advices[index] == undefined ||
  1266. this.doctor_advices[index].length <= 0
  1267. ) {
  1268. this.doctor_advices.push([]);
  1269. } else {
  1270. continue;
  1271. }
  1272. }
  1273. }
  1274. this.totollength = this.doctor_advices.length + this.monitors.length;
  1275. console.log("this.totollength",this.totollength)
  1276. if (this.totollength > 18) {
  1277. var temp_advice_length = 17 - this.monitors.length;
  1278. var doctor_advices_1 = [];
  1279. var doctor_advices_2 = [];
  1280. for (let index = 0; index < this.doctor_advices.length; index++) {
  1281. const element = this.doctor_advices[index];
  1282. if (temp_advice_length > index) {
  1283. doctor_advices_1.push(element);
  1284. } else {
  1285. doctor_advices_2.push(element);
  1286. }
  1287. }
  1288. this.doctor_advices = doctor_advices_1;
  1289. this.doctor_advices_2 = doctor_advices_2;
  1290. }
  1291. var docArr = []
  1292. if(this.doctor_advices!=null && this.doctor_advices.length>0){
  1293. for(let i=0;i<this.doctor_advices.length;i++){
  1294. if(this.doctor_advices[i].delivery_way!='口服'){
  1295. docArr.push(this.doctor_advices[i])
  1296. }
  1297. }
  1298. }
  1299. this.doctor_advices = []
  1300. this.doctor_advices = docArr
  1301. if(this.doctor_advices!=null && this.doctor_advices.length>0){
  1302. for(let i=0;i<this.doctor_advices.length;i++){
  1303. this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_" + this.doctor_advices[i].groupno
  1304. }
  1305. console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
  1306. let dataInfo = {}
  1307. this.doctor_advices.forEach((item, index) => {
  1308. let { groupPrescriptionId } = item
  1309. if (!dataInfo[groupPrescriptionId]) {
  1310. dataInfo[groupPrescriptionId] = {
  1311. groupPrescriptionId:item.groupPrescriptionId,
  1312. start_time:item.start_time,
  1313. advice_name:item.advice_name,
  1314. advice_desc:item.advice_desc,
  1315. parent_id:item.parent_id,
  1316. drug_spec_unit:item.drug_spec_unit,
  1317. prescribing_number:item.prescribing_number,
  1318. prescribing_number_unit:item.prescribing_number_unit,
  1319. single_dose:item.single_dose,
  1320. single_dose_unit:item.single_dose_unit,
  1321. delivery_way:item.delivery_way,
  1322. execution_frequency:item.execution_frequency,
  1323. remark:item.remark,
  1324. execution_time:item.execution_time,
  1325. execution_staff:item.execution_staff,
  1326. prescriptionChild:[],
  1327. advice_doctor:item.advice_doctor,
  1328. }
  1329. }
  1330. })
  1331. let newArr = Object.values(dataInfo)
  1332. if(newArr!=null && newArr.length >0){
  1333. for(let i=0;i<newArr.length;i++){
  1334. for(let j=0;j<this.doctor_advices.length;j++){
  1335. if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
  1336. newArr[i].prescriptionChild.push(this.doctor_advices[j])
  1337. }
  1338. }
  1339. }
  1340. }
  1341. console.log("newArr",newArr)
  1342. for(let i in newArr){
  1343. if(newArr[i].parent_id == undefined){
  1344. newArr.splice(i,1)
  1345. }
  1346. }
  1347. this.doctor_advices = []
  1348. this.doctor_advices = newArr
  1349. }
  1350. } else {
  1351. this.loading = false;
  1352. this.$message.error("请求数据失败");
  1353. return false;
  1354. }
  1355. // })
  1356. },
  1357. bloodAccessParOperaName(id) {
  1358. if (id in this.bloodAccessParOpera) {
  1359. return this.bloodAccessParOpera[id].name;
  1360. }
  1361. return "";
  1362. },
  1363. dialysateFormulationName(id) {
  1364. if (id in this.dialysateFormulationOptions) {
  1365. return this.dialysateFormulationOptions[id].name;
  1366. }
  1367. return "";
  1368. },
  1369. // getAge: function (val) {
  1370. // if (
  1371. // this.org_template_info.template_id == 2 ||
  1372. // this.org_template_info.template_id == 0
  1373. // ) {
  1374. // if (val.age == 0) {
  1375. // return jsGetAge(val.birth, "-");
  1376. // } else {
  1377. // return val.age;
  1378. // }
  1379. // } else {
  1380. // return this.getoldAge();
  1381. // }
  1382. // },
  1383. getAge: function(val) {
  1384. if (val.id_card_no) {
  1385. var thisLen = val.id_card_no.length
  1386. var birth = ''
  1387. if (thisLen == 15) {
  1388. birth = '19' + val.id_card_no.substr(6, 6)
  1389. } else {
  1390. birth = val.id_card_no.substr(6, 8)
  1391. }
  1392. var birthtwo =
  1393. birth.substr(0, 4) +
  1394. '-' +
  1395. birth.substr(4, 2) +
  1396. '-' +
  1397. birth.substr(6, 2)
  1398. var age = jsGetAge(birthtwo, '-')
  1399. return age
  1400. }
  1401. },
  1402. newAdviceGroupObject: function () {
  1403. return Object.assign(
  1404. {},
  1405. {
  1406. group_no: 0,
  1407. // advice_doctor: 0,
  1408. // start_time: 0,
  1409. advices: [],
  1410. // exec_staff: 0,
  1411. // exec_time: 0,
  1412. // checker: 0,
  1413. }
  1414. );
  1415. },
  1416. getFloat: function (x) {
  1417. if (x == 0) {
  1418. return "/";
  1419. }
  1420. if (x != ".") {
  1421. var f = Math.round(x * 100) / 100;
  1422. var s = f.toString();
  1423. var rs = s.indexOf(".");
  1424. if (rs <= 0) {
  1425. rs = s.length;
  1426. s += ".";
  1427. }
  1428. while (s.length <= rs + 1) {
  1429. s += "0";
  1430. }
  1431. return s;
  1432. } else {
  1433. return "0.0";
  1434. }
  1435. },
  1436. },
  1437. watch: {
  1438. "patientInfo.gender": function () {
  1439. if (this.patientInfo.gender == 1) {
  1440. this.patientInfo_gender_1 = true;
  1441. this.patientInfo_gender_2 = false;
  1442. } else if (this.patientInfo.gender == 2) {
  1443. this.patientInfo_gender_2 = true;
  1444. this.patientInfo_gender_1 = false;
  1445. } else {
  1446. this.patientInfo_gender_2 = false;
  1447. this.patientInfo_gender_1 = false;
  1448. }
  1449. },
  1450. "patientInfo.source": function () {
  1451. if (this.patientInfo.source == 1) {
  1452. this.patientInfo_source_1 = true;
  1453. this.patientInfo_source_2 = false;
  1454. } else if (this.patientInfo.source == 2) {
  1455. this.patientInfo_source_2 = true;
  1456. this.patientInfo_source_1 = false;
  1457. } else {
  1458. this.patientInfo_source_2 = false;
  1459. this.patientInfo_source_1 = false;
  1460. }
  1461. },
  1462. },
  1463. created() {
  1464. this.way_arr = getDataConfig("hemodialysis", "way");
  1465. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1466. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1467. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1468. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1469. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1470. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1471. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1472. var xtuser = this.$store.getters.xt_user;
  1473. this.orgname = xtuser.org.org_name;
  1474. // this.orgname = "遂溪方济医院";
  1475. this.modeOptions = this.$store.getters.treatment_mode;
  1476. this.replacementWays = this.$store.getters.replacement_ways;
  1477. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1478. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1479. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1480. this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
  1481. this.blood_access_part_opera = getDataConfig(
  1482. "hemodialysis",
  1483. "vascular_access_desc"
  1484. );
  1485. this.org_id = this.$store.getters.xt_user.org.id;
  1486. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1487. var bloodAccessParOpera = getDataConfig(
  1488. "hemodialysis",
  1489. "vascular_access_desc"
  1490. );
  1491. for (var key in bloodAccessParOpera) {
  1492. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1493. bloodAccessParOpera[key];
  1494. }
  1495. var dialysateFormulationOptions = getDataConfig(
  1496. "hemodialysis",
  1497. "dialysate_formulation"
  1498. );
  1499. for (var key in dialysateFormulationOptions) {
  1500. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1501. dialysateFormulationOptions[key];
  1502. }
  1503. const xtdate = this.$route.query && this.$route.query.xtdate;
  1504. // console.log("xtdate", xtdate);
  1505. const xtno = this.$route.query && this.$route.query.xtno;
  1506. // console.log("xtno", xtno);
  1507. if (
  1508. typeof xtdate === "string" &&
  1509. xtdate.length > 0 &&
  1510. typeof xtno === "string" &&
  1511. xtno.length > 0
  1512. ) {
  1513. this.queryParams.xtdate = xtdate;
  1514. this.queryParams.xtno = xtno;
  1515. this.getDialysisRecord();
  1516. } else {
  1517. this.$message.error("参数不齐");
  1518. return false;
  1519. }
  1520. },
  1521. };
  1522. </script>
  1523. <style lang="scss">
  1524. .print_page_main_content {
  1525. background-color: white;
  1526. width: 960px;
  1527. margin: 0 auto 50px;
  1528. padding: 0 0 0 0;
  1529. page-break-after: always;
  1530. .order-yy-name {
  1531. margin: auto;
  1532. text-align: center;
  1533. font-size: 20px;
  1534. letter-spacing: 5px;
  1535. }
  1536. .order-title {
  1537. margin: auto;
  1538. font-weight: 600;
  1539. text-align: center;
  1540. font-size: 22px;
  1541. padding: 10px;
  1542. }
  1543. .infoTitle{
  1544. // background: #efe7e7;
  1545. // border-top: 1px solid black;
  1546. padding: 5px 0px;
  1547. font-weight:bolder;
  1548. }
  1549. .table tr td{
  1550. padding: 5px;
  1551. }
  1552. }
  1553. </style>