DialysisPrintOrderFortyEight.vue 101KB

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