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

DialysisPrintOrderFortyOne.vue 86KB

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