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

DialysisPrintOrderFortyTwo.vue 80KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900
  1. <template>
  2. <div>
  3. <el-button type="primary" @click="checkData">一键核对</el-button>
  4. <div id="dialysis-print-box">
  5. <div class="dialysis-print-order">
  6. <div class="order-yy-name">{{ orgname }}</div>
  7. <div class="order-title">血液净化治疗记录单</div>
  8. <table class="table-box" style="margin-top: 10px;">
  9. <tbody>
  10. <tr>
  11. <td width="50">姓 名:</td>
  12. <td width="90">
  13. <div class="under-line">&nbsp;{{ patientInfo.name }}</div>
  14. </td>
  15. <td width="30"></td>
  16. <td width="50">性 别:</td>
  17. <td width="120">
  18. <div>
  19. <label-box :isChecked="patientInfo_gender_1" showValue="男"></label-box>
  20. <label-box :isChecked="patientInfo_gender_2" showValue="女"></label-box>
  21. </div>
  22. </td>
  23. <td width="50">年 龄:</td>
  24. <td width="40">
  25. <div class="under-line">{{ getAge(patientInfo) }}</div>
  26. </td>
  27. <td>岁</td>
  28. <td width="30"></td>
  29. <td width="50">科 室:</td>
  30. <td width="200">
  31. <div>
  32. <label-box :isChecked="patientInfo_source_1" showValue="门 诊 透 析"></label-box>
  33. <label-box :isChecked="patientInfo_source_2" showValue="住 院"></label-box>
  34. </div>
  35. </td>
  36. <td width="120">住院号/透析卡号:</td>
  37. <td width="130">
  38. <div class="under-line">
  39. &nbsp;{{ patientInfo.admission_number ? patientInfo.admission_number : "无" }}/{{ patientInfo.dialysis_no }}
  40. </div>
  41. </td>
  42. <td></td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. <table class="table-box" style="margin-top: 10px;">
  47. <tbody>
  48. <tr>
  49. <td width="40">诊 断:</td>
  50. <td width="">
  51. <div class="under-line">&nbsp;{{ patientInfo.diagnose }}</div>
  52. </td>
  53. <td width="80">治 疗 日 期:</td>
  54. <td width="120">
  55. <div class="under-line">
  56. &nbsp;<span>{{ queryParams.xtdate }}</span>
  57. </div>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <table class="print-table" border="1">
  63. <tbody>
  64. <tr>
  65. <td width="30px" class="title-box">透前评估</td>
  66. <td>
  67. <table class="table-box">
  68. <tbody>
  69. <tr>
  70. <td width="70">入院方式:</td>
  71. <td width="230">
  72. <div>
  73. <label-box v-for="(item, index) in way_arr" :key="index" :isChecked="receiverTreatmentAccess.way == item.id ? true : false" :showValue="item.name"></label-box>
  74. <!--&nbsp-->
  75. <!--<label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>-->
  76. <!--&nbsp;-->
  77. <!--<label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>-->
  78. <!--&nbsp;-->
  79. <!--<label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>-->
  80. </div>
  81. </td>
  82. <td></td>
  83. <td width="50">意识:</td>
  84. <td width="250" style="white-space: nowrap;">
  85. <div>
  86. <label-box v-for="(item, index) in consciousness_arr" :key="index" :isChecked="receiverTreatmentAccess.consciousness == item.id ? true : false" :showValue="item.name"></label-box>
  87. <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'-->
  88. <!--showValue='清醒'></label-box>-->
  89. <!--&nbsp;-->
  90. <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'-->
  91. <!--showValue='嗜睡'></label-box>-->
  92. <!--&nbsp;-->
  93. <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'-->
  94. <!--showValue='昏迷'></label-box>-->
  95. <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'-->
  96. <!--showValue='模糊'></label-box>-->
  97. </div>
  98. </td>
  99. <td></td>
  100. <!-- <td width="50">体温:</td>
  101. <td width="100">
  102. <div class="under-line">
  103. &nbsp;{{ predialysis.temperature ? predialysis.temperature : "" }}
  104. </div>
  105. </td> -->
  106. <!-- <td width="35">℃</td> -->
  107. </tr>
  108. </tbody>
  109. </table>
  110. <table class="table-box">
  111. <tbody>
  112. <tr>
  113. <td width="40">体位:</td>
  114. <td width="400">
  115. <div>
  116. <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked="receiverTreatmentAccess.posture == item.id ? true : false" :showValue="item.name"></label-box>
  117. <!--<label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'-->
  118. <!--showValue='自动体位'></label-box>-->
  119. <!--&nbsp;-->
  120. <!--<label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'-->
  121. <!--showValue='平卧位'></label-box>-->
  122. <!--&nbsp;-->
  123. <!--<label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'-->
  124. <!--showValue='半卧位'></label-box>-->
  125. <!--&nbsp;-->
  126. <!--<label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'-->
  127. <!--showValue='端坐位'></label-box>-->
  128. <!--&nbsp;-->
  129. <!--<label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'-->
  130. <!--showValue='躁动不安'></label-box>-->
  131. <!--&nbsp;-->
  132. </div>
  133. </td>
  134. <td v-if="org_id == 9987" width="80">透前血压:</td>
  135. <td v-if="org_id == 9987" width="50">
  136. <div class="under-line">
  137. &nbsp;{{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : ""}}
  138. </div>
  139. </td>
  140. <td v-if="org_id == 9987" width='10'>/</td>
  141. <td v-if="org_id == 9987" width="50">
  142. <div class="under-line">
  143. &nbsp;{{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
  144. </div>
  145. </td>
  146. <td v-if="org_id == 9987" width='30'>mmHg</td>
  147. <td></td>
  148. </tr>
  149. </tbody>
  150. </table>
  151. <table class="table-box">
  152. <tbody>
  153. <tr>
  154. <td width="40">出血:</td>
  155. <td width="95">
  156. <div>
  157. <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
  158. &nbsp;
  159. <label-box :isChecked="predialysis.is_hemorrhage == 1 ? true : false" showValue="有"></label-box>
  160. </div>
  161. </td>
  162. <td width="10">(</td>
  163. <td width="380">
  164. <div>
  165. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('穿刺点渗血') > -1 ? true : false" showValue="穿刺点渗血"></label-box>
  166. &nbsp;
  167. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
  168. &nbsp;
  169. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('消化道出血') > -1 ? true : false" showValue="消化道出血"></label-box>
  170. &nbsp;
  171. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('女性经期') > -1 ? true : false" showValue="女性经期"></label-box>
  172. </div>
  173. </td>
  174. <td width="35">其它</td>
  175. <td width="">
  176. <div class="under-line">
  177. &nbsp;
  178. <span v-if="predialysis.is_hemorrhage == 1">{{ predialysis.hemorrhage_other }}</span>
  179. </div>
  180. </td>
  181. <td width="10">)</td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <table class="table-box">
  186. <tbody>
  187. <tr>
  188. <td width="70">血管通路:</td>
  189. <td width="480">
  190. <div>
  191. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
  192. &nbsp;
  193. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
  194. &nbsp;
  195. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>
  196. &nbsp;
  197. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1 ? true : false" showValue="颈内静脉"></label-box>
  198. &nbsp;
  199. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="股静脉"></label-box>
  200. &nbsp;
  201. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
  202. &nbsp;
  203. </div>
  204. </td>
  205. <td width="65">穿刺方法:</td>
  206. <td width="100">
  207. <div class="under-line">
  208. &nbsp;
  209. <!-- <span v-if="predialysis.puncture_method">{{ predialysis.puncture_method }}</span> -->
  210. <span v-if="predialysis.puncture_way">{{ predialysis.puncture_way }}</span>
  211. </div>
  212. </td>
  213. <td></td>
  214. </tr>
  215. </tbody>
  216. </table>
  217. <table class="table-box">
  218. <tbody>
  219. <tr>
  220. <td width="40">内瘘:</td>
  221. <td width="35">震颤</td>
  222. <td width="10">(</td>
  223. <td width="180">
  224. <div>
  225. <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
  226. &nbsp;
  227. <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
  228. &nbsp;
  229. <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="无"></label-box>
  230. </div>
  231. </td>
  232. <td width="10">)</td>
  233. <td width="95">内瘘皮肤情况</td>
  234. <td width="10">(</td>
  235. <td width="220">
  236. <div>
  237. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('正常') > -1 ? true : false" showValue="正常"></label-box>
  238. &nbsp;
  239. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('瘀斑') > -1 ? true : false" showValue="瘀斑"></label-box>
  240. &nbsp;
  241. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('红') > -1 ? true : false" showValue="红"></label-box>
  242. &nbsp;
  243. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('肿') > -1 ? true : false" showValue="肿"></label-box>
  244. </div>
  245. </td>
  246. <td width="10">)</td>
  247. <td></td>
  248. </tr>
  249. </tbody>
  250. </table>
  251. <table class="table-box">
  252. <tbody>
  253. <tr>
  254. <td width="40">导管:</td>
  255. <td width="50">穿刺口</td>
  256. <td width="10">(</td>
  257. <td width="250">
  258. <div>
  259. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-干洁') > -1 ? true : false" showValue="干洁"></label-box>
  260. &nbsp;
  261. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-红肿') > -1 ? true : false" showValue="红肿"></label-box>
  262. &nbsp;
  263. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-分泌物') > -1 ? true : false" showValue="分泌物"></label-box>
  264. &nbsp;
  265. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-渗血') > -1 ? true : false" showValue="渗血"></label-box>
  266. </div>
  267. </td>
  268. <td width="10">)</td>
  269. <td width="65">导管打折</td>
  270. <td width="10">(</td>
  271. <td width="80">
  272. <div>
  273. <label-box :isChecked="predialysis.catheter_bend == 1 ? true : false" showValue="有"></label-box>
  274. &nbsp;
  275. <label-box :isChecked="predialysis.catheter_bend == 2 ? true : false" showValue="无"></label-box>
  276. </div>
  277. </td>
  278. <td width="10">)</td>
  279. <td></td>
  280. </tr>
  281. </tbody>
  282. </table>
  283. </td>
  284. </tr>
  285. </tbody>
  286. </table>
  287. <table class="print-table" border="1">
  288. <tbody>
  289. <tr>
  290. <td width="30px" class="title-box">透析处方</td>
  291. <td>
  292. <table class="table-box">
  293. <tbody>
  294. <tr>
  295. <td width="70">透析时间:</td>
  296. <td width="40">
  297. <div class="under-line">
  298. &nbsp;{{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }}
  299. </div>
  300. </td>
  301. <td width="10">h</td>
  302. <td width="40">
  303. <div class="under-line">
  304. &nbsp;{{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }}
  305. </div>
  306. </td>
  307. <td width="35">min</td>
  308. <td></td>
  309. <td width="55">血流量:</td>
  310. <td width="60">
  311. <div class="under-line">
  312. &nbsp;{{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "" }}
  313. </div>
  314. </td>
  315. <td width="60">ml/min</td>
  316. <td></td>
  317. <td width="40">体重:</td>
  318. <td width="35">透前</td>
  319. <td width="50">
  320. <div class="under-line">
  321. &nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "" }}
  322. </div>
  323. </td>
  324. <td width="20">Kg</td>
  325. <td width="45">干体重</td>
  326. <td width="50">
  327. <div class="under-line">
  328. &nbsp;{{ predialysis.dry_weight ? predialysis.dry_weight : "" }}
  329. </div>
  330. </td>
  331. <td width="20">Kg</td>
  332. <td></td>
  333. <td width="85">目标超滤量:</td>
  334. <td width="70">
  335. <div class="under-line">
  336. &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
  337. </div>
  338. </td>
  339. <td width="20">L</td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. <table class="table-box">
  344. <tbody>
  345. <tr>
  346. <td width="70">抗凝方式:</td>
  347. <td width="80">
  348. <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
  349. </td>
  350. <td width="10">(</td>
  351. <td width="35">首剂</td>
  352. <td width="50">
  353. <div class="under-line">
  354. &nbsp;
  355. <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
  356. </div>
  357. </td>
  358. <td width="50">mg</td>
  359. <td width="10"></td>
  360. <td width="35">维持</td>
  361. <td width="40">
  362. <div class="under-line">
  363. &nbsp;
  364. <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
  365. </div>
  366. </td>
  367. <td width="40">mg/h</td>
  368. <td width="10">)</td>
  369. <td width="100" v-if="prescription.anticoagulant == 3">
  370. <label-box :isChecked="prescription.anticoagulant == 3 ? true : false" showValue="低分子肝素"></label-box>
  371. </td>
  372. <td width="120" v-if="prescription.anticoagulant == 6">
  373. <label-box :isChecked="prescription.anticoagulant == 6 ? true : false" showValue="低分子肝素钙"></label-box>
  374. </td>
  375. <td width="120" v-if="prescription.anticoagulant == 7">
  376. <label-box :isChecked="prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素钠"></label-box>
  377. </td>
  378. <td width="60">
  379. <div class="under-line">
  380. &nbsp;
  381. <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
  382. <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
  383. <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
  384. </div>
  385. </td>
  386. <td width="20" v-if="isShowZero">mg</td>
  387. <td width="20" v-else>IU</td>
  388. <td width="80">
  389. <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
  390. </td>
  391. <td width="70">其他方式:</td>
  392. <td width="">
  393. <div class="under-line">
  394. &nbsp;
  395. <span v-if="prescription.anticoagulant == 4 || prescription.anticoagulant == 5">{{ prescription.anticoagulant_name }}</span>
  396. </div>
  397. </td>
  398. </tr>
  399. </tbody>
  400. </table>
  401. <table class="table-box">
  402. <tbody>
  403. <tr>
  404. <td width="85">透析液配方:</td>
  405. <td width="50">
  406. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : false" showValue="常规"></label-box>
  407. </td>
  408. <td width="50">
  409. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : false" showValue="低钙"></label-box>
  410. </td>
  411. <td width="120">
  412. (
  413. <label class="radio-lebel-box">
  414. <!-- <span class="radio-inner">
  415. <span class="radio-fang " ></span>
  416. <input type="radio" class="radio-no" value="1">
  417. </span> -->
  418. <span> 1.25mmol/L</span>
  419. </label>
  420. )
  421. </td>
  422. <td width="50">
  423. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钙') > -1 ? true : false" showValue="高钙"></label-box>
  424. </td>
  425. <td width="100">
  426. ( 1.75mmol/L )
  427. </td>
  428. <td width="50">
  429. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钠') > -1 ? true : false" showValue="低钠"></label-box>
  430. </td>
  431. <td width="110">
  432. (
  433. <label class="radio-lebel-box">
  434. <!-- <span class="radio-inner">
  435. <span class="radio-fang " ></span>
  436. <input type="radio" class="radio-no" value="1">
  437. </span> -->
  438. <span> 135mmol/L</span>
  439. </label>
  440. )
  441. </td>
  442. <td width="50">
  443. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钠') > -1 ? true : false" showValue="高钠"></label-box>
  444. </td>
  445. <td width="100">
  446. ( 145mmol/L )
  447. </td>
  448. <td></td>
  449. </tr>
  450. </tbody>
  451. </table>
  452. <table class="table-box">
  453. <tbody>
  454. <tr>
  455. <td width="55">置换量:</td>
  456. <td width="40">
  457. <div class="under-line">
  458. &nbsp;{{ prescription.replacement_total ? prescription.replacement_total : "" }}
  459. </div>
  460. </td>
  461. <td width="10">L</td>
  462. <td width="10"></td>
  463. <td width="70">治疗方式:</td>
  464. <td width="50">
  465. <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
  466. </td>
  467. <td width="50">
  468. <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
  469. </td>
  470. <td width="60">
  471. <label-box :isChecked="prescription.mode_id == 24 ? true : false" showValue="I-HDF"></label-box>
  472. </td>
  473. <td width="60">
  474. <label-box :isChecked="prescription.mode_id == 8 ? true : false" showValue="HFHD"></label-box>
  475. <!-- <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box> -->
  476. </td>
  477. <td width="90">
  478. <label-box :isChecked="prescription.mode_id == 9 ? true : false" showValue="HFHD+HP"></label-box>
  479. </td>
  480. <td width="35">其他</td>
  481. <td width="100">
  482. <div class="under-line">
  483. &nbsp;
  484. <span v-if="prescription.mode_id != 1 &&
  485. prescription.mode_id != 2&&
  486. prescription.mode_id != 24&&
  487. prescription.mode_id != 8&&
  488. prescription.mode_id != 9">
  489. {{ prescription.mode }}
  490. </span>
  491. </div>
  492. </td>
  493. <td width="140">透析器/灌流器型号:</td>
  494. <td width="">
  495. <div class="under-line">
  496. <span>
  497. <span>{{prescription.dialysis_dialyszers}}</span>
  498. <span v-if="prescription.dialysis_irrigation!=''">/{{prescription.dialysis_irrigation}}</span>
  499. </span>
  500. <!-- <span v-else>{{ prescription.dialyzer_perfusion_apparatus }}</span> -->
  501. </div>
  502. </td>
  503. </tr>
  504. </tbody>
  505. </table>
  506. <table class="table-box">
  507. <tbody>
  508. <tr>
  509. <td width="70">透析机号:</td>
  510. <td width="100">
  511. <div class="under-line">{{ getNumber() }}</div>
  512. </td>
  513. <td width=""></td>
  514. <td width="70">医生签名:</td>
  515. <td width="100">
  516. <div class="under-line" v-if="org_id == 9987">
  517. <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) }} </span>
  518. <img class="es-img" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
  519. </div>
  520. <div class="under-line" v-else>
  521. <span v-if="advices.length == 0"></span>
  522. <span v-else-if="setAdminUserES(advices[0][0].advice_doctor) == ''">{{ getAdminUser(advices[0][0].advice_doctor) }}</span>
  523. <img class="es-img" :src="setAdminUserES(advices[0][0].advice_doctor)" alt="" srcset="" v-else />
  524. </div>
  525. </td>
  526. <td width="70">上机护士:</td>
  527. <td width="100">
  528. <div class="under-line">
  529. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
  530. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) }}</span>
  531. <img class="es-img" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
  532. </div>
  533. </td>
  534. </tr>
  535. </tbody>
  536. </table>
  537. </td>
  538. </tr>
  539. </tbody>
  540. </table>
  541. <table class="print-table" border="1">
  542. <tbody>
  543. <tr>
  544. <td :rowspan="jilurow" width="30px" class="title-box">
  545. 透析中记录
  546. </td>
  547. <td width="100">时间</td>
  548. <td width="80">血压<br />mmHg</td>
  549. <td width="40">脉率<br />次/分</td>
  550. <td width="40">呼吸<br />次/分</td>
  551. <td width="60">血流量<br />ml/min</td>
  552. <td width="60">超滤量<br />L</td>
  553. <!-- <td width="60">置换量<br />L</td> -->
  554. <td width="60">静脉压<br />mmHg</td>
  555. <td width="60">跨膜压<br />mmHg</td>
  556. <td width="60" v-if="org_id == 9987">ktv</td>
  557. <!-- <td width="60">钠浓度<br/>mmol/L</td>
  558. <td width="80">透析液温度<br/>℃</td>
  559. <td width="60">置换率<br/>ml/min</td> -->
  560. <td width="">备 注</td>
  561. </tr>
  562. <tr v-for="monitor in monitors" :key="monitor.id">
  563. <td>
  564. &nbsp;
  565. <!-- <template>
  566. <span v-if="monitor.monitoring_date">
  567. {{monitor.monitoring_date | parseTime('{y}-{m}-{d}')}}
  568. </span>
  569. </template> -->
  570. {{ getTime(monitor.operate_time, "{h}:{i}") }}
  571. </td>
  572. <td>
  573. &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
  574. {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
  575. </td>
  576. <td>
  577. &nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
  578. </td>
  579. <td>
  580. &nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
  581. </td>
  582. <td>
  583. &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
  584. </td>
  585. <td v-if="isShowZero && monitor.operate_time">
  586. &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : 0 }}
  587. </td>
  588. <td v-else>
  589. &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
  590. </td>
  591. <!-- <td v-if="isShowZero && monitor.operate_time">
  592. &nbsp;{{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
  593. </td>
  594. <td v-else>
  595. &nbsp;{{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
  596. </td> -->
  597. <td>
  598. &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
  599. </td>
  600. <td>
  601. &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
  602. </td>
  603. <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
  604. <td>&nbsp;{{monitor.dialysate_temperature}}</td>
  605. <td>&nbsp;{{monitor.replacement_rate}}</td> -->
  606. <td v-if="org_id == 9987">
  607. &nbsp;{{monitor.ktv?monitor.ktv:""}}
  608. </td>
  609. <td>
  610. &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
  611. </td>
  612. </tr>
  613. </tbody>
  614. </table>
  615. <table class="print-table" border="1">
  616. <tbody>
  617. <tr>
  618. <td class="title-box" width="30px">透后评估</td>
  619. <td>
  620. <table class="table-box">
  621. <tbody>
  622. <tr>
  623. <td width="90">实际治疗时间</td>
  624. <td width="40">
  625. <div class="under-line">
  626. &nbsp;{{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "0" }}
  627. </div>
  628. </td>
  629. <td width="10">h</td>
  630. <td width="40">
  631. <div class="under-line">
  632. &nbsp;{{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : "0" }}
  633. </div>
  634. </td>
  635. <td width="35">min</td>
  636. <td></td>
  637. <td width="75">实际超滤量</td>
  638. <td width="70">
  639. <div class="under-line">
  640. &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
  641. </div>
  642. </td>
  643. <td width="20">L</td>
  644. <td></td>
  645. <td width="60">透后体重</td>
  646. <td width="50">
  647. <div class="under-line">
  648. &nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}
  649. </div>
  650. </td>
  651. <td width="20">Kg</td>
  652. <td></td>
  653. <td width="95">透析器凝血:</td>
  654. <td width="220">
  655. <div class="under_line" style="width:150px;">
  656. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  657. </div>
  658. </td>
  659. </tr>
  660. </tbody>
  661. </table>
  662. <table class="table-box">
  663. <tbody>
  664. <tr>
  665. <td width="130">拔针后穿刺点渗血:</td>
  666. <td width="80">
  667. <label-box :isChecked="afterdialysis.puncture_point_oozing_blood == 1 ? true : false" showValue="有"></label-box>
  668. <label-box :isChecked="afterdialysis.puncture_point_oozing_blood == 2 ? true : false" showValue="无"></label-box>
  669. </td>
  670. <td width="10"></td>
  671. <td width="85">穿刺处血肿:</td>
  672. <td width="80">
  673. <label-box :isChecked="afterdialysis.puncture_point_haematoma == 1 ? true : false" showValue="有"></label-box>
  674. <label-box :isChecked="afterdialysis.puncture_point_haematoma == 2 ? true : false" showValue="无"></label-box>
  675. </td>
  676. <td width="10"></td>
  677. <td width="105" colspan="2">
  678. 压迫后内瘘震颤:
  679. <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('存在') > -1 ? true : false" showValue="存在"></label-box>
  680. &nbsp;
  681. <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('减弱') > -1 ? true : false" showValue="减弱"></label-box>
  682. &nbsp;
  683. <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
  684. </td>
  685. <td></td>
  686. </tr>
  687. </tbody>
  688. </table>
  689. <!-- <table class="table-box">
  690. <tbody>
  691. <tr>
  692. <td width="55">并发症:</td>
  693. <td :width="org_id == 9987 ? 670 : 600">
  694. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
  695. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
  696. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
  697. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('头晕') > -1 ? true : false" showValue="头晕"></label-box>
  698. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('头痛') > -1 ? true : false" showValue="头痛"></label-box>
  699. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('呕吐') > -1 ? true : false" showValue="呕吐"></label-box>
  700. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
  701. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('出血') > -1 ? true : false" showValue="出血"></label-box>
  702. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心衰') > -1 ? true : false" showValue="心衰"></label-box>
  703. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('腹痛') > -1 ? true : false" showValue="腹痛"></label-box>
  704. <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
  705. <label-box v-if="org_id == 9987" :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('低血糖') > -1 ? true : false" showValue="低血糖"></label-box>
  706. </td>
  707. <td></td>
  708. </tr>
  709. </tbody>
  710. </table> -->
  711. <!--<table class="table-box">-->
  712. <!--<tbody>-->
  713. <!--<tr>-->
  714. <!--<td width="">-->
  715. <!--<div class="under-line">&nbsp;{{summary.dialysis_summary.substring(56,120)}}&nbsp;</div>-->
  716. <!--</td>-->
  717. <!--</tr>-->
  718. <!--</tbody>-->
  719. <!--</table>-->
  720. <!-- <table class="table-box">
  721. <tbody>
  722. <tr>
  723. <td width="70">患者去向:</td>
  724. <td width="160">
  725. <label-box :isChecked="afterdialysis.patient_gose == 1 ? true : false" showValue="离院"></label-box>
  726. <label-box :isChecked="afterdialysis.patient_gose == 2 ? true : false" showValue="留观"></label-box>
  727. <label-box :isChecked="afterdialysis.patient_gose == 3 ? true : false" showValue="住院"></label-box>
  728. </td>
  729. <td width="10">(</td>
  730. <td width="35">科室</td>
  731. <td width="">
  732. <div class="under-line">
  733. &nbsp;
  734. <span v-if="afterdialysis.patient_gose == 3">{{ afterdialysis.inpatient_department }}</span>
  735. </div>
  736. </td>
  737. <td width="220">交待病房护士/患者/陪人观察内容:</td>
  738. <td width="160">
  739. <label-box :isChecked=" afterdialysis.patient_gose == 3 && afterdialysis.observation_content.indexOf('意识状态') > -1 ? true : false" showValue="意识状态"></label-box>
  740. <label-box :isChecked="afterdialysis.patient_gose == 3 && afterdialysis.observation_content.indexOf('生命体征') > -1 ? true : false" showValue="生命体征"></label-box>
  741. </td>
  742. </tr>
  743. </tbody>
  744. </table> -->
  745. <!-- <table class="table-box">
  746. <tbody>
  747. <tr>
  748. <td width="530">
  749. <label-box :isChecked="afterdialysis.patient_gose == 3 && afterdialysis.observation_content.indexOf('内瘘搏动/渗血') > -1 ? true : false" showValue="内瘘搏动/渗血"></label-box>
  750. <label-box :isChecked="afterdialysis.patient_gose == 3 && afterdialysis.observation_content.indexOf('导管固定/穿刺口渗血') > -1 ? true : false" showValue="导管固定/穿刺口渗血"></label-box>
  751. <label-box :isChecked="afterdialysis.patient_gose == 3 && afterdialysis.observation_content.indexOf('动静脉直接穿刺口渗血/肢端循环情况') > -1 ? true : false" showValue="动静脉直接穿刺口渗血/肢端循环情况"></label-box>
  752. </td>
  753. <td width="40">其他:</td>
  754. <td width="">
  755. <div class="under-line">
  756. &nbsp;
  757. <span v-if="afterdialysis.patient_gose == 3">{{ afterdialysis.observation_content_other }}</span>
  758. </div>
  759. </td>
  760. </tr>
  761. </tbody>
  762. </table> -->
  763. <table class="table-box">
  764. <tbody>
  765. <tr>
  766. <td width="150">当班责任(核对)护士:</td>
  767. <td width="100">
  768. <div class="under-line">
  769. <!--<span v-if="afterdialysis.creater==0">&nbsp;</span>-->
  770. <!--<img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else>-->
  771. <span v-if="setAdminUserES(afterdialysis.creater) == ''">{{ getAdminUser(afterdialysis.creater) }}</span>
  772. <img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else />
  773. </div>
  774. </td>
  775. <td width=""></td>
  776. <td width="70">下机护士:</td>
  777. <td width="100">
  778. <div class="under-line">
  779. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
  780. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
  781. <img class="es-img" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
  782. </div>
  783. </td>
  784. </tr>
  785. </tbody>
  786. </table>
  787. </td>
  788. </tr>
  789. </tbody>
  790. </table>
  791. <table class="print-table-no" border="1" count="0">
  792. <tbody>
  793. <tr>
  794. <td width="40px">时间</td>
  795. <td width="120px">医嘱<br />内容</td>
  796. <td width="80px">医生<br />签名</td>
  797. <td width="80px">执行<br />护士</td>
  798. <td width="55px">执行<br />时间</td>
  799. <td width="75px">核对<br />护士</td>
  800. <!-- <td width="10px"></td>
  801. <td width="40px">时间</td>
  802. <td width="120px">医嘱<br />内容</td>
  803. <td width="80px">医生<br />签名</td>
  804. <td width="80px">执行<br />护士</td>
  805. <td width="55px">执行<br />时间</td>
  806. <td width="75px">核对<br />护士</td> -->
  807. </tr>
  808. <tr v-for="(advice, index) in advices" :key="index">
  809. <td height="10px">
  810. <span v-if="advice[0].start_time">
  811. {{ getTime(advice[0].start_time, "{h}:{i}") }}
  812. </span>
  813. <span v-else>&nbsp;<br />&nbsp;</span>
  814. </td>
  815. <td class="advice-name">
  816. <span v-if="advice[0].parent_id > 0">└</span>
  817. <span>{{ advice[0].advice_name }}</span>
  818. <span v-if="advice[0].advice_desc">{{ advice[0].advice_desc }}{{ advice[0].drug_spec_unit }}</span>
  819. <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
  820. <span v-if="advice[0].prescribing_number">* {{ advice[0].prescribing_number }}{{ advice[0].prescribing_number_unit }}</span>
  821. <span v-if="advice[0].single_dose != 0">单次用量 {{ advice[0].single_dose }}{{ advice[0].single_dose_unit }}</span>
  822. <span>{{ advice[0].delivery_way }}</span>
  823. <span>{{ advice[0].execution_frequency }}</span>
  824. <div v-for="(child, childindex) in advice[0].children" :key="childindex" class="advice-children">
  825. <div>▲</div>
  826. <div>
  827. <span>{{ child.advice_name }}</span>
  828. <span v-if="child.advice_desc">{{ child.advice_desc }}{{ child.drug_spec_unit }}</span>
  829. <span v-if="child.prescribing_number">* {{ child.prescribing_number }}{{ child.prescribing_number_unit }}</span>
  830. <span v-if="child.single_dose != 0">单次用量 {{ child.single_dose }}{{ child.single_dose_unit }}</span>
  831. </div>
  832. </div>
  833. </td>
  834. <td>
  835. <!--<img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)" alt="" srcset=""-->
  836. <!--v-show="advice[0].advice_doctor>0">-->
  837. <!---->
  838. <span v-if="setAdminUserES(advice[0].advice_doctor) == ''">{{ getAdminUser(advice[0].advice_doctor) }}</span>
  839. <img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)" alt="" srcset="" v-else />
  840. </td>
  841. <td>
  842. <!--<img class="es-img" :src="setAdminUserES(advice[0].execution_staff)" alt="" srcset=""-->
  843. <!--v-show="advice[0].execution_staff>0">-->
  844. <span v-if="setAdminUserES(advice[0].execution_staff) == ''">{{ getAdminUser(advice[0].execution_staff) }}</span>
  845. <img class="es-img" :src="setAdminUserES(advice[0].execution_staff)" alt="" srcset="" v-else />
  846. </td>
  847. <td>
  848. <span v-if="advice[0].execution_time">
  849. <!--{{advice[0].execution_time| parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}-->
  850. {{ getTime(advice[0].execution_time, "{h}:{i}") }}
  851. </span>
  852. </td>
  853. <td>
  854. <!--<img class="es-img" :src="setAdminUserES(advice[0].checker)" alt="" srcset=""-->
  855. <!--v-show="advice[0].checker>0">-->
  856. <span v-if="setAdminUserES(advice[0].checker) == ''">{{ getAdminUser(advice[0].checker) }}</span>
  857. <img class="es-img" :src="setAdminUserES(advice[0].checker)" alt="" srcset="" v-else />
  858. </td>
  859. </tr>
  860. <!-- 使整个表有5行以上 -->
  861. <!-- <template v-if="advices.length < 5">
  862. <tr v-for="(num) in (5 - advices.length)" :key="'5_' + num">
  863. <td>&nbsp;</td>
  864. <td></td>
  865. <td></td>
  866. <td></td>
  867. <td></td>
  868. <td></td>
  869. <td></td>
  870. <td>&nbsp;</td>
  871. <td></td>
  872. <td></td>
  873. <td></td>
  874. <td></td>
  875. <td></td>
  876. </tr>
  877. </template> -->
  878. </tbody>
  879. </table>
  880. <table class="print-table" border="1">
  881. <tr>
  882. <!-- <td width="70">其他记录:</td> -->
  883. <td width="85">透析小结:</td>
  884. <td width="">
  885. <div style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;">
  886. {{ summary.dialysis_summary }}
  887. </div>
  888. </td>
  889. </tr>
  890. </table>
  891. <table class="table-box" style="margin-top: 10px;">
  892. <tbody>
  893. <tr>
  894. <td width="" style="font-size:13px">
  895. 注:透析器凝血评价标准:“0 级” 无凝血或数条纤维束凝血,“Ⅰ 级”
  896. 少于10%纤维凝血,“Ⅱ 级” 少于50%纤维凝血,“Ⅲ 级” 大于50%纤维凝血。
  897. </td>
  898. </tr>
  899. </tbody>
  900. </table>
  901. </div>
  902. </div>
  903. </div>
  904. </template>
  905. <script>
  906. import { getDialysisRecord } from '@/api/dialysis'
  907. import { getDataConfig } from '@/utils/data'
  908. import { jsGetAge, uParseTime } from '@/utils/tools'
  909. import LabelBox from '../printItem/LabelBox'
  910. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  911. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  912. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  913. import print from 'print-js'
  914. export default {
  915. name: 'dialysisPrintOrderOne',
  916. components: {
  917. // DialysisPrintOrderOne,
  918. // DialysisPrintOrderTwo,
  919. LabelBox,
  920. BreadCrumb
  921. },
  922. data() {
  923. return {
  924. way_arr: [],
  925. consciousness_arr: [],
  926. appetite_arr: [],
  927. posture_arr: [],
  928. sick_condition_arr: [],
  929. precaution_arr: [],
  930. intake_arr: [],
  931. nutrition_arr: [],
  932. crumbs: [
  933. { path: false, name: '透析管理' },
  934. { path: false, name: '打印单' }
  935. ],
  936. operators: [],
  937. adminUser: [],
  938. check: {},
  939. dialysisOrder: {
  940. DeviceNumber: []
  941. },
  942. operatorMaps: {},
  943. complications: [
  944. '低血压',
  945. '高血压',
  946. '心律失常',
  947. '头晕',
  948. '头痛',
  949. '呕吐',
  950. '抽搐',
  951. '出血',
  952. '心衰',
  953. '腹痛',
  954. '无'
  955. ],
  956. jilurow: 0,
  957. advice_jilurow: 0,
  958. loading: false,
  959. orgname: '',
  960. patientInfo_gender_1: false,
  961. patientInfo_gender_2: false,
  962. patientInfo_source_2: false,
  963. patientInfo_source_1: false,
  964. modeOptions: {},
  965. replacementWays: [],
  966. perfusionApparatus: [],
  967. anticoagulantsConfit: {},
  968. bloodAccessParOpera: {},
  969. dialysateFormulationOptions: {},
  970. queryParams: {
  971. xtdate: '',
  972. xtno: ''
  973. },
  974. patientInfo: {
  975. birth: '',
  976. age: '',
  977. DialysisSchedule: {
  978. device_number: { number: '' },
  979. device_zone: { name: '' }
  980. },
  981. gender: 0
  982. },
  983. predialysis: {
  984. score: '',
  985. internal_fistula: '',
  986. internal_fistula_skin: '',
  987. catheter: '',
  988. blood_access_part_opera_name: ''
  989. },
  990. afterdialysis: {
  991. complications_index: ''
  992. },
  993. prescription: {
  994. dialysate_formulation_name: '',
  995. device: {}
  996. },
  997. advices: [],
  998. users: [],
  999. monitors: [],
  1000. summary: {},
  1001. receiverTreatmentAccess: {},
  1002. org_template_info: {},
  1003. isShowZero: false,
  1004. doctor_advices: [],
  1005. advice_groups: [],
  1006. AlPanel: {
  1007. id: 0,
  1008. name: '',
  1009. type: 1,
  1010. shouji: 2,
  1011. weichi: 2,
  1012. zongliang: 2,
  1013. gaimingcheng: -1,
  1014. gaijiliang: -1,
  1015. shouji_unit: 'mg',
  1016. weichi_unit: 'mg/h',
  1017. zongliang_unit: 'mg',
  1018. gaimingcheng_unit: '',
  1019. gaijiliang_unit: ''
  1020. },
  1021. org_id:0,
  1022. }
  1023. },
  1024. methods: {
  1025. checkData(){
  1026. if(this.receiverTreatmentAccess.way == 0){
  1027. this.$message.error('入院方式未填')
  1028. }else if(this.receiverTreatmentAccess.consciousness == 0){
  1029. this.$message.error('意识未填')
  1030. }else if(this.predialysis.temperature == 0){
  1031. this.$message.error('透前体温未填')
  1032. }else if(this.receiverTreatmentAccess.posture == 0){
  1033. this.$message.error('体位未填')
  1034. }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
  1035. this.$message.error('透前血压未填完整')
  1036. }else if(this.predialysis.is_hemorrhage == 0){
  1037. this.$message.error('出血未填')
  1038. }else if(this.predialysis.blood_access_part_opera_name == ''){
  1039. this.$message.error('血管通路未填')
  1040. }else if(this.predialysis.puncture_way == ''){
  1041. this.$message.error('穿刺方法未填')
  1042. }else if(this.predialysis.internal_fistula == ''){
  1043. this.$message.error('内瘘震颤未填')
  1044. }else if(this.predialysis.internal_fistula_skin == ''){
  1045. this.$message.error('内瘘震颤皮肤未填')
  1046. }else if(this.predialysis.catheter == ''){
  1047. this.$message.error('导管穿刺口未填')
  1048. }else if(this.predialysis.catheter_bend == 0){
  1049. this.$message.error('导管打折未填')
  1050. }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
  1051. this.$message.error('透析时间未填')
  1052. }else if(this.prescription.blood_flow_volume == 0){
  1053. this.$message.error('血流量未填')
  1054. }else if(this.predialysis.weight_before == 0){
  1055. this.$message.error('透前体重未填')
  1056. }else if(this.predialysis.dry_weight == 0){
  1057. this.$message.error('干体重未填')
  1058. }else if(this.prescription.target_ultrafiltration == 0){
  1059. this.$message.error('目标超滤量未填')
  1060. }else if(this.prescription.anticoagulant == 0){
  1061. this.$message.error('抗凝剂未填')
  1062. }else if(this.prescription.dialysate_formulation_name == ""){
  1063. this.$message.error('透析液配方未填')
  1064. }else if(this.prescription.replacement_total == "" && this.prescription.mode_id == 2){
  1065. this.$message.error('置换量未填')
  1066. }else if(this.prescription.mode_id == ""){
  1067. this.$message.error('透析模式未填')
  1068. }else if(this.prescription.dialysis_dialyszers == "" && (this.org_id == 9987 || this.org_id == 3877 || this.org_id == 4 || this.org_id == 9671)){
  1069. this.$message.error('透析器未填')
  1070. }else if(this.prescription.dialyzer_perfusion_apparatus == "" && (this.org_id != 9987 && this.org_id != 3877 && this.org_id != 4 && this.org_id != 9671)){
  1071. this.$message.error('透析器未填')
  1072. }else if((this.prescription.prescription_doctor == 0 && this.prescription.creater == 0) && this.org_id == 9987){
  1073. this.$message.error('医生签名未填')
  1074. }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
  1075. this.$message.error('医生签名未填')
  1076. }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
  1077. this.$message.error('上机护士未填')
  1078. }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
  1079. this.$message.error('实际治疗时间未填')
  1080. }else if(this.afterdialysis.actual_ultrafiltration == 0){
  1081. this.$message.error('实际超滤量未填')
  1082. }else if(this.afterdialysis.weight_after == 0){
  1083. this.$message.error('透后体重未填')
  1084. }else if(this.afterdialysis.cruor == ""){
  1085. this.$message.error('透析器凝血未填')
  1086. }else if(this.afterdialysis.puncture_point_oozing_blood == 0){
  1087. this.$message.error('拔针后穿刺点渗血未填')
  1088. }else if(this.afterdialysis.puncture_point_haematoma == 0){
  1089. this.$message.error('穿刺处血肿未填')
  1090. }else if(this.afterdialysis.internal_fistula == ""){
  1091. this.$message.error('压迫后内瘘震颤未填')
  1092. }else if(this.afterdialysis.complication == ""){
  1093. this.$message.error('并发症未填')
  1094. }else if(this.summary.dialysis_summary == ""){
  1095. this.$message.error('透析小结未填')
  1096. }else if(this.afterdialysis.patient_gose == 0){
  1097. this.$message.error('患者去向未填')
  1098. }else if(this.afterdialysis.patient_gose == 3 && this.afterdialysis.observation_content == ""){
  1099. this.$message.error('交待病房护士/患者/陪人观察内容未填')
  1100. }else if(this.afterdialysis.creater == 0){
  1101. this.$message.error('当班责任(核对)护士未填')
  1102. }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
  1103. this.$message.error('下机护士未填')
  1104. }else if(this.tableAdvice.length > 0){
  1105. let num = 0
  1106. this.tableAdvice.map(item => {
  1107. if(item.id > 0 && (item.created_time || item.start_time)){
  1108. this.users.map(it => {
  1109. if(it.id == item.advice_doctor){
  1110. if(it.user_type == 3){
  1111. num++
  1112. this.$message.closeAll()
  1113. this.$message.error('存在不是医生保存的医嘱')
  1114. }else if(it.id == item.execution_staff && item.execution_staff > 0){
  1115. if(it.user_type == 2){
  1116. num++
  1117. this.$message.closeAll()
  1118. this.$message.error('存在不是护士执行的医嘱')
  1119. }
  1120. }else if(it.id == item.checker && item.checker > 0){
  1121. if(it.user_type == 2){
  1122. num++
  1123. this.$message.closeAll()
  1124. this.$message.error('存在不是护士核对的医嘱')
  1125. }
  1126. }
  1127. }else if(it.id == item.execution_staff && item.execution_staff > 0){
  1128. if(it.user_type == 2){
  1129. num++
  1130. this.$message.closeAll()
  1131. this.$message.error('存在不是护士执行的医嘱')
  1132. }
  1133. }else if(it.id == item.checker && item.checker > 0){
  1134. if(it.user_type == 2){
  1135. num++
  1136. this.$message.closeAll()
  1137. this.$message.error('存在不是护士核对的医嘱')
  1138. }
  1139. }
  1140. })
  1141. }
  1142. })
  1143. if(num == 0){
  1144. this.$message.success('核对完成')
  1145. }
  1146. }else{
  1147. this.$message.success('核对完成')
  1148. }
  1149. },
  1150. getAdminUser(id) {
  1151. if (id == 0) {
  1152. return ''
  1153. }
  1154. if (id == undefined) {
  1155. return ''
  1156. }
  1157. for (let i = 0; i < this.adminUser.length; i++) {
  1158. if (this.adminUser[i].id == id) {
  1159. return this.adminUser[i].name
  1160. }
  1161. }
  1162. },
  1163. getTime(value, temp) {
  1164. if (value == 0) {
  1165. return ''
  1166. }
  1167. if (value != undefined) {
  1168. return uParseTime(value, temp)
  1169. }
  1170. return ''
  1171. },
  1172. printThisPage() {
  1173. var ptime = Math.round(new Date().getTime() / 1000)
  1174. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1175. const style =
  1176. '@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 20px 20px 20px}.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:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.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;}'
  1177. if (this.org_template_info.template_id == 1) {
  1178. printJS({
  1179. printable: 'dialysis-print-box',
  1180. type: 'html',
  1181. style: style,
  1182. scanStyles: false
  1183. })
  1184. } else if (
  1185. this.org_template_info.template_id == 2 ||
  1186. this.org_template_info.template_id == 0
  1187. ) {
  1188. printJS({
  1189. printable: 'dialysis-print-box-1',
  1190. type: 'html',
  1191. style: style,
  1192. scanStyles: false
  1193. })
  1194. }
  1195. },
  1196. getNumber() {
  1197. if (this.dialysisOrder != null) {
  1198. return (
  1199. this.patientInfo.DialysisSchedule.device_zone.name +
  1200. this.dialysisOrder.DeviceNumber.number
  1201. )
  1202. } else {
  1203. return (
  1204. this.patientInfo.DialysisSchedule.device_zone.name +
  1205. this.patientInfo.DialysisSchedule.device_number.number
  1206. )
  1207. }
  1208. },
  1209. getXuserName(id) {
  1210. if (id <= 0) {
  1211. return ''
  1212. }
  1213. var name = ''
  1214. if (this.users == null || typeof this.users.length === 'undefined') {
  1215. return name
  1216. }
  1217. var leng = this.users.length
  1218. if (leng == 0) {
  1219. return name
  1220. }
  1221. for (let index = 0; index < leng; index++) {
  1222. if (this.users[index].id == id) {
  1223. name = this.users[index].name
  1224. break
  1225. }
  1226. }
  1227. return name
  1228. },
  1229. setAdminUserES(id) {
  1230. if (id == 0) {
  1231. return ''
  1232. }
  1233. if (id in this.operatorMaps) {
  1234. return this.operatorMaps[id].url
  1235. } else {
  1236. return ''
  1237. }
  1238. },
  1239. modeName(mode_id) {
  1240. return typeof this.modeOptions[mode_id] !== 'undefined' &&
  1241. typeof this.modeOptions[mode_id].name !== 'undefined'
  1242. ? this.modeOptions[mode_id].name
  1243. : ''
  1244. },
  1245. getDialysisRecord() {
  1246. this.loading = true
  1247. getDialysisRecord(this.queryParams).then(response => {
  1248. if (response.data.state == 1) {
  1249. this.adminUser = response.data.data.users
  1250. this.users = response.data.data.users
  1251. this.patientInfo = response.data.data.patientInfo
  1252. this.patientInfo.birth = uParseTime(
  1253. this.patientInfo.birthday,
  1254. '{y}-{m}-{d}'
  1255. )
  1256. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1257. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1258. this.patientInfo.first_dialysis_date = uParseTime(
  1259. response.data.data.patientInfo.first_dialysis_date,
  1260. '{y}-{m}-{d}'
  1261. )
  1262. } else {
  1263. this.patientInfo.first_dialysis_date = ''
  1264. }
  1265. this.check = response.data.data.check
  1266. this.predialysis = response.data.data.PredialysisEvaluation
  1267. console.log('透前评估', this.predialysis)
  1268. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1269. this.predialysis.blood_access_part_opera_id
  1270. )
  1271. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1272. console.log('透后评估数据', this.afterdialysis)
  1273. this.operators = response.data.data.operators
  1274. this.dialysisOrder =
  1275. response.data.data.dialysisOrder === null
  1276. ? null
  1277. : response.data.data.dialysisOrder
  1278. if (this.operators.length > 0) {
  1279. var operatorsLen = this.operators.length
  1280. for (var index = 0; index < operatorsLen; index++) {
  1281. this.$set(
  1282. this.operatorMaps,
  1283. this.operators[index].creator,
  1284. this.operators[index]
  1285. )
  1286. }
  1287. }
  1288. this.afterdialysis.txqnx = -1
  1289. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1290. this.afterdialysis.txqnx = 0
  1291. }
  1292. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1293. this.afterdialysis.txqnx = 1
  1294. }
  1295. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1296. this.afterdialysis.txqnx = 2
  1297. }
  1298. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1299. this.afterdialysis.txqnx = 3
  1300. }
  1301. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1302. ','
  1303. )
  1304. this.afterdialysis.complications_other = []
  1305. this.afterdialysis.complications_index = []
  1306. var acllen = this.afterdialysis.complications.length
  1307. for (let index = 0; index < acllen; index++) {
  1308. if (
  1309. this.complications.indexOf(
  1310. this.afterdialysis.complications[index]
  1311. ) >= 0
  1312. ) {
  1313. this.afterdialysis.complications_index.push(
  1314. this.afterdialysis.complications[index]
  1315. )
  1316. } else if (
  1317. this.complications.indexOf(
  1318. this.afterdialysis.complications[index]
  1319. ) < 0 &&
  1320. this.afterdialysis.complications_other.indexOf(
  1321. this.afterdialysis.complications[index]
  1322. ) < 0
  1323. ) {
  1324. this.afterdialysis.complications_other.push(
  1325. this.afterdialysis.complications[index]
  1326. )
  1327. }
  1328. }
  1329. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1330. ','
  1331. )
  1332. this.prescription = response.data.data.dialysisPrescription
  1333. console.log('透析处方', this.prescription)
  1334. this.receiverTreatmentAccess =
  1335. response.data.data.receiverTreatmentAccess
  1336. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1337. var rwLen = this.replacementWays.length
  1338. this.prescription.replacement = ''
  1339. for (let index = 0; index < rwLen; index++) {
  1340. if (
  1341. this.replacementWays[index].id ==
  1342. this.prescription.replacement_way
  1343. ) {
  1344. this.prescription.replacement = this.replacementWays[index].name
  1345. break
  1346. }
  1347. }
  1348. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1349. this.prescription.dialysate_formulation
  1350. )
  1351. var paLen = this.perfusionApparatus.length
  1352. this.prescription.perfusion_apparatus_name = ''
  1353. for (let index = 0; index < paLen; index++) {
  1354. if (
  1355. this.perfusionApparatus[index].id ==
  1356. this.prescription.perfusion_apparatus
  1357. ) {
  1358. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1359. index
  1360. ].name
  1361. break
  1362. }
  1363. }
  1364. var acLen = this.anticoagulantsConfit.length
  1365. var thisALID = this.prescription.anticoagulant
  1366. this.prescription.anticoagulant_name = ''
  1367. if (
  1368. typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
  1369. this.anticoagulantsConfit[thisALID] != null
  1370. ) {
  1371. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1372. thisALID
  1373. ].name
  1374. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1375. }
  1376. // this.advices = response.data.data.advices
  1377. // var advices = response.data.data.advices.concat(response.data.data.doctorAdvice)
  1378. var advices = response.data.data.advices
  1379. var newAdvices = this.unique(advices)
  1380. this.advices = newAdvices
  1381. this.tableAdvice = newAdvices
  1382. // console.log("去重后",this.advices)
  1383. this.advices = this.advices.filter(o => o.advice_type != 1)
  1384. this.monitors = response.data.data.monitors
  1385. this.summary = response.data.data.summary
  1386. this.org_template_info = response.data.data.org_template_info
  1387. // 配置超滤量和置换量是否要显示0还是空
  1388. if (this.org_template_info.org_id == 9535) {
  1389. this.isShowZero = true
  1390. }
  1391. if (this.monitors.length < 8) {
  1392. var nl = 8 - this.monitors.length
  1393. for (let index = 0; index < nl; index++) {
  1394. this.monitors.push([])
  1395. }
  1396. }
  1397. this.jilurow = this.monitors.length + 1
  1398. this.advice_jilurow = this.advices.length + 1
  1399. var childMap = {}
  1400. for (const index in this.advices) {
  1401. if (this.advices[index].parent_id == 0) {
  1402. continue
  1403. }
  1404. if (!(this.advices[index].parent_id in childMap)) {
  1405. childMap[this.advices[index].parent_id] = []
  1406. }
  1407. childMap[this.advices[index].parent_id].push(this.advices[index])
  1408. }
  1409. var advices = []
  1410. for (const index in this.advices) {
  1411. if (this.advices[index].parent_id > 0) {
  1412. continue
  1413. }
  1414. var item = this.advices[index]
  1415. if (item.id in childMap) {
  1416. item.children = childMap[item.id]
  1417. } else {
  1418. item.children = []
  1419. }
  1420. advices.push(item)
  1421. }
  1422. var leftAdvice = []
  1423. var rightAdvice = []
  1424. var adlen = advices.length
  1425. console.log(adlen,'adlen')
  1426. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1427. for (var i = 0; i < adlen; i++) {
  1428. leftAdvice.push(advices[i])
  1429. // rightAdvice.push(advices[i + halfLen])
  1430. }
  1431. if (adlen < 5) {
  1432. var nl = 5 - leftAdvice.length
  1433. for (let index = 0; index < nl; index++) {
  1434. leftAdvice.push([])
  1435. }
  1436. // var nl = 5 - rightAdvice.length
  1437. // for (let index = 0; index < nl; index++) {
  1438. // rightAdvice.push([])
  1439. // }
  1440. }
  1441. this.advices = []
  1442. for (var i = 0; i < adlen; i++) {
  1443. var item = []
  1444. item.push(leftAdvice[i])
  1445. // item.push(rightAdvice[i])
  1446. this.advices.push(item)
  1447. }
  1448. console.log(this.advices,'临时医嘱')
  1449. this.loading = false
  1450. this.doctor_advices =
  1451. response.data.data.advices == null
  1452. ? []
  1453. : response.data.data.advices
  1454. for (let index = 0; index < this.doctor_advices.length; index++) {
  1455. this.doctor_advices[index]['isShow'] = 2
  1456. }
  1457. if (this.doctor_advices.length > 0) {
  1458. var group = this.newAdviceGroupObject()
  1459. var initGroupBlock = function(group, advice) {
  1460. group.group_no = advice.groupno
  1461. }
  1462. for (
  1463. let index = this.doctor_advices.length - 1;
  1464. index >= 0;
  1465. index--
  1466. ) {
  1467. var new_advice_index = 0
  1468. if (
  1469. 'children' in this.doctor_advices[index] &&
  1470. this.doctor_advices[index].children.length > 0
  1471. ) {
  1472. new_advice_index =
  1473. index + this.doctor_advices[index].children.length + 1
  1474. var doctor_advice = {
  1475. delivery_way: this.doctor_advices[index].delivery_way,
  1476. execution_frequency: this.doctor_advices[index]
  1477. .execution_frequency,
  1478. groupno: this.doctor_advices[index].groupno,
  1479. id: this.doctor_advices[index].id,
  1480. parent_id: this.doctor_advices[index].parent_id,
  1481. children: this.doctor_advices[index].children,
  1482. remark: this.doctor_advices[index].remark
  1483. }
  1484. doctor_advice['isShow'] = 1
  1485. this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1486. // this.doctor_advices.push(doctor_advice)
  1487. }
  1488. }
  1489. for (let index = 0; index < this.doctor_advices.length; index++) {
  1490. const advice = this.doctor_advices[index]
  1491. if (advice.groupno == 0) {
  1492. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1493. if (advice.parent_id > 0) {
  1494. if (this.advice_groups.length > 0) {
  1495. var parent_group = this.advice_groups[
  1496. this.advice_groups.length - 1
  1497. ]
  1498. if (parent_group.advices.length > 0) {
  1499. if (parent_group.advices[0].id == advice.parent_id) {
  1500. parent_group.advices.push(advice)
  1501. }
  1502. }
  1503. }
  1504. continue
  1505. } else {
  1506. if (group.group_no > 0) {
  1507. this.advice_groups.push(group)
  1508. group = this.newAdviceGroupObject()
  1509. }
  1510. initGroupBlock(group, advice)
  1511. group.advices.push(advice)
  1512. this.advice_groups.push(group)
  1513. group = this.newAdviceGroupObject()
  1514. continue
  1515. }
  1516. }
  1517. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1518. this.advice_groups.push(group)
  1519. group = this.newAdviceGroupObject()
  1520. }
  1521. if (group.group_no == 0) {
  1522. initGroupBlock(group, advice)
  1523. }
  1524. if (group.group_no == advice.groupno) {
  1525. group.advices.push(advice)
  1526. }
  1527. }
  1528. if (group.group_no > 0) {
  1529. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1530. this.advice_groups.push(group)
  1531. }
  1532. }
  1533. console.log(this.advice_groups)
  1534. } else {
  1535. this.loading = false
  1536. this.$message.error('请求数据失败')
  1537. return false
  1538. }
  1539. })
  1540. },
  1541. bloodAccessParOperaName(id) {
  1542. if (id in this.bloodAccessParOpera) {
  1543. return this.bloodAccessParOpera[id].name
  1544. }
  1545. return ''
  1546. },
  1547. dialysateFormulationName(id) {
  1548. if (id in this.dialysateFormulationOptions) {
  1549. return this.dialysateFormulationOptions[id].name
  1550. }
  1551. return ''
  1552. },
  1553. getAge: function(val) {
  1554. if (val.birthday != 0) {
  1555. return jsGetAge(val.birth, '-')
  1556. }
  1557. return ''
  1558. },
  1559. newAdviceGroupObject: function() {
  1560. return Object.assign(
  1561. {},
  1562. {
  1563. group_no: 0,
  1564. // advice_doctor: 0,
  1565. // start_time: 0,
  1566. advices: []
  1567. // exec_staff: 0,
  1568. // exec_time: 0,
  1569. // checker: 0,
  1570. }
  1571. )
  1572. },
  1573. unique(arr) {
  1574. const res = new Map();
  1575. return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));
  1576. },
  1577. },
  1578. watch: {
  1579. 'patientInfo.gender': function() {
  1580. if (this.patientInfo.gender == 1) {
  1581. this.patientInfo_gender_1 = true
  1582. this.patientInfo_gender_2 = false
  1583. } else if (this.patientInfo.gender == 2) {
  1584. this.patientInfo_gender_2 = true
  1585. this.patientInfo_gender_1 = false
  1586. } else {
  1587. this.patientInfo_gender_2 = false
  1588. this.patientInfo_gender_1 = false
  1589. }
  1590. },
  1591. 'patientInfo.source': function() {
  1592. if (this.patientInfo.source == 1) {
  1593. this.patientInfo_source_1 = true
  1594. this.patientInfo_source_2 = false
  1595. } else if (this.patientInfo.source == 2) {
  1596. this.patientInfo_source_2 = true
  1597. this.patientInfo_source_1 = false
  1598. } else {
  1599. this.patientInfo_source_2 = false
  1600. this.patientInfo_source_1 = false
  1601. }
  1602. },
  1603. },
  1604. created() {
  1605. var xtuser = this.$store.getters.xt_user
  1606. this.org_id = xtuser.org.id
  1607. this.orgname = xtuser.org.org_name
  1608. // this.orgname = "遂溪方济医院";
  1609. this.modeOptions = this.$store.getters.treatment_mode
  1610. console.log(this.modeOptions,'this.modeOptions')
  1611. this.replacementWays = this.$store.getters.replacement_ways
  1612. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1613. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1614. this.way_arr = getDataConfig('hemodialysis', 'way')
  1615. this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
  1616. this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
  1617. this.posture_arr = getDataConfig('hemodialysis', 'posture')
  1618. this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
  1619. this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
  1620. this.intake_arr = getDataConfig('hemodialysis', 'intake')
  1621. this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
  1622. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1623. var bloodAccessParOpera = getDataConfig(
  1624. 'hemodialysis',
  1625. 'vascular_access_desc'
  1626. )
  1627. for (var key in bloodAccessParOpera) {
  1628. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1629. bloodAccessParOpera[key]
  1630. }
  1631. var dialysateFormulationOptions = getDataConfig(
  1632. 'hemodialysis',
  1633. 'dialysate_formulation'
  1634. )
  1635. for (var key in dialysateFormulationOptions) {
  1636. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1637. dialysateFormulationOptions[key]
  1638. }
  1639. const xtdate = this.$route.query && this.$route.query.xtdate
  1640. const xtno = this.$route.query && this.$route.query.xtno
  1641. if (
  1642. typeof xtdate === 'string' &&
  1643. xtdate.length > 0 &&
  1644. typeof xtno === 'string' &&
  1645. xtno.length > 0
  1646. ) {
  1647. this.queryParams.xtdate = xtdate
  1648. this.queryParams.xtno = xtno
  1649. this.getDialysisRecord()
  1650. } else {
  1651. this.$message.error('参数不齐')
  1652. return false
  1653. }
  1654. }
  1655. }
  1656. </script>
  1657. <style>
  1658. .dialysis-print-order {
  1659. width: 960px;
  1660. margin: 0 auto;
  1661. }
  1662. .dialysis-print-order .order-yy-name {
  1663. margin: auto;
  1664. text-align: center;
  1665. font-size: 20px;
  1666. letter-spacing: 5px;
  1667. }
  1668. .dialysis-print-order .order-title {
  1669. margin: auto;
  1670. font-weight: 600;
  1671. text-align: center;
  1672. font-size: 22px;
  1673. padding: 10px 20px 20px 20px;
  1674. }
  1675. .dialysis-print-order .table-box {
  1676. width: 100%;
  1677. line-height: 23px;
  1678. font-size: 14px;
  1679. }
  1680. .dialysis-print-order .print-table {
  1681. width: 100%;
  1682. text-align: center;
  1683. border-collapse: collapse;
  1684. line-height: 40px;
  1685. font-size: 14px;
  1686. }
  1687. .dialysis-print-order .print-table-no {
  1688. width: 100%;
  1689. text-align: center;
  1690. border-collapse: collapse;
  1691. font-size: 14px;
  1692. }
  1693. .dialysis-print-order .under-line {
  1694. border-bottom: 1px solid #999;
  1695. width: 95%;
  1696. text-align: center;
  1697. margin-left: 2px;
  1698. }
  1699. .dialysis-print-order .title-box {
  1700. text-align: center;
  1701. font-size: 16px;
  1702. }
  1703. .dialysis-print-order .radio-lebel-box {
  1704. font-weight: 400;
  1705. cursor: pointer;
  1706. }
  1707. .dialysis-print-order .radio-no {
  1708. opacity: 0;
  1709. outline: none;
  1710. position: absolute;
  1711. margin: 0;
  1712. width: 0;
  1713. height: 0;
  1714. z-index: -1;
  1715. }
  1716. .dialysis-print-order .radio-inner {
  1717. white-space: nowrap;
  1718. cursor: pointer;
  1719. outline: none;
  1720. display: inline-block;
  1721. line-height: 1;
  1722. position: relative;
  1723. vertical-align: middle;
  1724. }
  1725. .dialysis-print-order .radio-fang {
  1726. display: inline-block;
  1727. position: relative;
  1728. border: 1px solid #000;
  1729. box-sizing: border-box;
  1730. width: 14px;
  1731. height: 14px;
  1732. background-color: #fff;
  1733. z-index: 1;
  1734. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1735. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1736. }
  1737. .dialysis-print-order .is-checked-radio::after {
  1738. content: "√";
  1739. font-size: 15px;
  1740. }
  1741. .dialysis-print-order .print-table-no tr td {
  1742. padding: 8px 5px;
  1743. line-height: 25px;
  1744. }
  1745. .dialysis-print-order .print-table tr td {
  1746. padding: 1px 1px;
  1747. /*line-height: 25px;*/
  1748. }
  1749. .es-img {
  1750. height: 25px;
  1751. }
  1752. .advice-name {
  1753. text-align: left;
  1754. }
  1755. .advice-children {
  1756. display: flex;
  1757. }
  1758. .title-box-pro {
  1759. border: 0 #fff;
  1760. line-height: 25px;
  1761. height: 25px;
  1762. text-align: left;
  1763. padding-left: 10px !important;
  1764. }
  1765. .title-box-pro-tr {
  1766. border: 0 #fff;
  1767. }
  1768. .text-align-left {
  1769. text-align: left !important;
  1770. padding-left: 10px !important;
  1771. font-size: 14px !important;
  1772. line-height: 25px;
  1773. }
  1774. .print-table-tr-new td {
  1775. line-height: 20px !important;
  1776. }
  1777. .border-top-solid {
  1778. border: solid 1px #000;
  1779. }
  1780. .print-template-two tr {
  1781. line-height: 30px;
  1782. }
  1783. </style>