DialysisPrintOrdereightytwo.vue 79KB

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