血透系统PC前端

dialysisPrintOrder.vue 61KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498
  1. <template>
  2. <div class="app-container ">
  3. <div class="order-print-btn"
  4. v-loading="loading"
  5. element-loading-text="加载中"
  6. element-loading-spinner="el-icon-loading"
  7. element-loading-background="rgba(0, 0, 0, 0.8)"
  8. style="width: 100%;">
  9. <el-button type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>
  10. </div>
  11. <div id="dialysis-print-box">
  12. <div class="dialysis-print-order">
  13. <div class="order-yy-name">{{orgname}}</div>
  14. <div class="order-title">血液净化治疗记录单</div>
  15. <table class="table-box" style="margin-top: 10px;">
  16. <tbody>
  17. <tr>
  18. <td width="50">姓 名:</td>
  19. <td width="90">
  20. <div class="under-line">&nbsp;{{patientInfo.name}}</div>
  21. </td>
  22. <td width="50">性 别:</td>
  23. <td width="120">
  24. <div>
  25. <label-box :isChecked='patientInfo_gender_1' showValue='男'></label-box>
  26. &nbsp;
  27. <label-box :isChecked='patientInfo_gender_2' showValue='女'></label-box>
  28. </div>
  29. </td>
  30. <td width="50">年 龄:</td>
  31. <td width="40">
  32. <div class="under-line">&nbsp;{{patientInfo.age}}</div>
  33. </td>
  34. <td>岁</td>
  35. <td width="10">&nbsp;</td>
  36. <td width="50">科 室:</td>
  37. <td width="200">
  38. <div>
  39. <label-box :isChecked='patientInfo_source_1' showValue='门 诊 透 析'></label-box>
  40. &nbsp;
  41. <label-box :isChecked='patientInfo_source_2' showValue='住 院'></label-box>
  42. </div>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <table class="table-box" style="margin-top: 10px;">
  48. <tbody>
  49. <tr>
  50. <td width="130">住院号/透析卡号:</td>
  51. <td width="90">
  52. <div class="under-line">&nbsp;{{patientInfo.admission_number?patientInfo.admission_number:'无'}}
  53. /{{patientInfo.dialysis_no}}
  54. </div>
  55. </td>
  56. <td width="40">诊 断:</td>
  57. <td width="">
  58. <div class="under-line">&nbsp;{{patientInfo.diagnose}}</div>
  59. </td>
  60. <td width="80">治 疗 日 期:</td>
  61. <td width="120">
  62. <div class="under-line">&nbsp;<span>{{queryParams.xtdate}}</span></div>
  63. </td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. <table class="print-table" border="1">
  68. <tbody>
  69. <tr>
  70. <td width="30px" class="title-box">透前评估</td>
  71. <td>
  72. <table class="table-box">
  73. <tbody>
  74. <tr>
  75. <td width="70">入院方式:</td>
  76. <td width="230">
  77. <div>
  78. <label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>
  79. &nbsp;
  80. <label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>
  81. &nbsp;
  82. <label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>
  83. &nbsp;
  84. <label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>
  85. </div>
  86. </td>
  87. <td></td>
  88. <td width="50">意识:</td>
  89. <td width="180">
  90. <div>
  91. <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
  92. showValue='清醒'></label-box>
  93. &nbsp;
  94. <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
  95. showValue='嗜睡'></label-box>
  96. &nbsp;
  97. <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
  98. showValue='昏迷'></label-box>
  99. </div>
  100. </td>
  101. <td></td>
  102. <td width="50">体温:</td>
  103. <td width="100">
  104. <div class="under-line">&nbsp;{{predialysis.temperature?predialysis.temperature:''}}</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 :isChecked='receiverTreatmentAccess.posture==1?true:false'
  117. showValue='自动体位'></label-box>
  118. &nbsp;
  119. <label-box :isChecked='receiverTreatmentAccess.posture==2?true:false' showValue='平卧位'></label-box>
  120. &nbsp;
  121. <label-box :isChecked='receiverTreatmentAccess.posture==3?true:false' showValue='半卧位'></label-box>
  122. &nbsp;
  123. <label-box :isChecked='receiverTreatmentAccess.posture==4?true:false' showValue='端坐位'></label-box>
  124. &nbsp;
  125. <label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'
  126. showValue='躁动不安'></label-box>
  127. &nbsp;
  128. </div>
  129. </td>
  130. <td></td>
  131. </tr>
  132. </tbody>
  133. </table>
  134. <table class="table-box">
  135. <tbody>
  136. <tr>
  137. <td width="40">出血:</td>
  138. <td width="95">
  139. <div>
  140. <label-box :isChecked='predialysis.is_hemorrhage==2?true:false' showValue='无'></label-box>
  141. &nbsp;
  142. <label-box :isChecked='predialysis.is_hemorrhage==1?true:false' showValue='有'></label-box>
  143. </div>
  144. </td>
  145. <td width="10">(</td>
  146. <td width="380">
  147. <div>
  148. <label-box
  149. :isChecked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false"
  150. showValue='穿刺点渗血'></label-box>
  151. &nbsp;
  152. <label-box
  153. :isChecked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('牙龈出血')>-1?true:false"
  154. showValue='牙龈出血'></label-box>
  155. &nbsp;
  156. <label-box
  157. :isChecked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('消化道出血')>-1?true:false"
  158. showValue='消化道出血'></label-box>
  159. &nbsp;
  160. <label-box
  161. :isChecked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('女性经期')>-1?true:false"
  162. showValue='女性经期'></label-box>
  163. </div>
  164. </td>
  165. <td width="35">其它</td>
  166. <td width="">
  167. <div class="under-line">&nbsp;
  168. <span v-if="predialysis.is_hemorrhage==1">{{predialysis.hemorrhage_other}}</span>
  169. </div>
  170. </td>
  171. <td width="10">)</td>
  172. </tr>
  173. </tbody>
  174. </table>
  175. <table class="table-box">
  176. <tbody>
  177. <tr>
  178. <td width="70">血管通路:</td>
  179. <td width="400">
  180. <div>
  181. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘')>-1?true:false"
  182. showValue='自体内瘘'></label-box>
  183. &nbsp;
  184. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管')>-1?true:false"
  185. showValue='人造血管'></label-box>
  186. &nbsp;
  187. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿')>-1?true:false"
  188. showValue='直穿'></label-box>
  189. &nbsp;
  190. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉')>-1?true:false"
  191. showValue='颈内静脉'></label-box>
  192. &nbsp;
  193. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉')>-1?true:false"
  194. showValue='股静脉'></label-box>
  195. &nbsp;
  196. </div>
  197. </td>
  198. <td></td>
  199. </tr>
  200. </tbody>
  201. </table>
  202. <table class="table-box">
  203. <tbody>
  204. <tr>
  205. <td width="40">内瘘:</td>
  206. <td width="35">震颤</td>
  207. <td width="10">(</td>
  208. <td width="180">
  209. <div>
  210. <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-存在')>-1?true:false"
  211. showValue='存在'></label-box>
  212. &nbsp;
  213. <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱')>-1?true:false"
  214. showValue='减弱'></label-box>
  215. &nbsp;
  216. <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无')>-1?true:false"
  217. showValue='无'></label-box>
  218. </div>
  219. </td>
  220. <td width="10">)</td>
  221. <td width="95">内瘘皮肤情况</td>
  222. <td width="10">(</td>
  223. <td width="220">
  224. <div>
  225. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('正常')>-1?true:false"
  226. showValue='正常'></label-box>
  227. &nbsp;
  228. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('瘀斑')>-1?true:false"
  229. showValue='瘀斑'></label-box>
  230. &nbsp;
  231. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('红')>-1?true:false"
  232. showValue='红'></label-box>
  233. &nbsp;
  234. <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('肿')>-1?true:false"
  235. showValue='肿'></label-box>
  236. </div>
  237. </td>
  238. <td width="10">)</td>
  239. <td></td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. <table class="table-box">
  244. <tbody>
  245. <tr>
  246. <td width="40">导管:</td>
  247. <td width="50">穿刺口</td>
  248. <td width="10">(</td>
  249. <td width="250">
  250. <div>
  251. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-干洁')>-1?true:false"
  252. showValue='干洁'></label-box>
  253. &nbsp;
  254. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-红肿')>-1?true:false"
  255. showValue='红肿'></label-box>
  256. &nbsp;
  257. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-分泌物')>-1?true:false"
  258. showValue='分泌物'></label-box>
  259. &nbsp;
  260. <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-渗血')>-1?true:false"
  261. showValue='渗血'></label-box>
  262. </div>
  263. </td>
  264. <td width="10">)</td>
  265. <td width="65">导管打折</td>
  266. <td width="10">(</td>
  267. <td width="80">
  268. <div>
  269. <label-box :isChecked="predialysis.catheter_bend == 1?true:false" showValue='有'></label-box>
  270. &nbsp;
  271. <label-box :isChecked="predialysis.catheter_bend != 1?true:false" showValue='无'></label-box>
  272. </div>
  273. </td>
  274. <td width="10">)</td>
  275. <td></td>
  276. </tr>
  277. </tbody>
  278. </table>
  279. </td>
  280. </tr>
  281. </tbody>
  282. </table>
  283. <table class="print-table" border="1">
  284. <tbody>
  285. <tr>
  286. <td width="30px" class="title-box">透析处方</td>
  287. <td>
  288. <table class="table-box">
  289. <tbody>
  290. <tr>
  291. <td width="70">透析时间:</td>
  292. <td width="40">
  293. <div class="under-line">&nbsp;{{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:''}}</div>
  294. </td>
  295. <td width="10">h</td>
  296. <td width="40">
  297. <div class="under-line">&nbsp;{{prescription.dialysis_duration_minute?prescription.dialysis_duration_minute:''}}</div>
  298. </td>
  299. <td width="35">min</td>
  300. <td></td>
  301. <td width="55">血流量:</td>
  302. <td width="60">
  303. <div class="under-line">&nbsp;{{prescription.blood_flow_volume?prescription.blood_flow_volume:''}}</div>
  304. </td>
  305. <td width="60">ml/min</td>
  306. <td></td>
  307. <td width="40">体重:</td>
  308. <td width="35">透前</td>
  309. <td width="50">
  310. <div class="under-line">&nbsp;{{predialysis.weight_before?predialysis.weight_before:''}}</div>
  311. </td>
  312. <td width="20">Kg</td>
  313. <td width="45">干体重</td>
  314. <td width="50">
  315. <div class="under-line">&nbsp;{{predialysis.dry_weight?predialysis.dry_weight:''}}</div>
  316. </td>
  317. <td width="20">Kg</td>
  318. <td></td>
  319. <td width="85">目标超滤量:</td>
  320. <td width="70">
  321. <div class="under-line">&nbsp;{{prescription.target_ultrafiltration?prescription.target_ultrafiltration:''}}</div>
  322. </td>
  323. <td width="20">ml</td>
  324. </tr>
  325. </tbody>
  326. </table>
  327. <table class="table-box">
  328. <tbody>
  329. <tr>
  330. <td width="70">抗凝方式:</td>
  331. <td width="80">
  332. <label-box :isChecked="prescription.anticoagulant==2?true:false" showValue='普通肝素'></label-box>
  333. </td>
  334. <td width="10">(</td>
  335. <td width="35">首剂</td>
  336. <td width="40">
  337. <div class="under-line">&nbsp;
  338. <span v-if="prescription.anticoagulant==2">{{prescription.anticoagulant_shouji}}</span>
  339. </div>
  340. </td>
  341. <td width="20">mg</td>
  342. <td width="10"></td>
  343. <td width="35">维持</td>
  344. <td width="40">
  345. <div class="under-line">&nbsp;
  346. <span v-if="prescription.anticoagulant==2">{{prescription.anticoagulant_weichi}}</span>
  347. </div>
  348. </td>
  349. <td width="40">mg/h</td>
  350. <td width="10">)</td>
  351. <td width="95">
  352. <label-box :isChecked="prescription.anticoagulant==3?true:false" showValue='低分子肝素'></label-box>
  353. </td>
  354. <td width="60">
  355. <div class="under-line">&nbsp;
  356. <span v-if="prescription.anticoagulant==3">{{prescription.anticoagulant_zongliang}}</span>
  357. </div>
  358. </td>
  359. <td width="20">IU</td>
  360. <td width="80">
  361. <label-box :isChecked="prescription.anticoagulant==1?true:false" showValue='无肝素'></label-box>
  362. </td>
  363. <td width="70">其他方式:</td>
  364. <td width="">
  365. <div class="under-line">&nbsp;
  366. <span v-if="prescription.anticoagulant>3">{{prescription.anticoagulant_name}}</span>
  367. </div>
  368. </td>
  369. </tr>
  370. </tbody>
  371. </table>
  372. <table class="table-box">
  373. <tbody>
  374. <tr>
  375. <td width="85">透析液配方:</td>
  376. <td width="50">
  377. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规')>-1?true:false"
  378. showValue='常规'></label-box>
  379. </td>
  380. <td width="50">
  381. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钙')>-1?true:false"
  382. showValue='低钙'></label-box>
  383. </td>
  384. <td width="120">
  385. (
  386. <label class="radio-lebel-box">
  387. <!-- <span class="radio-inner">
  388. <span class="radio-fang " ></span>
  389. <input type="radio" class="radio-no" value="1">
  390. </span> -->
  391. <span> 1.25mmol/L</span>
  392. </label>
  393. )
  394. </td>
  395. <td width="50">
  396. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钙')>-1?true:false"
  397. showValue='高钙'></label-box>
  398. </td>
  399. <td width="100">
  400. ( 1.75mmol/L )
  401. </td>
  402. <td width="50">
  403. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钠')>-1?true:false"
  404. showValue='低钠'></label-box>
  405. </td>
  406. <td width="110">
  407. (
  408. <label class="radio-lebel-box">
  409. <!-- <span class="radio-inner">
  410. <span class="radio-fang " ></span>
  411. <input type="radio" class="radio-no" value="1">
  412. </span> -->
  413. <span> 135mmol/L</span>
  414. </label>
  415. )
  416. </td>
  417. <td width="50">
  418. <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钠')>-1?true:false"
  419. showValue='高钠'></label-box>
  420. </td>
  421. <td width="100">
  422. ( 145mmol/L )
  423. </td>
  424. <td></td>
  425. </tr>
  426. </tbody>
  427. </table>
  428. <table class="table-box">
  429. <tbody>
  430. <tr>
  431. <td width="55">置换量:</td>
  432. <td width="40">
  433. <div class="under-line">&nbsp;{{prescription.replacement_total?prescription.replacement_total:''}}</div>
  434. </td>
  435. <td width="10">L</td>
  436. <td width="10"></td>
  437. <td width="70">治疗方式:</td>
  438. <td width="50">
  439. <label-box :isChecked="prescription.mode_id==1?true:false" showValue='HD'></label-box>
  440. </td>
  441. <td width="50">
  442. <label-box :isChecked="prescription.mode_id==2?true:false" showValue='HDF'></label-box>
  443. </td>
  444. <td width="50">
  445. <label-box :isChecked="prescription.mode_id==5?true:false" showValue='HF'></label-box>
  446. </td>
  447. <td width="50">
  448. <label-box :isChecked="prescription.mode_id==4?true:false" showValue='HP'></label-box>
  449. </td>
  450. <td width="80">
  451. <label-box :isChecked="prescription.mode_id==3?true:false" showValue='HD+HP'></label-box>
  452. </td>
  453. <td width="35">其他</td>
  454. <td width="100">
  455. <div class="under-line">&nbsp;
  456. <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
  457. </div>
  458. </td>
  459. <td width="140">透析器/灌流器型号:</td>
  460. <td width="">
  461. <div class="under-line">&nbsp;{{prescription.dialyzer_perfusion_apparatus}}</div>
  462. </td>
  463. </tr>
  464. </tbody>
  465. </table>
  466. <table class="table-box">
  467. <tbody>
  468. <tr>
  469. <td width="70">透析机号:</td>
  470. <td width="100">
  471. <div class="under-line">{{getNumber()}}</div>
  472. </td>
  473. <td width=""></td>
  474. <td width="70">医生签名:</td>
  475. <td width="100">
  476. <div class="under-line">
  477. <span v-if="advices.length == 0"></span>
  478. <span v-else-if="setAdminUserES(advices[0][0].advice_doctor) == ''">{{getAdminUser(advices[0][0].advice_doctor)}}</span>
  479. <img class="es-img" :src="setAdminUserES(advices[0][0].advice_doctor)"
  480. alt="" srcset="" v-else>
  481. <!-- {{getXuserName(prescription.prescription_doctor)}} -->
  482. </div>
  483. </td>
  484. <td width="70">上机护士:</td>
  485. <td width="100">
  486. <div class="under-line">
  487. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
  488. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)"
  489. alt="" srcset="" v-else>
  490. </div>
  491. </td>
  492. </tr>
  493. </tbody>
  494. </table>
  495. </td>
  496. </tr>
  497. </tbody>
  498. </table>
  499. <table class="print-table" border="1">
  500. <tbody>
  501. <tr>
  502. <td :rowspan="jilurow" width="30px" class="title-box">透析中记录</td>
  503. <td width="100">时间</td>
  504. <td width="80">血压<br/>mmHg</td>
  505. <td width="40">脉率<br/>次/分</td>
  506. <td width="40">呼吸<br/>次/分</td>
  507. <td width="60">血流量<br/>ml/min</td>
  508. <td width="60">超滤量<br/>L</td>
  509. <td width="60">置换量<br/>L</td>
  510. <td width="60">静脉压<br/>mmHg</td>
  511. <td width="60">跨膜压<br/>mmHg</td>
  512. <!-- <td width="60">钠浓度<br/>mmol/L</td>
  513. <td width="80">透析液温度<br/>℃</td>
  514. <td width="60">置换率<br/>ml/min</td> -->
  515. <td width="">备 注</td>
  516. </tr>
  517. <tr v-for="monitor in monitors" :key="monitor.id">
  518. <td>&nbsp;
  519. <!-- <template>
  520. <span v-if="monitor.monitoring_date">
  521. {{monitor.monitoring_date | parseTime('{y}-{m}-{d}')}}
  522. </span>
  523. </template> -->
  524. {{getTime(monitor.operate_time,'{h}:{i}')}}
  525. </td>
  526. <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} / {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
  527. <td>&nbsp;{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
  528. <td>&nbsp;{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
  529. <td>&nbsp;{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
  530. <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
  531. <td>&nbsp;{{monitor.displacement_quantity?monitor.displacement_quantity:''}}</td>
  532. <td>&nbsp;{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
  533. <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
  534. <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
  535. <td>&nbsp;{{monitor.dialysate_temperature}}</td>
  536. <td>&nbsp;{{monitor.replacement_rate}}</td> -->
  537. <td>&nbsp;{{monitor.symptom}}
  538. &nbsp;{{monitor.dispose}}
  539. &nbsp;{{monitor.result}}
  540. </td>
  541. </tr>
  542. </tbody>
  543. </table>
  544. <table class="print-table" border="1">
  545. <tbody>
  546. <tr>
  547. <td class="title-box" width="30px">透后评估</td>
  548. <td>
  549. <table class="table-box">
  550. <tbody>
  551. <tr>
  552. <td width="90">实际治疗时间</td>
  553. <td width="40">
  554. <div class="under-line">&nbsp;{{afterdialysis.actual_treatment_hour?afterdialysis.actual_treatment_hour:''}}</div>
  555. </td>
  556. <td width="10">h</td>
  557. <td width="40">
  558. <div class="under-line">&nbsp;{{afterdialysis.actual_treatment_minute?afterdialysis.actual_treatment_minute:''}}</div>
  559. </td>
  560. <td width="35">min</td>
  561. <td></td>
  562. <td width="75">实际超滤量</td>
  563. <td width="70">
  564. <div class="under-line">&nbsp;{{afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:''}}</div>
  565. </td>
  566. <td width="20">ml</td>
  567. <td></td>
  568. <td width="60">透后体重</td>
  569. <td width="50">
  570. <div class="under-line">&nbsp;{{afterdialysis.weight_after?afterdialysis.weight_after:''}}</div>
  571. </td>
  572. <td width="20">Kg</td>
  573. <td></td>
  574. <td width="95">透析器凝血:</td>
  575. <td width="220">
  576. <label-box :isChecked="afterdialysis.txqnx==0?true:false" showValue='0 级'></label-box>
  577. <label-box :isChecked="afterdialysis.txqnx==1?true:false" showValue='Ⅰ 级'></label-box>
  578. <label-box :isChecked="afterdialysis.txqnx==2?true:false" showValue='Ⅱ 级'></label-box>
  579. <label-box :isChecked="afterdialysis.txqnx==3?true:false" showValue='Ⅲ 级'></label-box>
  580. </td>
  581. </tr>
  582. </tbody>
  583. </table>
  584. <table class="table-box">
  585. <tbody>
  586. <tr>
  587. <td width="130">拔针后穿刺点渗血:</td>
  588. <td width="80">
  589. <label-box :isChecked="afterdialysis.puncture_point_oozing_blood==1?true:false"
  590. showValue='有'></label-box>
  591. <label-box :isChecked="afterdialysis.puncture_point_oozing_blood!=1?true:false"
  592. showValue='无'></label-box>
  593. </td>
  594. <td width="10"></td>
  595. <td width="85">穿刺处血肿:</td>
  596. <td width="80">
  597. <label-box :isChecked="afterdialysis.puncture_point_haematoma==1?true:false"
  598. showValue='有'></label-box>
  599. <label-box :isChecked="afterdialysis.puncture_point_haematoma!=1?true:false"
  600. showValue='无'></label-box>
  601. </td>
  602. <td width="10"></td>
  603. <td width="105">压迫后内瘘震颤:</td>
  604. <td width="140">
  605. <label-box :isChecked="afterdialysis.internal_fistula_tremor_ac==1?true:false"
  606. showValue='存在'></label-box>
  607. <label-box :isChecked="afterdialysis.internal_fistula_tremor_ac==2?true:false"
  608. showValue='减弱'></label-box>
  609. <label-box :isChecked="afterdialysis.internal_fistula_tremor_ac==3?true:false"
  610. showValue='无'></label-box>
  611. </td>
  612. <td width="">
  613. </td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <table class="table-box">
  618. <tbody>
  619. <tr>
  620. <td width="55">并发症:</td>
  621. <td width="600">
  622. <label-box :isChecked="afterdialysis.complications_index.indexOf('低血压')>-1?true:false"
  623. showValue='低血压'></label-box>
  624. <label-box :isChecked="afterdialysis.complications_index.indexOf('高血压')>-1?true:false"
  625. showValue='高血压'></label-box>
  626. <label-box :isChecked="afterdialysis.complications_index.indexOf('心律失常')>-1?true:false"
  627. showValue='心律失常'></label-box>
  628. <label-box :isChecked="afterdialysis.complications_index.indexOf('头晕')>-1?true:false"
  629. showValue='头晕'></label-box>
  630. <label-box :isChecked="afterdialysis.complications_index.indexOf('头痛')>-1?true:false"
  631. showValue='头痛'></label-box>
  632. <label-box :isChecked="afterdialysis.complications_index.indexOf('呕吐')>-1?true:false"
  633. showValue='呕吐'></label-box>
  634. <label-box :isChecked="afterdialysis.complications_index.indexOf('抽搐')>-1?true:false"
  635. showValue='抽搐'></label-box>
  636. <label-box :isChecked="afterdialysis.complications_index.indexOf('出血')>-1?true:false"
  637. showValue='出血'></label-box>
  638. <label-box :isChecked="afterdialysis.complications_index.indexOf('心衰')>-1?true:false"
  639. showValue='心衰'></label-box>
  640. <label-box :isChecked="afterdialysis.complications_index.indexOf('腹痛')>-1?true:false"
  641. showValue='腹痛'></label-box>
  642. </td>
  643. <td></td>
  644. </tr>
  645. </tbody>
  646. </table>
  647. <table class="table-box">
  648. <tbody>
  649. <tr>
  650. <td width="70">其他记录:</td>
  651. <td width="">
  652. <div class="under-line">&nbsp;{{afterdialysis.complications_other}}</div>
  653. </td>
  654. </tr>
  655. </tbody>
  656. </table>
  657. <table class="table-box">
  658. <tbody>
  659. <tr>
  660. <td width="">
  661. <div class="under-line">&nbsp;</div>
  662. </td>
  663. </tr>
  664. </tbody>
  665. </table>
  666. <table class="table-box">
  667. <tbody>
  668. <tr>
  669. <td width="70">患者去向:</td>
  670. <td width="160">
  671. <label-box :isChecked="afterdialysis.patient_gose==1?true:false" showValue='离院'></label-box>
  672. <label-box :isChecked="afterdialysis.patient_gose==2?true:false" showValue='留观'></label-box>
  673. <label-box :isChecked="afterdialysis.patient_gose==3?true:false" showValue='住院'></label-box>
  674. </td>
  675. <td width="10">(</td>
  676. <td width="35">科室</td>
  677. <td width="">
  678. <div class="under-line">&nbsp;
  679. <span v-if="afterdialysis.patient_gose==3">{{afterdialysis.inpatient_department}}</span>
  680. </div>
  681. </td>
  682. <td width="220">交待病房护士/患者/陪人观察内容:</td>
  683. <td width="160">
  684. <label-box
  685. :isChecked="afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('意识状态')>-1?true:false"
  686. showValue='意识状态'></label-box>
  687. <label-box
  688. :isChecked="afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('生命体征')>-1?true:false"
  689. showValue='生命体征'></label-box>
  690. </td>
  691. </tr>
  692. </tbody>
  693. </table>
  694. <table class="table-box">
  695. <tbody>
  696. <tr>
  697. <td width="530">
  698. <label-box
  699. :isChecked="afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('内瘘搏动/渗血')>-1?true:false"
  700. showValue='内瘘搏动/渗血'></label-box>
  701. <label-box
  702. :isChecked="afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('导管固定/穿刺口渗血')>-1?true:false"
  703. showValue='导管固定/穿刺口渗血'></label-box>
  704. <label-box
  705. :isChecked="afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('动静脉直接穿刺口渗血/肢端循环情况')>-1?true:false"
  706. showValue='动静脉直接穿刺口渗血/肢端循环情况'></label-box>
  707. </td>
  708. <td width="40">其他:</td>
  709. <td width="">
  710. <div class="under-line">&nbsp;
  711. <span v-if="afterdialysis.patient_gose==3">{{afterdialysis.observation_content_other}}
  712. </span>
  713. </div>
  714. </td>
  715. </tr>
  716. </tbody>
  717. </table>
  718. <table class="table-box">
  719. <tbody>
  720. <tr>
  721. <td width="150">当班责任(核对)护士:</td>
  722. <td width="100">
  723. <div class="under-line">
  724. <!--<span v-if="afterdialysis.creater==0">&nbsp;</span>-->
  725. <!--<img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else>-->
  726. <span
  727. v-if="setAdminUserES(afterdialysis.creater) == ''">{{getAdminUser(afterdialysis.creater)}}</span>
  728. <img class="es-img" :src="setAdminUserES(afterdialysis.creater)"
  729. alt="" srcset="" v-else>
  730. </div>
  731. </td>
  732. <td width=""></td>
  733. <td width="70">下机护士:</td>
  734. <td width="100">
  735. <div class="under-line">
  736. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
  737. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)"
  738. alt="" srcset="" v-else>
  739. </div>
  740. </td>
  741. </tr>
  742. </tbody>
  743. </table>
  744. </td>
  745. </tr>
  746. </tbody>
  747. </table>
  748. <table class="print-table-no" border="1" count="0">
  749. <tbody>
  750. <tr>
  751. <td width="40px">时间</td>
  752. <td width="120px">医嘱内容</td>
  753. <td width="80px">医生签名</td>
  754. <td width="80px">执行护士</td>
  755. <td width="55px">执行时间</td>
  756. <td width="75px">核对护士</td>
  757. <td width="10px"></td>
  758. <td width="40px">时间</td>
  759. <td width="120px">医嘱内容</td>
  760. <td width="80px">医生签名</td>
  761. <td width="80px">执行护士</td>
  762. <td width="55px">执行时间</td>
  763. <td width="75px">核对护士</td>
  764. </tr>
  765. <tr v-for="(advice, index) in advices" :key="index">
  766. <td height="10px">
  767. <span v-if="advice[0].start_time">
  768. {{getTime(advice[0].start_time,'{h}:{i}')}}
  769. </span>
  770. <span v-else>&nbsp;<br/>&nbsp;</span>
  771. </td>
  772. <td class="advice-name">
  773. <span v-if="advice[0].parent_id>0">└</span>
  774. <span>{{advice[0].advice_name }}</span>
  775. <span>{{advice[0].advice_desc}}</span>
  776. <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
  777. <span v-if="advice[0].prescribing_number">* {{advice[0].prescribing_number}}{{advice[0].prescribing_number_unit}}</span>
  778. <span v-if="advice[0].single_dose != 0">单次用量 {{advice[0].single_dose}}{{advice[0].single_dose_unit}}</span>
  779. <span>{{advice[0].delivery_way}}</span>
  780. <span>{{advice[0].execution_frequency}}</span>
  781. <div v-for="(child, childindex) in advice[0].children" :key="childindex" class="advice-children">
  782. <div>▲</div>
  783. <div>
  784. <span>{{child.advice_name }}</span>
  785. <span>{{child.advice_desc}}</span>
  786. <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
  787. <span
  788. v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
  789. <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
  790. </div>
  791. </div>
  792. </td>
  793. <td>
  794. <!--<img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)" alt="" srcset=""-->
  795. <!--v-show="advice[0].advice_doctor>0">-->
  796. <!---->
  797. <span
  798. v-if="setAdminUserES(advice[0].advice_doctor) == ''">{{getAdminUser(advice[0].advice_doctor)}}</span>
  799. <img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)"
  800. alt="" srcset="" v-else>
  801. </td>
  802. <td>
  803. <!--<img class="es-img" :src="setAdminUserES(advice[0].execution_staff)" alt="" srcset=""-->
  804. <!--v-show="advice[0].execution_staff>0">-->
  805. <span
  806. v-if="setAdminUserES(advice[0].execution_staff) == ''">{{getAdminUser(advice[0].execution_staff)}}</span>
  807. <img class="es-img" :src="setAdminUserES(advice[0].execution_staff)"
  808. alt="" srcset="" v-else>
  809. </td>
  810. <td><span v-if="advice[0].execution_time">
  811. <!--{{advice[0].execution_time| parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}-->
  812. {{getTime(advice[0].execution_time,'{h}:{i}')}}
  813. </span>
  814. </td>
  815. <td>
  816. <!--<img class="es-img" :src="setAdminUserES(advice[0].checker)" alt="" srcset=""-->
  817. <!--v-show="advice[0].checker>0">-->
  818. <span v-if="setAdminUserES(advice[0].checker) == ''">{{getAdminUser(advice[0].checker)}}</span>
  819. <img class="es-img" :src="setAdminUserES(advice[0].checker)"
  820. alt="" srcset="" v-else>
  821. </td>
  822. <td></td>
  823. <td v-if="advice[1] != undefined">
  824. <span v-if="advice[1].start_time">
  825. <!-- {{advice[1].start_time | parseTime('{y}-{m}-{d} {h}:{i}')}} -->
  826. {{getTime(advice[1].start_time,'{h}:{i}')}}
  827. </span>
  828. </td>
  829. <td v-else>
  830. <span></span>
  831. </td>
  832. <td class="advice-name" v-if="advice[1] != undefined">
  833. <span>{{advice[1].advice_name }}</span>
  834. <span>{{advice[1].advice_desc}}</span>
  835. <!-- <span v-if="advice[1].drug_spec">{{advice[1].drug_spec}}{{advice[1].drug_spec_unit}}</span> -->
  836. <span v-if="advice[1].prescribing_number">* {{advice[1].prescribing_number}}{{advice[1].prescribing_number_unit}}</span>
  837. <span v-if="advice[1].single_dose != 0">单次用量 {{advice[1].single_dose}}{{advice[1].single_dose_unit}}</span>
  838. <span>{{advice[1].delivery_way}}</span>
  839. <span>{{advice[1].execution_frequency}}</span>
  840. <div v-for="(child, childindex) in advice[1].children" :key="childindex" class="advice-children">
  841. <div>▲</div>
  842. <div>
  843. <span>{{child.advice_name }}</span>
  844. <span>{{child.advice_desc}}</span>
  845. <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
  846. <span
  847. v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
  848. <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
  849. </div>
  850. </div>
  851. </td>
  852. <td v-else>
  853. <span></span>
  854. </td>
  855. <td v-if="advice[1] != undefined">
  856. <!--<img class="es-img" :src="setAdminUserES(advice[1].advice_doctor)" alt="" srcset=""-->
  857. <!--v-show="advice[1].advice_doctor>0"></td>-->
  858. <span
  859. v-if="setAdminUserES(advice[1].advice_doctor) == ''">{{getAdminUser(advice[1].advice_doctor)}}</span>
  860. <img class="es-img" :src="setAdminUserES(advice[1].advice_doctor)"
  861. alt="" srcset="" v-else>
  862. </td>
  863. <td v-else>
  864. <span></span>
  865. </td>
  866. <td v-if="advice[1] != undefined">
  867. <!--<img class="es-img" :src="setAdminUserES(advice[1].execution_staff)" alt="" srcset=""-->
  868. <!--v-show="advice[1].execution_staff>0">-->
  869. <span
  870. v-if="setAdminUserES(advice[1].execution_staff) == ''">{{getAdminUser(advice[1].execution_staff)}}</span>
  871. <img class="es-img" :src="setAdminUserES(advice[1].execution_staff)"
  872. alt="" srcset="" v-else>
  873. </td>
  874. <!--<td><span v-if="advice[1].execution_time">{{advice[1].execution_time| parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}</span>-->
  875. <!--</td>-->
  876. <td v-else>
  877. <span></span>
  878. </td>
  879. <td v-if="advice[1] != undefined">
  880. <span v-if="advice[1].execution_time">{{getTime(advice[1].execution_time,'{h}:{i}')}}</span>
  881. </td>
  882. <td v-else>
  883. <span></span>
  884. </td>
  885. <td v-if="advice[1] != undefined">
  886. <!--<img class="es-img" :src="setAdminUserES(advice[1].checker)" alt="" srcset=""-->
  887. <!--v-show="advice[1].checker>0">-->
  888. <!--<span v-show="advice[1].checker>0">setAdminUserES(advice[1].checker)</span>-->
  889. <span v-if="setAdminUserES(advice[1].checker) == ''">{{getAdminUser(advice[1].checker)}}</span>
  890. <img class="es-img" :src="setAdminUserES(advice[1].checker)"
  891. alt="" srcset="" v-else>
  892. </td>
  893. <td v-else>
  894. <span></span>
  895. </td>
  896. </tr>
  897. </tbody>
  898. </table>
  899. <table class="table-box" style="margin-top: 10px;">
  900. <tbody>
  901. <tr>
  902. <td width="" style="font-size:13px">
  903. 注:透析器凝血评价标准:“0 级” 无凝血或数条纤维束凝血,“Ⅰ 级” 少于10%纤维凝血,“Ⅱ 级” 少于50%纤维凝血,“Ⅲ 级” 大于50%纤维凝血。
  904. </td>
  905. </tr>
  906. </tbody>
  907. </table>
  908. </div>
  909. </div>
  910. </div>
  911. </template>
  912. <script>
  913. import {getDialysisRecord} from '@/api/dialysis';
  914. import {getDataConfig} from '@/utils/data';
  915. import {jsGetAge, uParseTime} from "@/utils/tools";
  916. import LabelBox from './printItem/LabelBox'
  917. import print from "print-js";
  918. export default {
  919. name: 'dialysisPrintOrder',
  920. components: {
  921. LabelBox,
  922. },
  923. data() {
  924. return {
  925. operators: [],
  926. adminUser: [],
  927. dialysisOrder: {
  928. DeviceNumber: []
  929. },
  930. operatorMaps: {},
  931. complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛'],
  932. jilurow: 10,
  933. loading: false,
  934. orgname: '',
  935. patientInfo_gender_1: false,
  936. patientInfo_gender_2: false,
  937. patientInfo_source_2: false,
  938. patientInfo_source_1: false,
  939. modeOptions: {},
  940. replacementWays: [],
  941. perfusionApparatus: [],
  942. anticoagulantsConfit: {},
  943. bloodAccessParOpera: {},
  944. dialysateFormulationOptions: {},
  945. queryParams: {
  946. xtdate: '',
  947. xtno: '',
  948. },
  949. patientInfo: {
  950. birth: '',
  951. age: '',
  952. DialysisSchedule: {
  953. device_number: {number: ""},
  954. device_zone: {name: ""},
  955. },
  956. gender: 0
  957. },
  958. predialysis: {
  959. internal_fistula: "",
  960. internal_fistula_skin: "",
  961. catheter: "",
  962. blood_access_part_opera_name: '',
  963. },
  964. afterdialysis: {
  965. complications_index: "",
  966. },
  967. prescription: {
  968. dialysate_formulation_name: '',
  969. device: {},
  970. },
  971. advices: [],
  972. users: [],
  973. monitors: [],
  974. summary: {},
  975. receiverTreatmentAccess: {},
  976. AlPanel: {
  977. id: 0,
  978. name: "",
  979. type: 1,
  980. shouji: 2,
  981. weichi: 2,
  982. zongliang: 2,
  983. gaimingcheng: -1,
  984. gaijiliang: -1,
  985. shouji_unit: "mg",
  986. weichi_unit: "mg/h",
  987. zongliang_unit: "mg",
  988. gaimingcheng_unit: "",
  989. gaijiliang_unit: ""
  990. },
  991. }
  992. },
  993. methods: {
  994. getAdminUser(id) {
  995. if (id == 0) {
  996. return ''
  997. }
  998. if (id == undefined) {
  999. return ''
  1000. }
  1001. for (let i = 0; i < this.adminUser.length; i++) {
  1002. if (this.adminUser[i].id == id) {
  1003. return this.adminUser[i].name
  1004. }
  1005. }
  1006. },
  1007. getTime(value, temp) {
  1008. if (value != undefined) {
  1009. return uParseTime(value, temp)
  1010. }
  1011. return ""
  1012. },
  1013. printThisPage() {
  1014. var ptime = Math.round(new Date().getTime() / 1000);
  1015. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
  1016. const style = '@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:15px;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}}.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;}';
  1017. printJS({
  1018. printable: "dialysis-print-box",
  1019. type: "html",
  1020. style: style,
  1021. scanStyles: false
  1022. });
  1023. }, getNumber() {
  1024. if (this.dialysisOrder != null) {
  1025. return this.patientInfo.DialysisSchedule.device_zone.name + this.dialysisOrder.DeviceNumber.number
  1026. } else {
  1027. return this.patientInfo.DialysisSchedule.device_zone.name
  1028. }
  1029. },
  1030. getXuserName(id) {
  1031. if (id <= 0) {
  1032. return "";
  1033. }
  1034. var name = "";
  1035. if (this.users == null || typeof (this.users.length) == "undefined") {
  1036. return name;
  1037. }
  1038. var leng = this.users.length;
  1039. if (leng == 0) {
  1040. return name;
  1041. }
  1042. for (let index = 0; index < leng; index++) {
  1043. if (this.users[index].id == id) {
  1044. name = this.users[index].name;
  1045. break;
  1046. }
  1047. }
  1048. return name;
  1049. },
  1050. setAdminUserES(id) {
  1051. console.log(id)
  1052. if (id == 0) {
  1053. return ''
  1054. }
  1055. if (id in this.operatorMaps) {
  1056. return this.operatorMaps[id].url;
  1057. } else {
  1058. return '';
  1059. }
  1060. },
  1061. modeName(mode_id) {
  1062. return typeof (this.modeOptions[mode_id]) != 'undefined' && typeof (this.modeOptions[mode_id].name) != 'undefined' ? this.modeOptions[mode_id].name : '';
  1063. },
  1064. getDialysisRecord() {
  1065. getDialysisRecord(this.queryParams).then(response => {
  1066. if (response.data.state == 1) {
  1067. this.adminUser = response.data.data.users;
  1068. this.users = response.data.data.users;
  1069. this.patientInfo = response.data.data.patientInfo;
  1070. this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}');
  1071. this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-');
  1072. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1073. this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}');
  1074. } else {
  1075. this.patientInfo.first_dialysis_date = '';
  1076. }
  1077. this.predialysis = response.data.data.PredialysisEvaluation;
  1078. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id);
  1079. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  1080. this.operators = response.data.data.operators;
  1081. this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder;
  1082. if (this.operators.length > 0) {
  1083. var operatorsLen = this.operators.length;
  1084. for (var index = 0; index < operatorsLen; index++) {
  1085. this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index]);
  1086. }
  1087. }
  1088. this.afterdialysis.txqnx = -1;
  1089. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1090. this.afterdialysis.txqnx = 0;
  1091. }
  1092. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1093. this.afterdialysis.txqnx = 1;
  1094. }
  1095. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1096. this.afterdialysis.txqnx = 2;
  1097. }
  1098. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1099. this.afterdialysis.txqnx = 3;
  1100. }
  1101. this.afterdialysis.complications = this.afterdialysis.complication.split(',');
  1102. this.afterdialysis.complications_other = [];
  1103. this.afterdialysis.complications_index = [];
  1104. var acllen = this.afterdialysis.complications.length;
  1105. for (let index = 0; index < acllen; index++) {
  1106. if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  1107. this.afterdialysis.complications_index.push(this.afterdialysis.complications[index]);
  1108. } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  1109. this.afterdialysis.complications_other.push(this.afterdialysis.complications[index]);
  1110. }
  1111. }
  1112. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',');
  1113. this.prescription = response.data.data.dialysisPrescription;
  1114. this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess;
  1115. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1116. var rwLen = this.replacementWays.length;
  1117. this.prescription.replacement = "";
  1118. for (let index = 0; index < rwLen; index++) {
  1119. if (this.replacementWays[index].id == this.prescription.replacement_way) {
  1120. this.prescription.replacement = this.replacementWays[index].name;
  1121. break;
  1122. }
  1123. }
  1124. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation);
  1125. var paLen = this.perfusionApparatus.length;
  1126. this.prescription.perfusion_apparatus_name = "";
  1127. for (let index = 0; index < paLen; index++) {
  1128. if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  1129. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name;
  1130. break;
  1131. }
  1132. }
  1133. var acLen = this.anticoagulantsConfit.length;
  1134. var thisALID = this.prescription.anticoagulant;
  1135. this.prescription.anticoagulant_name = "";
  1136. if (typeof (this.anticoagulantsConfit[thisALID]) != 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1137. this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name;
  1138. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1139. }
  1140. this.advices = response.data.data.advices;
  1141. this.monitors = response.data.data.monitors;
  1142. this.summary = response.data.data.summary;
  1143. if (this.monitors.length < 8) {
  1144. var nl = 8 - this.monitors.length;
  1145. for (let index = 0; index < nl; index++) {
  1146. this.monitors.push([]);
  1147. }
  1148. }
  1149. this.jilurow = this.monitors.length + 1;
  1150. var childMap = {};
  1151. for (const index in this.advices) {
  1152. if (this.advices[index].parent_id == 0) {
  1153. continue;
  1154. }
  1155. if (!(this.advices[index].parent_id in childMap)) {
  1156. childMap[this.advices[index].parent_id] = [];
  1157. }
  1158. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1159. }
  1160. var advices = [];
  1161. for (const index in this.advices) {
  1162. if (this.advices[index].parent_id > 0) {
  1163. continue;
  1164. }
  1165. var item = this.advices[index]
  1166. if (item.id in childMap) {
  1167. item.children = childMap[item.id];
  1168. } else {
  1169. item.children = [];
  1170. }
  1171. advices.push(item);
  1172. }
  1173. var leftAdvice = [];
  1174. var rightAdvice = [];
  1175. var adlen = advices.length;
  1176. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen+1) / 2
  1177. for (var i = 0; i < halfLen; i++) {
  1178. leftAdvice.push(advices[i]);
  1179. rightAdvice.push(advices[i + halfLen]);
  1180. }
  1181. if (halfLen < 5) {
  1182. var nl = 5 - leftAdvice.length;
  1183. for (let index = 0; index < nl; index++) {
  1184. leftAdvice.push([]);
  1185. }
  1186. var nl = 5 - rightAdvice.length;
  1187. for (let index = 0; index < nl; index++) {
  1188. rightAdvice.push([]);
  1189. }
  1190. }
  1191. this.advices = [];
  1192. for (var i = 0; i < halfLen; i++) {
  1193. var item = [];
  1194. item.push(leftAdvice[i]);
  1195. item.push(rightAdvice[i]);
  1196. this.advices.push(item);
  1197. }
  1198. } else {
  1199. this.$message.error("请求数据失败");
  1200. return false;
  1201. }
  1202. });
  1203. },
  1204. bloodAccessParOperaName(id) {
  1205. if (id in this.bloodAccessParOpera) {
  1206. return this.bloodAccessParOpera[id].name;
  1207. }
  1208. return '';
  1209. },
  1210. dialysateFormulationName(id) {
  1211. if (id in this.dialysateFormulationOptions) {
  1212. return this.dialysateFormulationOptions[id].name;
  1213. }
  1214. return '';
  1215. }
  1216. },
  1217. watch: {
  1218. "patientInfo.gender": function () {
  1219. if (this.patientInfo.gender == 1) {
  1220. this.patientInfo_gender_1 = true;
  1221. this.patientInfo_gender_2 = false;
  1222. } else if (this.patientInfo.gender == 2) {
  1223. this.patientInfo_gender_2 = true;
  1224. this.patientInfo_gender_1 = false;
  1225. } else {
  1226. this.patientInfo_gender_2 = false;
  1227. this.patientInfo_gender_1 = false;
  1228. }
  1229. },
  1230. "patientInfo.source": function () {
  1231. if (this.patientInfo.source == 1) {
  1232. this.patientInfo_source_1 = true;
  1233. this.patientInfo_source_2 = false;
  1234. } else if (this.patientInfo.source == 2) {
  1235. this.patientInfo_source_2 = true;
  1236. this.patientInfo_source_1 = false;
  1237. } else {
  1238. this.patientInfo_source_2 = false;
  1239. this.patientInfo_source_1 = false;
  1240. }
  1241. }
  1242. },
  1243. created() {
  1244. var xtuser = this.$store.getters.xt_user;
  1245. this.orgname = xtuser.org.org_name;
  1246. // this.orgname = "遂溪方济医院";
  1247. this.modeOptions = this.$store.getters.treatment_mode;
  1248. this.replacementWays = this.$store.getters.replacement_ways;
  1249. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1250. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1251. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1252. var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc');
  1253. for (var key in bloodAccessParOpera) {
  1254. this.bloodAccessParOpera[bloodAccessParOpera[key].id] = bloodAccessParOpera[key];
  1255. }
  1256. var dialysateFormulationOptions = getDataConfig("hemodialysis", "dialysate_formulation");
  1257. for (var key in dialysateFormulationOptions) {
  1258. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key];
  1259. }
  1260. const xtdate = this.$route.query && this.$route.query.xtdate;
  1261. const xtno = this.$route.query && this.$route.query.xtno;
  1262. if (typeof (xtdate) == "string" && xtdate.length > 0 && typeof (xtno) == "string" && xtno.length > 0) {
  1263. this.queryParams.xtdate = xtdate;
  1264. this.queryParams.xtno = xtno;
  1265. this.getDialysisRecord();
  1266. } else {
  1267. this.$message.error("参数不齐");
  1268. return false;
  1269. }
  1270. }
  1271. }
  1272. </script>
  1273. <style>
  1274. .dialysis-print-order {
  1275. width: 960px;
  1276. margin: 0 auto
  1277. }
  1278. .dialysis-print-order .order-yy-name {
  1279. margin: auto;
  1280. text-align: center;
  1281. font-size: 20px;
  1282. letter-spacing: 5px;
  1283. }
  1284. .dialysis-print-order .order-title {
  1285. margin: auto;
  1286. font-weight: 600;
  1287. text-align: center;
  1288. font-size: 22px;
  1289. padding: 10px 20px 20px 20px;
  1290. }
  1291. .dialysis-print-order .table-box {
  1292. width: 100%;
  1293. line-height: 15px;
  1294. font-size: 14px;
  1295. }
  1296. .dialysis-print-order .print-table {
  1297. width: 100%;
  1298. text-align: center;
  1299. border-collapse: collapse;
  1300. line-height: 35px;
  1301. font-size: 14px;
  1302. }
  1303. .dialysis-print-order .print-table-no {
  1304. width: 100%;
  1305. text-align: center;
  1306. border-collapse: collapse;
  1307. font-size: 14px;
  1308. }
  1309. .dialysis-print-order .under-line {
  1310. border-bottom: 1px solid #999;
  1311. width: 95%;
  1312. text-align: center;
  1313. margin-left: 2px;
  1314. }
  1315. .dialysis-print-order .title-box {
  1316. text-align: center;
  1317. font-size: 16px;
  1318. }
  1319. .dialysis-print-order .radio-lebel-box {
  1320. font-weight: 400;
  1321. cursor: pointer;
  1322. }
  1323. .dialysis-print-order .radio-no {
  1324. opacity: 0;
  1325. outline: none;
  1326. position: absolute;
  1327. margin: 0;
  1328. width: 0;
  1329. height: 0;
  1330. z-index: -1;
  1331. }
  1332. .dialysis-print-order .radio-inner {
  1333. white-space: nowrap;
  1334. cursor: pointer;
  1335. outline: none;
  1336. display: inline-block;
  1337. line-height: 1;
  1338. position: relative;
  1339. vertical-align: middle;
  1340. }
  1341. .dialysis-print-order .radio-fang {
  1342. display: inline-block;
  1343. position: relative;
  1344. border: 1px solid #000;
  1345. box-sizing: border-box;
  1346. width: 14px;
  1347. height: 14px;
  1348. background-color: #fff;
  1349. z-index: 1;
  1350. transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46);
  1351. }
  1352. .dialysis-print-order .is-checked-radio::after {
  1353. content: "√";
  1354. font-size: 15px;
  1355. }
  1356. .es-img {
  1357. height: 25px;
  1358. }
  1359. .advice-name {
  1360. text-align: left;
  1361. }
  1362. .advice-children {
  1363. display: flex;
  1364. }
  1365. </style>