血透系统pad前端

DialysisPrintOrderOne.vue 71KB

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