DialysisPrintOrderEighteen.vue 62KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581
  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>{{ getNewAge(patientInfo.id_card_no) }}</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="8" style="padding-left:5px">
  55. 上机前病情:{{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "" }}
  56. </td>
  57. <td colspan="3" style="border-left:1px solid #000;padding-left:5px">
  58. 透前体温:
  59. <span>
  60. &nbsp;{{ predialysis.temperature ? predialysis.temperature : "" }}℃
  61. </span>
  62. </td>
  63. </tr>
  64. <tr style="text-align:left">
  65. <td colspan="8" style="padding-left:5px">
  66. 治疗方式:&nbsp;
  67. <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
  68. <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp; (
  69. <label-box :isChecked="prescription.mode_id == 2 && prescription.displace_liqui_part == 1 ? true : false" showValue="前稀释"></label-box>
  70. <label-box :isChecked="prescription.mode_id == 2 && prescription.displace_liqui_part == 2 ? true : false" showValue="后稀释"></label-box>
  71. <span>
  72. ,置换量
  73. <span style="width:50px;display: inline-block;">
  74. {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
  75. </span>
  76. L
  77. </span>
  78. <label-box :isChecked="prescription.mode_id > 2 ? true : false" showValue="其他:"></label-box>
  79. <span v-if="prescription.mode_id == 3">{{ prescription.mode_id == 3 ? "HD+HP" : "" }}</span>
  80. <span v-if="prescription.mode_id == 4">{{ prescription.mode_id == 4 ? "HP" : "" }}</span>
  81. <span v-if="prescription.mode_id == 5">{{ prescription.mode_id == 5 ? "HF" : "" }}</span>
  82. <span v-if="prescription.mode_id == 6">{{ prescription.mode_id == 6 ? "SCUF" : "" }}</span>
  83. <span v-if="prescription.mode_id == 7">{{ prescription.mode_id == 7 ? "IUF" : "" }}</span>
  84. <span v-if="prescription.mode_id == 8">{{ prescription.mode_id == 8 ? "HFHD" : "" }}</span>
  85. <span v-if="prescription.mode_id == 9">{{ prescription.mode_id == 9 ? "HFHD+HP" : "" }}</span>
  86. <span v-if="prescription.mode_id == 10">{{ prescription.mode_id == 10 ? "PHF" : "" }}</span>
  87. <span v-if="prescription.mode_id == 11">{{ prescription.mode_id == 11 ? "HFR" : "" }}</span>
  88. <span v-if="prescription.mode_id == 12">{{ prescription.mode_id == 12 ? "HDF+HP" : "" }}</span>
  89. <span v-if="prescription.mode_id == 13">{{ prescription.mode_id == 13 ? "CRRT" : "" }}</span>
  90. <span v-if="prescription.mode_id == 14">{{ prescription.mode_id == 14 ? "腹水回输" : "" }}</span>
  91. </td>
  92. <td colspan="3" style="border-left:1px solid #000;padding-left:5px">
  93. 治疗时间:
  94. <span>
  95. &nbsp;{{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "0" }}小时
  96. {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}分钟
  97. </span>
  98. </td>
  99. </tr>
  100. <tr style="text-align:left">
  101. <td colspan="11" style="padding-left:5px">
  102. 治疗抗凝:
  103. <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素:"></label-box>
  104. (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
  105. <label-box :isChecked="prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="钠"></label-box>)
  106. <span style="width:50px;display: inline-block;">
  107. {{ prescription.anticoagulant_zongliang && (prescription.anticoagulant == "低分子肝素钙" || prescription.anticoagulant == "低分子肝素钠") ? prescription.anticoagulant_zongliang : "" }}
  108. </span>iu&nbsp;
  109. <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素:"></label-box>
  110. 首剂:
  111. <span style="width:35px;display: inline-block;">
  112. {{ prescription.anticoagulant_shouji && (prescription.anticoagulant != "低分子肝素钙" && prescription.anticoagulant != "低分子肝素钠") && prescription.anticoagulant == "普通肝素" ? prescription.anticoagulant_shouji : "" }}
  113. </span>
  114. <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
  115. <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
  116. <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
  117. <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
  118. <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
  119. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
  120. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
  121. 追加:
  122. <span style="width:35px;display: inline-block;">
  123. {{ prescription.anticoagulant_weichi && prescription.anticoagulant == "普通肝素" ? prescription.anticoagulant_weichi : "" }}
  124. </span>
  125. <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
  126. <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
  127. <span v-if="prescription.anticoagulant == '低分子肝素'">iu/h</span>
  128. <span v-if="prescription.anticoagulant == '普通肝素'">iu/h</span>
  129. <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
  130. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
  131. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
  132. &nbsp; 总量:
  133. <span style="width:50px;display: inline-block;">
  134. {{ prescription.anticoagulant_zongliang && prescription.anticoagulant == "普通肝素" ? prescription.anticoagulant_zongliang : "" }}
  135. </span>
  136. <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
  137. <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
  138. <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
  139. <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
  140. <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
  141. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
  142. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
  143. &nbsp;
  144. <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素:"></label-box>
  145. <label-box :isChecked="prescription.anticoagulant == '枸橼酸钠' ? true : false" showValue="枸橼酸"></label-box>
  146. </td>
  147. </tr>
  148. <tr style="text-align:left">
  149. <td colspan="7" style="padding-left:5px">
  150. 处方脱水量:
  151. <span style="width:50px;display: inline-block;">
  152. {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
  153. </span>L; 透析液流量:
  154. <span style="width:50px;display: inline-block;">
  155. {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}
  156. </span>ml/min;
  157. </td>
  158. <td colspan="4" style="padding-left:5px;border-left:1px solid #000;padding-left:5px">
  159. 医师签名:
  160. <span v-if="setAdminUserES(prescription.creater) == ''">
  161. {{ getAdminUser(prescription.creater) }}
  162. </span>
  163. <img class="es-img" style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset v-else />
  164. </td>
  165. </tr>
  166. <tr style="text-align:left">
  167. <!-- <td colspan="2" style="padding-left:5px">
  168. 透析机:{{ predialysis.machine_type ? predialysis.machine_type : "" }}
  169. </td> -->
  170. <td colspan="4" style="padding-left:5px;border-left:1px solid #000;">
  171. 透析(滤)器:{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
  172. </td>
  173. <td colspan="7" style="padding-left:5px;border-left:1px solid #000;">
  174. 透析液:钾:
  175. <span style="width:40px;display: inline-block;">
  176. {{ prescription.kalium ? prescription.kalium : "" }}
  177. </span>mmol/L&nbsp; 钙:
  178. <span style="width:40px;display: inline-block;">
  179. {{ prescription.calcium ? prescription.calcium : "" }}
  180. </span>mmol/L&nbsp; 碳酸氢根:
  181. <span style="width:40px;display: inline-block;">
  182. {{ prescription.bicarbonate ? prescription.bicarbonate : "" }}
  183. </span>mmol/L
  184. </td>
  185. </tr>
  186. <tr style="text-align:left">
  187. <td colspan="11" style="padding-left:5px">
  188. 血管通路:
  189. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>&nbsp;
  190. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时插管') > -1 ? true : false" showValue="临时插管"></label-box>&nbsp;
  191. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期插管') > -1 ? true : false" showValue="长期插管"></label-box>&nbsp;
  192. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('移植血管') > -1 ? true : false" showValue="移植血管"></label-box>&nbsp;
  193. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>&nbsp;
  194. <label-box :isChecked="['自体内瘘','临时插管','长期插管','移植血管','直穿'].indexOf(predialysis.blood_access_part_opera_name) == -1 ? true : false" showValue="其他"></label-box>&nbsp;
  195. <span style="width:50px;display: inline-block;"></span>
  196. 穿刺者:
  197. <span style="width:50px;display: inline-block;">
  198. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
  199. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}
  200. </span>
  201. <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt srcset v-else />
  202. </span>
  203. </td>
  204. </tr>
  205. </tbody>
  206. </table>
  207. <table class="print-table" border="1">
  208. <tbody>
  209. <tr>
  210. <td width="100" style="padding-left:5px;border:none">透前体重:</td>
  211. <td width="120" style="border:none;text-align:left;border:none;">
  212. <div>
  213. &nbsp;
  214. <span style="width:70px;display:inline-block">
  215. {{ predialysis.weight_before ? predialysis.weight_before : "" }}
  216. </span>Kg
  217. </div>
  218. </td>
  219. <!-- <td width="100" style="border:none;"></td> -->
  220. <td width="100" style="border:none;border-left:1px solid #000;padding-left:5px;">
  221. 干体重:
  222. </td>
  223. <td width="180" style="text-align:left;border:none;">
  224. <div>
  225. <span style="width:70px;display:inline-block;border:none;">
  226. {{ predialysis.dry_weight ? predialysis.dry_weight : "" }}
  227. </span>Kg
  228. </div>
  229. </td>
  230. <!-- <td width="10" style="border:none;"></td> -->
  231. <td width="120" style="border:none;border-left:1px solid #000;padding-left:5px;">
  232. 机器显示脱水:
  233. </td>
  234. <td width="130" style="text-align:left;border:none;">
  235. <div>
  236. <span style="width:70px;display:inline-block">
  237. {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
  238. </span>L
  239. </div>
  240. </td>
  241. <td width="100" style="border:none;border-left:1px solid #000;padding-left:5px">
  242. 透后体重:
  243. </td>
  244. <td width="180" style="text-align:left;border:none;">
  245. <div>
  246. <span style="width:70px;display:inline-block">
  247. {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after).toFixed(1) : "" }}
  248. </span>Kg
  249. </div>
  250. </td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. <table class="print-table" border="1">
  255. <tbody>
  256. <tr>
  257. <td style="width:130px;height:40px">时间</td>
  258. <td colspan="5" style="width:560px;height:40px">医嘱执行记录</td>
  259. <td colspan="2" style="width:110px;height:40px">医生签名</td>
  260. <td colspan="2" style="width:108px;height:40px">执行</td>
  261. <td colspan="3" style="width:130px;height:40px">执行时间</td>
  262. </tr>
  263. <tr v-for="(advice, advice_index) in tableAdvice" style="height:30px">
  264. <td>{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  265. <td colspan="5" style="height:30px;">
  266. <span v-if="advice.parent_id > 0">---></span>
  267. <span>{{ advice.advice_name }}</span>
  268. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  269. <span v-if="advice.prescribing_number">
  270. &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}
  271. </span>
  272. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  273. <span v-if="advice.parent_id == 0">
  274. {{ advice.delivery_way }}
  275. </span>
  276. <span v-if="advice.parent_id == 0">
  277. {{ advice.execution_frequency }}
  278. </span>
  279. </td>
  280. <td colspan="2">
  281. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  282. {{ getAdminUser(advice.advice_doctor) }}
  283. </span>
  284. <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset v-else />
  285. </td>
  286. <td colspan="2" style="height:40px">
  287. <span v-if="setAdminUserES(advice.execution_staff) == ''">
  288. {{ getAdminUser(advice.execution_staff) }}
  289. </span>
  290. <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
  291. </td>
  292. <td colspan="3" style="width:130px;">
  293. {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
  294. </td>
  295. </tr>
  296. </tbody>
  297. </table>
  298. <table class="print-table" border="1">
  299. <tr style="text-align:center">
  300. <td colspan="14" style="margin-left:15px;font-size:20px;line-height:40px;height:40px;">
  301. 治 疗 过 程 记 录
  302. </td>
  303. </tr>
  304. <tr style="line-height:40px;">
  305. <td style="min-width:60px">时间</td>
  306. <td style="min-width:60px">
  307. 血压
  308. <br />(mmHg)
  309. </td>
  310. <td style="min-width:60px">
  311. 心率
  312. <br />次/min
  313. </td>
  314. <td style="min-width:60px">
  315. 血流
  316. <br />ml/min
  317. </td>
  318. <td style="min-width:60px">
  319. 跨膜压
  320. <br />(mmHg)
  321. </td>
  322. <td style="min-width:60px">
  323. 静脉压
  324. <br />(mmHg)
  325. </td>
  326. <td style="min-width:60px">
  327. 超滤率
  328. <br />ml/h
  329. </td>
  330. <td style="min-width:60px">
  331. 超滤量
  332. <br />ml
  333. </td>
  334. <td style="min-width:60px">
  335. 动脉压
  336. <br />(mmHg)
  337. </td>
  338. <td style="min-width:60px">
  339. KT/V
  340. <br />
  341. </td>
  342. <td style="min-width:60px">症状及处理</td>
  343. <td style="min-width:110px">护士签名</td>
  344. </tr>
  345. <tr style="line-height:40px;height:40px;" v-for="(monitor, monindex) in monitors" :key="monindex">
  346. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  347. <td>
  348. {{
  349. monitor.systolic_blood_pressure
  350. ? monitor.systolic_blood_pressure + "/"
  351. : ""
  352. }}{{
  353. monitor.diastolic_blood_pressure
  354. ? monitor.diastolic_blood_pressure
  355. : ""
  356. }}
  357. </td>
  358. <td>{{ monitor.pulse_frequency }}</td>
  359. <td>{{ monitor.blood_flow_volume }}</td>
  360. <td>{{ monitor.venous_pressure }}</td>
  361. <td>{{ monitor.transmembrane_pressure }}</td>
  362. <td>{{ monitor.ultrafiltration_rate }}</td>
  363. <td>{{ monitor.ultrafiltration_volume }}</td>
  364. <td>{{ monitor.arterial_pressure }}</td>
  365. <td>{{ monitor.ktv }}</td>
  366. <td>
  367. <span style="line-height:18px;display:block;">
  368. {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
  369. monitor.result
  370. }}
  371. </span>
  372. </td>
  373. <td>
  374. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
  375. {{
  376. getAdminUser(monitor.monitoring_nurse)
  377. }}
  378. </span>
  379. <span
  380. v-else
  381. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  382. >
  383. <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
  384. </span>
  385. </td>
  386. </tr>
  387. </table>
  388. <table class="print-table" style="border:1px solid #000;border-top:none;border-bottom:none">
  389. <tr style="height:30px;line-height:30px;">
  390. <td width="70">血管通路:</td>
  391. <td width="250">
  392. <div>
  393. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路出血') > -1 ? true : false" showValue='通路出血'></label-box>
  394. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路良好') > -1 ? true : false" showValue='良好'></label-box>
  395. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路欠佳') > -1 ? true : false" showValue='欠佳'></label-box>
  396. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路不畅') > -1 ? true : false" showValue='不畅'></label-box>
  397. </div>
  398. </td>
  399. <td width='10'></td>
  400. <td width="50">插管:</td>
  401. <td width="150">
  402. <div>
  403. <label-box :isChecked="afterdialysis.catheter.indexOf('正接') > -1 ? true : false" showValue='正向接'></label-box>
  404. &nbsp;
  405. <label-box :isChecked="afterdialysis.catheter.indexOf('反接') > -1 ? true : false" showValue='反向接'></label-box>
  406. &nbsp;
  407. </div>
  408. </td>
  409. <td width='10'></td>
  410. <td width="70">出口皮肤:</td>
  411. <td width="240">
  412. <label-box :isChecked="afterdialysis.catheter.indexOf('良好') > -1 ? true : false" showValue='良好'></label-box>
  413. &nbsp;
  414. <label-box :isChecked="afterdialysis.catheter.indexOf('发红') > -1 ? true : false" showValue='发红'></label-box>
  415. &nbsp;
  416. <label-box :isChecked="afterdialysis.catheter.indexOf('化脓') > -1 ? true : false" showValue='化脓'></label-box>
  417. &nbsp;
  418. <label-box :isChecked="afterdialysis.catheter.indexOf('脱线') > -1 ? true : false" showValue='脱线'></label-box>
  419. &nbsp;
  420. </td>
  421. </tr>
  422. </table>
  423. <table class="print-table" style="border:1px solid #000;border-top:none;border-bottom:none">
  424. <tr style="height:30px;line-height:30px;">
  425. <td width="70">内瘘情况:</td>
  426. <td width="520">
  427. <div style="text-align:left">
  428. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('有震颤') > -1 ? true : false" showValue='有'></label-box>
  429. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('无震颤') > -1 ? true : false" showValue='无'></label-box>
  430. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤减弱') > -1 ? true : false" showValue='震颤减弱'></label-box>
  431. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('出血') > -1 ? true : false" showValue='出血'></label-box>
  432. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('瘀斑') > -1 ? true : false" showValue='瘀斑'></label-box>
  433. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('血痂') > -1 ? true : false" showValue='血痂'></label-box>
  434. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('血管瘤') > -1 ? true : false" showValue='血管瘤'></label-box>
  435. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('发红') > -1 ? true : false" showValue='发红'></label-box>
  436. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('感染') > -1 ? true : false" showValue='感染'></label-box>
  437. </div>
  438. </td>
  439. <td></td>
  440. <td width="120">透析器凝血情况:</td>
  441. <td width="220">
  442. <div>
  443. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false):false" showValue="0级"></label-box>
  444. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="1级"></label-box>
  445. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false):false" showValue="2级"></label-box>
  446. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false):false" showValue="3级"></label-box>
  447. </div>
  448. </td>
  449. <td></td>
  450. </tr>
  451. </table>
  452. <table class="print-table" border="1">
  453. <tr style="height:100px;text-align:left;border:none;">
  454. <td style="padding-left:5px;border:none;padding-bottom:50px;">
  455. 治疗小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
  456. </td>
  457. </tr>
  458. <tr style="height:40px">
  459. <td rowspan="11" style="border:none;text-align:right;height:40px">
  460. 医生签名
  461. <span style="display: inline-block;width:100px;text-align: left;">
  462. &nbsp;
  463. <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
  464. <span v-if="doctorForm.url !== ''">
  465. <img class="es-img" :src="doctorForm.url" style="height:30px;" />
  466. </span>
  467. </span>
  468. 核对护士
  469. <span style="display: inline-block;width:100px;text-align: left;">
  470. &nbsp;
  471. <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  472. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  473. </span>
  474. <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
  475. </span>
  476. 护士签名
  477. <span style="display: inline-block;width:100px;text-align: left;">
  478. &nbsp;
  479. <p v-if="doctor_advices.length > 0">
  480. <span v-if="setAdminUserES(doctor_advices[0].execution_staff) == ''">
  481. {{ getAdminUser(doctor_advices[0].execution_staff) }}
  482. </span>
  483. <img class="es-img" style="height:30px;" :src="setAdminUserES(doctor_advices[0].execution_staff)" alt srcset v-else />
  484. </p>
  485. </span>
  486. </td>
  487. </tr>
  488. </table>
  489. <!-- <div>
  490. 注:透析器凝血评价标准:"0级"&nbsp;无凝血或数条纤维束凝血,"Ⅰ级"&nbsp;少于10%纤维凝血,"Ⅱ级"&nbsp;少于50%纤维凝血,"Ⅲ级"&nbsp;大于50%纤维凝血
  491. </div>-->
  492. </div>
  493. </div>
  494. </template>
  495. <script>
  496. import { getDialysisRecord } from "@/api/dialysis";
  497. import { getDataConfig } from "@/utils/data";
  498. import { jsGetAge, uParseTime } from "@/utils/tools";
  499. import LabelBox from "../printItem/LabelBox";
  500. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  501. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  502. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  503. import print from "print-js";
  504. export default {
  505. name: "dialysisPrintOrderOne",
  506. components: {
  507. // DialysisPrintOrderOne,
  508. // DialysisPrintOrderTwo,
  509. LabelBox,
  510. BreadCrumb
  511. },
  512. data() {
  513. return {
  514. way_arr: [],
  515. consciousness_arr: [],
  516. appetite_arr: [],
  517. posture_arr: [],
  518. sick_condition_arr: [],
  519. precaution_arr: [],
  520. intake_arr: [],
  521. nutrition_arr: [],
  522. crumbs: [
  523. { path: false, name: "透析管理" },
  524. { path: false, name: "打印单" }
  525. ],
  526. operators: [],
  527. adminUser: [],
  528. check: {},
  529. dialysisOrder: {
  530. DeviceNumber: []
  531. },
  532. Order: {},
  533. operatorMaps: {},
  534. complications: [
  535. "低血压",
  536. "高血压",
  537. "心律失常",
  538. "头晕",
  539. "头痛",
  540. "呕吐",
  541. "抽搐",
  542. "出血",
  543. "心衰",
  544. "腹痛",
  545. "无"
  546. ],
  547. jilurow: 0,
  548. advice_jilurow: 0,
  549. loading: false,
  550. orgname: "",
  551. patientInfo_gender_1: false,
  552. patientInfo_gender_2: false,
  553. patientInfo_source_2: false,
  554. patientInfo_source_1: false,
  555. modeOptions: {},
  556. replacementWays: [],
  557. perfusionApparatus: [],
  558. anticoagulantsConfit: {},
  559. bloodAccessParOpera: {},
  560. dialysateFormulationOptions: {},
  561. queryParams: {
  562. xtdate: "",
  563. xtno: ""
  564. },
  565. patientInfo: {
  566. birth: "",
  567. age: "",
  568. DialysisSchedule: {
  569. device_number: { number: "" },
  570. device_zone: { name: "" }
  571. },
  572. gender: 0
  573. },
  574. predialysis: {
  575. score: "",
  576. internal_fistula: "",
  577. internal_fistula_skin: "",
  578. catheter: "",
  579. blood_access_part_opera_name: ""
  580. },
  581. afterdialysis: {
  582. complications_index: ""
  583. },
  584. prescription: {
  585. dialysate_formulation_name: "",
  586. device: {}
  587. },
  588. advices: [],
  589. users: [],
  590. monitors: [],
  591. summary: {},
  592. receiverTreatmentAccess: {},
  593. org_template_info: {},
  594. isShowZero: false,
  595. doctor_advices: [],
  596. advice_groups: [],
  597. AlPanel: {
  598. id: 0,
  599. name: "",
  600. type: 1,
  601. shouji: 2,
  602. weichi: 2,
  603. zongliang: 2,
  604. gaimingcheng: -1,
  605. gaijiliang: -1,
  606. shouji_unit: "mg",
  607. weichi_unit: "mg/h",
  608. zongliang_unit: "mg",
  609. gaimingcheng_unit: "",
  610. gaijiliang_unit: ""
  611. },
  612. total: "",
  613. doctorForm: {
  614. doctor: "",
  615. url: ""
  616. },
  617. dialysisDoctor: {
  618. doctor: "",
  619. url: ""
  620. },
  621. tableAdvice: [],
  622. assessmentafter: {},
  623. orderForm: {
  624. start_nurse: "",
  625. url: ""
  626. },
  627. finshForm: {
  628. finish_nurse: "",
  629. url: ""
  630. },
  631. displaceLiquiPartOptions: []
  632. };
  633. },
  634. methods: {
  635. getNewAge(UUserCard) {
  636. if (UUserCard != null && UUserCard != '') {
  637. //获取年龄
  638. var myDate = new Date();
  639. var month = myDate.getMonth() + 1;
  640. var day = myDate.getDate();
  641. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
  642. if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  643. age++;
  644. }
  645. return age;
  646. }
  647. },
  648. getDisplaceLiquiPart: function(val) {
  649. let displace_liqui_part_name = "/";
  650. const displace_liqui_part = this.displaceLiquiPartOptions;
  651. for (let i = 0; i < displace_liqui_part.length; i++) {
  652. if (displace_liqui_part[i].id == val) {
  653. displace_liqui_part_name = displace_liqui_part[i].name;
  654. }
  655. }
  656. return displace_liqui_part_name;
  657. },
  658. getAdminUser(id) {
  659. if (id == 0) {
  660. return "";
  661. }
  662. if (id == undefined) {
  663. return "";
  664. }
  665. for (let i = 0; i < this.adminUser.length; i++) {
  666. if (this.adminUser[i].id == id) {
  667. return this.adminUser[i].name;
  668. }
  669. }
  670. },
  671. getTime(value, temp) {
  672. if (value == 0) {
  673. return "";
  674. }
  675. if (value != undefined) {
  676. return uParseTime(value, temp);
  677. }
  678. return "";
  679. },
  680. printThisPage() {
  681. var ptime = Math.round(new Date().getTime() / 1000);
  682. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  683. const style =
  684. '@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;}';
  685. if (this.org_template_info.template_id == 1) {
  686. printJS({
  687. printable: "dialysis-print-box",
  688. type: "html",
  689. style: style,
  690. scanStyles: false
  691. });
  692. } else if (
  693. this.org_template_info.template_id == 2 ||
  694. this.org_template_info.template_id == 0
  695. ) {
  696. printJS({
  697. printable: "dialysis-print-box-1",
  698. type: "html",
  699. style: style,
  700. scanStyles: false
  701. });
  702. }
  703. },
  704. getNumber() {
  705. if (this.dialysisOrder != null) {
  706. return (
  707. this.patientInfo.DialysisSchedule.device_zone.name +
  708. this.dialysisOrder.DeviceNumber.number
  709. );
  710. } else {
  711. return (
  712. this.patientInfo.DialysisSchedule.device_zone.name +
  713. this.patientInfo.DialysisSchedule.device_number.number
  714. );
  715. }
  716. },
  717. getXuserName(id) {
  718. if (id <= 0) {
  719. return "";
  720. }
  721. var name = "";
  722. if (this.users == null || typeof this.users.length === "undefined") {
  723. return name;
  724. }
  725. var leng = this.users.length;
  726. if (leng == 0) {
  727. return name;
  728. }
  729. for (let index = 0; index < leng; index++) {
  730. if (this.users[index].id == id) {
  731. name = this.users[index].name;
  732. break;
  733. }
  734. }
  735. return name;
  736. },
  737. setAdminUserES(id) {
  738. if (id == 0) {
  739. return "";
  740. }
  741. if (id in this.operatorMaps) {
  742. return this.operatorMaps[id].url;
  743. } else {
  744. return "";
  745. }
  746. },
  747. modeName(mode_id) {
  748. return typeof this.modeOptions[mode_id] !== "undefined" &&
  749. typeof this.modeOptions[mode_id].name !== "undefined"
  750. ? this.modeOptions[mode_id].name
  751. : "";
  752. },
  753. getDialysisRecord() {
  754. this.loading = true;
  755. getDialysisRecord(this.queryParams).then(response => {
  756. if (response.data.state === 1) {
  757. this.total = response.data.data.total;
  758. this.adminUser = response.data.data.users;
  759. this.users = response.data.data.users;
  760. var patientInfo = response.data.data.patientInfo;
  761. console.log("烧腊店就拉萨讲道理看", patientInfo);
  762. if (patientInfo.gender === 1) {
  763. patientInfo.gender = "男";
  764. }
  765. if (patientInfo.gender === 2) {
  766. patientInfo.gender = "女";
  767. }
  768. console.log("patientInfo", patientInfo);
  769. this.patientInfo = patientInfo;
  770. this.patientInfo.birth = uParseTime(
  771. this.patientInfo.birthday,
  772. "{y}-{m}-{d}"
  773. );
  774. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  775. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  776. this.patientInfo.first_dialysis_date = uParseTime(
  777. response.data.data.patientInfo.first_dialysis_date,
  778. "{y}-{m}-{d}"
  779. );
  780. } else {
  781. this.patientInfo.first_dialysis_date = "";
  782. }
  783. this.check = response.data.data.check;
  784. console.log("核对信息", this.check);
  785. this.predialysis = response.data.data.PredialysisEvaluation;
  786. console.log("透前评估", this.predialysis);
  787. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  788. this.predialysis.blood_access_part_opera_id
  789. );
  790. this.assessmentafter = response.data.data.assessmentAfterDislysis;
  791. console.log("上次透后体重", this.assessmentafter);
  792. var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
  793. var tableAdvice = doctorAdevieInfo;
  794. console.log("医生", tableAdvice);
  795. if (tableAdvice.length === 0) {
  796. var obj = { advice_name: "", start_time: "" };
  797. var obj1 = { advice_name: "", start_time: "" };
  798. var obj2 = { advice_name: "", start_time: "" };
  799. var obj3 = { advice_name: "", start_time: "" };
  800. var obj4 = { advice_name: "", start_time: "" };
  801. var obj5 = { advice_name: "", start_time: "" };
  802. tableAdvice.push(obj);
  803. tableAdvice.push(obj1);
  804. tableAdvice.push(obj2);
  805. tableAdvice.push(obj3);
  806. tableAdvice.push(obj4);
  807. tableAdvice.push(obj5);
  808. this.tableAdvice = tableAdvice;
  809. }
  810. if (tableAdvice.length === 1) {
  811. var obj = { advice_name: "", start_time: "" };
  812. var obj1 = { advice_name: "", start_time: "" };
  813. var obj2 = { advice_name: "", start_time: "" };
  814. var obj3 = { advice_name: "", start_time: "" };
  815. var obj4 = { advice_name: "", start_time: "" };
  816. tableAdvice.push(obj);
  817. tableAdvice.push(obj1);
  818. tableAdvice.push(obj2);
  819. tableAdvice.push(obj3);
  820. tableAdvice.push(obj4);
  821. this.tableAdvice = tableAdvice;
  822. }
  823. if (tableAdvice.length === 2) {
  824. var obj = { advice_name: "", start_time: "" };
  825. var obj1 = { advice_name: "", start_time: "" };
  826. var obj2 = { advice_name: "", start_time: "" };
  827. var obj3 = { advice_name: "", start_time: "" };
  828. tableAdvice.push(obj);
  829. tableAdvice.push(obj1);
  830. tableAdvice.push(obj2);
  831. tableAdvice.push(obj3);
  832. this.tableAdvice = tableAdvice;
  833. }
  834. if (tableAdvice.length === 3) {
  835. // eslint-disable-next-line no-redeclare
  836. var obj = { advice_name: "", start_time: "" };
  837. // eslint-disable-next-line no-redeclare
  838. var obj1 = { advice_name: "", start_time: "" };
  839. // eslint-disable-next-line no-redeclare
  840. var obj2 = { advice_name: "", start_time: "" };
  841. // eslint-disable-next-line no-redeclare
  842. tableAdvice.push(obj);
  843. tableAdvice.push(obj1);
  844. tableAdvice.push(obj2);
  845. this.tableAdvice = tableAdvice;
  846. }
  847. if (tableAdvice.length === 4) {
  848. // eslint-disable-next-line no-redeclare
  849. var obj = { advice_name: "", start_time: "" };
  850. // eslint-disable-next-line no-redeclare
  851. var obj1 = { advice_name: "", start_time: "" };
  852. // eslint-disable-next-line no-redeclare
  853. tableAdvice.push(obj);
  854. tableAdvice.push(obj1);
  855. this.tableAdvice = tableAdvice;
  856. }
  857. if (tableAdvice.length === 5) {
  858. // eslint-disable-next-line no-redeclare
  859. var obj = { advice_name: "", start_time: "" };
  860. // eslint-disable-next-line no-redeclare
  861. var obj1 = { advice_name: "", start_time: "" };
  862. tableAdvice.push(obj);
  863. tableAdvice.push(obj1);
  864. this.tableAdvice = tableAdvice;
  865. }
  866. if (tableAdvice.length >= 6) {
  867. this.tableAdvice = tableAdvice;
  868. }
  869. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  870. console.log("透后评估", this.afterdialysis);
  871. this.operators = response.data.data.operators;
  872. this.dialysisOrder =
  873. response.data.data.dialysisOrder === null
  874. ? null
  875. : response.data.data.dialysisOrder;
  876. if (this.operators.length > 0) {
  877. var operatorsLen = this.operators.length;
  878. for (var index = 0; index < operatorsLen; index++) {
  879. this.$set(
  880. this.operatorMaps,
  881. this.operators[index].creator,
  882. this.operators[index]
  883. );
  884. }
  885. }
  886. this.afterdialysis.txqnx = -1;
  887. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  888. this.afterdialysis.txqnx = 0;
  889. }
  890. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  891. this.afterdialysis.txqnx = 1;
  892. }
  893. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  894. this.afterdialysis.txqnx = 2;
  895. }
  896. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  897. this.afterdialysis.txqnx = 3;
  898. }
  899. this.afterdialysis.complications = this.afterdialysis.complication.split(
  900. ","
  901. );
  902. this.afterdialysis.complications_other = [];
  903. this.afterdialysis.complications_index = [];
  904. var acllen = this.afterdialysis.complications.length;
  905. for (let index = 0; index < acllen; index++) {
  906. if (
  907. this.complications.indexOf(
  908. this.afterdialysis.complications[index]
  909. ) >= 0
  910. ) {
  911. this.afterdialysis.complications_index.push(
  912. this.afterdialysis.complications[index]
  913. );
  914. } else if (
  915. this.complications.indexOf(
  916. this.afterdialysis.complications[index]
  917. ) < 0 &&
  918. this.afterdialysis.complications_other.indexOf(
  919. this.afterdialysis.complications[index]
  920. ) < 0
  921. ) {
  922. this.afterdialysis.complications_other.push(
  923. this.afterdialysis.complications[index]
  924. );
  925. }
  926. }
  927. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  928. ","
  929. );
  930. var doctorname = response.data.data.DoctorName;
  931. //console.log("医师签名", doctorname);
  932. this.doctorForm.doctor = doctorname.user_name;
  933. this.doctorForm.url = doctorname.url;
  934. var prescription = response.data.data.dialysisPrescription;
  935. console.log("透析处方", prescription);
  936. if (prescription.anticoagulant == 6) {
  937. prescription.anticoagulant = "低分子肝素钙";
  938. }
  939. if (prescription.anticoagulant == 7) {
  940. prescription.anticoagulant = "低分子肝素钠";
  941. }
  942. if (prescription.blood_access === 1) {
  943. prescription.blood_access = "正常";
  944. }
  945. if (prescription.blood_access === 2) {
  946. prescription.blood_access = "震颤";
  947. }
  948. if (prescription.blood_access === 3) {
  949. prescription.blood_access = "堵塞";
  950. }
  951. if (prescription.blood_access === 4) {
  952. prescription.blood_access = "血肿";
  953. }
  954. if (prescription.blood_access === 5) {
  955. prescription.blood_access = "淤血";
  956. }
  957. if (prescription.blood_access === 6) {
  958. prescription.blood_access = "感染";
  959. }
  960. if (prescription.blood_access === 7) {
  961. prescription.blood_access = "自体内瘘";
  962. }
  963. if (prescription.blood_access === 8) {
  964. prescription.blood_access = "人工血管内瘘";
  965. }
  966. if (prescription.replacement_way === 1) {
  967. prescription.replacement_way = "前置换";
  968. }
  969. if (prescription.replacement_way === 2) {
  970. prescription.replacement_way = "后置换";
  971. }
  972. if (prescription.replacement_way === 3) {
  973. prescription.replacement_way = "中置换";
  974. }
  975. if (prescription.replacement_way === 4) {
  976. prescription.replacement_way = "混合置换";
  977. }
  978. if (prescription.anticoagulant === 1) {
  979. prescription.anticoagulant = "无肝素";
  980. }
  981. if (prescription.anticoagulant === 2) {
  982. prescription.anticoagulant = "普通肝素";
  983. }
  984. if (prescription.anticoagulant === 3) {
  985. prescription.anticoagulant = "低分子肝素";
  986. }
  987. if (prescription.anticoagulant === 4) {
  988. prescription.anticoagulant = "阿加曲班";
  989. }
  990. if (prescription.anticoagulant === 5) {
  991. prescription.anticoagulant = "枸橼酸钠";
  992. }
  993. this.prescription = prescription;
  994. var receiverTreatmentAccess =
  995. response.data.data.receiverTreatmentAccess;
  996. if (receiverTreatmentAccess.sick_condition === 1) {
  997. receiverTreatmentAccess.sick_condition = "一般";
  998. }
  999. if (receiverTreatmentAccess.sick_condition === 2) {
  1000. receiverTreatmentAccess.sick_condition = "严重";
  1001. }
  1002. if (receiverTreatmentAccess.sick_condition === 3) {
  1003. receiverTreatmentAccess.sick_condition = "危";
  1004. }
  1005. if (receiverTreatmentAccess.way === 1) {
  1006. receiverTreatmentAccess.way = "步行";
  1007. }
  1008. if (receiverTreatmentAccess.way === 2) {
  1009. receiverTreatmentAccess.way = "扶行";
  1010. }
  1011. if (receiverTreatmentAccess.way === 3) {
  1012. receiverTreatmentAccess.way = "轮椅";
  1013. }
  1014. if (receiverTreatmentAccess.way === 4) {
  1015. receiverTreatmentAccess.way = "平车";
  1016. }
  1017. console.log("接诊评估:", receiverTreatmentAccess);
  1018. this.receiverTreatmentAccess = receiverTreatmentAccess;
  1019. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1020. var rwLen = this.replacementWays.length;
  1021. this.prescription.replacement = "";
  1022. for (let index = 0; index < rwLen; index++) {
  1023. if (
  1024. this.replacementWays[index].id ==
  1025. this.prescription.replacement_way
  1026. ) {
  1027. this.prescription.replacement = this.replacementWays[index].name;
  1028. break;
  1029. }
  1030. }
  1031. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1032. this.prescription.dialysate_formulation
  1033. );
  1034. var paLen = this.perfusionApparatus.length;
  1035. this.prescription.perfusion_apparatus_name = "";
  1036. for (let index = 0; index < paLen; index++) {
  1037. if (
  1038. this.perfusionApparatus[index].id ==
  1039. this.prescription.perfusion_apparatus
  1040. ) {
  1041. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1042. index
  1043. ].name;
  1044. break;
  1045. }
  1046. }
  1047. var acLen = this.anticoagulantsConfit.length;
  1048. var thisALID = this.prescription.anticoagulant;
  1049. this.prescription.anticoagulant_name = "";
  1050. if (
  1051. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1052. this.anticoagulantsConfit[thisALID] != null
  1053. ) {
  1054. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1055. thisALID
  1056. ].name;
  1057. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1058. }
  1059. this.advices = response.data.data.advices;
  1060. this.monitors = response.data.data.monitors;
  1061. console.log("透析监测", this.monitors);
  1062. this.summary = response.data.data.summary;
  1063. this.Order = response.data.data.order;
  1064. var start_nurse = response.data.data.startNuse;
  1065. // console.log('上机护士', start_nurse)
  1066. this.orderForm.start_nurse = start_nurse.user_name;
  1067. this.orderForm.url = start_nurse.url;
  1068. var finish_nurse = response.data.data.FinishNuse;
  1069. // console.log('下机护士', finish_nurse)
  1070. this.finshForm.url = finish_nurse.url;
  1071. this.finshForm.finish_nurse = finish_nurse.user_name;
  1072. var dialysisdoctor = response.data.data.dialysisdocotr;
  1073. //this.dialysisDoctor.doctor = dialysisdoctor.user_name;
  1074. // this.dialysisDoctor.url = dialysisdoctor.url;
  1075. this.org_template_info = response.data.data.org_template_info;
  1076. // 配置超滤量和置换量是否要显示0还是空
  1077. if (this.org_template_info.org_id == 9535) {
  1078. this.isShowZero = true;
  1079. }
  1080. if (this.monitors.length < 7) {
  1081. var nl = 8 - this.monitors.length;
  1082. for (let index = 0; index < nl; index++) {
  1083. this.monitors.push([]);
  1084. }
  1085. }
  1086. this.jilurow = this.monitors.length + 1;
  1087. this.advice_jilurow = this.advices.length + 1;
  1088. var childMap = {};
  1089. for (const index in this.advices) {
  1090. if (this.advices[index].parent_id == 0) {
  1091. continue;
  1092. }
  1093. if (!(this.advices[index].parent_id in childMap)) {
  1094. childMap[this.advices[index].parent_id] = [];
  1095. }
  1096. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1097. }
  1098. var advices = [];
  1099. for (const index in this.advices) {
  1100. if (this.advices[index].parent_id > 0) {
  1101. continue;
  1102. }
  1103. var item = this.advices[index];
  1104. if (item.id in childMap) {
  1105. item.children = childMap[item.id];
  1106. } else {
  1107. item.children = [];
  1108. }
  1109. advices.push(item);
  1110. }
  1111. var leftAdvice = [];
  1112. var rightAdvice = [];
  1113. var adlen = advices.length;
  1114. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  1115. for (var i = 0; i < halfLen; i++) {
  1116. leftAdvice.push(advices[i]);
  1117. rightAdvice.push(advices[i + halfLen]);
  1118. }
  1119. if (halfLen < 5) {
  1120. var nl = 5 - leftAdvice.length;
  1121. for (let index = 0; index < nl; index++) {
  1122. leftAdvice.push([]);
  1123. }
  1124. var nl = 5 - rightAdvice.length;
  1125. for (let index = 0; index < nl; index++) {
  1126. rightAdvice.push([]);
  1127. }
  1128. }
  1129. this.advices = [];
  1130. for (var i = 0; i < halfLen; i++) {
  1131. var item = [];
  1132. item.push(leftAdvice[i]);
  1133. item.push(rightAdvice[i]);
  1134. this.advices.push(item);
  1135. }
  1136. this.loading = false;
  1137. this.doctor_advices =
  1138. response.data.data.advices == null
  1139. ? []
  1140. : response.data.data.advices;
  1141. for (let index = 0; index < this.doctor_advices.length; index++) {
  1142. this.doctor_advices[index]["isShow"] = 2;
  1143. }
  1144. if (this.doctor_advices.length > 0) {
  1145. var group = this.newAdviceGroupObject();
  1146. var initGroupBlock = function(group, advice) {
  1147. group.group_no = advice.groupno;
  1148. };
  1149. for (
  1150. let index = this.doctor_advices.length - 1;
  1151. index >= 0;
  1152. index--
  1153. ) {
  1154. var new_advice_index = 0;
  1155. if (
  1156. "children" in this.doctor_advices[index] &&
  1157. this.doctor_advices[index].children.length > 0
  1158. ) {
  1159. new_advice_index =
  1160. index + this.doctor_advices[index].children.length + 1;
  1161. var doctor_advice = {
  1162. delivery_way: this.doctor_advices[index].delivery_way,
  1163. execution_frequency: this.doctor_advices[index]
  1164. .execution_frequency,
  1165. groupno: this.doctor_advices[index].groupno,
  1166. id: this.doctor_advices[index].id,
  1167. parent_id: this.doctor_advices[index].parent_id,
  1168. children: this.doctor_advices[index].children,
  1169. remark: this.doctor_advices[index].remark
  1170. };
  1171. doctor_advice["isShow"] = 1;
  1172. this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
  1173. // this.doctor_advices.push(doctor_advice)
  1174. }
  1175. }
  1176. for (let index = 0; index < this.doctor_advices.length; index++) {
  1177. const advice = this.doctor_advices[index];
  1178. if (advice.groupno == 0) {
  1179. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1180. if (advice.parent_id > 0) {
  1181. if (this.advice_groups.length > 0) {
  1182. var parent_group = this.advice_groups[
  1183. this.advice_groups.length - 1
  1184. ];
  1185. if (parent_group.advices.length > 0) {
  1186. if (parent_group.advices[0].id == advice.parent_id) {
  1187. parent_group.advices.push(advice);
  1188. }
  1189. }
  1190. }
  1191. continue;
  1192. } else {
  1193. if (group.group_no > 0) {
  1194. this.advice_groups.push(group);
  1195. group = this.newAdviceGroupObject();
  1196. }
  1197. initGroupBlock(group, advice);
  1198. group.advices.push(advice);
  1199. this.advice_groups.push(group);
  1200. group = this.newAdviceGroupObject();
  1201. continue;
  1202. }
  1203. }
  1204. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1205. this.advice_groups.push(group);
  1206. group = this.newAdviceGroupObject();
  1207. }
  1208. if (group.group_no == 0) {
  1209. initGroupBlock(group, advice);
  1210. }
  1211. if (group.group_no == advice.groupno) {
  1212. group.advices.push(advice);
  1213. }
  1214. }
  1215. if (group.group_no > 0) {
  1216. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1217. this.advice_groups.push(group);
  1218. }
  1219. }
  1220. console.log(this.advice_groups);
  1221. } else {
  1222. this.loading = false;
  1223. this.$message.error("请求数据失败");
  1224. return false;
  1225. }
  1226. });
  1227. },
  1228. bloodAccessParOperaName(id) {
  1229. if (id in this.bloodAccessParOpera) {
  1230. return this.bloodAccessParOpera[id].name;
  1231. }
  1232. return "";
  1233. },
  1234. dialysateFormulationName(id) {
  1235. if (id in this.dialysateFormulationOptions) {
  1236. return this.dialysateFormulationOptions[id].name;
  1237. }
  1238. return "";
  1239. },
  1240. getAge: function(val) {
  1241. if (val.birthday != 0) {
  1242. return jsGetAge(val.birth, "-");
  1243. }
  1244. return "";
  1245. },
  1246. checkIdCardNo(val) {
  1247. var thisLen = val.length;
  1248. var birth = "";
  1249. if (thisLen == 15) {
  1250. birth = "19" + val.substr(6, 6);
  1251. } else {
  1252. birth = val.substr(6, 8);
  1253. }
  1254. var birthTwo =
  1255. birth.substr(0, 4) +
  1256. "-" +
  1257. birth.substr(4, 2) +
  1258. "-" +
  1259. birth.substr(6, 2);
  1260. var age = jsGetAge(birthTwo, "-");
  1261. return age;
  1262. },
  1263. newAdviceGroupObject: function() {
  1264. return Object.assign(
  1265. {},
  1266. {
  1267. group_no: 0,
  1268. // advice_doctor: 0,
  1269. // start_time: 0,
  1270. advices: []
  1271. // exec_staff: 0,
  1272. // exec_time: 0,
  1273. // checker: 0,
  1274. }
  1275. );
  1276. }
  1277. },
  1278. watch: {
  1279. "patientInfo.gender": function() {
  1280. if (this.patientInfo.gender == 1) {
  1281. this.patientInfo_gender_1 = true;
  1282. this.patientInfo_gender_2 = false;
  1283. } else if (this.patientInfo.gender == 2) {
  1284. this.patientInfo_gender_2 = true;
  1285. this.patientInfo_gender_1 = false;
  1286. } else {
  1287. this.patientInfo_gender_2 = false;
  1288. this.patientInfo_gender_1 = false;
  1289. }
  1290. },
  1291. "patientInfo.source": function() {
  1292. if (this.patientInfo.source == 1) {
  1293. this.patientInfo_source_1 = true;
  1294. this.patientInfo_source_2 = false;
  1295. } else if (this.patientInfo.source == 2) {
  1296. this.patientInfo_source_2 = true;
  1297. this.patientInfo_source_1 = false;
  1298. } else {
  1299. this.patientInfo_source_2 = false;
  1300. this.patientInfo_source_1 = false;
  1301. }
  1302. }
  1303. },
  1304. created() {
  1305. var xtuser = this.$store.getters.xt_user;
  1306. this.orgname = xtuser.org.org_name;
  1307. // this.orgname = "遂溪方济医院";
  1308. this.modeOptions = this.$store.getters.treatment_mode;
  1309. this.replacementWays = this.$store.getters.replacement_ways;
  1310. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1311. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1312. this.way_arr = getDataConfig("hemodialysis", "way");
  1313. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1314. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1315. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1316. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1317. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1318. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1319. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1320. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1321. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1322. var bloodAccessParOpera = getDataConfig(
  1323. "hemodialysis",
  1324. "vascular_access_desc"
  1325. );
  1326. for (var key in bloodAccessParOpera) {
  1327. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1328. bloodAccessParOpera[key];
  1329. }
  1330. var dialysateFormulationOptions = getDataConfig(
  1331. "hemodialysis",
  1332. "dialysate_formulation"
  1333. );
  1334. for (var key in dialysateFormulationOptions) {
  1335. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1336. dialysateFormulationOptions[key];
  1337. }
  1338. const xtdate = this.$route.query && this.$route.query.xtdate;
  1339. const xtno = this.$route.query && this.$route.query.xtno;
  1340. if (
  1341. typeof xtdate === "string" &&
  1342. xtdate.length > 0 &&
  1343. typeof xtno === "string" &&
  1344. xtno.length > 0
  1345. ) {
  1346. this.queryParams.xtdate = xtdate;
  1347. this.queryParams.xtno = xtno;
  1348. this.getDialysisRecord();
  1349. } else {
  1350. this.$message.error("参数不齐");
  1351. return false;
  1352. }
  1353. }
  1354. };
  1355. </script>
  1356. <style>
  1357. .dialysis-print-order {
  1358. width: 960px;
  1359. margin: 0 auto;
  1360. }
  1361. .dialysis-print-order .order-yy-name {
  1362. margin: auto;
  1363. text-align: center;
  1364. font-size: 20px;
  1365. letter-spacing: 5px;
  1366. }
  1367. .dialysis-print-order .order-title {
  1368. margin: auto;
  1369. font-weight: 600;
  1370. text-align: center;
  1371. font-size: 22px;
  1372. padding: 10px 20px 20px 20px;
  1373. }
  1374. .dialysis-print-order .table-box {
  1375. width: 100%;
  1376. line-height: 23px;
  1377. font-size: 14px;
  1378. }
  1379. .dialysis-print-order .print-table {
  1380. width: 100%;
  1381. text-align: center;
  1382. border-collapse: collapse;
  1383. line-height: 40px;
  1384. font-size: 14px;
  1385. }
  1386. .dialysis-print-order .print-table-no {
  1387. width: 100%;
  1388. text-align: center;
  1389. border-collapse: collapse;
  1390. font-size: 14px;
  1391. }
  1392. .dialysis-print-order .under-line {
  1393. border-bottom: 1px solid #999;
  1394. width: 95%;
  1395. text-align: center;
  1396. margin-left: 2px;
  1397. }
  1398. .dialysis-print-order .title-box {
  1399. text-align: center;
  1400. font-size: 16px;
  1401. }
  1402. .dialysis-print-order .radio-lebel-box {
  1403. font-weight: 400;
  1404. cursor: pointer;
  1405. }
  1406. .dialysis-print-order .radio-no {
  1407. opacity: 0;
  1408. outline: none;
  1409. position: absolute;
  1410. margin: 0;
  1411. width: 0;
  1412. height: 0;
  1413. z-index: -1;
  1414. }
  1415. .dialysis-print-order .radio-inner {
  1416. white-space: nowrap;
  1417. cursor: pointer;
  1418. outline: none;
  1419. display: inline-block;
  1420. line-height: 1;
  1421. position: relative;
  1422. vertical-align: middle;
  1423. }
  1424. .dialysis-print-order .radio-fang {
  1425. display: inline-block;
  1426. position: relative;
  1427. border: 1px solid #000;
  1428. box-sizing: border-box;
  1429. width: 14px;
  1430. height: 14px;
  1431. background-color: #fff;
  1432. z-index: 1;
  1433. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1434. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1435. }
  1436. .dialysis-print-order .is-checked-radio::after {
  1437. content: "√";
  1438. font-size: 15px;
  1439. }
  1440. .dialysis-print-order .print-table-no tr td {
  1441. padding: 8px 5px;
  1442. line-height: 25px;
  1443. }
  1444. .dialysis-print-order .print-table tr td {
  1445. padding: 1px 1px;
  1446. /*line-height: 25px;*/
  1447. }
  1448. .es-img {
  1449. height: 25px;
  1450. }
  1451. .advice-name {
  1452. text-align: left;
  1453. }
  1454. .advice-children {
  1455. display: flex;
  1456. }
  1457. .title-box-pro {
  1458. border: 0 #fff;
  1459. line-height: 25px;
  1460. height: 25px;
  1461. text-align: left;
  1462. padding-left: 10px !important;
  1463. }
  1464. .title-box-pro-tr {
  1465. border: 0 #fff;
  1466. }
  1467. .text-align-left {
  1468. text-align: left !important;
  1469. padding-left: 10px !important;
  1470. font-size: 14px !important;
  1471. line-height: 25px;
  1472. }
  1473. .print-table-tr-new td {
  1474. line-height: 20px !important;
  1475. }
  1476. .border-top-solid {
  1477. border: solid 1px #000;
  1478. }
  1479. .print-template-two tr {
  1480. line-height: 30px;
  1481. }
  1482. .table-box1 {
  1483. border: 1px solid #000;
  1484. width: 100%;
  1485. line-height: 30px;
  1486. font-size: 14px;
  1487. border-collapse: collapse;
  1488. }
  1489. .table-box1 tr {
  1490. border-bottom: 1px solid #000;
  1491. }
  1492. </style>