DialysisPrintOrderThirteen.vue 51KB

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