batch_print_order_twelve.vue 92KB

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