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

DialysisPrintOrderThirteen.vue 77KB

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