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

DialysisPrintOrderEight.vue 78KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210
  1. <template>
  2. <div id="dialysis-print-box">
  3. <div class="dialysis-print-order">
  4. <div class="order-yy-name"></div>
  5. <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单</div>
  6. <table class="print-table" border="1" style="margin-top: 10px;">
  7. <tr>
  8. <td style="text-align:left;">
  9. <span style="display:inline-block;margin-left:15px;">
  10. {{getDatge(queryParams.xtdate)}}
  11. </span>
  12. </td>
  13. <td style="text-align:center;">
  14. 姓名:
  15. <span style="display:inline-block;margin-left:10px;">
  16. {{patientInfo.name}}
  17. </span>
  18. </td>
  19. <td style="text-align:center;">
  20. 性别:
  21. <span style="display:inline-block;margin-left:10px;">
  22. {{patientInfo.gender}}
  23. </span>
  24. </td>
  25. <td style="text-align:center;">
  26. 年龄:
  27. <span style="display:inline-block;margin-left:10px;">
  28. {{getAge(patientInfo)}}
  29. </span>
  30. </td>
  31. <td style="text-align:center;">
  32. <label-box
  33. showValue="门诊"
  34. :isChecked="receiverTreatmentAccess.condition == 2 ? true : false"
  35. ></label-box>
  36. <label-box
  37. showValue="住院"
  38. :isChecked="receiverTreatmentAccess.condition == 1 ? true : false"
  39. ></label-box>
  40. </td>
  41. <td style="text-align:center;">
  42. <template v-if="receiverTreatmentAccess.condition == 1">
  43. 住院号:
  44. <span style="display:inline-block;margin-left:10px;">
  45. {{
  46. receiverTreatmentAccess.admission_number
  47. ? receiverTreatmentAccess.admission_number
  48. : "/"
  49. }}
  50. </span>
  51. </template>
  52. <template v-else>
  53. 门诊号:
  54. <span style="display:inline-block;margin-left:10px;">
  55. {{
  56. patientInfo.admission_number
  57. ? patientInfo.admission_number
  58. : "/"
  59. }}
  60. </span>
  61. </template>
  62. </td>
  63. <td style="text-align:center;">
  64. 机器号:
  65. <span style="display:inline-block;margin-left:10px;">
  66. {{
  67. dialysisOrder &&
  68. dialysisOrder.DeviceNumber &&
  69. dialysisOrder.DeviceNumber.number > 0
  70. ? dialysisOrder.DeviceNumber.number
  71. : patientInfo.DialysisSchedule.device_number.number
  72. }}
  73. </span>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td style="text-align:left;" colspan="2">
  78. <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
  79. <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
  80. <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
  81. <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
  82. <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp;
  83. <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
  84. </td>
  85. <td style="text-align:left;" colspan="5">
  86. <span style="display:inline-block;margin-left:15px;">诊断: {{ patientInfo.diagnose }}</span>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td style="text-align:left;" colspan="1">
  91. <span style="display:inline-block;margin-left:15px;">
  92. 干体重:
  93. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
  94. </span>
  95. </td>
  96. <td style="text-align:left;" colspan="1">
  97. <span style="display:inline-block;margin-left:15px;">
  98. 电导率:{{
  99. prescription.conductivity ? prescription.conductivity : "/"
  100. }}&nbsp;(mS/cm)
  101. </span>
  102. </td>
  103. <td style="text-align:left;" colspan="2">
  104. <span style="display:inline-block;margin-left:15px;">
  105. 钙:
  106. {{
  107. prescription.calcium ? prescription.calcium : "/"
  108. }}&nbsp;mmol/L
  109. </span>
  110. </td>
  111. <td style="text-align:left;" colspan="4">
  112. <span style="display:inline-block;margin-left:15px;">
  113. 透析液温度:{{
  114. prescription.dialysate_temperature
  115. ? prescription.dialysate_temperature
  116. : "/"
  117. }}&nbsp;℃
  118. </span>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td style="text-align:left;" colspan="1">
  123. <span style="display:inline-block;margin-left:15px;">
  124. 透前体重:{{
  125. predialysis.weight_before ? predialysis.weight_before : "/"
  126. }}kg
  127. </span>
  128. </td>
  129. <td style="text-align:left;" colspan="1">
  130. <span style="display:inline-block;margin-left:15px;">
  131. 设定脱水量:{{
  132. prescription.target_ultrafiltration
  133. ? prescription.target_ultrafiltration
  134. : "/"
  135. }}L
  136. </span>
  137. </td>
  138. <td style="text-align:left;" colspan="2">
  139. <span style="display:inline-block;margin-left:15px;">
  140. <label-box :isChecked="anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
  141. </span>
  142. </td>
  143. <td style="text-align:left;" colspan="1">
  144. <span style="display:inline-block;margin-left:15px;">
  145. 肝素首剂:
  146. {{
  147. prescription.anticoagulant_shouji
  148. ? prescription.anticoagulant_shouji
  149. : "/"
  150. }}
  151. </span>
  152. <span v-if="prescription.anticoagulant == 4">mg</span>
  153. <span v-if="prescription.anticoagulant == 3">iu</span>
  154. <span v-if="prescription.anticoagulant == 2">iu</span>
  155. <span v-if="prescription.anticoagulant == 1">mg</span>
  156. </td>
  157. <td style="text-align:left;" colspan="1">
  158. <span style="display:inline-block;margin-left:15px;">
  159. 维持:
  160. {{
  161. prescription.anticoagulant_weichi
  162. ? prescription.anticoagulant_weichi
  163. : "/"
  164. }}
  165. </span>
  166. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  167. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  168. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  169. <span v-if="prescription.anticoagulant == 2">iu/h</span>
  170. <span v-if="prescription.anticoagulant == 1">mg/h</span>
  171. </td>
  172. <td style="text-align:left;" colspan="2">
  173. <span style="display:inline-block;margin-left:15px;">
  174. 总量:
  175. {{
  176. prescription.anticoagulant_zongliang
  177. ? prescription.anticoagulant_zongliang
  178. : "/"
  179. }}
  180. </span>
  181. <span v-if="prescription.anticoagulant == 4">mg</span>
  182. <span v-if="prescription.anticoagulant == 3">iu</span>
  183. <span v-if="prescription.anticoagulant == 2">iu</span>
  184. <span v-if="prescription.anticoagulant == 1">mg</span>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td style="text-align:left;" colspan="1">
  189. <span style="display:inline-block;margin-left:15px;">
  190. 透后体重:
  191. {{
  192. afterdialysis.weight_after
  193. ? parseFloat(
  194. afterdialysis.weight_after -
  195. afterdialysis.additional_weight
  196. ).toFixed(1)
  197. : "/"
  198. }}kg
  199. </span>
  200. </td>
  201. <td style="text-align:left;" colspan="1">
  202. <span style="display:inline-block;margin-left:15px;">
  203. 实际脱水量:{{
  204. afterdialysis.actual_ultrafiltration
  205. ? afterdialysis.actual_ultrafiltration
  206. : "/"
  207. }}L
  208. </span>
  209. </td>
  210. <td style="text-align:left;" colspan="2">
  211. <span style="display:inline-block;margin-left:15px;">
  212. 透析时间:
  213. {{ prescription.dialysis_duration_hour
  214. ? prescription.dialysis_duration_hour
  215. : "0"
  216. }}小时{{
  217. prescription.dialysis_duration_minute
  218. ? prescription.dialysis_duration_minute
  219. : "0"
  220. }}分钟
  221. </span>
  222. </td>
  223. <td style="text-align:left;" colspan="1">
  224. <span style="display:inline-block;margin-left:15px;">
  225. 透析器型号:{{
  226. prescription.dialyzer_perfusion_apparatus
  227. ? prescription.dialyzer_perfusion_apparatus
  228. : "/"
  229. }}
  230. </span>
  231. </td>
  232. <td style="text-align:left;" colspan="2">
  233. <span style="display:inline-block;margin-left:15px;">
  234. 置换方式:
  235. <label-box
  236. :isChecked="
  237. prescription.displace_liqui_part == 1 ? true : false
  238. "
  239. showValue="前"
  240. ></label-box>&nbsp;
  241. <label-box
  242. :isChecked="
  243. prescription.displace_liqui_part == 2 ? true : false
  244. "
  245. showValue="后"
  246. ></label-box>
  247. &nbsp; (总量:{{
  248. prescription.displace_liqui_value
  249. ? prescription.displace_liqui_value
  250. : "/"
  251. }}L)
  252. </span>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td style="text-align:left;" colspan="1">
  257. <span style="display:inline-block;margin-left:15px;">
  258. <span
  259. v-if="orderForm.url === ''"
  260. style="display:flex;align-items:center;"
  261. >责任护士:{{ orderForm.start_nurse }}</span>
  262. <span
  263. v-if="orderForm.url !== ''"
  264. style="display:flex;align-items:center;height:36px;"
  265. >
  266. 责任护士:
  267. <img :src="orderForm.url" style="height:30px;" />
  268. </span>
  269. </span>
  270. </td>
  271. <td style="text-align:left;" colspan="1">
  272. <span style="display:inline-block;margin-left:15px;">
  273. <span
  274. v-if="orderForm.url === ''"
  275. style="display:flex;align-items:center;"
  276. >上机护士:{{ orderForm.start_nurse }}</span>
  277. <span
  278. v-if="orderForm.url !== ''"
  279. style="display:flex;align-items:center;height:36px;"
  280. >
  281. 上机护士:
  282. <img :src="orderForm.url" style="height:30px;" />
  283. </span>
  284. </span>
  285. </td>
  286. <td style="text-align:left;" colspan="3">
  287. <span style="display:inline-block;margin-left:15px;">
  288. <span
  289. v-if="orderForm.url === ''"
  290. style="display:flex;align-items:center;"
  291. >抗凝剂执行护士:{{ orderForm.start_nurse }}</span>
  292. <span
  293. v-if="orderForm.url !== ''"
  294. style="display:flex;align-items:center;height:36px;"
  295. >
  296. 抗凝剂执行护士:
  297. <img :src="orderForm.url" style="height:30px;" />
  298. </span>
  299. </span>
  300. </td>
  301. <td style="text-align:left;" colspan="3">
  302. <span style="display:inline-block;margin-left:15px;">
  303. <span
  304. v-if="doctorForm.url === ''"
  305. style="display:flex;align-items:center;"
  306. >医生签名:{{ doctorForm.doctor }}</span>
  307. <span
  308. v-if="doctorForm.url !== ''"
  309. style="display:flex;align-items:center;height:36px;"
  310. >
  311. 医生签名:
  312. <img style="height:30px" :src="doctorForm.url" />
  313. </span>
  314. </span>
  315. </td>
  316. </tr>
  317. <tr>
  318. <td style="text-align:left;" colspan="4">
  319. <span style="display:inline-block;margin-left:15px;">
  320. 透前评估: 入科方式:
  321. <label-box
  322. :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
  323. showValue="步行"
  324. ></label-box>&nbsp;
  325. <label-box
  326. :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
  327. showValue="扶行"
  328. ></label-box>&nbsp;
  329. <label-box
  330. :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
  331. showValue="轮椅"
  332. ></label-box>&nbsp;
  333. <label-box
  334. :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
  335. showValue="平车"
  336. ></label-box>&nbsp;
  337. </span>
  338. </td>
  339. <td style="text-align:left;" colspan="4">
  340. <span style="display:inline-block;margin-left:15px;">
  341. 意识:
  342. <label-box
  343. :isChecked="
  344. receiverTreatmentAccess.consciousness == 1 ? true : false
  345. "
  346. showValue="清醒"
  347. ></label-box>&nbsp;
  348. <label-box
  349. :isChecked="
  350. receiverTreatmentAccess.consciousness == 2 ? true : false
  351. "
  352. showValue="嗜睡"
  353. ></label-box>&nbsp;
  354. <label-box
  355. :isChecked="
  356. receiverTreatmentAccess.consciousness == 4 ? true : false
  357. "
  358. showValue="模糊"
  359. ></label-box>&nbsp;
  360. <label-box
  361. :isChecked="
  362. receiverTreatmentAccess.consciousness == 3 ? true : false
  363. "
  364. showValue="昏迷"
  365. ></label-box>&nbsp;
  366. </span>
  367. </td>
  368. </tr>
  369. <tr>
  370. <td colspan="2" style="text-align:left;">
  371. <span style="display:inline-block;margin-left:15px;">食欲:</span>
  372. <label-box
  373. :isChecked="receiverTreatmentAccess.appetite == 1 ? true : false"
  374. showValue="正常"
  375. ></label-box>&nbsp;
  376. <label-box
  377. :isChecked="receiverTreatmentAccess.appetite == 2 ? true : false"
  378. showValue="减退"
  379. ></label-box>&nbsp;
  380. <label-box
  381. :isChecked="receiverTreatmentAccess.appetite == 3 ? true : false"
  382. showValue="恶心"
  383. ></label-box>&nbsp;
  384. <label-box
  385. :isChecked="receiverTreatmentAccess.appetite == 4 ? true : false"
  386. showValue="呕吐"
  387. ></label-box>&nbsp;
  388. <label-box
  389. :isChecked="receiverTreatmentAccess.appetite == 5 ? true : false"
  390. showValue="腹泻"
  391. ></label-box>&nbsp;
  392. </td>
  393. <td colspan="2" style="text-align:left;">
  394. <span style="display:inline-block;margin-left:15px;">
  395. 体温:{{
  396. predialysis.temperature ? predialysis.temperature : "/"
  397. }}
  398. </span>
  399. </td>
  400. <td colspan="3" style="text-align:left;">
  401. <span style="display:inline-block;margin-left:15px;">
  402. 体位:
  403. <label-box
  404. v-for="(item, index) in posture_arr"
  405. :key="index"
  406. :isChecked="
  407. receiverTreatmentAccess.posture == item.id ? true : false
  408. "
  409. :showValue="item.name"
  410. ></label-box>
  411. <label-box
  412. :isChecked="receiverTreatmentAccess.posture == 1 ? true : false"
  413. showValue="自动体位"
  414. ></label-box>&nbsp;
  415. <label-box
  416. :isChecked="receiverTreatmentAccess.posture == 2 ? true : false"
  417. showValue="平卧位"
  418. ></label-box>&nbsp;
  419. <label-box
  420. :isChecked="receiverTreatmentAccess.posture == 3 ? true : false"
  421. showValue="半卧位"
  422. ></label-box>&nbsp;
  423. <label-box
  424. :isChecked="receiverTreatmentAccess.posture == 4 ? true : false"
  425. showValue="端坐位"
  426. ></label-box>&nbsp;
  427. <label-box
  428. :isChecked="receiverTreatmentAccess.posture == 5 ? true : false"
  429. showValue="躁动不安"
  430. ></label-box>&nbsp;
  431. </span>
  432. </td>
  433. </tr>
  434. <tr>
  435. <td colspan="8" style="text-align:left;">
  436. <span style="display:inline-block;margin-left:15px;">
  437. 血管通路:内瘘波动及震颤: (&nbsp;
  438. <label-box
  439. v-for="(item, index) in arr"
  440. :key="index"
  441. :isChecked="
  442. predialysis.blood_access_part_opera_id == item.id
  443. ? true
  444. : false
  445. "
  446. :showValue="item.name"
  447. ></label-box>)
  448. <label-box
  449. v-for="(item, index) in arrtwo"
  450. :key="index"
  451. :isChecked="
  452. predialysis.blood_access_part_opera_id == item.id
  453. ? true
  454. : false
  455. "
  456. :showValue="item.name"
  457. ></label-box>
  458. </span>
  459. </td>
  460. </tr>
  461. <tr>
  462. <td colspan="8" style="text-align:left;">
  463. <span style="display:inline-block;margin-left:15px;">中心静脉导管:</span>
  464. (部位:{{ getPartName(predialysis.blood_access_part_id) }})
  465. <label-box
  466. showValue="长期"
  467. :isChecked="
  468. predialysis.venous_catheterization == 1 ? true : false
  469. "
  470. ></label-box>
  471. <label-box
  472. showValue="临时"
  473. :isChecked="
  474. predialysis.venous_catheterization == 2 ? true : false
  475. "
  476. ></label-box>&nbsp;&nbsp; 感染:
  477. <label-box
  478. showValue="有"
  479. :isChecked="
  480. predialysis.catheter.indexOf('感染-有') > -1 ? true : false
  481. "
  482. ></label-box>
  483. <label-box
  484. showValue="无"
  485. :isChecked="
  486. predialysis.catheter.indexOf('感染-无') > -1 ? true : false
  487. "
  488. ></label-box>&nbsp;&nbsp;流畅度:
  489. <label-box
  490. showValue="好"
  491. :isChecked="
  492. predialysis.catheter.indexOf('通畅度-好') > -1 ? true : false
  493. "
  494. ></label-box>
  495. <label-box
  496. showValue="差"
  497. :isChecked="
  498. predialysis.catheter.indexOf('通畅度-差') > -1 ? true : false
  499. "
  500. ></label-box>&nbsp;&nbsp;溶栓:
  501. <label-box
  502. showValue="有"
  503. :isChecked="
  504. predialysis.catheter.indexOf('溶栓-有') > -1 ? true : false
  505. "
  506. ></label-box>
  507. <label-box
  508. showValue="无"
  509. :isChecked="
  510. predialysis.catheter.indexOf('溶栓-无') > -1 ? true : false
  511. "
  512. ></label-box>
  513. &nbsp;&nbsp;外露:{{ predialysis.exposed }}cm
  514. </td>
  515. </tr>
  516. <tr>
  517. <td style="text-align:left;" colspan="8">
  518. <span style="display:inline-block;margin-left:15px;">
  519. 血管通路皮肤情况:
  520. <label-box
  521. :isChecked="
  522. predialysis.internal_fistula_skin.indexOf('正常') > -1
  523. ? true
  524. : false
  525. "
  526. showValue="正常"
  527. ></label-box>&nbsp;
  528. <label-box
  529. :isChecked="
  530. predialysis.internal_fistula_skin.indexOf('淤血') > -1
  531. ? true
  532. : false
  533. "
  534. showValue="淤血"
  535. ></label-box>&nbsp;
  536. <label-box
  537. :isChecked="
  538. predialysis.internal_fistula_skin.indexOf('红') > -1
  539. ? true
  540. : false
  541. "
  542. showValue="红"
  543. ></label-box>&nbsp;
  544. <label-box
  545. :isChecked="
  546. predialysis.internal_fistula_skin.indexOf('肿') > -1
  547. ? true
  548. : false
  549. "
  550. showValue="肿"
  551. ></label-box>
  552. <!-- 其他: -->
  553. </span>
  554. </td>
  555. </tr>
  556. <tr>
  557. <td style="text-align:left;" colspan="8">
  558. <span style="display:inline-block;margin-left:15px;">皮肤:</span>
  559. <label-box showValue="完整" :isChecked="predialysis.skin == 1 ? true : false"></label-box>
  560. <label-box showValue="干燥" :isChecked="predialysis.skin == 2 ? true : false"></label-box>
  561. <label-box showValue="瘙痒" :isChecked="predialysis.skin == 3 ? true : false"></label-box>
  562. <label-box showValue="菲薄" :isChecked="predialysis.skin == 4 ? true : false"></label-box>/
  563. <label-box showValue="水肿" :isChecked="predialysis.skin == 5 ? true : false"></label-box>
  564. <label-box showValue="皮疹" :isChecked="predialysis.skin == 6 ? true : false"></label-box>
  565. <label-box showValue="出血点" :isChecked="predialysis.skin == 7 ? true : false"></label-box>
  566. <label-box showValue="压疮" :isChecked="predialysis.skin == 8 ? true : false"></label-box>
  567. <label-box showValue="皮下淤血" :isChecked="predialysis.skin == 9 ? true : false"></label-box>
  568. </td>
  569. </tr>
  570. <tr>
  571. <td style="text-align:left;" colspan="8">
  572. <span style="display:inline-block;margin-left:15px;">出血影响因素:</span>
  573. <label-box showValue="无" :isChecked="predialysis.is_hemorrhage == 2 ? true : false"></label-box>
  574. <label-box showValue="异常" :isChecked="predialysis.is_hemorrhage == 1 ? true : false"></label-box>&nbsp;
  575. <label-box
  576. showValue="穿刺点渗血"
  577. :isChecked="
  578. predialysis.is_hemorrhage == 1 &&
  579. predialysis.hemorrhage.indexOf('穿刺点渗血') > -1
  580. ? true
  581. : false
  582. "
  583. ></label-box>
  584. <label-box
  585. showValue="牙龈出血"
  586. :isChecked="
  587. predialysis.is_hemorrhage == 1 &&
  588. predialysis.hemorrhage.indexOf('牙龈出血') > -1
  589. ? true
  590. : false
  591. "
  592. ></label-box>
  593. <label-box
  594. showValue="消化道出血"
  595. :isChecked="
  596. predialysis.is_hemorrhage == 1 &&
  597. predialysis.hemorrhage.indexOf('消化道出血') > -1
  598. ? true
  599. : false
  600. "
  601. ></label-box>
  602. <label-box
  603. showValue="女性经期"
  604. :isChecked="
  605. predialysis.is_hemorrhage == 1 &&
  606. predialysis.hemorrhage.indexOf('女性经期') > -1
  607. ? true
  608. : false
  609. "
  610. ></label-box>其他:
  611. <span>{{ predialysis.hemorrhage_other }}</span>
  612. </td>
  613. </tr>
  614. <tr>
  615. <td style="text-align:left;" colspan="8">
  616. <span style="display:inline-block;margin-left:15px;">使用特殊药物:</span>
  617. <label-box :isChecked="prescription.special_medicine == 1 ? true : false" showValue="无"></label-box>
  618. <label-box :isChecked="prescription.special_medicine == 2 ? true : false" showValue="有"></label-box>:
  619. <label-box
  620. :isChecked="prescription.special_medicine == 3 ? true : false"
  621. showValue="降压药"
  622. ></label-box>
  623. <label-box
  624. :isChecked="prescription.special_medicine == 4 ? true : false"
  625. showValue="抗凝药"
  626. ></label-box>
  627. 其他:{{ prescription.special_medicine_other }}
  628. </td>
  629. </tr>
  630. <tr>
  631. <td style="text-align:left;" colspan="8">
  632. <span style="display:inline-block;margin-left:15px;">跌倒风险:</span>
  633. <label-box
  634. showValue="无"
  635. :isChecked="
  636. receiverTreatmentAccess.danger_level == 1 ? true : false
  637. "
  638. ></label-box>
  639. <label-box
  640. showValue="低风险"
  641. :isChecked="
  642. receiverTreatmentAccess.danger_level == 2 ? true : false
  643. "
  644. ></label-box>
  645. <label-box
  646. showValue="中度风险"
  647. :isChecked="
  648. receiverTreatmentAccess.danger_level == 3 ? true : false
  649. "
  650. ></label-box>
  651. <label-box
  652. showValue="高风险"
  653. :isChecked="
  654. receiverTreatmentAccess.danger_level == 4 ? true : false
  655. "
  656. ></label-box>
  657. <span>&nbsp;&nbsp;</span>跌倒风险预防措施:
  658. <label-box
  659. showValue="镇定剂"
  660. :isChecked="
  661. receiverTreatmentAccess.precaution.indexOf('镇定剂') > -1
  662. ? true
  663. : false
  664. "
  665. ></label-box>
  666. <label-box
  667. showValue="约束带"
  668. :isChecked="
  669. receiverTreatmentAccess.precaution.indexOf('约束带') > -1
  670. ? true
  671. : false
  672. "
  673. ></label-box>
  674. <label-box
  675. showValue="床栏"
  676. :isChecked="
  677. receiverTreatmentAccess.precaution.indexOf('床栏') > -1
  678. ? true
  679. : false
  680. "
  681. ></label-box>
  682. <label-box
  683. showValue="加强宣教"
  684. :isChecked="
  685. receiverTreatmentAccess.precaution.indexOf('加强宣教') > -1
  686. ? true
  687. : false
  688. "
  689. ></label-box>
  690. </td>
  691. </tr>
  692. </table>
  693. <table class="print-table" border="1" style="line-height:30px;">
  694. <tr style="line-height:20px;">
  695. <td style="min-width:60px">时间</td>
  696. <td style="min-width:60px">
  697. 血压
  698. <br />(mmHg)
  699. </td>
  700. <td style="min-width:60px">
  701. 心率
  702. <br />次/分
  703. </td>
  704. <td style="min-width:60px">
  705. 血流量
  706. <br />ml/min
  707. </td>
  708. <td style="min-width:60px">
  709. 静脉压
  710. <br />(mmHg)
  711. </td>
  712. <td style="min-width:60px">
  713. 跨膜压
  714. <br />(mmHg)
  715. </td>
  716. <td style="min-width:60px">
  717. 超滤率
  718. <br />L/h
  719. </td>
  720. <td style="min-width:60px">
  721. 超滤量
  722. <br />L
  723. </td>
  724. <td style="min-width:60px">
  725. NA⁺
  726. <br />
  727. </td>
  728. <td style="min-width:60px">病情变化及处理</td>
  729. <td style="min-width:110px">护士签名核对者</td>
  730. </tr>
  731. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  732. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  733. <td>
  734. {{
  735. monitor.systolic_blood_pressure
  736. ? monitor.systolic_blood_pressure + "/"
  737. : ""
  738. }}{{
  739. monitor.diastolic_blood_pressure
  740. ? monitor.diastolic_blood_pressure
  741. : ""
  742. }}
  743. </td>
  744. <td>{{ monitor.pulse_frequency }}</td>
  745. <td>{{ monitor.blood_flow_volume }}</td>
  746. <td>{{ monitor.venous_pressure }}</td>
  747. <td>{{ monitor.transmembrane_pressure }}</td>
  748. <td>{{ monitor.ultrafiltration_rate }}</td>
  749. <td>{{ monitor.ultrafiltration_volume }}</td>
  750. <td>{{ monitor.sodium_concentration }}</td>
  751. <td>
  752. <span style="line-height:18px;display:block;">
  753. {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
  754. monitor.result
  755. }}
  756. </span>
  757. </td>
  758. <td>
  759. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
  760. {{
  761. getAdminUser(monitor.monitoring_nurse)
  762. }}
  763. </span>
  764. <span
  765. v-else
  766. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  767. >
  768. <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
  769. </span>
  770. </td>
  771. </tr>
  772. <tr>
  773. <td style="text-align:left;" colspan="12">
  774. <span style="display:inline-block;margin-left:15px;">透析护理记录:{{ nursing_record }}</span>
  775. </td>
  776. </tr>
  777. <tr>
  778. <td style="text-align:left;" colspan="12">
  779. <span style="display:inline-block;margin-left:15px;">
  780. 透后评估: 透析过程:
  781. <label-box
  782. showValue="完成"
  783. :isChecked="afterdialysis.dialysis_process == 1 ? true : false"
  784. ></label-box>
  785. <label-box
  786. showValue="提前"
  787. :isChecked="afterdialysis.dialysis_process == 2 ? true : false"
  788. ></label-box>&nbsp;&nbsp; 并发症:
  789. <label-box
  790. :isChecked="
  791. afterdialysis.complication.indexOf('低血压') > -1
  792. ? true
  793. : false
  794. "
  795. showValue="低血压"
  796. ></label-box>
  797. <label-box
  798. :isChecked="
  799. afterdialysis.complication.indexOf('高血压') > -1
  800. ? true
  801. : false
  802. "
  803. showValue="高血压"
  804. ></label-box>
  805. <label-box
  806. :isChecked="
  807. afterdialysis.complication.indexOf('心律失常') > -1
  808. ? true
  809. : false
  810. "
  811. showValue="心律失常"
  812. ></label-box>
  813. <label-box
  814. :isChecked="
  815. afterdialysis.complication.indexOf('头晕') > -1
  816. ? true
  817. : false
  818. "
  819. showValue="头晕"
  820. ></label-box>
  821. <label-box
  822. :isChecked="
  823. afterdialysis.complication.indexOf('头痛') > -1
  824. ? true
  825. : false
  826. "
  827. showValue="头痛"
  828. ></label-box>
  829. <label-box
  830. :isChecked="
  831. afterdialysis.complication.indexOf('呕吐') > -1
  832. ? true
  833. : false
  834. "
  835. showValue="呕吐"
  836. ></label-box>
  837. <label-box
  838. :isChecked="
  839. afterdialysis.complication.indexOf('抽搐') > -1
  840. ? true
  841. : false
  842. "
  843. showValue="抽搐"
  844. ></label-box>
  845. <label-box
  846. :isChecked="
  847. afterdialysis.complication.indexOf('出血') > -1
  848. ? true
  849. : false
  850. "
  851. showValue="出血"
  852. ></label-box>
  853. <label-box
  854. :isChecked="
  855. afterdialysis.complication.indexOf('心衰') > -1
  856. ? true
  857. : false
  858. "
  859. showValue="心衰"
  860. ></label-box>
  861. <label-box
  862. :isChecked="
  863. afterdialysis.complication.indexOf('腹痛') > -1
  864. ? true
  865. : false
  866. "
  867. showValue="腹痛"
  868. ></label-box>
  869. <label-box
  870. :isChecked="
  871. afterdialysis.complication.indexOf('肌肉痉挛') > -1
  872. ? true
  873. : false
  874. "
  875. showValue="肌肉痉挛"
  876. ></label-box>
  877. <label-box
  878. :isChecked="
  879. afterdialysis.complication.indexOf('无') > -1
  880. ? true
  881. : false
  882. "
  883. showValue="无"
  884. ></label-box>
  885. </span>
  886. </td>
  887. </tr>
  888. <tr>
  889. <td style="text-align:left;" colspan="2">
  890. <span
  891. style="display:inline-block;margin-left:15px;"
  892. >实际置换量:{{ afterdialysis.actual_displacement }} L</span>
  893. </td>
  894. <td style="text-align:left;" colspan="10">
  895. <span style="display:inline-block;margin-left:15px;">
  896. 内瘘搏动及震颤音:
  897. <label-box
  898. showValue="存在"
  899. :isChecked="
  900. afterdialysis.internal_fistula.indexOf('震颤-存在') > -1
  901. ? true
  902. : false
  903. "
  904. ></label-box>
  905. <label-box
  906. showValue="减弱"
  907. :isChecked="
  908. afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1
  909. ? true
  910. : false
  911. "
  912. ></label-box>
  913. <label-box
  914. showValue="不存在"
  915. :isChecked="
  916. afterdialysis.internal_fistula.indexOf('震颤-无') > -1
  917. ? true
  918. : false
  919. "
  920. ></label-box>
  921. </span>&nbsp;
  922. <span>
  923. 透析器及管路凝血情况:
  924. <label-box showValue="0级" :isChecked="afterdialysis.cruor.indexOf('透析器-0级') > -1"></label-box>
  925. <label-box showValue="1级" :isChecked="afterdialysis.cruor.indexOf('透析器-1级') > -1"></label-box>
  926. <label-box showValue="2级" :isChecked="afterdialysis.cruor.indexOf('透析器-2级') > -1"></label-box>
  927. <label-box showValue="3级" :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"></label-box>
  928. </span>
  929. </td>
  930. </tr>
  931. <tr>
  932. <td style="text-align:left;" colspan="10">
  933. <span style="display:inline-block;margin-left:15px;">
  934. 透析中进食:
  935. <label-box
  936. showValue="无"
  937. :isChecked="afterdialysis.is_eat == 2 ? true : false"
  938. ></label-box>
  939. <label-box
  940. showValue="有"
  941. :isChecked="afterdialysis.is_eat == 1 ? true : false"
  942. ></label-box>
  943. </span>&nbsp;&nbsp;
  944. <span>
  945. 患者去向:
  946. <label-box showValue="离院" :isChecked="afterdialysis.patient_gose == 1 ? true : false"></label-box>
  947. <label-box showValue="留观" :isChecked="afterdialysis.patient_gose == 2 ? true : false"></label-box>
  948. <label-box showValue="住院" :isChecked="afterdialysis.patient_gose == 3 ? true : false"></label-box>
  949. </span>
  950. </td>
  951. <td style="text-align:left;" colspan="2">
  952. <span>
  953. <span
  954. v-if="finshForm.url === ''"
  955. style="display:flex;align-items:center;height:36px;"
  956. >下机护士:{{ finshForm.finish_nurse }}</span>
  957. <span
  958. v-if="finshForm.url !== ''"
  959. style="display:flex;align-items:center;height:36px;"
  960. >
  961. 下机护士:
  962. <img :src="finshForm.url" style="height:30px;" />
  963. </span>
  964. </span>
  965. </td>
  966. </tr>
  967. </table>
  968. <table class="print-table" border="1">
  969. <tr>
  970. <td>时间</td>
  971. <td>医生</td>
  972. <td>临时医嘱</td>
  973. <td>执行者</td>
  974. <td>执行时间</td>
  975. <td>核对者</td>
  976. </tr>
  977. <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
  978. <td
  979. style="height:30px;line-height:30px"
  980. >{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  981. <td>
  982. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  983. {{
  984. getAdminUser(advice.advice_doctor)
  985. }}
  986. </span>
  987. <span
  988. v-else
  989. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  990. >
  991. <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
  992. </span>
  993. </td>
  994. <td class="parent">
  995. <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp</span>
  996. <span>{{ advice.advice_name }}</span>
  997. <span
  998. v-if="advice && advice.advice_desc"
  999. >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  1000. <span v-if="advice.prescribing_number">
  1001. &nbsp;&nbsp; {{ advice.prescribing_number
  1002. }}{{ advice.prescribing_number_unit }}
  1003. </span>
  1004. <span
  1005. v-if="advice.single_dose != 0"
  1006. >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  1007. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  1008. <span v-if="advice.parent_id == 0">
  1009. {{
  1010. advice.execution_frequency
  1011. }}
  1012. </span>
  1013. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  1014. </td>
  1015. <td>
  1016. <span v-if="setAdminUserES(advice.execution_staff) == ''">
  1017. {{
  1018. getAdminUser(advice.execution_staff)
  1019. }}
  1020. </span>
  1021. <span
  1022. v-else
  1023. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  1024. >
  1025. <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
  1026. </span>
  1027. </td>
  1028. <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  1029. <td>
  1030. <span v-if="setAdminUserES(advice.checker) == ''">
  1031. {{
  1032. getAdminUser(advice.checker)
  1033. }}
  1034. </span>
  1035. <span
  1036. v-else
  1037. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  1038. >
  1039. <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
  1040. </span>
  1041. </td>
  1042. </tr>
  1043. <tr>
  1044. <td style="text-align:left;" colspan="6">
  1045. <span style="display:inline-block;margin-left:15px;">特殊记录:{{ special_record }}</span>
  1046. </td>
  1047. </tr>
  1048. <tr>
  1049. <!-- <td style="text-align:left;" colspan="3">
  1050. <span style="display:inline-block;margin-left:15px;">医生签名:</span>
  1051. <span v-if="doctorForm.url === ''">{{doctorForm.doctor}}</span>
  1052. <span v-if="doctorForm.url!==''">
  1053. <img style="height:20px" :src="doctorForm.url" />
  1054. </span>
  1055. </td>-->
  1056. <td style="text-align:left;" colspan="6">
  1057. <span style="display:inline-block;margin-left:15px;">质控护士签名:</span>
  1058. </td>
  1059. </tr>
  1060. </table>
  1061. <!-- <div style="margin-top:20px">
  1062. <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>
  1063. </div>-->
  1064. </div>
  1065. </div>
  1066. </template>
  1067. <script>
  1068. import { getDialysisRecord } from "@/api/dialysis";
  1069. import { getDataConfig } from "@/utils/data";
  1070. import { jsGetAge, uParseTime } from "@/utils/tools";
  1071. import LabelBox from "../printItem/LabelBox";
  1072. import CheckBox from "../batch_print/option_check_box";
  1073. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1074. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1075. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1076. export default {
  1077. name: "dialysisPrintOrderOne",
  1078. components: {
  1079. // DialysisPrintOrderOne,
  1080. // DialysisPrintOrderTwo,
  1081. LabelBox,
  1082. BreadCrumb,
  1083. CheckBox
  1084. },
  1085. data() {
  1086. return {
  1087. crumbs: [
  1088. { path: false, name: "透析管理" },
  1089. { path: false, name: "打印单" }
  1090. ],
  1091. operators: [],
  1092. adminUser: [],
  1093. check: {},
  1094. dialysisOrder: {
  1095. DeviceNumber: []
  1096. },
  1097. posture_arr: [],
  1098. operatorMaps: {},
  1099. complications: [
  1100. "低血压",
  1101. "高血压",
  1102. "心律失常",
  1103. "头晕",
  1104. "头痛",
  1105. "呕吐",
  1106. "抽搐",
  1107. "出血",
  1108. "心衰",
  1109. "腹痛",
  1110. "无"
  1111. ],
  1112. consciousness_arr: [],
  1113. jilurow: 0,
  1114. advice_jilurow: 0,
  1115. loading: false,
  1116. orgname: "",
  1117. patientInfo_gender_1: false,
  1118. patientInfo_gender_2: false,
  1119. patientInfo_source_2: false,
  1120. patientInfo_source_1: false,
  1121. modeOptions: {},
  1122. replacementWays: [],
  1123. perfusionApparatus: [],
  1124. anticoagulantsConfit: {},
  1125. bloodAccessParOpera: {},
  1126. dialysateFormulationOptions: {},
  1127. queryParams: {
  1128. xtdate: "",
  1129. xtno: ""
  1130. },
  1131. patientInfo: {
  1132. birth: "",
  1133. age: "",
  1134. DialysisSchedule: {
  1135. device_number: { number: "" },
  1136. device_zone: { name: "" }
  1137. },
  1138. gender: 0
  1139. },
  1140. predialysis: {
  1141. score: "",
  1142. internal_fistula: "",
  1143. internal_fistula_skin: "",
  1144. catheter: "",
  1145. blood_access_part_opera_name: ""
  1146. },
  1147. afterdialysis: {
  1148. complications_index: ""
  1149. },
  1150. prescription: {
  1151. dialysate_formulation_name: "",
  1152. device: {}
  1153. },
  1154. advices: [],
  1155. users: [],
  1156. monitors: [],
  1157. summary: {},
  1158. receiverTreatmentAccess: {},
  1159. org_template_info: {},
  1160. doctor_advices: [],
  1161. advice_groups: [],
  1162. schedule: [],
  1163. AlPanel: {
  1164. id: 0,
  1165. name: "",
  1166. type: 1,
  1167. shouji: 2,
  1168. weichi: 2,
  1169. zongliang: 2,
  1170. gaimingcheng: -1,
  1171. gaijiliang: -1,
  1172. shouji_unit: "mg",
  1173. weichi_unit: "mg/h",
  1174. zongliang_unit: "mg",
  1175. gaimingcheng_unit: "",
  1176. gaijiliang_unit: ""
  1177. },
  1178. list: 5,
  1179. replacement_total: "",
  1180. actual_treatment_hour: "",
  1181. actual_treatment_minute: "",
  1182. anticoagulant: "",
  1183. anticoagulant_shouji: "",
  1184. anticoagulant_zongliang: "",
  1185. prescription_dewatering: "",
  1186. blood_flow_volume: "",
  1187. dialysate_flow: "",
  1188. bed: "",
  1189. dialyzer_perfusion_apparatus: "",
  1190. dialysate_formulation: "",
  1191. blood_access: "",
  1192. doctor: "",
  1193. nurse: "",
  1194. doctorAdvice: [],
  1195. total: "",
  1196. weight_before: "",
  1197. dry_weight: "",
  1198. weight_after: "",
  1199. weightloss_after: "",
  1200. actual_ultrafiltration: "",
  1201. temperature: "",
  1202. systolic_blood_pressure: "",
  1203. diastolic_blood_pressure: "",
  1204. mission: "",
  1205. dialysis_summary: "",
  1206. orderForm: {
  1207. start_nurse: "",
  1208. url: ""
  1209. },
  1210. doctorForm: {
  1211. doctor: "",
  1212. url: ""
  1213. },
  1214. finshForm: {
  1215. finish_nurse: "",
  1216. url: ""
  1217. },
  1218. tableAdvice: [],
  1219. monitor: [],
  1220. displace_liqui: "",
  1221. kalium: "",
  1222. sodium: "",
  1223. calcium: "",
  1224. weight_gain: "",
  1225. afterWeightLast: "",
  1226. anticoagulant_weichi: "",
  1227. target_ultrafiltration: "",
  1228. blood_access_internal_fistula: "",
  1229. venous_catheterization: "",
  1230. blood_access_part_opera_id: "",
  1231. dryWeight_add: "",
  1232. weight: "",
  1233. vascularId: 0,
  1234. PunctureNurse: {
  1235. user_name: "",
  1236. url: ""
  1237. },
  1238. arr: [],
  1239. arrtwo: [],
  1240. bloodAccess: [],
  1241. vascularAccess: [],
  1242. nursing_record: "",
  1243. special_record: ""
  1244. };
  1245. },
  1246. methods: {
  1247. getAdminUser(id) {
  1248. if (id == 0) {
  1249. return "";
  1250. }
  1251. if (id == undefined) {
  1252. return "";
  1253. }
  1254. for (let i = 0; i < this.adminUser.length; i++) {
  1255. if (this.adminUser[i].id == id) {
  1256. return this.adminUser[i].name;
  1257. }
  1258. }
  1259. },
  1260. getDatge(value) {
  1261. var times = Date.parse(value) / 1000;
  1262. var timestr = uParseTime(times, "{y}年{m}月{d}日");
  1263. return timestr;
  1264. },
  1265. getTime(value, temp) {
  1266. if (value == 0) {
  1267. return "";
  1268. }
  1269. if (value != undefined) {
  1270. return uParseTime(value, temp);
  1271. }
  1272. return "";
  1273. },
  1274. getTimes(time) {
  1275. if (time === "") {
  1276. return "";
  1277. }
  1278. return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
  1279. },
  1280. printThisPage() {
  1281. var ptime = Math.round(new Date().getTime() / 1000);
  1282. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1283. const style =
  1284. '@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;}';
  1285. if (this.org_template_info.template_id == 1) {
  1286. printJS({
  1287. printable: "dialysis-print-box",
  1288. type: "html",
  1289. style: style,
  1290. scanStyles: false
  1291. });
  1292. } else if (
  1293. this.org_template_info.template_id == 2 ||
  1294. this.org_template_info.template_id == 0
  1295. ) {
  1296. printJS({
  1297. printable: "dialysis-print-box-1",
  1298. type: "html",
  1299. style: style,
  1300. scanStyles: false
  1301. });
  1302. }
  1303. },
  1304. getNumber() {
  1305. if (this.dialysisOrder != null) {
  1306. return (
  1307. this.patientInfo.DialysisSchedule.device_zone.name +
  1308. this.dialysisOrder.DeviceNumber.number
  1309. );
  1310. } else {
  1311. return (
  1312. this.patientInfo.DialysisSchedule.device_zone.name +
  1313. this.patientInfo.DialysisSchedule.device_number.number
  1314. );
  1315. }
  1316. },
  1317. getXuserName(id) {
  1318. if (id <= 0) {
  1319. return "";
  1320. }
  1321. var name = "";
  1322. if (this.users == null || typeof this.users.length === "undefined") {
  1323. return name;
  1324. }
  1325. var leng = this.users.length;
  1326. if (leng === 0) {
  1327. return name;
  1328. }
  1329. for (let index = 0; index < leng; index++) {
  1330. if (this.users[index].id === id) {
  1331. name = this.users[index].name;
  1332. break;
  1333. }
  1334. }
  1335. return name;
  1336. },
  1337. setAdminUserES(id) {
  1338. if (id === 0) {
  1339. return "";
  1340. }
  1341. if (id in this.operatorMaps) {
  1342. return this.operatorMaps[id].url;
  1343. } else {
  1344. return "";
  1345. }
  1346. },
  1347. modeName(mode_id) {
  1348. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1349. typeof this.modeOptions[mode_id].name !== "undefined"
  1350. ? this.modeOptions[mode_id].name
  1351. : "";
  1352. },
  1353. getDialysisRecord() {
  1354. this.loading = true;
  1355. getDialysisRecord(this.queryParams).then(response => {
  1356. if (response.data.state === 1) {
  1357. this.adminUser = response.data.data.users;
  1358. this.users = response.data.data.users;
  1359. var patientInfo = response.data.data.patientInfo;
  1360. if (patientInfo.gender === 1) {
  1361. patientInfo.gender = "男";
  1362. }
  1363. if (patientInfo.gender === 2) {
  1364. patientInfo.gender = "女";
  1365. }
  1366. this.patientInfo = response.data.data.patientInfo;
  1367. // console.log("透析记录", this.patientInfo);
  1368. this.patientInfo.birth = uParseTime(
  1369. this.patientInfo.birthday,
  1370. "{y}-{m}-{d}"
  1371. );
  1372. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1373. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1374. this.patientInfo.first_dialysis_date = uParseTime(
  1375. response.data.data.patientInfo.first_dialysis_date,
  1376. "{y}-{m}-{d}"
  1377. );
  1378. } else {
  1379. this.patientInfo.first_dialysis_date = "";
  1380. }
  1381. this.check = response.data.data.check;
  1382. var predialysis = response.data.data.PredialysisEvaluation;
  1383. console.log("透前评估", predialysis);
  1384. var predialysName = response.data.data.predialysName;
  1385. this.blood_access_part_opera_id = predialysName.name;
  1386. // console.log('血管', predialysName)
  1387. // this.weight_before = predialysis.weight_before
  1388. this.dry_weight = predialysis.dry_weight;
  1389. this.weight_gain = predialysis.weight_gain;
  1390. this.blood_access_internal_fistula =
  1391. predialysis.blood_access_internal_fistula;
  1392. this.venous_catheterization = predialysis.venous_catheterization;
  1393. // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
  1394. // console.log('血管通路', this.blood_access_part_opera_id)
  1395. var arry = [];
  1396. arry = getDataConfig("hemodialysis", "vascular_access_desc");
  1397. // eslint-disable-next-line no-empty
  1398. var id = 0;
  1399. for (let i = 0; i < arry.length; i++) {
  1400. if (arry[i].id === predialysis.blood_access_part_opera_id) {
  1401. id = predialysis.blood_access_part_opera_id;
  1402. }
  1403. this.vascularId = id;
  1404. }
  1405. this.predialysis = predialysis;
  1406. // console.log('透前评估', this.predialysis)
  1407. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1408. this.predialysis.blood_access_part_opera_id
  1409. );
  1410. var afterdialysis = response.data.data.AssessmentAfterDislysis;
  1411. // eslint-disable-next-line no-undef
  1412. console.log("透后评估", afterdialysis);
  1413. this.temperature = afterdialysis.temperature;
  1414. this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration;
  1415. this.actual_treatment_hour = afterdialysis.actual_treatment_hour;
  1416. this.actual_treatment_minute = afterdialysis.actual_treatment_minute;
  1417. this.systolic_blood_pressure = afterdialysis.systolic_blood_pressure;
  1418. this.diastolic_blood_pressure =
  1419. afterdialysis.diastolic_blood_pressure;
  1420. this.afterdialysis = afterdialysis;
  1421. // eslint-disable-next-line no-unused-vars
  1422. var doctoradvce = response.data.data.doctorAdvice;
  1423. var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
  1424. var tableAdvice = doctorAdevieInfo;
  1425. console.log("tableAdvice", tableAdvice);
  1426. // console.log('医生', tableAdvice.length)
  1427. if (tableAdvice.length === 0) {
  1428. var obj = { advice_name: "", start_time: "" };
  1429. var obj1 = { advice_name: "", start_time: "" };
  1430. var obj2 = { advice_name: "", start_time: "" };
  1431. var obj3 = { advice_name: "", start_time: "" };
  1432. var obj4 = { advice_name: "", start_time: "" };
  1433. var obj5 = { advice_name: "", start_time: "" };
  1434. var obj6 = { advice_name: "", start_time: "" };
  1435. tableAdvice.push(obj);
  1436. tableAdvice.push(obj1);
  1437. tableAdvice.push(obj2);
  1438. tableAdvice.push(obj3);
  1439. tableAdvice.push(obj4);
  1440. tableAdvice.push(obj5);
  1441. tableAdvice.push(obj6);
  1442. this.tableAdvice = tableAdvice;
  1443. }
  1444. if (tableAdvice.length === 1) {
  1445. var obj = { advice_name: "", start_time: "" };
  1446. var obj1 = { advice_name: "", start_time: "" };
  1447. var obj2 = { advice_name: "", start_time: "" };
  1448. var obj3 = { advice_name: "", start_time: "" };
  1449. var obj4 = { advice_name: "", start_time: "" };
  1450. var obj5 = { advice_name: "", start_time: "" };
  1451. tableAdvice.push(obj);
  1452. tableAdvice.push(obj1);
  1453. tableAdvice.push(obj2);
  1454. tableAdvice.push(obj3);
  1455. tableAdvice.push(obj4);
  1456. tableAdvice.push(obj5);
  1457. this.tableAdvice = tableAdvice;
  1458. }
  1459. if (tableAdvice.length === 2) {
  1460. var obj = { advice_name: "", start_time: "" };
  1461. var obj1 = { advice_name: "", start_time: "" };
  1462. var obj2 = { advice_name: "", start_time: "" };
  1463. var obj3 = { advice_name: "", start_time: "" };
  1464. var obj4 = { advice_name: "", start_time: "" };
  1465. tableAdvice.push(obj);
  1466. tableAdvice.push(obj1);
  1467. tableAdvice.push(obj2);
  1468. tableAdvice.push(obj3);
  1469. tableAdvice.push(obj4);
  1470. this.tableAdvice = tableAdvice;
  1471. }
  1472. if (tableAdvice.length === 3) {
  1473. // eslint-disable-next-line no-redeclare
  1474. var obj = { advice_name: "", start_time: "" };
  1475. // eslint-disable-next-line no-redeclare
  1476. var obj1 = { advice_name: "", start_time: "" };
  1477. // eslint-disable-next-line no-redeclare
  1478. var obj2 = { advice_name: "", start_time: "" };
  1479. // eslint-disable-next-line no-redeclare
  1480. var obj3 = { advice_name: "", start_time: "" };
  1481. tableAdvice.push(obj);
  1482. tableAdvice.push(obj1);
  1483. tableAdvice.push(obj2);
  1484. tableAdvice.push(obj3);
  1485. this.tableAdvice = tableAdvice;
  1486. }
  1487. if (tableAdvice.length === 4) {
  1488. // eslint-disable-next-line no-redeclare
  1489. var obj = { advice_name: "", start_time: "" };
  1490. // eslint-disable-next-line no-redeclare
  1491. var obj1 = { advice_name: "", start_time: "" };
  1492. // eslint-disable-next-line no-redeclare
  1493. var obj2 = { advice_name: "", start_time: "" };
  1494. tableAdvice.push(obj);
  1495. tableAdvice.push(obj1);
  1496. tableAdvice.push(obj2);
  1497. this.tableAdvice = tableAdvice;
  1498. }
  1499. if (tableAdvice.length === 5) {
  1500. // eslint-disable-next-line no-redeclare
  1501. var obj = { advice_name: "", start_time: "" };
  1502. // eslint-disable-next-line no-redeclare
  1503. var obj1 = { advice_name: "", start_time: "" };
  1504. tableAdvice.push(obj);
  1505. tableAdvice.push(obj1);
  1506. this.tableAdvice = tableAdvice;
  1507. }
  1508. if (tableAdvice.length === 6) {
  1509. // eslint-disable-next-line no-redeclare
  1510. var obj = { advice_name: "", start_time: "" };
  1511. tableAdvice.push(obj);
  1512. this.tableAdvice = tableAdvice;
  1513. }
  1514. if (tableAdvice.length >= 7) {
  1515. this.tableAdvice = tableAdvice;
  1516. }
  1517. var doctor = response.data.data.doctor;
  1518. this.doctor = doctor.user_name;
  1519. // console.log('医生', doctor)
  1520. this.PunctureNurse = response.data.data.nurse;
  1521. // console.log('穿刺护士', this.PunctureNurse)
  1522. var operators = response.data.data.operators;
  1523. // console.log('operators', operators)
  1524. var total = response.data.data.total;
  1525. console.log("total", total);
  1526. this.total = total;
  1527. this.operators = operators;
  1528. this.dialysisOrder =
  1529. response.data.data.dialysisOrder === null
  1530. ? null
  1531. : response.data.data.dialysisOrder;
  1532. if (this.operators.length > 0) {
  1533. var operatorsLen = this.operators.length;
  1534. for (var index = 0; index < operatorsLen; index++) {
  1535. this.$set(
  1536. this.operatorMaps,
  1537. this.operators[index].creator,
  1538. this.operators[index]
  1539. );
  1540. }
  1541. }
  1542. this.afterdialysis.txqnx = -1;
  1543. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  1544. this.afterdialysis.txqnx = 0;
  1545. }
  1546. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  1547. this.afterdialysis.txqnx = 1;
  1548. }
  1549. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  1550. this.afterdialysis.txqnx = 2;
  1551. }
  1552. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  1553. this.afterdialysis.txqnx = 3;
  1554. }
  1555. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1556. ","
  1557. );
  1558. this.afterdialysis.complications_other = [];
  1559. this.afterdialysis.complications_index = [];
  1560. var acllen = this.afterdialysis.complications.length;
  1561. for (let index = 0; index < acllen; index++) {
  1562. if (
  1563. this.complications.indexOf(
  1564. this.afterdialysis.complications[index]
  1565. ) >= 0
  1566. ) {
  1567. this.afterdialysis.complications_index.push(
  1568. this.afterdialysis.complications[index]
  1569. );
  1570. } else if (
  1571. this.complications.indexOf(
  1572. this.afterdialysis.complications[index]
  1573. ) < 0 &&
  1574. this.afterdialysis.complications_other.indexOf(
  1575. this.afterdialysis.complications[index]
  1576. ) < 0
  1577. ) {
  1578. this.afterdialysis.complications_other.push(
  1579. this.afterdialysis.complications[index]
  1580. );
  1581. }
  1582. }
  1583. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1584. ","
  1585. );
  1586. var prescription = response.data.data.dialysisPrescription;
  1587. this.prescription = prescription;
  1588. var schedule = response.data.data.schedule;
  1589. // console.log('排班', schedule)
  1590. this.schedule = schedule;
  1591. var receiverTreatmentAccess =
  1592. response.data.data.receiverTreatmentAccess;
  1593. console.log("接诊评估", receiverTreatmentAccess);
  1594. var obj = receiverTreatmentAccess.precaution;
  1595. var arr = obj.split(",");
  1596. console.log("arr", arr);
  1597. var arr2 = [];
  1598. for (let i = 0; i < this.precautions.length; i++) {
  1599. for (let j = 0; j < arr.length; j++) {
  1600. if (this.precautions[i].id == parseInt(arr[j])) {
  1601. arr2.push(this.precautions[i].name);
  1602. }
  1603. }
  1604. }
  1605. var obj2 = arr2.join(",");
  1606. console.log("obj2", obj2);
  1607. receiverTreatmentAccess.precaution = obj2;
  1608. console.log("接诊评估", receiverTreatmentAccess);
  1609. this.receiverTreatmentAccess = receiverTreatmentAccess;
  1610. var dialysisway = response.data.data.dialysisway;
  1611. console.log("透析处方", dialysisway);
  1612. this.target_ultrafiltration = dialysisway.target_ultrafiltration;
  1613. var order = response.data.data.order;
  1614. // console.log('上下机', order)
  1615. var start_nurse = response.data.data.startNuse;
  1616. // console.log('上机护士', start_nurse)
  1617. this.orderForm.start_nurse = start_nurse.user_name;
  1618. this.orderForm.url = start_nurse.url;
  1619. var finish_nurse = response.data.data.FinishNuse;
  1620. // console.log('下机护士', finish_nurse)
  1621. this.finshForm.url = finish_nurse.url;
  1622. this.finshForm.finish_nurse = finish_nurse.user_name;
  1623. var doctorname = response.data.data.DoctorName;
  1624. // console.log('医师签名', doctorname)
  1625. this.doctorForm.doctor = doctorname.user_name;
  1626. this.doctorForm.url = doctorname.url;
  1627. this.bed = order.number;
  1628. this.replacement_total = dialysisway.replacement_total;
  1629. this.anticoagulant = dialysisway.anticoagulant;
  1630. this.anticoagulant_shouji = dialysisway.anticoagulant_shouji;
  1631. this.anticoagulant_zongliang = dialysisway.anticoagulant_zongliang;
  1632. this.prescription_dewatering = dialysisway.prescription_dewatering;
  1633. this.blood_flow_volume = dialysisway.blood_flow_volume;
  1634. this.dialysate_flow = dialysisway.dialysate_flow;
  1635. this.dialyzer_perfusion_apparatus =
  1636. dialysisway.dialyzer_perfusion_apparatus;
  1637. this.dialysate_formulation = dialysisway.dialysate_formulation;
  1638. this.blood_access = dialysisway.blood_access;
  1639. this.displace_liqui = dialysisway.displace_liqui;
  1640. this.kalium = dialysisway.kalium;
  1641. this.sodium = dialysisway.sodium;
  1642. this.calcium = dialysisway.calcium;
  1643. this.anticoagulant_weichi = dialysisway.anticoagulant_weichi;
  1644. // var afterWeightLast = response.data.data.assessmentAfterDislysis
  1645. // this.afterWeightLast = afterWeightLast.weight_after
  1646. // eslint-disable-next-line no-undef
  1647. // console.log('透前体重', this.weight_before)
  1648. // console.log('干体中', this.dry_weight)
  1649. // console.log('什么体重', predialysis.additional_weight)
  1650. // console.log('较干体中增加量', this.dryWeight_add)
  1651. // this.afterWeightLast = afterWeightLast.weight_after
  1652. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1653. var rwLen = this.replacementWays.length;
  1654. this.prescription.replacement = "";
  1655. for (let index = 0; index < rwLen; index++) {
  1656. if (
  1657. this.replacementWays[index].id ==
  1658. this.prescription.replacement_way
  1659. ) {
  1660. this.prescription.replacement = this.replacementWays[index].name;
  1661. break;
  1662. }
  1663. }
  1664. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1665. this.prescription.dialysate_formulation
  1666. );
  1667. var paLen = this.perfusionApparatus.length;
  1668. this.prescription.perfusion_apparatus_name = "";
  1669. for (let index = 0; index < paLen; index++) {
  1670. if (
  1671. this.perfusionApparatus[index].id ==
  1672. this.prescription.perfusion_apparatus
  1673. ) {
  1674. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1675. index
  1676. ].name;
  1677. break;
  1678. }
  1679. }
  1680. // eslint-disable-next-line no-unused-vars
  1681. var acLen = this.anticoagulantsConfit.length;
  1682. var thisALID = this.prescription.anticoagulant;
  1683. this.prescription.anticoagulant_name = "";
  1684. if (
  1685. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1686. this.anticoagulantsConfit[thisALID] != null
  1687. ) {
  1688. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1689. thisALID
  1690. ].name;
  1691. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1692. }
  1693. this.advices = response.data.data.advices;
  1694. // console.log('医嘱', this.advices)
  1695. var monitor = response.data.data.monitor;
  1696. // console.log('透析监测', monitor)
  1697. this.monitor = monitor;
  1698. // console.log('monitor', monitor)
  1699. this.monitors = response.data.data.monitors;
  1700. //console.log("透析监测", this.monitors);
  1701. var summary = response.data.data.summary;
  1702. console.log("透析小结", summary);
  1703. this.mission = summary.mission;
  1704. this.dialysis_summary = summary.dialysis_summary;
  1705. this.nursing_record = summary.nursing_record;
  1706. this.special_record = summary.special_record;
  1707. this.org_template_info = response.data.data.org_template_info;
  1708. if (this.monitors.length < 7) {
  1709. var nl = 8 - this.monitors.length;
  1710. for (let index = 0; index < nl; index++) {
  1711. this.monitors.push([]);
  1712. }
  1713. }
  1714. this.jilurow = this.monitors.length + 1;
  1715. this.advice_jilurow = this.advices.length + 1;
  1716. var childMap = {};
  1717. for (const index in this.advices) {
  1718. if (this.advices[index].parent_id == 0) {
  1719. continue;
  1720. }
  1721. if (!(this.advices[index].parent_id in childMap)) {
  1722. childMap[this.advices[index].parent_id] = [];
  1723. }
  1724. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1725. }
  1726. var advices = [];
  1727. for (const index in this.advices) {
  1728. if (this.advices[index].parent_id > 0) {
  1729. continue;
  1730. }
  1731. var item = this.advices[index];
  1732. if (item.id in childMap) {
  1733. item.children = childMap[item.id];
  1734. } else {
  1735. item.children = [];
  1736. }
  1737. advices.push(item);
  1738. }
  1739. var leftAdvice = [];
  1740. var rightAdvice = [];
  1741. var adlen = advices.length;
  1742. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  1743. for (var i = 0; i < halfLen; i++) {
  1744. leftAdvice.push(advices[i]);
  1745. rightAdvice.push(advices[i + halfLen]);
  1746. }
  1747. if (halfLen < 5) {
  1748. var nl = 5 - leftAdvice.length;
  1749. for (let index = 0; index < nl; index++) {
  1750. leftAdvice.push([]);
  1751. }
  1752. var nl = 5 - rightAdvice.length;
  1753. for (let index = 0; index < nl; index++) {
  1754. rightAdvice.push([]);
  1755. }
  1756. }
  1757. this.advices = [];
  1758. for (var i = 0; i < halfLen; i++) {
  1759. var item = [];
  1760. item.push(leftAdvice[i]);
  1761. item.push(rightAdvice[i]);
  1762. this.advices.push(item);
  1763. }
  1764. this.loading = false;
  1765. this.doctor_advices =
  1766. response.data.data.advices == null
  1767. ? []
  1768. : response.data.data.advices;
  1769. for (let index = 0; index < this.doctor_advices.length; index++) {
  1770. this.doctor_advices[index]["isShow"] = 2;
  1771. }
  1772. if (this.doctor_advices.length > 0) {
  1773. var group = this.newAdviceGroupObject();
  1774. var initGroupBlock = function(group, advice) {
  1775. group.group_no = advice.groupno;
  1776. };
  1777. for (
  1778. let index = this.doctor_advices.length - 1;
  1779. index >= 0;
  1780. index--
  1781. ) {
  1782. var new_advice_index = 0;
  1783. if (
  1784. "children" in this.doctor_advices[index] &&
  1785. this.doctor_advices[index].children.length > 0
  1786. ) {
  1787. new_advice_index =
  1788. index + this.doctor_advices[index].children.length + 1;
  1789. var doctor_advice = {
  1790. delivery_way: this.doctor_advices[index].delivery_way,
  1791. execution_frequency: this.doctor_advices[index]
  1792. .execution_frequency,
  1793. groupno: this.doctor_advices[index].groupno,
  1794. id: this.doctor_advices[index].id,
  1795. parent_id: this.doctor_advices[index].parent_id,
  1796. children: this.doctor_advices[index].children,
  1797. remark: this.doctor_advices[index].remark
  1798. };
  1799. doctor_advice["isShow"] = 1;
  1800. this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
  1801. // this.doctor_advices.push(doctor_advice)
  1802. }
  1803. }
  1804. for (let index = 0; index < this.doctor_advices.length; index++) {
  1805. const advice = this.doctor_advices[index];
  1806. if (advice.groupno == 0) {
  1807. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1808. if (advice.parent_id > 0) {
  1809. if (this.advice_groups.length > 0) {
  1810. var parent_group = this.advice_groups[
  1811. this.advice_groups.length - 1
  1812. ];
  1813. if (parent_group.advices.length > 0) {
  1814. if (parent_group.advices[0].id == advice.parent_id) {
  1815. parent_group.advices.push(advice);
  1816. }
  1817. }
  1818. }
  1819. continue;
  1820. } else {
  1821. if (group.group_no > 0) {
  1822. this.advice_groups.push(group);
  1823. group = this.newAdviceGroupObject();
  1824. }
  1825. initGroupBlock(group, advice);
  1826. group.advices.push(advice);
  1827. this.advice_groups.push(group);
  1828. group = this.newAdviceGroupObject();
  1829. continue;
  1830. }
  1831. }
  1832. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1833. this.advice_groups.push(group);
  1834. group = this.newAdviceGroupObject();
  1835. }
  1836. if (group.group_no == 0) {
  1837. initGroupBlock(group, advice);
  1838. }
  1839. if (group.group_no == advice.groupno) {
  1840. group.advices.push(advice);
  1841. }
  1842. }
  1843. if (group.group_no > 0) {
  1844. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1845. this.advice_groups.push(group);
  1846. }
  1847. }
  1848. } else {
  1849. this.loading = false;
  1850. this.$message.error("请求数据失败");
  1851. return false;
  1852. }
  1853. });
  1854. },
  1855. bloodAccessParOperaName(id) {
  1856. if (id in this.bloodAccessParOpera) {
  1857. return this.bloodAccessParOpera[id].name;
  1858. }
  1859. return "";
  1860. },
  1861. dialysateFormulationName(id) {
  1862. if (id in this.dialysateFormulationOptions) {
  1863. return this.dialysateFormulationOptions[id].name;
  1864. }
  1865. return "";
  1866. },
  1867. getAge: function(val) {
  1868. if (val.birthday != 0) {
  1869. return jsGetAge(val.birth, "-");
  1870. } else {
  1871. return "";
  1872. }
  1873. },
  1874. newAdviceGroupObject: function() {
  1875. return Object.assign(
  1876. {},
  1877. {
  1878. group_no: 0,
  1879. // advice_doctor: 0,
  1880. // start_time: 0,
  1881. advices: []
  1882. // exec_staff: 0,
  1883. // exec_time: 0,
  1884. // checker: 0,
  1885. }
  1886. );
  1887. },
  1888. getPartName(id) {
  1889. for (let i = 0; i < this.vascularAccess.length; i++) {
  1890. if (this.vascularAccess[i].id == id) {
  1891. return this.vascularAccess[i].name;
  1892. }
  1893. }
  1894. }
  1895. },
  1896. watch: {
  1897. "patientInfo.gender": function() {
  1898. if (this.patientInfo.gender == 1) {
  1899. this.patientInfo_gender_1 = true;
  1900. this.patientInfo_gender_2 = false;
  1901. } else if (this.patientInfo.gender == 2) {
  1902. this.patientInfo_gender_2 = true;
  1903. this.patientInfo_gender_1 = false;
  1904. } else {
  1905. this.patientInfo_gender_2 = false;
  1906. this.patientInfo_gender_1 = false;
  1907. }
  1908. },
  1909. "patientInfo.source": function() {
  1910. if (this.patientInfo.source == 1) {
  1911. this.patientInfo_source_1 = true;
  1912. this.patientInfo_source_2 = false;
  1913. } else if (this.patientInfo.source == 2) {
  1914. this.patientInfo_source_2 = true;
  1915. this.patientInfo_source_1 = false;
  1916. } else {
  1917. this.patientInfo_source_2 = false;
  1918. this.patientInfo_source_1 = false;
  1919. }
  1920. }
  1921. },
  1922. created() {
  1923. var xtuser = this.$store.getters.xt_user;
  1924. this.orgname = xtuser.org.org_name;
  1925. // this.orgname = "遂溪方济医院";
  1926. this.modeOptions = this.$store.getters.treatment_mode;
  1927. this.replacementWays = this.$store.getters.replacement_ways;
  1928. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1929. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1930. var vascularAccess = getDataConfig("hemodialysis", "vascular_access");
  1931. this.vascularAccess = vascularAccess;
  1932. //console.log("hhe", vascularAccess);
  1933. console.log(
  1934. "血管通路部位",
  1935. getDataConfig("hemodialysis", "vascular_access")
  1936. );
  1937. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1938. var bloodAccessParOpera = getDataConfig(
  1939. "hemodialysis",
  1940. "vascular_access_desc"
  1941. );
  1942. var arr = [];
  1943. var arrtwo = [];
  1944. for (let i = 0; i < bloodAccessParOpera.length; i++) {
  1945. if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
  1946. bloodAccessParOpera[i].name = "存在";
  1947. arr.push(bloodAccessParOpera[i]);
  1948. }
  1949. if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
  1950. bloodAccessParOpera[i].name = "减弱";
  1951. arr.push(bloodAccessParOpera[i]);
  1952. }
  1953. if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
  1954. bloodAccessParOpera[i].name = "消失";
  1955. arr.push(bloodAccessParOpera[i]);
  1956. }
  1957. if (bloodAccessParOpera[i].name == "直穿") {
  1958. arrtwo.push(bloodAccessParOpera[i]);
  1959. }
  1960. if (bloodAccessParOpera[i].name == "人造血管") {
  1961. arrtwo.push(bloodAccessParOpera[i]);
  1962. }
  1963. if (bloodAccessParOpera[i].name == "移植血管") {
  1964. arrtwo.push(bloodAccessParOpera[i]);
  1965. }
  1966. this.arr = arr;
  1967. this.arrtwo = arrtwo;
  1968. }
  1969. console.log("arr", arr);
  1970. console.log("arrtwo", arrtwo);
  1971. // var bloodAccessParOpera = getDataConfig(
  1972. // "hemodialysis",
  1973. // "vascular_access_desc"
  1974. // );
  1975. // for (var key in bloodAccessParOpera) {
  1976. // this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1977. // bloodAccessParOpera[key];
  1978. // }
  1979. var dialysateFormulationOptions = getDataConfig(
  1980. "hemodialysis",
  1981. "dialysate_formulation"
  1982. );
  1983. for (var key in dialysateFormulationOptions) {
  1984. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1985. dialysateFormulationOptions[key];
  1986. }
  1987. const xtdate = this.$route.query && this.$route.query.xtdate;
  1988. const xtno = this.$route.query && this.$route.query.xtno;
  1989. if (
  1990. typeof xtdate === "string" &&
  1991. xtdate.length > 0 &&
  1992. typeof xtno === "string" &&
  1993. xtno.length > 0
  1994. ) {
  1995. this.queryParams.xtdate = xtdate;
  1996. this.queryParams.xtno = xtno;
  1997. this.getDialysisRecord();
  1998. } else {
  1999. this.$message.error("参数不齐");
  2000. return false;
  2001. }
  2002. this.ways = getDataConfig("hemodialysis", "way");
  2003. console.log("ways", this.ways);
  2004. this.consciousnesses = getDataConfig("hemodialysis", "consciousness");
  2005. this.appetites = getDataConfig("hemodialysis", "appetite");
  2006. this.postures = getDataConfig("hemodialysis", "posture");
  2007. this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
  2008. this.precautions = getDataConfig("hemodialysis", "precaution");
  2009. console.log("跌倒", this.precautions);
  2010. this.intake = getDataConfig("hemodialysis", "intake");
  2011. this.nutrition = getDataConfig("hemodialysis", "nutrition");
  2012. }
  2013. };
  2014. </script>
  2015. <style>
  2016. .dialysis-print-order {
  2017. width: 960px;
  2018. margin: 0 auto;
  2019. }
  2020. .dialysis-print-order .order-yy-name {
  2021. margin: auto;
  2022. text-align: center;
  2023. font-size: 20px;
  2024. letter-spacing: 5px;
  2025. }
  2026. .dialysis-print-order .order-title {
  2027. margin: auto;
  2028. font-weight: 600;
  2029. text-align: center;
  2030. font-size: 22px;
  2031. padding: 10px 20px 20px 20px;
  2032. }
  2033. .dialysis-print-order .table-box {
  2034. width: 100%;
  2035. line-height: 23px;
  2036. font-size: 14px;
  2037. }
  2038. .dialysis-print-order .print-table {
  2039. width: 100%;
  2040. text-align: center;
  2041. border-collapse: collapse;
  2042. line-height: 40px;
  2043. font-size: 14px;
  2044. }
  2045. .dialysis-print-order .print-table-no {
  2046. width: 100%;
  2047. text-align: center;
  2048. border-collapse: collapse;
  2049. font-size: 14px;
  2050. }
  2051. .dialysis-print-order .under-line {
  2052. border-bottom: 1px solid #999;
  2053. width: 95%;
  2054. text-align: center;
  2055. margin-left: 2px;
  2056. }
  2057. .dialysis-print-order .title-box {
  2058. text-align: center;
  2059. font-size: 16px;
  2060. }
  2061. .dialysis-print-order .radio-lebel-box {
  2062. font-weight: 400;
  2063. cursor: pointer;
  2064. }
  2065. .dialysis-print-order .radio-no {
  2066. opacity: 0;
  2067. outline: none;
  2068. position: absolute;
  2069. margin: 0;
  2070. width: 0;
  2071. height: 0;
  2072. z-index: -1;
  2073. }
  2074. .dialysis-print-order .radio-inner {
  2075. white-space: nowrap;
  2076. cursor: pointer;
  2077. outline: none;
  2078. display: inline-block;
  2079. line-height: 1;
  2080. position: relative;
  2081. vertical-align: middle;
  2082. }
  2083. .dialysis-print-order .radio-fang {
  2084. display: inline-block;
  2085. position: relative;
  2086. border: 1px solid #000;
  2087. box-sizing: border-box;
  2088. width: 14px;
  2089. height: 14px;
  2090. background-color: #fff;
  2091. z-index: 1;
  2092. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2093. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2094. }
  2095. .dialysis-print-order .is-checked-radio::after {
  2096. content: "√";
  2097. font-size: 15px;
  2098. }
  2099. .dialysis-print-order .print-table-no tr td {
  2100. padding: 8px 5px;
  2101. line-height: 25px;
  2102. }
  2103. .dialysis-print-order .print-table tr td {
  2104. padding: 1px 1px;
  2105. /*line-height: 25px;*/
  2106. }
  2107. .es-img {
  2108. height: 25px;
  2109. }
  2110. .advice-name {
  2111. text-align: left;
  2112. }
  2113. .advice-children {
  2114. display: flex;
  2115. }
  2116. .title-box-pro {
  2117. border: 0 #fff;
  2118. line-height: 25px;
  2119. height: 25px;
  2120. text-align: left;
  2121. padding-left: 10px !important;
  2122. }
  2123. .title-box-pro-tr {
  2124. border: 0 #fff;
  2125. }
  2126. .text-align-left {
  2127. text-align: left !important;
  2128. padding-left: 10px !important;
  2129. font-size: 14px !important;
  2130. line-height: 25px;
  2131. }
  2132. .print-table-tr-new td {
  2133. line-height: 20px !important;
  2134. }
  2135. .border-top-solid {
  2136. border: solid 1px #000;
  2137. }
  2138. .print-template-two tr {
  2139. line-height: 30px;
  2140. }
  2141. .parent {
  2142. text-align: left;
  2143. padding-left: 20px !important;
  2144. }
  2145. </style>