DialysisPrintOrderEleven.vue 83KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980
  1. <template>
  2. <div id="dialysis-print-box-1">
  3. <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
  4. <div style="display:inline-block;width:100%;text-align:center;">
  5. <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  6. {{ orgname }}
  7. </div>
  8. <div class="order-title" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  9. 血液净化治疗记录单
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="inline_block">
  14. 姓名:
  15. <div class="under_line" style="width: 50px;text-align: center;">
  16. {{ patientInfo.name }}
  17. </div>
  18. </div>
  19. <div class="inline_block" style="margin-left: 10px;">
  20. 性别:
  21. <div class="under_line" style="width: 30px;text-align: center;">
  22. {{ patientInfo_gender_1 ? "男" : "女" }}
  23. </div>
  24. </div>
  25. <div class="inline_block" style="margin-left: 10px;">
  26. 年龄:
  27. <div class="under_line" style="width: 30px;text-align: center;">
  28. {{ getAge(patientInfo) }}
  29. </div>
  30. </div>
  31. <div class="inline_block">
  32. 门诊:
  33. <div class="under_line" style="width: 30px;text-align: center;">
  34. <check-box :checked="patientInfo_source_1"></check-box>
  35. </div>
  36. </div>
  37. <div class="inline_block">
  38. 病区:
  39. <div class="under_line" style="width: 50px;text-align: center;">
  40. {{ "/" }}
  41. </div>
  42. </div>
  43. <div class="inline_block">
  44. 床号:
  45. <div class="under_line" style="width: 50px;text-align: center;">
  46. {{ "/" }}
  47. </div>
  48. </div>
  49. <div class="inline_block">
  50. 透析号:
  51. <div class="under_line" style="width: 70px;text-align: center;">
  52. {{ patientInfo.dialysis_no }}
  53. </div>
  54. </div>
  55. <div class="inline_block" style="margin-left: 5px;">
  56. 住院号/门诊号:
  57. <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
  58. {{ patientInfo.admission_number }}
  59. </div>
  60. <div class="under_line" style="width: 70px;text-align: left" v-else>
  61. {{ "/" }}
  62. </div>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <div class="inline_block">
  67. 入科方式:
  68. <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left" :key="index">
  69. {{ item.name }}
  70. </div>
  71. <!--<div-->
  72. <!--class="under_line"-->
  73. <!--v-if="receiverTreatmentAccess.way == 1"-->
  74. <!--style="width: 180px;text-align: left"-->
  75. <!--&gt;-->
  76. <!--步行-->
  77. <!--</div>-->
  78. <!--<div-->
  79. <!--class="under_line"-->
  80. <!--v-if="receiverTreatmentAccess.way == 2"-->
  81. <!--style="width: 180px;text-align: left"-->
  82. <!--&gt;-->
  83. <!--扶行-->
  84. <!--</div>-->
  85. <!--<div-->
  86. <!--class="under_line"-->
  87. <!--v-if="receiverTreatmentAccess.way == 3"-->
  88. <!--style="width: 180px;text-align: left"-->
  89. <!--&gt;-->
  90. <!--轮椅-->
  91. <!--</div>-->
  92. <!--<div-->
  93. <!--class="under_line"-->
  94. <!--v-if="receiverTreatmentAccess.way == 4"-->
  95. <!--style="width: 180px;text-align: left"-->
  96. <!--&gt;-->
  97. <!--平车-->
  98. <!--</div>-->
  99. </div>
  100. <div class="inline_block" style="margin-left: 10px;">
  101. 诊断:
  102. <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;">
  103. {{ patientInfo.diagnose }}
  104. </div>
  105. </div>
  106. </div>
  107. <div class="row" :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''">
  108. <table class="proj_table">
  109. <tbody>
  110. <tr>
  111. <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  112. 透析前情况
  113. </td>
  114. </tr>
  115. <tr>
  116. <td colspan="2">
  117. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  118. <div class="inline_block" style="flex:1;">
  119. 本次透析日期:
  120. <div class="under_line" style="width: 100px;text-align: center">
  121. {{ xtdate }}
  122. </div>
  123. </div>
  124. <div class="inline_block" style="flex:1;">
  125. 透析次数:
  126. <div class="under_line" style="width: 70px;text-align: center">
  127. {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
  128. </div>
  129. </div>
  130. <div class="inline_block" style="flex:1;">
  131. 透前症状:
  132. <div class="under_line" style="width: 150px;text-align: center">
  133. {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
  134. </div>
  135. </div>
  136. </div>
  137. <div class="row" style="padding: 2px 0;line-height:23px;">
  138. <div class="inline_block">
  139. T:
  140. <div class="under_line" style="width: 50px;text-align: center">
  141. {{ predialysis.temperature ? predialysis.temperature : "/" }}
  142. </div>
  143. °C
  144. </div>
  145. <div class="inline_block" style="margin-left:10px;">
  146. P:
  147. <div class="under_line" style="width: 50px;text-align: center;">
  148. {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "/" }}
  149. </div>
  150. 次/分
  151. </div>
  152. <div class="inline_block" style="margin-left:10px;">
  153. R:
  154. <div class="under_line" style="width: 50px;text-align: center;">
  155. {{ predialysis.breathing_rate ? predialysis.breathing_rate : "/" }}
  156. </div>
  157. 次/分
  158. </div>
  159. <div class="inline_block" style="margin-left:10px;">
  160. BP:
  161. <div class="under_line" style="width: 50px;text-align: center;">
  162. {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/" }}
  163. </div>
  164. /
  165. <div class="under_line" style="width: 50px;text-align: center;">
  166. {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "/" }}
  167. </div>
  168. mmHg
  169. </div>
  170. <div class="inline_block" style="margin-left:10px;flex:1;">
  171. 穿刺方式:
  172. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
  173. /
  174. </div>
  175. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('绳梯')>-1">
  176. 绳梯
  177. </div>
  178. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('扣眼')>-1">
  179. 扣眼
  180. </div>
  181. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
  182. 区域
  183. </div>
  184. <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
  185. /
  186. </div>
  187. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
  188. 绳梯
  189. </div>
  190. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
  191. 扣眼
  192. </div>
  193. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
  194. 区域
  195. </div> -->
  196. </div>
  197. <div class="inline_block" style="margin-left:10px;flex:1;">
  198. 穿刺针:
  199. <div class="under_line" style="width: 100px;text-align: center">
  200. {{ predialysis.puncture_needle ? predialysis.puncture_needle : "/" }}
  201. </div>
  202. </div>
  203. </div>
  204. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  205. <div class="inline_block" style="flex:1.4">
  206. 血管通路:
  207. <div class="under_line" style="width: 200px;text-align: center;">
  208. <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
  209. {{predialysis.blood_access_part_id}}
  210. {{ predialysis.blood_access_part_opera_name }}
  211. </div>
  212. </div>
  213. <div class="inline_block" style="margin-left:10px;flex:1;">
  214. 内瘘:
  215. <div class="under_line" style="width: 170px;text-align: center;white-space: normal;">
  216. {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
  217. </div>
  218. </div>
  219. <div class="inline_block" style="margin-left:10px;flex:1.8;">
  220. 导管:
  221. <div class="under_line" style="width: 150px;text-align: center">
  222. {{ predialysis.catheter ? predialysis.catheter : "/" }}
  223. </div>
  224. </div>
  225. </div>
  226. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  227. <div class="inline_block" style="flex:1;">
  228. 透析方式:
  229. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
  230. /
  231. </div>
  232. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 1">
  233. HD
  234. </div>
  235. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 2">
  236. HDF
  237. </div>
  238. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 3">
  239. HD+HP
  240. </div>
  241. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 4">
  242. HP
  243. </div>
  244. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 5">
  245. HF
  246. </div>
  247. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 6">
  248. SCUF
  249. </div>
  250. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 7">
  251. IUF
  252. </div>
  253. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 8">
  254. HFHD
  255. </div>
  256. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 9">
  257. HFHD+HP
  258. </div>
  259. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 10">
  260. PHF
  261. </div>
  262. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 11">
  263. HFR
  264. </div>
  265. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 12">
  266. HDF+HP
  267. </div>
  268. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 13">
  269. CRRT
  270. </div>
  271. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 14">
  272. 腹水回输
  273. </div>
  274. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 15">
  275. HD前置换
  276. </div>
  277. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 16">
  278. HD后置换
  279. </div>
  280. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 17">
  281. HDF前置换
  282. </div>
  283. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 18">
  284. HDF后置换
  285. </div>
  286. </div>
  287. <div class="inline_block" style="margin-left:10px;flex:1;">
  288. 置换方式:
  289. <div class="under_line" style="width: 100px;text-align: center">
  290. {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }}
  291. </div>
  292. </div>
  293. <div class="inline_block" style="margin-left:10px;flex:1;">
  294. 置换量:
  295. <div class="under_line" style="width: 70px;text-align: center">
  296. {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
  297. </div>
  298. L
  299. </div>
  300. <div class="inline_block" style="margin-left:10px;flex:1;">
  301. 血流量:
  302. <div class="under_line" style="width: 50px;text-align: center">
  303. {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
  304. </div>
  305. ml/min
  306. </div>
  307. <div class="inline_block" style="margin-left:10px;flex:1;">
  308. 透析时间:
  309. <div class="under_line" style="width: 50px;text-align: center">
  310. {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "/" }}
  311. </div>
  312. h
  313. </div>
  314. </div>
  315. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  316. <div class="inline_block" style="flex:1;">
  317. 透析(滤)器:
  318. <div class="under_line" style="width: 100px;text-align: center">
  319. {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
  320. </div>
  321. </div>
  322. <div class="inline_block" style="flex:1;">
  323. 灌流器:
  324. <div class="under_line" style="width: 70px;text-align: center">/</div>
  325. </div>
  326. <div class="inline_block" style="flex:1;">
  327. 干体重:
  328. <div class="under_line" style="width: 150px;text-align: center">
  329. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
  330. </div>
  331. kg
  332. </div>
  333. </div>
  334. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  335. <div class="inline_block" style="flex:1;">
  336. 上次透后体重:
  337. <div class="under_line" style="width: 100px;text-align: center">
  338. {{ predialysis.weight_after_last_transparency ? parseFloat(predialysis.weight_after_last_transparency - predialysis.additional_weight).toFixed(1) : "未称重" }}
  339. </div>
  340. kg
  341. </div>
  342. <div class="inline_block" style="flex:1;">
  343. 透前体重:
  344. <div class="under_line" style="width: 70px;text-align: center">
  345. {{ predialysis.weight_before ? parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1) : "/" }}
  346. </div>
  347. kg
  348. </div>
  349. <div class="inline_block" style="flex:1;">
  350. 计划超滤量:
  351. <div class="under_line" style="width: 150px;text-align: center">
  352. {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
  353. </div>
  354. L
  355. </div>
  356. </div>
  357. <div class="row" style="padding: 2px 0;line-height:23px;">
  358. <div class="inline_block">
  359. 透析液成分钾:
  360. <div class="under_line" style="width: 50px;text-align: center">
  361. {{ prescription.kalium ? prescription.kalium : "/" }}
  362. </div>
  363. mmol/L
  364. </div>
  365. <div class="inline_block" style="margin-left:10px;">
  366. 钠:
  367. <div class="under_line" style="width: 50px;text-align: center;">
  368. {{ prescription.sodium ? prescription.sodium : "/" }}
  369. </div>
  370. mmol/L
  371. </div>
  372. <div class="inline_block" style="margin-left:10px;">
  373. 钙:
  374. <div class="under_line" style="width: 50px;text-align: center;">
  375. {{ prescription.calcium ? prescription.calcium : "/" }}
  376. </div>
  377. mmol/L
  378. </div>
  379. <div class="inline_block" style="margin-left:10px;">
  380. 碳酸氢根:
  381. <div class="under_line" style="width: 50px;text-align: center;">
  382. {{ prescription.bicarbonate ? prescription.bicarbonate : "/" }}
  383. </div>
  384. mmol/L
  385. </div>
  386. <div class="inline_block" style="margin-left:10px;">
  387. 流量:
  388. <div class="under_line" style="width: 50px;text-align: center;">
  389. {{ prescription.dialysate_flow ? prescription.dialysate_flow : "/" }}
  390. </div>
  391. ml/min
  392. </div>
  393. </div>
  394. <div class="row" style="padding: 2px 0;line-height:23px;">
  395. <div class="inline_block">
  396. 抗凝剂:
  397. <div class="under_line" style="width: 150px;text-align: center">
  398. {{ prescription.anticoagulant_name ? prescription.anticoagulant_name : "/" }}
  399. </div>
  400. </div>
  401. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
  402. 首剂:
  403. <div class="under_line" style="width: 50px;text-align: center;">
  404. {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
  405. </div>
  406. <span v-if="prescription.anticoagulant == 4">mg</span>
  407. <span v-if="prescription.anticoagulant == 3">iu</span>
  408. <span v-if="prescription.anticoagulant == 2">iu</span>
  409. <span v-if="prescription.anticoagulant == 1">mg</span>
  410. </div>
  411. <div class="inline_block" style="margin-left:20px;">
  412. 维持:
  413. <div v-if="prescription.anticoagulant == 1" class="under_line" style="width: 50px;text-align: center;">
  414. {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "/" }}
  415. </div>
  416. <div v-if="prescription.anticoagulant != 1" class="under_line" style="width: 50px;text-align: center;">
  417. {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0" }}
  418. </div>
  419. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  420. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  421. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  422. <span v-if="prescription.anticoagulant == 2">iu/h</span>
  423. <span v-if="prescription.anticoagulant == 1">mg/h</span>
  424. </div>
  425. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
  426. 钙名称:
  427. <div class="under_line" style="width: 150px;text-align: center;">
  428. {{ prescription.anticoagulant_gaimingcheng ? prescription.anticoagulant_gaimingcheng : "/" }}
  429. </div>
  430. </div>
  431. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
  432. 钙剂量:
  433. <div class="under_line" style="width: 50px;text-align: center;">
  434. {{ prescription.anticoagulant_gaijiliang ? prescription.anticoagulant_gaijiliang : "/" }}
  435. </div>
  436. ml
  437. </div>
  438. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
  439. 总量:
  440. <div class="under_line" style="width: 50px;text-align: center;">
  441. {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
  442. </div>
  443. <span v-if="prescription.anticoagulant == 4">mg</span>
  444. <span v-if="prescription.anticoagulant == 3">iu</span>
  445. <span v-if="prescription.anticoagulant == 2">iu</span>
  446. <span v-if="prescription.anticoagulant == 1">mg</span>
  447. </div>
  448. <div class="inline_block" style="margin-left:20px;">
  449. 透析机号:
  450. <div class="under_line" style="width: 50px;text-align: center;">
  451. {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
  452. </div>
  453. </div>
  454. </div>
  455. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  456. <div class="inline_block" style="flex:1; display:inline-block;">
  457. 备注:
  458. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  459. {{ predialysis.remark ? predialysis.remark : "/" }}
  460. </div>
  461. </div>
  462. </div>
  463. </td>
  464. </tr>
  465. <tr>
  466. <td style="padding: 0; position: relative;" colspan="2">
  467. <table class="inside_table">
  468. <tbody>
  469. <tr>
  470. <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  471. 治疗纪录
  472. </td>
  473. </tr>
  474. <tr>
  475. <td width="60">时间</td>
  476. <td width="60">血压<br />(mmHg)</td>
  477. <td width="50">脉搏<br />(次/分)</td>
  478. <td width="50">呼吸<br />(次/分)</td>
  479. <td width="50">血流量<br />(ml/min)</td>
  480. <td width="50">静脉压<br />(mmHg)</td>
  481. <td width="50">跨膜压<br />(mmHg)</td>
  482. <!--<td width="60">透析液温度(°C)</td>-->
  483. <!--<td width="50">电导度<br />(ms/cm)</td>-->
  484. <td width="50">超滤量<br />(ml)</td>
  485. <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5" width="50">
  486. 置换量<br />(ml)
  487. </td>
  488. <td width="50">肝素用量余量<br />(ml)</td>
  489. <td width="200">病情变化及处理</td>
  490. <td width="100">护士签名</td>
  491. </tr>
  492. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  493. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  494. <td>
  495. {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
  496. {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
  497. </td>
  498. <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
  499. <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
  500. <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
  501. <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}</td>
  502. <td v-if=" monitor.operate_time > dialysisOrder.end_time || monitor.operate_time < dialysisOrder.start_time">
  503. {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
  504. </td>
  505. <td v-if="monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time">
  506. {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
  507. </td>
  508. <!--<td> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>-->
  509. <!--<td> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>-->
  510. <td v-if=" monitor.operate_time > dialysisOrder.end_time || monitor.operate_time < dialysisOrder.start_time">
  511. {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
  512. </td>
  513. <td v-if=" monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time">
  514. {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : 0 }}
  515. </td>
  516. <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5) && monitor.operate_time > dialysisOrder.end_time" width="50">
  517. {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
  518. </td>
  519. <td
  520. v-if="(prescription.mode_id == 2 || prescription.mode_id == 5) && monitor.operate_time <= dialysisOrder.end_time" width="50">
  521. {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
  522. </td>
  523. <td>{{ monitor.heparin ? monitor.heparin : "" }}</td>
  524. <td style="line-height:16px;padding:0px;">
  525. <div style="min-height:35px;line-height:35px; overflow:hidden;">
  526. <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
  527. <template v-if="monitor.operate_time == dialysisOrder.start_time">【开始透析】</template>
  528. {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }}&nbsp;{{ monitor.result }}
  529. </span>
  530. </div>
  531. </td>
  532. <td>
  533. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{ getAdminUser(monitor.monitoring_nurse) }}</span>
  534. <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)" alt="" srcset="" v-else />
  535. </td>
  536. </tr>
  537. <tr v-for="(monitor, monindex) in monitors2" :key="monindex">
  538. <td></td>
  539. <td></td>
  540. <td></td>
  541. <td></td>
  542. <td></td>
  543. <td></td>
  544. <td></td>
  545. <td></td>
  546. <td></td>
  547. <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5" width="50"></td>
  548. <td style="line-height:16px;padding:0px;">
  549. <div style="height:40px;line-height:20px; overflow:hidden;">
  550. <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"></span>
  551. </div>
  552. </td>
  553. <td></td>
  554. </tr>
  555. </tbody>
  556. </table>
  557. </td>
  558. </tr>
  559. <tr>
  560. <td style="padding: 0; position: relative;" colspan="2">
  561. <table class="inside_table">
  562. <tbody>
  563. <tr style="line-height:35px;padding:8px 5px;">
  564. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  565. 医嘱内容
  566. </td>
  567. </tr>
  568. <!-- <tr style="line-height:35px;padding:8px 5px;">
  569. <td colspan="4" style="font-size: 16px">开医嘱</td>
  570. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  571. </tr> -->
  572. <tr style="line-height:35px;padding:8px 5px;">
  573. <td style="font-size: 16px" width="10%">时间</td>
  574. <td style="font-size: 16px" colspan="2" width="45%">
  575. 医嘱内容
  576. </td>
  577. <td style="font-size: 16px" width="10%">医生签名</td>
  578. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  579. <td style="font-size: 16px" width="10%">执行人签名</td>
  580. <td style="font-size: 16px" width="10%">时间</td>
  581. </tr>
  582. <!-- <template v-for="group in doctor_advices" > -->
  583. <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
  584. <td height="32px">
  585. <span v-if="advice.start_time">
  586. {{ getTime(advice.start_time, "{h}:{i}") }}
  587. </span>
  588. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  589. </td>
  590. <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
  591. <span v-if="advice.parent_id > 0">---></span>
  592. <span>{{ advice.advice_name }}</span>
  593. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  594. <span v-if="advice.prescribing_number">
  595. &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
  596. </span>
  597. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  598. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  599. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  600. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  601. </td>
  602. <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
  603. <span>{{advice.delivery_way}}</span>
  604. <span>{{advice.execution_frequency}}</span>
  605. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  606. </td> -->
  607. <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
  608. <td height="32px">
  609. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
  610. <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
  611. </td>
  612. <!-- <td height="35px">
  613. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  614. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  615. </td> -->
  616. <td height="32px">
  617. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
  618. <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
  619. </td>
  620. <td height="32px">
  621. <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
  622. </td>
  623. </tr>
  624. <!-- </template> -->
  625. </tbody>
  626. </table>
  627. </td>
  628. </tr>
  629. </tbody>
  630. </table>
  631. </div>
  632. <template v-if="this.totollength > 13">
  633. <div style="display:inline-block;width:100%;text-align:center;">
  634. <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  635. {{ orgname }}
  636. </div>
  637. <div class="order-title" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  638. 血液净化治疗记录单
  639. </div>
  640. </div>
  641. <div class="row">
  642. <div class="inline_block">
  643. 姓名:
  644. <div class="under_line" style="width: 50px;text-align: center;">
  645. {{ patientInfo.name }}
  646. </div>
  647. </div>
  648. <div class="inline_block" style="margin-left: 10px;">
  649. 性别:
  650. <div class="under_line" style="width: 30px;text-align: center;">
  651. {{ patientInfo_gender_1 ? "男" : "女" }}
  652. </div>
  653. </div>
  654. <div class="inline_block" style="margin-left: 10px;">
  655. 年龄:
  656. <div class="under_line" style="width: 30px;text-align: center;">
  657. {{ getAge(patientInfo) }}
  658. </div>
  659. </div>
  660. <div class="inline_block">
  661. 门诊:
  662. <div class="under_line" style="width: 30px;text-align: center;">
  663. <check-box :checked="patientInfo_source_1"></check-box>
  664. </div>
  665. </div>
  666. <div class="inline_block">
  667. 病区:
  668. <div class="under_line" style="width: 50px;text-align: center;">
  669. {{ "/" }}
  670. </div>
  671. </div>
  672. <div class="inline_block">
  673. 床号:
  674. <div class="under_line" style="width: 50px;text-align: center;">
  675. {{ "/" }}
  676. </div>
  677. </div>
  678. <div class="inline_block">
  679. 透析号:
  680. <div class="under_line" style="width: 70px;text-align: center;">
  681. {{ patientInfo.dialysis_no }}
  682. </div>
  683. </div>
  684. <div class="inline_block" style="margin-left: 5px;">
  685. 住院号/门诊号:
  686. <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
  687. {{ patientInfo.admission_number }}
  688. </div>
  689. <div class="under_line" style="width: 70px;text-align: left" v-else>
  690. {{ "/" }}
  691. </div>
  692. </div>
  693. </div>
  694. <div class="row" style="margin-bottom:10px;">
  695. <div class="inline_block">
  696. 入科方式:
  697. <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
  698. <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left">
  699. {{ item.name }}
  700. </div>
  701. <!--<div-->
  702. <!--class="under_line"-->
  703. <!--v-if="receiverTreatmentAccess.way == 0"-->
  704. <!--style="width: 180px;text-align: left"-->
  705. <!--&gt;</div>-->
  706. <!--<div-->
  707. <!--class="under_line"-->
  708. <!--v-if="receiverTreatmentAccess.way == 1"-->
  709. <!--style="width: 180px;text-align: left"-->
  710. <!--&gt;-->
  711. <!--步行-->
  712. <!--</div>-->
  713. <!--<div-->
  714. <!--class="under_line"-->
  715. <!--v-if="receiverTreatmentAccess.way == 2"-->
  716. <!--style="width: 180px;text-align: left"-->
  717. <!--&gt;-->
  718. <!--扶行-->
  719. <!--</div>-->
  720. <!--<div-->
  721. <!--class="under_line"-->
  722. <!--v-if="receiverTreatmentAccess.way == 3"-->
  723. <!--style="width: 180px;text-align: left"-->
  724. <!--&gt;-->
  725. <!--轮椅-->
  726. <!--</div>-->
  727. <!--<div-->
  728. <!--class="under_line"-->
  729. <!--v-if="receiverTreatmentAccess.way == 4"-->
  730. <!--style="width: 180px;text-align: left"-->
  731. <!--&gt;-->
  732. <!--平车-->
  733. <!--</div>-->
  734. </div>
  735. <div class="inline_block" style="margin-left: 10px;">
  736. 诊断:
  737. <div class="under_line" style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;">
  738. {{ patientInfo.diagnose }}
  739. </div>
  740. </div>
  741. </div>
  742. </template>
  743. <div class="row" style="margin-top:-11px;position: relative;">
  744. <table class="proj_table">
  745. <tbody>
  746. <template v-if="doctor_advices_2.length > 0">
  747. <tr style="line-height:35px;padding:8px 5px;">
  748. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  749. 医嘱内容
  750. </td>
  751. </tr>
  752. <!-- <tr style="line-height:35px;padding:8px 5px;">
  753. <td colspan="4" style="font-size: 16px">开医嘱</td>
  754. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  755. </tr> -->
  756. <tr style="line-height:35px;padding:8px 5px;">
  757. <td style="font-size: 16px" width="10%">时间</td>
  758. <td style="font-size: 16px" colspan="2" width="45%">
  759. 医嘱内容
  760. </td>
  761. <td style="font-size: 16px" width="10%">医生签名</td>
  762. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  763. <td style="font-size: 16px" width="10%">执行人签名</td>
  764. <td style="font-size: 16px" width="10%">时间</td>
  765. </tr>
  766. <!-- <template v-for="group in doctor_advices" > -->
  767. <tr v-for="(advice, advice_index) in doctor_advices_2" :key="advice_index">
  768. <td height="32px">
  769. <span v-if="advice.start_time">
  770. {{ getTime(advice.start_time, "{h}:{i}") }}
  771. </span>
  772. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  773. </td>
  774. <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
  775. <span v-if="advice.parent_id > 0">---></span>
  776. <span>{{ advice.advice_name }}</span>
  777. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  778. <span v-if="advice.prescribing_number">
  779. &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
  780. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  781. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  782. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  783. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  784. </td>
  785. <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
  786. <span>{{advice.delivery_way}}</span>
  787. <span>{{advice.execution_frequency}}</span>
  788. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  789. </td> -->
  790. <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
  791. <td height="32px">
  792. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
  793. <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
  794. </td>
  795. <!-- <td height="35px">
  796. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  797. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  798. </td> -->
  799. <td height="32px">
  800. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
  801. <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
  802. </td>
  803. <td height="32px">
  804. <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
  805. </td>
  806. </tr>
  807. </template>
  808. <tr>
  809. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  810. 透析后情况
  811. </td>
  812. </tr>
  813. <tr>
  814. <td colspan="7">
  815. <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
  816. <div class="inline_block" style="flex:1;">
  817. T:
  818. <div class="under_line" style="width: 50px;text-align: center">
  819. {{ afterdialysis.temperature ? afterdialysis.temperature : "/" }}
  820. </div>
  821. °C
  822. </div>
  823. <div class="inline_block" style="margin-left:10px;flex:1;">
  824. P:
  825. <div class="under_line" style="width: 50px;text-align: center;">
  826. {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "/" }}
  827. </div>
  828. 次/分
  829. </div>
  830. <div class="inline_block" style="margin-left:10px;flex:1;">
  831. R:
  832. <div class="under_line" style="width: 50px;text-align: center;">
  833. {{ afterdialysis.breathing_rate ? afterdialysis.breathing_rate : "/" }}
  834. </div>
  835. 次/分
  836. </div>
  837. <div class="inline_block" style="margin-left:10px;flex:1.5;">
  838. BP:
  839. <div class="under_line" style="width: 50px;text-align: center;">
  840. {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "/" }}
  841. </div>
  842. /
  843. <div class="under_line" style="width: 50px;text-align: center;">
  844. {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "/" }}
  845. </div>
  846. mmHg
  847. </div>
  848. <div class="inline_block" style="flex:1.5;">
  849. 实际治疗时间:
  850. <div class="under_line" style="width: 30px;text-align: center">
  851. {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "/" }}
  852. </div>
  853. h
  854. <div class="under_line" style="width: 30px;text-align: center">
  855. {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
  856. </div>
  857. min
  858. </div>
  859. </div>
  860. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  861. <div class="inline_block" style="flex:2.5;">
  862. 透析器凝血:
  863. <div class="under_line" style="width:170px;text-align:center;white-space: normal;">
  864. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  865. </div>
  866. </div>
  867. <div class="inline_block" style="flex:2;">
  868. 内瘘:
  869. <div class="under_line" style="width: 170px;text-align: center;white-space: normal;">
  870. {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "/" }}
  871. </div>
  872. </div>
  873. <div class="inline_block" style="flex:4;">
  874. 导管:
  875. <div class="under_line" style="min-width: 120px;text-align: center">
  876. {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
  877. </div>
  878. </div>
  879. </div>
  880. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  881. <div class="inline_block" style="flex:1;">
  882. 透后体重:
  883. <div class="under_line" style="width: 70px;text-align: center">
  884. {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1) : "/" }}
  885. </div>
  886. kg
  887. </div>
  888. <div class="inline_block" style="flex:1;">
  889. 体重减少:
  890. <div class="under_line" style="width: 70px;text-align: center">
  891. {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/" }}
  892. </div>
  893. kg
  894. </div>
  895. <div class="inline_block" style="flex:1;">
  896. 透析中入量:
  897. <div class="under_line" style="width: 70px;text-align: center">
  898. {{ afterdialysis.dialysis_intakes ? afterdialysis.dialysis_intakes : "/" }}
  899. </div>
  900. {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
  901. </div>
  902. <div class="inline_block" style="flex:1;">
  903. 实际超滤量:
  904. <div class="under_line" style="width: 70px;text-align: center">
  905. {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
  906. </div>
  907. ml
  908. </div>
  909. </div>
  910. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  911. <div class="inline_block" style="flex:1; display:inline-block;">
  912. 治疗小结:
  913. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  914. {{ summary.dialysis_summary ? summary.dialysis_summary : "/" }}
  915. </div>
  916. </div>
  917. </div>
  918. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  919. <div class="inline_block" style="flex:1; display:inline-block;">
  920. 备注:
  921. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  922. {{ afterdialysis.remark ? afterdialysis.remark : "/" }}
  923. </div>
  924. </div>
  925. </div>
  926. </td>
  927. </tr>
  928. <tr>
  929. <td colspan="7">
  930. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  931. <div class="inline_block" style="flex:1;">
  932. 穿刺护士:
  933. <div class="under_line" style="width: 80px;text-align: center">
  934. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
  935. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}</span>
  936. <img style="height:20px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
  937. </div>
  938. </div>
  939. <div class="inline_block" style="flex:1;">
  940. 治疗护士:
  941. <div class="under_line" style="width: 80px;text-align: center">
  942. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
  943. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)}}
  944. </span>
  945. <img style="height:20px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
  946. </div>
  947. </div>
  948. <div class="inline_block" style="flex:1;">
  949. 核对人员:
  950. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
  951. <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  952. {{ getAdminUser(check == null ? 0 : check.creater) }}</span>
  953. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  954. </div>
  955. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
  956. <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  957. {{ getAdminUser(check == null ? 0 : check.creater) }}
  958. </span>
  959. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  960. </div>
  961. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
  962. <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  963. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  964. </span>
  965. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
  966. </div>
  967. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
  968. <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  969. {{ getAdminUser(check == null ? 0 : check.creater) }}
  970. </span>
  971. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  972. </div>
  973. </div>
  974. <div class="inline_block" style="flex:1;">
  975. 下机护士:
  976. <div class="under_line" style="width: 80px;text-align: center">
  977. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
  978. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
  979. <img style="height:20px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
  980. </div>
  981. </div>
  982. <div class="inline_block" style="flex:1;">
  983. 治疗医生:
  984. <div class="under_line" style="width: 80px;text-align: center">
  985. <span v-if="setAdminUserES(prescription.creater) == ''">
  986. {{ getAdminUser(prescription.creater) }}</span>
  987. <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
  988. </div>
  989. </div>
  990. </div>
  991. </td>
  992. </tr>
  993. </tbody>
  994. </table>
  995. <!-- <div class="print-yema">1</div> -->
  996. </div>
  997. </div>
  998. </div>
  999. </template>
  1000. <script>
  1001. import CheckBox from "../batch_print/option_check_box";
  1002. import { getDialysisRecord } from "@/api/dialysis";
  1003. import { getDataConfig } from "@/utils/data";
  1004. import { jsGetAge, uParseTime } from "@/utils/tools";
  1005. import LabelBox from "../printItem/LabelBox";
  1006. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1007. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1008. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1009. import print from "print-js";
  1010. export default {
  1011. name: "DialysisPrintOrderEleven",
  1012. props: ["childResponse"],
  1013. components: {
  1014. // DialysisPrintOrderOne,
  1015. // DialysisPrintOrderTwo,
  1016. CheckBox,
  1017. LabelBox,
  1018. BreadCrumb
  1019. },
  1020. data() {
  1021. return {
  1022. way_arr: [],
  1023. consciousness_arr: [],
  1024. appetite_arr: [],
  1025. posture_arr: [],
  1026. sick_condition_arr: [],
  1027. precaution_arr: [],
  1028. intake_arr: [],
  1029. nutrition_arr: [],
  1030. crumbs: [
  1031. { path: false, name: "透析管理" },
  1032. { path: false, name: "打印单" }
  1033. ],
  1034. operators: [],
  1035. adminUser: [],
  1036. check: {},
  1037. xtdate: "",
  1038. dialysisOrder: {
  1039. DeviceNumber: []
  1040. },
  1041. displaceLiquiPartOptions: [],
  1042. operatorMaps: {},
  1043. complications: [
  1044. "低血压",
  1045. "高血压",
  1046. "心律失常",
  1047. "头晕",
  1048. "头痛",
  1049. "呕吐",
  1050. "抽搐",
  1051. "出血",
  1052. "心衰",
  1053. "腹痛"
  1054. ],
  1055. jilurow: 0,
  1056. advice_jilurow: 0,
  1057. loading: false,
  1058. orgname: "",
  1059. patientInfo_gender_1: false,
  1060. patientInfo_gender_2: false,
  1061. patientInfo_source_2: false,
  1062. patientInfo_source_1: false,
  1063. modeOptions: {},
  1064. replacementWays: [],
  1065. perfusionApparatus: [],
  1066. anticoagulantsConfit: {},
  1067. bloodAccessParOpera: {},
  1068. dialysateFormulationOptions: {},
  1069. totollength: 0,
  1070. queryParams: {
  1071. xtdate: "",
  1072. xtno: ""
  1073. },
  1074. patientInfo: {
  1075. birth: "",
  1076. age: "",
  1077. DialysisSchedule: {
  1078. device_number: { number: "" },
  1079. device_zone: { name: "" }
  1080. },
  1081. gender: 0
  1082. },
  1083. predialysis: {
  1084. score: "",
  1085. internal_fistula: "",
  1086. internal_fistula_skin: "",
  1087. catheter: "",
  1088. blood_access_part_opera_name: ""
  1089. },
  1090. afterdialysis: {
  1091. complications_index: ""
  1092. },
  1093. prescription: {
  1094. dialysate_formulation_name: "",
  1095. device: {}
  1096. },
  1097. advices: [],
  1098. users: [],
  1099. monitors: [],
  1100. monitors2: [],
  1101. summary: {},
  1102. receiverTreatmentAccess: {},
  1103. org_template_info: {},
  1104. doctor_advices: [],
  1105. doctor_advices_2: [],
  1106. advice_groups: [],
  1107. advice_groups_2: [],
  1108. print_length: 0,
  1109. blood_access_part: [],
  1110. blood_access_part_opera: [],
  1111. AlPanel: {
  1112. id: 0,
  1113. name: "",
  1114. type: 1,
  1115. shouji: 2,
  1116. weichi: 2,
  1117. zongliang: 2,
  1118. gaimingcheng: -1,
  1119. gaijiliang: -1,
  1120. shouji_unit: "mg",
  1121. weichi_unit: "mg/h",
  1122. zongliang_unit: "mg",
  1123. gaimingcheng_unit: "",
  1124. gaijiliang_unit: ""
  1125. }
  1126. };
  1127. },
  1128. methods: {
  1129. getDisplaceLiquiPart: function(val) {
  1130. let displace_liqui_part_name = "/";
  1131. const displace_liqui_part = this.displaceLiquiPartOptions;
  1132. for (let i = 0; i < displace_liqui_part.length; i++) {
  1133. if (displace_liqui_part[i].id == val) {
  1134. displace_liqui_part_name = displace_liqui_part[i].name;
  1135. }
  1136. }
  1137. return displace_liqui_part_name;
  1138. },
  1139. replacementWaysById: function(val) {
  1140. let replacementWaysname = "/";
  1141. // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  1142. for (let i = 0; i < this.replacementWays.length; i++) {
  1143. if (this.replacementWays[i].id == val) {
  1144. replacementWaysname = this.replacementWays[i].name;
  1145. }
  1146. }
  1147. return replacementWaysname;
  1148. },
  1149. QueryPartById: function(val) {
  1150. let vascular_access_part_name = "/";
  1151. const vascular_access = getDataConfig("hemodialysis", "vascular_access");
  1152. for (let i = 0; i < vascular_access.length; i++) {
  1153. if (vascular_access[i].id == val) {
  1154. vascular_access_part_name = vascular_access[i].name;
  1155. }
  1156. }
  1157. return vascular_access_part_name;
  1158. },
  1159. getAdminUser(id) {
  1160. if (id == 0) {
  1161. return "";
  1162. }
  1163. if (id == undefined) {
  1164. return "";
  1165. }
  1166. for (let i = 0; i < this.adminUser.length; i++) {
  1167. if (this.adminUser[i].id == id) {
  1168. return this.adminUser[i].name;
  1169. }
  1170. }
  1171. },
  1172. getTime(value, temp) {
  1173. if (value == 0) {
  1174. return "";
  1175. }
  1176. if (value != undefined) {
  1177. return uParseTime(value, temp);
  1178. }
  1179. return "";
  1180. },
  1181. getUnit: function(val) {
  1182. switch (val) {
  1183. case 1:
  1184. return "g";
  1185. break;
  1186. case 2:
  1187. return "ml";
  1188. break;
  1189. }
  1190. },
  1191. printThisPage() {
  1192. var ptime = Math.round(new Date().getTime() / 1000);
  1193. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1194. const style =
  1195. '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}';
  1196. if (this.org_template_info.template_id == 1) {
  1197. printJS({
  1198. printable: "dialysis-print-box",
  1199. type: "html",
  1200. style: style,
  1201. scanStyles: false
  1202. });
  1203. } else if (
  1204. this.org_template_info.template_id == 2 ||
  1205. this.org_template_info.template_id == 0
  1206. ) {
  1207. printJS({
  1208. printable: "dialysis-print-box-1",
  1209. type: "html",
  1210. style: style,
  1211. scanStyles: false
  1212. });
  1213. }
  1214. },
  1215. getNumber() {
  1216. if (this.dialysisOrder != null) {
  1217. return (
  1218. this.patientInfo.DialysisSchedule.device_zone.name +
  1219. this.dialysisOrder.DeviceNumber.number
  1220. );
  1221. } else {
  1222. return (
  1223. this.patientInfo.DialysisSchedule.device_zone.name +
  1224. this.patientInfo.DialysisSchedule.device_number.number
  1225. );
  1226. }
  1227. },
  1228. getXuserName(id) {
  1229. if (id <= 0) {
  1230. return "";
  1231. }
  1232. var name = "";
  1233. if (this.users == null || typeof this.users.length === "undefined") {
  1234. return name;
  1235. }
  1236. var leng = this.users.length;
  1237. if (leng == 0) {
  1238. return name;
  1239. }
  1240. for (let index = 0; index < leng; index++) {
  1241. if (this.users[index].id == id) {
  1242. name = this.users[index].name;
  1243. break;
  1244. }
  1245. }
  1246. return name;
  1247. },
  1248. setAdminUserES(id) {
  1249. if (id == 0) {
  1250. return "";
  1251. }
  1252. if (id in this.operatorMaps) {
  1253. return this.operatorMaps[id].url;
  1254. } else {
  1255. return "";
  1256. }
  1257. },
  1258. modeName(mode_id) {
  1259. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1260. typeof this.modeOptions[mode_id].name !== "undefined"
  1261. ? this.modeOptions[mode_id].name
  1262. : "";
  1263. },
  1264. getDialysisRecord() {
  1265. this.loading = true;
  1266. // getDialysisRecord(this.queryParams).then(response => {
  1267. var response = this.childResponse;
  1268. if (response.data.state == 1) {
  1269. this.adminUser = response.data.data.users;
  1270. this.users = response.data.data.users;
  1271. this.patientInfo = response.data.data.patientInfo;
  1272. this.patientInfo.birth = uParseTime(
  1273. this.patientInfo.birthday,
  1274. "{y}-{m}-{d}"
  1275. );
  1276. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1277. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1278. this.patientInfo.first_dialysis_date = uParseTime(
  1279. response.data.data.patientInfo.first_dialysis_date,
  1280. "{y}-{m}-{d}"
  1281. );
  1282. } else {
  1283. this.patientInfo.first_dialysis_date = "";
  1284. }
  1285. this.check = response.data.data.check;
  1286. this.xtdate = response.data.data.xtdate;
  1287. this.predialysis = response.data.data.PredialysisEvaluation;
  1288. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1289. this.predialysis.blood_access_part_opera_id
  1290. );
  1291. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  1292. this.operators = response.data.data.operators;
  1293. this.dialysisOrder =
  1294. response.data.data.dialysisOrder === null
  1295. ? null
  1296. : response.data.data.dialysisOrder;
  1297. if (this.operators.length > 0) {
  1298. var operatorsLen = this.operators.length;
  1299. for (var index = 0; index < operatorsLen; index++) {
  1300. this.$set(
  1301. this.operatorMaps,
  1302. this.operators[index].creator,
  1303. this.operators[index]
  1304. );
  1305. }
  1306. }
  1307. this.afterdialysis.txqnx = -1;
  1308. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  1309. this.afterdialysis.txqnx = 0;
  1310. }
  1311. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  1312. this.afterdialysis.txqnx = 1;
  1313. }
  1314. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  1315. this.afterdialysis.txqnx = 2;
  1316. }
  1317. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  1318. this.afterdialysis.txqnx = 3;
  1319. }
  1320. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1321. ","
  1322. );
  1323. this.afterdialysis.complications_other = [];
  1324. this.afterdialysis.complications_index = [];
  1325. var acllen = this.afterdialysis.complications.length;
  1326. for (let index = 0; index < acllen; index++) {
  1327. if (
  1328. this.complications.indexOf(
  1329. this.afterdialysis.complications[index]
  1330. ) >= 0
  1331. ) {
  1332. this.afterdialysis.complications_index.push(
  1333. this.afterdialysis.complications[index]
  1334. );
  1335. } else if (
  1336. this.complications.indexOf(
  1337. this.afterdialysis.complications[index]
  1338. ) < 0 &&
  1339. this.afterdialysis.complications_other.indexOf(
  1340. this.afterdialysis.complications[index]
  1341. ) < 0
  1342. ) {
  1343. this.afterdialysis.complications_other.push(
  1344. this.afterdialysis.complications[index]
  1345. );
  1346. }
  1347. }
  1348. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1349. ","
  1350. );
  1351. this.prescription = response.data.data.dialysisPrescription;
  1352. this.receiverTreatmentAccess =
  1353. response.data.data.receiverTreatmentAccess;
  1354. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1355. var rwLen = this.replacementWays.length;
  1356. this.prescription.replacement = "";
  1357. for (let index = 0; index < rwLen; index++) {
  1358. if (
  1359. this.replacementWays[index].id == this.prescription.replacement_way
  1360. ) {
  1361. this.prescription.replacement = this.replacementWays[index].name;
  1362. break;
  1363. }
  1364. }
  1365. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1366. this.prescription.dialysate_formulation
  1367. );
  1368. var paLen = this.perfusionApparatus.length;
  1369. this.prescription.perfusion_apparatus_name = "";
  1370. for (let index = 0; index < paLen; index++) {
  1371. if (
  1372. this.perfusionApparatus[index].id ==
  1373. this.prescription.perfusion_apparatus
  1374. ) {
  1375. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1376. index
  1377. ].name;
  1378. break;
  1379. }
  1380. }
  1381. var acLen = this.anticoagulantsConfit.length;
  1382. var thisALID = this.prescription.anticoagulant;
  1383. this.prescription.anticoagulant_name = "";
  1384. if (
  1385. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1386. this.anticoagulantsConfit[thisALID] != null
  1387. ) {
  1388. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1389. thisALID
  1390. ].name;
  1391. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1392. }
  1393. this.advices = response.data.data.advices;
  1394. this.monitors = response.data.data.monitors;
  1395. this.summary = response.data.data.summary;
  1396. this.org_template_info = response.data.data.org_template_info;
  1397. if (this.monitors.length <= 6) {
  1398. var nl = 6;
  1399. this.print_length = 6;
  1400. for (let index = 0; index < nl; index++) {
  1401. if (
  1402. this.monitors[index] == undefined ||
  1403. this.monitors[index].length <= 0
  1404. ) {
  1405. this.monitors2.push([]);
  1406. } else {
  1407. continue;
  1408. }
  1409. }
  1410. }
  1411. var tempmonitorflag = true;
  1412. for (let index = 0; index < this.monitors.length; index++) {
  1413. const monitor = this.monitors[index];
  1414. this.monitors[index].end = "";
  1415. if (Object.keys(monitor).length > 0 && index > 1) {
  1416. if (monitor.operate_time == this.dialysisOrder.end_time) {
  1417. this.monitors[index].end = "【结束透析】";
  1418. tempmonitorflag = false;
  1419. }
  1420. if (tempmonitorflag && index == this.monitors.length - 1) {
  1421. this.monitors[index].end = "【结束透析】";
  1422. }
  1423. }
  1424. }
  1425. this.jilurow = this.monitors.length + 1;
  1426. this.advice_jilurow = this.advices.length + 1;
  1427. var childMap = {};
  1428. for (const index in this.advices) {
  1429. if (this.advices[index].parent_id == 0) {
  1430. continue;
  1431. }
  1432. if (!(this.advices[index].parent_id in childMap)) {
  1433. childMap[this.advices[index].parent_id] = [];
  1434. }
  1435. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1436. }
  1437. var advices = [];
  1438. for (const index in this.advices) {
  1439. if (this.advices[index].parent_id > 0) {
  1440. continue;
  1441. }
  1442. var item = this.advices[index];
  1443. if (item.id in childMap) {
  1444. item.children = childMap[item.id];
  1445. } else {
  1446. item.children = [];
  1447. }
  1448. advices.push(item);
  1449. }
  1450. var leftAdvice = [];
  1451. var rightAdvice = [];
  1452. var adlen = advices.length;
  1453. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  1454. for (var i = 0; i < halfLen; i++) {
  1455. leftAdvice.push(advices[i]);
  1456. rightAdvice.push(advices[i + halfLen]);
  1457. }
  1458. if (halfLen < 5) {
  1459. var nl = 5 - leftAdvice.length;
  1460. for (let index = 0; index < nl; index++) {
  1461. leftAdvice.push([]);
  1462. }
  1463. var nl = 5 - rightAdvice.length;
  1464. for (let index = 0; index < nl; index++) {
  1465. rightAdvice.push([]);
  1466. }
  1467. }
  1468. this.advices = [];
  1469. for (var i = 0; i < halfLen; i++) {
  1470. var item = [];
  1471. item.push(leftAdvice[i]);
  1472. item.push(rightAdvice[i]);
  1473. this.advices.push(item);
  1474. }
  1475. this.loading = false;
  1476. this.doctor_advices =
  1477. response.data.data.advices == null ? [] : response.data.data.advices;
  1478. for (let index = 0; index < this.doctor_advices.length; index++) {
  1479. this.doctor_advices[index]["isShow"] = 2;
  1480. }
  1481. // if (this.doctor_advices.length > 0) {
  1482. // var group = this.newAdviceGroupObject()
  1483. // var initGroupBlock = function(group, advice) {
  1484. // group.group_no = advice.groupno
  1485. // }
  1486. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1487. // var new_advice_index = 0
  1488. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1489. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1490. // var doctor_advice = {
  1491. // delivery_way: this.doctor_advices[index].delivery_way,
  1492. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1493. // groupno: this.doctor_advices[index].groupno,
  1494. // id: this.doctor_advices[index].id,
  1495. // parent_id: this.doctor_advices[index].parent_id,
  1496. // children: this.doctor_advices[index].children,
  1497. // remark: this.doctor_advices[index].remark,
  1498. // execution_staff: this.doctor_advices[index].execution_staff,
  1499. // checker: this.doctor_advices[index].checker,
  1500. // execution_time: this.doctor_advices[index].execution_time,
  1501. // advice_doctor: this.doctor_advices[index].advice_doctor
  1502. // }
  1503. // doctor_advice['isShow'] = 1
  1504. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1505. // // this.doctor_advices.push(doctor_advice)
  1506. // }
  1507. // }
  1508. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1509. // const advice = this.doctor_advices[index]
  1510. // if (advice.groupno == 0) {
  1511. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1512. // if (advice.parent_id > 0) {
  1513. // if (this.advice_groups.length > 0) {
  1514. // var parent_group = this.advice_groups[
  1515. // this.advice_groups.length - 1
  1516. // ]
  1517. // if (parent_group.advices.length > 0) {
  1518. // if (parent_group.advices[0].id == advice.parent_id) {
  1519. // parent_group.advices.push(advice)
  1520. // }
  1521. // }
  1522. // }
  1523. // continue
  1524. // } else {
  1525. // if (group.group_no > 0) {
  1526. // this.advice_groups.push(group)
  1527. // group = this.newAdviceGroupObject()
  1528. // }
  1529. // initGroupBlock(group, advice)
  1530. // group.advices.push(advice)
  1531. // this.advice_groups.push(group)
  1532. // group = this.newAdviceGroupObject()
  1533. // continue
  1534. // }
  1535. // }
  1536. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1537. // this.advice_groups.push(group)
  1538. // group = this.newAdviceGroupObject()
  1539. // }
  1540. // if (group.group_no == 0) {
  1541. // initGroupBlock(group, advice)
  1542. // }
  1543. // if (group.group_no == advice.groupno) {
  1544. // group.advices.push(advice)
  1545. // }
  1546. // }
  1547. // if (group.group_no > 0) {
  1548. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1549. // this.advice_groups.push(group)
  1550. // }
  1551. // }
  1552. if (this.doctor_advices.length <= 6) {
  1553. var nl = 6;
  1554. this.print_length = 6;
  1555. for (let index = 0; index < nl; index++) {
  1556. if (
  1557. this.doctor_advices[index] == undefined ||
  1558. this.doctor_advices[index].length <= 0
  1559. ) {
  1560. this.doctor_advices.push([]);
  1561. } else {
  1562. continue;
  1563. }
  1564. }
  1565. }
  1566. this.totollength = this.doctor_advices.length + this.monitors.length;
  1567. if (this.totollength > 18) {
  1568. var temp_advice_length = 17 - this.monitors.length;
  1569. var doctor_advices_1 = [];
  1570. var doctor_advices_2 = [];
  1571. for (let index = 0; index < this.doctor_advices.length; index++) {
  1572. const element = this.doctor_advices[index];
  1573. if (temp_advice_length > index) {
  1574. doctor_advices_1.push(element);
  1575. } else {
  1576. doctor_advices_2.push(element);
  1577. }
  1578. }
  1579. this.doctor_advices = doctor_advices_1;
  1580. this.doctor_advices_2 = doctor_advices_2;
  1581. }
  1582. console.log(this.advice_groups);
  1583. } else {
  1584. this.loading = false;
  1585. this.$message.error("请求数据失败");
  1586. return false;
  1587. }
  1588. // })
  1589. },
  1590. bloodAccessParOperaName(id) {
  1591. if (id in this.bloodAccessParOpera) {
  1592. return this.bloodAccessParOpera[id].name;
  1593. }
  1594. return "";
  1595. },
  1596. dialysateFormulationName(id) {
  1597. if (id in this.dialysateFormulationOptions) {
  1598. return this.dialysateFormulationOptions[id].name;
  1599. }
  1600. return "";
  1601. },
  1602. getAge: function(val) {
  1603. if (
  1604. this.org_template_info.template_id == 2 ||
  1605. this.org_template_info.template_id == 0
  1606. ) {
  1607. if (val.age == 0) {
  1608. return jsGetAge(val.birth, "-");
  1609. } else {
  1610. return val.age;
  1611. }
  1612. } else {
  1613. return jsGetAge(val.birth, "-");
  1614. }
  1615. },
  1616. newAdviceGroupObject: function() {
  1617. return Object.assign(
  1618. {},
  1619. {
  1620. group_no: 0,
  1621. // advice_doctor: 0,
  1622. // start_time: 0,
  1623. advices: []
  1624. // exec_staff: 0,
  1625. // exec_time: 0,
  1626. // checker: 0,
  1627. }
  1628. );
  1629. },
  1630. getFloat: function(x) {
  1631. if (x == 0) {
  1632. return "/";
  1633. }
  1634. if (x != ".") {
  1635. var f = Math.round(x * 100) / 100;
  1636. var s = f.toString();
  1637. var rs = s.indexOf(".");
  1638. if (rs <= 0) {
  1639. rs = s.length;
  1640. s += ".";
  1641. }
  1642. while (s.length <= rs + 1) {
  1643. s += "0";
  1644. }
  1645. return s;
  1646. } else {
  1647. return "0.0";
  1648. }
  1649. }
  1650. },
  1651. watch: {
  1652. "patientInfo.gender": function() {
  1653. if (this.patientInfo.gender == 1) {
  1654. this.patientInfo_gender_1 = true;
  1655. this.patientInfo_gender_2 = false;
  1656. } else if (this.patientInfo.gender == 2) {
  1657. this.patientInfo_gender_2 = true;
  1658. this.patientInfo_gender_1 = false;
  1659. } else {
  1660. this.patientInfo_gender_2 = false;
  1661. this.patientInfo_gender_1 = false;
  1662. }
  1663. },
  1664. "patientInfo.source": function() {
  1665. if (this.patientInfo.source == 1) {
  1666. this.patientInfo_source_1 = true;
  1667. this.patientInfo_source_2 = false;
  1668. } else if (this.patientInfo.source == 2) {
  1669. this.patientInfo_source_2 = true;
  1670. this.patientInfo_source_1 = false;
  1671. } else {
  1672. this.patientInfo_source_2 = false;
  1673. this.patientInfo_source_1 = false;
  1674. }
  1675. }
  1676. },
  1677. created() {
  1678. this.way_arr = getDataConfig("hemodialysis", "way");
  1679. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1680. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1681. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1682. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1683. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1684. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1685. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1686. var xtuser = this.$store.getters.xt_user;
  1687. this.orgname = xtuser.org.org_name;
  1688. // this.orgname = "遂溪方济医院";
  1689. this.modeOptions = this.$store.getters.treatment_mode;
  1690. this.replacementWays = this.$store.getters.replacement_ways;
  1691. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1692. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1693. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1694. this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
  1695. this.blood_access_part_opera = getDataConfig(
  1696. "hemodialysis",
  1697. "vascular_access_desc"
  1698. );
  1699. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1700. var bloodAccessParOpera = getDataConfig(
  1701. "hemodialysis",
  1702. "vascular_access_desc"
  1703. );
  1704. for (var key in bloodAccessParOpera) {
  1705. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1706. bloodAccessParOpera[key];
  1707. }
  1708. var dialysateFormulationOptions = getDataConfig(
  1709. "hemodialysis",
  1710. "dialysate_formulation"
  1711. );
  1712. for (var key in dialysateFormulationOptions) {
  1713. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1714. dialysateFormulationOptions[key];
  1715. }
  1716. const xtdate = this.$route.query && this.$route.query.xtdate;
  1717. console.log("xtdate", xtdate);
  1718. const xtno = this.$route.query && this.$route.query.xtno;
  1719. console.log("xtno", xtno);
  1720. if (
  1721. typeof xtdate === "string" &&
  1722. xtdate.length > 0 &&
  1723. typeof xtno === "string" &&
  1724. xtno.length > 0
  1725. ) {
  1726. this.queryParams.xtdate = xtdate;
  1727. this.queryParams.xtno = xtno;
  1728. this.getDialysisRecord();
  1729. } else {
  1730. this.$message.error("参数不齐");
  1731. return false;
  1732. }
  1733. }
  1734. };
  1735. </script>
  1736. <style>
  1737. .print_page_main_content {
  1738. background-color: white;
  1739. width: 960px;
  1740. margin: 0 auto 50px;
  1741. padding: 0 0 0 0;
  1742. page-break-after: always;
  1743. }
  1744. .print_page_main_content .order-yy-name {
  1745. margin: auto;
  1746. text-align: center;
  1747. font-size: 20px;
  1748. letter-spacing: 5px;
  1749. }
  1750. .dialysis-print-order .order-title {
  1751. margin: auto;
  1752. font-weight: 600;
  1753. text-align: center;
  1754. font-size: 22px;
  1755. padding: 10px;
  1756. }
  1757. .print_page_main_content .order_title {
  1758. text-align: center;
  1759. font-size: 23px;
  1760. line-height: 50px;
  1761. font-weight: 500;
  1762. }
  1763. .row {
  1764. font-size: 14px;
  1765. line-height: 20px;
  1766. padding: 5px 0;
  1767. }
  1768. .inline_block {
  1769. display: inline-block;
  1770. }
  1771. .under_line_two {
  1772. display: inline-block;
  1773. border-bottom: 1px solid #999;
  1774. text-align: left;
  1775. white-space: nowrap;
  1776. width: 50%;
  1777. }
  1778. .under_line_two::before {
  1779. content: "\00A0";
  1780. }
  1781. .under_line_two::after {
  1782. content: "\00A0";
  1783. }
  1784. .under_line {
  1785. display: inline-block;
  1786. border-bottom: 1px solid #999;
  1787. text-align: center;
  1788. white-space: nowrap;
  1789. width: 50%;
  1790. }
  1791. .under_line::before {
  1792. content: "\00A0";
  1793. }
  1794. .under_line::after {
  1795. content: "\00A0";
  1796. }
  1797. .flex {
  1798. display: -webkit-box;
  1799. display: -moz-box;
  1800. display: -ms-flexbox;
  1801. display: -webkit-flex;
  1802. display: flex;
  1803. align-items: center;
  1804. -webkit-align-items: center;
  1805. box-align: center;
  1806. -moz-box-align: center;
  1807. -webkit-box-align: center;
  1808. text-align: center;
  1809. -webkit-justify-content: space-between;
  1810. justify-content: space-between;
  1811. -moz-box-pack: space-between;
  1812. -webkit--moz-box-pack: space-between;
  1813. box-pack: space-between;
  1814. }
  1815. .print_page_main_content .proj_table {
  1816. width: 100%;
  1817. border: 1px solid;
  1818. border-collapse: collapse;
  1819. padding: 2px;
  1820. }
  1821. .print_page_main_content .proj_table tbody tr td {
  1822. border: 1px solid;
  1823. /* text-align: center; */
  1824. font-size: 16px;
  1825. padding: 5px 8px;
  1826. line-height: 30px;
  1827. }
  1828. .print_page_main_content .proj_table .inside_table {
  1829. width: 100%;
  1830. border: hidden; /* 解决边框冲突 */
  1831. border-collapse: collapse;
  1832. }
  1833. .print_page_main_content .proj_table .inside_table tr td {
  1834. border: 1px solid;
  1835. text-align: center;
  1836. font-size: 14px;
  1837. padding: 6px 5px;
  1838. line-height: 16px;
  1839. }
  1840. .print-table-no {
  1841. width: 100%;
  1842. text-align: center;
  1843. border-collapse: collapse;
  1844. font-size: 14px;
  1845. }
  1846. .es-img {
  1847. height: 20px;
  1848. }
  1849. .advice-name {
  1850. text-align: left !important;
  1851. line-height: 16px !important;
  1852. }
  1853. .advice-children {
  1854. display: flex;
  1855. }
  1856. .margin-bottom-50 {
  1857. }
  1858. .margin-bottom-300 {
  1859. margin-bottom: 450px;
  1860. }
  1861. .margin-bottom-600 {
  1862. margin-bottom: 600px;
  1863. }
  1864. .margin-bottom-900 {
  1865. margin-bottom: 900px;
  1866. }
  1867. .print-yema {
  1868. position: absolute;
  1869. left: 50%;
  1870. }
  1871. .print-yema2 {
  1872. position: absolute;
  1873. left: 50%;
  1874. }
  1875. .print-yema3 {
  1876. position: absolute;
  1877. left: 50%;
  1878. }
  1879. .print-yema4 {
  1880. position: absolute;
  1881. left: 50%;
  1882. }
  1883. .check_box_panel .did_checke::after {
  1884. font-size: 8px;
  1885. margin-left: 2px;
  1886. margin-top: 2px;
  1887. position: absolute;
  1888. }
  1889. </style>