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

DialysisPrintOrderFortyOne.vue 83KB

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