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

DialysisPrintOrderThirteen.vue 52KB

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