DialysisPrintOrderThirty.vue 64KB

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