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

DialysisPrintOrderFortyFour.vue 84KB

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