DialysisPrintOrdersixtySeven.vue 60KB

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