血透系统pad前端

DialysisPrintOrderOne.vue 69KB

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