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

DialysisPrintOrderThirtyFour.vue 60KB

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