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

DialysisPrintOrdersixtySeven.vue 61KB

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