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

dialysisPrintOrderTwelve.vue 82KB

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