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

DialysisPrintOrderFiftyThree.vue 90KB

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