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

dialysisPrintOrder.vue 48KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <template v-if="org_template_info.template_id == 1">
  6. <el-button
  7. :loading="loading"
  8. size="small"
  9. icon="el-icon-printer"
  10. @click="printThisPage"
  11. type="primary"
  12. >打印</el-button
  13. >
  14. </template>
  15. <template v-if=" org_template_info.template_id == 2 || org_template_info.template_id == 0 " >
  16. <div>
  17. <el-button
  18. :loading="loading"
  19. size="small"
  20. icon="el-icon-printer"
  21. @click="printThisPage"
  22. type="primary"
  23. >打印全部</el-button
  24. >
  25. <el-button
  26. :loading="loading"
  27. size="small"
  28. icon="el-icon-printer"
  29. @click="printThisOnePage"
  30. type="primary"
  31. >打印纪录单</el-button
  32. >
  33. <el-button
  34. :loading="loading"
  35. size="small"
  36. icon="el-icon-printer"
  37. @click="printThisTwoPage"
  38. type="primary"
  39. >打印医嘱单</el-button
  40. >
  41. </div>
  42. </template>
  43. <template v-if="org_template_info.template_id == 3">
  44. <el-button
  45. :loading="loading"
  46. size="small"
  47. icon="el-icon-printer"
  48. @click="printThisPage"
  49. type="primary"
  50. >打印</el-button
  51. >
  52. </template>
  53. <template v-if="org_template_info.template_id == 4">
  54. <el-button
  55. :loading="loading"
  56. size="small"
  57. icon="el-icon-printer"
  58. @click="printThisPage"
  59. type="primary"
  60. >打印</el-button
  61. >
  62. </template>
  63. <template v-if="org_template_info.template_id == 5">
  64. <div>
  65. <el-button
  66. :loading="loading"
  67. size="small"
  68. icon="el-icon-printer"
  69. @click="printThisPage"
  70. type="primary"
  71. >打印全部</el-button
  72. >
  73. <el-button
  74. :loading="loading"
  75. size="small"
  76. icon="el-icon-printer"
  77. @click="printThisOnePage"
  78. type="primary"
  79. >打印纪录单</el-button
  80. >
  81. <el-button
  82. :loading="loading"
  83. size="small"
  84. icon="el-icon-printer"
  85. @click="printThisTwoPage"
  86. type="primary"
  87. >打印医嘱单</el-button
  88. >
  89. </div>
  90. </template>
  91. <template v-if="org_template_info.template_id == 6 || org_template_info.template_id == 10">
  92. <el-button
  93. :loading="loading"
  94. size="small"
  95. icon="el-icon-printer"
  96. @click="printThisPage"
  97. type="primary"
  98. >打印</el-button
  99. >
  100. </template>
  101. <template v-if="org_template_info.template_id == 7">
  102. <el-button
  103. :loading="loading"
  104. size="small"
  105. icon="el-icon-printer"
  106. @click="printThisPage"
  107. type="primary"
  108. >打印</el-button
  109. >
  110. </template>
  111. <template v-if="org_template_info.template_id == 8">
  112. <el-button
  113. :loading="loading"
  114. size="small"
  115. icon="el-icon-printer"
  116. @click="printThisPage"
  117. type="primary"
  118. >打印</el-button
  119. >
  120. </template>
  121. </div>
  122. <div class="app-container ">
  123. <!--<div class="order-print-btn"-->
  124. <!--v-loading="loading"-->
  125. <!--element-loading-text="加载中"-->
  126. <!--element-loading-spinner="el-icon-loading"-->
  127. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  128. <!--style="width: 100%;">-->
  129. <!--</div>-->
  130. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  131. <DialysisPrintOrderOne
  132. v-bind:childResponse="childResponse"
  133. v-if="org_template_info.template_id == 1"
  134. >
  135. </DialysisPrintOrderOne>
  136. <DialysisPrintOrderTwo
  137. v-bind:childResponse="childResponse"
  138. v-if="
  139. org_template_info.template_id == 2 ||
  140. org_template_info.template_id == 0
  141. "
  142. ></DialysisPrintOrderTwo>
  143. <DialysisPrintOrderThree
  144. v-bind:childResponse="childResponse"
  145. v-if="org_template_info.template_id == 3"
  146. >
  147. </DialysisPrintOrderThree>
  148. <DialysisPrintOrderFour
  149. v-bind:childResponse="childResponse"
  150. v-if="org_template_info.template_id == 4"
  151. >
  152. </DialysisPrintOrderFour>
  153. <DialysisPrintOrderFive
  154. v-bind:childResponse="childResponse"
  155. v-if="org_template_info.template_id == 5"
  156. >
  157. </DialysisPrintOrderFive>
  158. <DialysisPrintOrderSix
  159. v-bind:childResponse="childResponse"
  160. v-if="org_template_info.template_id == 6"
  161. >
  162. </DialysisPrintOrderSix>
  163. <DialysisPrintOrderSeven
  164. v-bind:childResponse="childResponse"
  165. v-if="org_template_info.template_id == 7"
  166. >
  167. </DialysisPrintOrderSeven>
  168. <DialysisPrintOrderEight
  169. v-bind:childResponse="childResponse"
  170. v-if="org_template_info.template_id == 8"
  171. >
  172. </DialysisPrintOrderEight>
  173. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  174. <DialysisPrintOrderTen
  175. v-bind:childResponse="childResponse"
  176. v-if="org_template_info.template_id == 10"
  177. ></DialysisPrintOrderTen>
  178. </div>
  179. </div>
  180. </template>
  181. <script>
  182. import { getDialysisRecord } from "@/api/dialysis";
  183. import { getDataConfig } from "@/utils/data";
  184. import { jsGetAge, uParseTime } from "@/utils/tools";
  185. import LabelBox from "./printItem/LabelBox";
  186. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  187. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  188. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  189. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  190. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  191. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  192. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  193. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  194. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  195. import print from "print-js";
  196. import DialysisPrintOrderTen from './template/DialysisPrintOrderTen'
  197. export default {
  198. name: "dialysisPrintOrder",
  199. components: {
  200. DialysisPrintOrderTen,
  201. DialysisPrintOrderOne,
  202. DialysisPrintOrderTwo,
  203. DialysisPrintOrderThree,
  204. DialysisPrintOrderFour,
  205. DialysisPrintOrderFive,
  206. DialysisPrintOrderSix,
  207. DialysisPrintOrderSeven,
  208. DialysisPrintOrderEight,
  209. LabelBox,
  210. BreadCrumb
  211. },
  212. data() {
  213. return {
  214. crumbs: [
  215. { path: false, name: "透析管理" },
  216. { path: false, name: "打印单" }
  217. ],
  218. childResponse: {},
  219. operators: [],
  220. adminUser: [],
  221. check: {},
  222. dialysisOrder: {
  223. DeviceNumber: []
  224. },
  225. operatorMaps: {},
  226. complications: [
  227. "低血压",
  228. "高血压",
  229. "心律失常",
  230. "头晕",
  231. "头痛",
  232. "呕吐",
  233. "抽搐",
  234. "出血",
  235. "心衰",
  236. "腹痛"
  237. ],
  238. jilurow: 0,
  239. advice_jilurow: 0,
  240. loading: false,
  241. orgname: "",
  242. patientInfo_gender_1: false,
  243. patientInfo_gender_2: false,
  244. patientInfo_source_2: false,
  245. patientInfo_source_1: false,
  246. modeOptions: {},
  247. replacementWays: [],
  248. perfusionApparatus: [],
  249. anticoagulantsConfit: {},
  250. bloodAccessParOpera: {},
  251. dialysateFormulationOptions: {},
  252. queryParams: {
  253. xtdate: "",
  254. xtno: ""
  255. },
  256. patientInfo: {
  257. birth: "",
  258. age: "",
  259. DialysisSchedule: {
  260. device_number: { number: "" },
  261. device_zone: { name: "" }
  262. },
  263. gender: 0
  264. },
  265. predialysis: {
  266. score: "",
  267. internal_fistula: "",
  268. internal_fistula_skin: "",
  269. catheter: "",
  270. blood_access_part_opera_name: ""
  271. },
  272. afterdialysis: {
  273. complications_index: ""
  274. },
  275. prescription: {
  276. dialysate_formulation_name: "",
  277. device: {}
  278. },
  279. advices: [],
  280. users: [],
  281. monitors: [],
  282. summary: {},
  283. receiverTreatmentAccess: {},
  284. org_template_info: {},
  285. doctor_advices: [],
  286. advice_groups: [],
  287. AlPanel: {
  288. id: 0,
  289. name: "",
  290. type: 1,
  291. shouji: 2,
  292. weichi: 2,
  293. zongliang: 2,
  294. gaimingcheng: -1,
  295. gaijiliang: -1,
  296. shouji_unit: "mg",
  297. weichi_unit: "mg/h",
  298. zongliang_unit: "mg",
  299. gaimingcheng_unit: "",
  300. gaijiliang_unit: ""
  301. }
  302. };
  303. },
  304. methods: {
  305. getAdminUser(id) {
  306. if (id == 0) {
  307. return "";
  308. }
  309. if (id == undefined) {
  310. return "";
  311. }
  312. for (let i = 0; i < this.adminUser.length; i++) {
  313. if (this.adminUser[i].id == id) {
  314. return this.adminUser[i].name;
  315. }
  316. }
  317. },
  318. getTime(value, temp) {
  319. if (value == 0) {
  320. return "";
  321. }
  322. if (value != undefined) {
  323. return uParseTime(value, temp);
  324. }
  325. return "";
  326. },
  327. printThisPage() {
  328. var ptime = Math.round(new Date().getTime() / 1000);
  329. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  330. const style =
  331. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  332. const style2 =
  333. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  334. // const style3 =
  335. // '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  336. //
  337. if (this.org_template_info.template_id == 1) {
  338. printJS({
  339. printable: "dialysis-print-box",
  340. type: "html",
  341. style: style,
  342. scanStyles: false
  343. });
  344. } else if (
  345. this.org_template_info.template_id == 2 ||
  346. this.org_template_info.template_id == 0
  347. ) {
  348. printJS({
  349. printable: "dialysis-print-box-1",
  350. type: "html",
  351. style: style2,
  352. scanStyles: false
  353. });
  354. } else if (this.org_template_info.template_id == 3) {
  355. printJS({
  356. printable: "dialysis-print-box",
  357. type: "html",
  358. style: style,
  359. scanStyles: false
  360. });
  361. } else if (this.org_template_info.template_id == 4) {
  362. printJS({
  363. printable: "dialysis-print-box",
  364. type: "html",
  365. style: style,
  366. scanStyles: false
  367. });
  368. } else if (this.org_template_info.template_id == 5) {
  369. printJS({
  370. printable: "dialysis-print-box-1",
  371. type: "html",
  372. style: style2,
  373. scanStyles: false
  374. });
  375. } else if (this.org_template_info.template_id == 6 || this.org_template_info.template_id == 10) {
  376. printJS({
  377. printable: "dialysis-print-box-1",
  378. type: "html",
  379. style: style2,
  380. scanStyles: false
  381. });
  382. } else if (this.org_template_info.template_id == 7) {
  383. printJS({
  384. printable: "dialysis-print-box",
  385. type: "html",
  386. style: style,
  387. scanStyles: false
  388. });
  389. } else if (this.org_template_info.template_id == 8) {
  390. printJS({
  391. printable: "dialysis-print-box",
  392. type: "html",
  393. style: style,
  394. scanStyles: false
  395. });
  396. }
  397. },
  398. printThisOnePage() {
  399. var ptime = Math.round(new Date().getTime() / 1000);
  400. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  401. const style =
  402. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  403. const style2 =
  404. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  405. if (this.org_template_info.template_id == 1) {
  406. printJS({
  407. printable: "dialysis-print-box",
  408. type: "html",
  409. style: style,
  410. scanStyles: false
  411. });
  412. } else if (
  413. this.org_template_info.template_id == 2 ||
  414. this.org_template_info.template_id == 0 ||
  415. this.org_template_info.template_id == 5
  416. ) {
  417. printJS({
  418. printable: "dialysis-print-box-1-1",
  419. type: "html",
  420. style: style2,
  421. scanStyles: false
  422. });
  423. }
  424. },
  425. printThisTwoPage() {
  426. var ptime = Math.round(new Date().getTime() / 1000);
  427. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  428. const style =
  429. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  430. const style2 =
  431. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  432. if (this.org_template_info.template_id == 1) {
  433. printJS({
  434. printable: "dialysis-print-box",
  435. type: "html",
  436. style: style,
  437. scanStyles: false
  438. });
  439. } else if (
  440. this.org_template_info.template_id == 2 ||
  441. this.org_template_info.template_id == 0 ||
  442. this.org_template_info.template_id == 5
  443. ) {
  444. printJS({
  445. printable: "dialysis-print-box-1-2",
  446. type: "html",
  447. style: style2,
  448. scanStyles: false
  449. });
  450. }
  451. },
  452. getNumber() {
  453. if (this.dialysisOrder != null) {
  454. return (
  455. this.patientInfo.DialysisSchedule.device_zone.name +
  456. this.dialysisOrder.DeviceNumber.number
  457. );
  458. } else {
  459. return (
  460. this.patientInfo.DialysisSchedule.device_zone.name +
  461. this.patientInfo.DialysisSchedule.device_number.number
  462. );
  463. }
  464. },
  465. getXuserName(id) {
  466. if (id <= 0) {
  467. return "";
  468. }
  469. var name = "";
  470. if (this.users == null || typeof this.users.length === "undefined") {
  471. return name;
  472. }
  473. var leng = this.users.length;
  474. if (leng == 0) {
  475. return name;
  476. }
  477. for (let index = 0; index < leng; index++) {
  478. if (this.users[index].id == id) {
  479. name = this.users[index].name;
  480. break;
  481. }
  482. }
  483. return name;
  484. },
  485. setAdminUserES(id) {
  486. console.log(id);
  487. if (id == 0) {
  488. return "";
  489. }
  490. if (id in this.operatorMaps) {
  491. return this.operatorMaps[id].url;
  492. } else {
  493. return "";
  494. }
  495. },
  496. modeName(mode_id) {
  497. return typeof this.modeOptions[mode_id] !== "undefined" &&
  498. typeof this.modeOptions[mode_id].name !== "undefined"
  499. ? this.modeOptions[mode_id].name
  500. : "";
  501. },
  502. getDialysisRecord() {
  503. this.loading = true;
  504. getDialysisRecord(this.queryParams).then(response => {
  505. if (response.data.state == 1) {
  506. this.childResponse = response;
  507. this.org_template_info = response.data.data.org_template_info;
  508. this.loading = false;
  509. // this.adminUser = response.data.data.users
  510. // this.users = response.data.data.users
  511. // this.patientInfo = response.data.data.patientInfo
  512. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  513. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  514. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  515. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  516. // } else {
  517. // this.patientInfo.first_dialysis_date = ''
  518. // }
  519. // this.check = response.data.data.check
  520. // this.predialysis = response.data.data.PredialysisEvaluation
  521. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  522. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  523. // this.operators = response.data.data.operators
  524. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  525. // if (this.operators.length > 0) {
  526. // var operatorsLen = this.operators.length
  527. // for (var index = 0; index < operatorsLen; index++) {
  528. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  529. // }
  530. // }
  531. // this.afterdialysis.txqnx = -1
  532. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  533. // this.afterdialysis.txqnx = 0
  534. // }
  535. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  536. // this.afterdialysis.txqnx = 1
  537. // }
  538. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  539. // this.afterdialysis.txqnx = 2
  540. // }
  541. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  542. // this.afterdialysis.txqnx = 3
  543. // }
  544. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  545. // this.afterdialysis.complications_other = []
  546. // this.afterdialysis.complications_index = []
  547. // var acllen = this.afterdialysis.complications.length
  548. // for (let index = 0; index < acllen; index++) {
  549. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  550. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  551. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  552. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  553. // }
  554. // }
  555. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  556. // this.prescription = response.data.data.dialysisPrescription
  557. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  558. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  559. // var rwLen = this.replacementWays.length
  560. // this.prescription.replacement = ''
  561. // for (let index = 0; index < rwLen; index++) {
  562. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  563. // this.prescription.replacement = this.replacementWays[index].name
  564. // break
  565. // }
  566. // }
  567. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  568. // var paLen = this.perfusionApparatus.length
  569. // this.prescription.perfusion_apparatus_name = ''
  570. // for (let index = 0; index < paLen; index++) {
  571. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  572. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  573. // break
  574. // }
  575. // }
  576. // var acLen = this.anticoagulantsConfit.length
  577. // var thisALID = this.prescription.anticoagulant
  578. // this.prescription.anticoagulant_name = ''
  579. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  580. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  581. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  582. // }
  583. // this.advices = response.data.data.advices
  584. // this.monitors = response.data.data.monitors
  585. // this.summary = response.data.data.summary
  586. // this.org_template_info = response.data.data.org_template_info
  587. // if (this.monitors.length < 8) {
  588. // var nl = 8 - this.monitors.length
  589. // for (let index = 0; index < nl; index++) {
  590. // this.monitors.push([])
  591. // }
  592. // }
  593. // this.jilurow = this.monitors.length + 1
  594. // this.advice_jilurow = this.advices.length + 1
  595. // var childMap = {}
  596. // for (const index in this.advices) {
  597. // if (this.advices[index].parent_id == 0) {
  598. // continue
  599. // }
  600. // if (!(this.advices[index].parent_id in childMap)) {
  601. // childMap[this.advices[index].parent_id] = []
  602. // }
  603. // childMap[this.advices[index].parent_id].push(this.advices[index])
  604. // }
  605. // var advices = []
  606. // for (const index in this.advices) {
  607. // if (this.advices[index].parent_id > 0) {
  608. // continue
  609. // }
  610. // var item = this.advices[index]
  611. // if (item.id in childMap) {
  612. // item.children = childMap[item.id]
  613. // } else {
  614. // item.children = []
  615. // }
  616. // advices.push(item)
  617. // }
  618. // var leftAdvice = []
  619. // var rightAdvice = []
  620. // var adlen = advices.length
  621. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  622. // for (var i = 0; i < halfLen; i++) {
  623. // leftAdvice.push(advices[i])
  624. // rightAdvice.push(advices[i + halfLen])
  625. // }
  626. // if (halfLen < 5) {
  627. // var nl = 5 - leftAdvice.length
  628. // for (let index = 0; index < nl; index++) {
  629. // leftAdvice.push([])
  630. // }
  631. // var nl = 5 - rightAdvice.length
  632. // for (let index = 0; index < nl; index++) {
  633. // rightAdvice.push([])
  634. // }
  635. // }
  636. // this.advices = []
  637. // for (var i = 0; i < halfLen; i++) {
  638. // var item = []
  639. // item.push(leftAdvice[i])
  640. // item.push(rightAdvice[i])
  641. // this.advices.push(item)
  642. // }
  643. // this.loading = false
  644. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  645. // for (let index = 0; index < this.doctor_advices.length; index++) {
  646. // this.doctor_advices[index]['isShow'] = 2
  647. // }
  648. // if (this.doctor_advices.length > 0) {
  649. // var group = this.newAdviceGroupObject()
  650. // var initGroupBlock = function(group, advice) {
  651. // group.group_no = advice.groupno
  652. // }
  653. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  654. // var new_advice_index = 0
  655. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  656. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  657. // var doctor_advice = {
  658. // delivery_way: this.doctor_advices[index].delivery_way,
  659. // execution_frequency: this.doctor_advices[index].execution_frequency,
  660. // groupno: this.doctor_advices[index].groupno,
  661. // id: this.doctor_advices[index].id,
  662. // parent_id: this.doctor_advices[index].parent_id,
  663. // children: this.doctor_advices[index].children,
  664. // remark: this.doctor_advices[index].remark,
  665. // execution_staff: this.doctor_advices[index].execution_staff,
  666. // checker: this.doctor_advices[index].checker,
  667. // advice_doctor: this.doctor_advices[index].advice_doctor,
  668. // }
  669. // doctor_advice['isShow'] = 1
  670. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  671. // // this.doctor_advices.push(doctor_advice)
  672. // }
  673. // }
  674. // for (let index = 0; index < this.doctor_advices.length; index++) {
  675. // const advice = this.doctor_advices[index]
  676. // if (advice.groupno == 0) {
  677. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  678. // if (advice.parent_id > 0) {
  679. // if (this.advice_groups.length > 0) {
  680. // var parent_group = this.advice_groups[
  681. // this.advice_groups.length - 1
  682. // ]
  683. // if (parent_group.advices.length > 0) {
  684. // if (parent_group.advices[0].id == advice.parent_id) {
  685. // parent_group.advices.push(advice)
  686. // }
  687. // }
  688. // }
  689. // continue
  690. // } else {
  691. // if (group.group_no > 0) {
  692. // this.advice_groups.push(group)
  693. // group = this.newAdviceGroupObject()
  694. // }
  695. // initGroupBlock(group, advice)
  696. // group.advices.push(advice)
  697. // this.advice_groups.push(group)
  698. // group = this.newAdviceGroupObject()
  699. // continue
  700. // }
  701. // }
  702. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  703. // this.advice_groups.push(group)
  704. // group = this.newAdviceGroupObject()
  705. // }
  706. // if (group.group_no == 0) {
  707. // initGroupBlock(group, advice)
  708. // }
  709. // if (group.group_no == advice.groupno) {
  710. // group.advices.push(advice)
  711. // }
  712. // }
  713. // if (group.group_no > 0) {
  714. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  715. // this.advice_groups.push(group)
  716. // }
  717. // }
  718. // console.log(this.advice_groups)
  719. } else {
  720. this.loading = false;
  721. this.$message.error("请求数据失败");
  722. return false;
  723. }
  724. });
  725. },
  726. bloodAccessParOperaName(id) {
  727. if (id in this.bloodAccessParOpera) {
  728. return this.bloodAccessParOpera[id].name;
  729. }
  730. return "";
  731. },
  732. dialysateFormulationName(id) {
  733. if (id in this.dialysateFormulationOptions) {
  734. return this.dialysateFormulationOptions[id].name;
  735. }
  736. return "";
  737. },
  738. getAge: function(val) {
  739. if (
  740. this.org_template_info.template_id == 2 ||
  741. this.org_template_info.template_id == 0
  742. ) {
  743. if (val.age == 0) {
  744. return jsGetAge(val.birth, "-");
  745. } else {
  746. return val.age;
  747. }
  748. } else {
  749. return jsGetAge(val.birth, "-");
  750. }
  751. },
  752. newAdviceGroupObject: function() {
  753. return Object.assign(
  754. {},
  755. {
  756. group_no: 0,
  757. // advice_doctor: 0,
  758. // start_time: 0,
  759. advices: []
  760. // exec_staff: 0,
  761. // exec_time: 0,
  762. // checker: 0,
  763. }
  764. );
  765. }
  766. },
  767. watch: {
  768. "patientInfo.gender": function() {
  769. if (this.patientInfo.gender == 1) {
  770. this.patientInfo_gender_1 = true;
  771. this.patientInfo_gender_2 = false;
  772. } else if (this.patientInfo.gender == 2) {
  773. this.patientInfo_gender_2 = true;
  774. this.patientInfo_gender_1 = false;
  775. } else {
  776. this.patientInfo_gender_2 = false;
  777. this.patientInfo_gender_1 = false;
  778. }
  779. },
  780. "patientInfo.source": function() {
  781. if (this.patientInfo.source == 1) {
  782. this.patientInfo_source_1 = true;
  783. this.patientInfo_source_2 = false;
  784. } else if (this.patientInfo.source == 2) {
  785. this.patientInfo_source_2 = true;
  786. this.patientInfo_source_1 = false;
  787. } else {
  788. this.patientInfo_source_2 = false;
  789. this.patientInfo_source_1 = false;
  790. }
  791. }
  792. },
  793. created() {
  794. var xtuser = this.$store.getters.xt_user;
  795. this.orgname = xtuser.org.org_name;
  796. // this.orgname = "遂溪方济医院";
  797. this.modeOptions = this.$store.getters.treatment_mode;
  798. this.replacementWays = this.$store.getters.replacement_ways;
  799. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  800. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  801. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  802. var bloodAccessParOpera = getDataConfig(
  803. "hemodialysis",
  804. "vascular_access_desc"
  805. );
  806. for (var key in bloodAccessParOpera) {
  807. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  808. bloodAccessParOpera[key];
  809. }
  810. var dialysateFormulationOptions = getDataConfig(
  811. "hemodialysis",
  812. "dialysate_formulation"
  813. );
  814. for (var key in dialysateFormulationOptions) {
  815. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  816. dialysateFormulationOptions[key];
  817. }
  818. const xtdate = this.$route.query && this.$route.query.xtdate;
  819. const xtno = this.$route.query && this.$route.query.xtno;
  820. if (
  821. typeof xtdate === "string" &&
  822. xtdate.length > 0 &&
  823. typeof xtno === "string" &&
  824. xtno.length > 0
  825. ) {
  826. this.queryParams.xtdate = xtdate;
  827. this.queryParams.xtno = xtno;
  828. this.getDialysisRecord();
  829. } else {
  830. this.$message.error("参数不齐");
  831. return false;
  832. }
  833. }
  834. };
  835. </script>
  836. <style>
  837. .dialysis-print-order {
  838. width: 960px;
  839. margin: 0 auto;
  840. }
  841. .dialysis-print-order .order-yy-name {
  842. margin: auto;
  843. text-align: center;
  844. font-size: 20px;
  845. letter-spacing: 5px;
  846. }
  847. .dialysis-print-order .order-title {
  848. margin: auto;
  849. font-weight: 600;
  850. text-align: center;
  851. font-size: 22px;
  852. padding: 10px;
  853. }
  854. .dialysis-print-order .table-box {
  855. width: 100%;
  856. line-height: 23px;
  857. font-size: 14px;
  858. }
  859. .dialysis-print-order .print-table {
  860. width: 100%;
  861. text-align: center;
  862. border-collapse: collapse;
  863. line-height: 40px;
  864. font-size: 14px;
  865. }
  866. .dialysis-print-order .print-table-no {
  867. width: 100%;
  868. text-align: center;
  869. border-collapse: collapse;
  870. font-size: 14px;
  871. }
  872. .dialysis-print-order .under-line {
  873. border-bottom: 1px solid #999;
  874. width: 95%;
  875. text-align: center;
  876. margin-left: 2px;
  877. }
  878. .dialysis-print-order .title-box {
  879. text-align: center;
  880. font-size: 16px;
  881. }
  882. .dialysis-print-order .radio-lebel-box {
  883. font-weight: 400;
  884. cursor: pointer;
  885. }
  886. .dialysis-print-order .radio-no {
  887. opacity: 0;
  888. outline: none;
  889. position: absolute;
  890. margin: 0;
  891. width: 0;
  892. height: 0;
  893. z-index: -1;
  894. }
  895. .dialysis-print-order .radio-inner {
  896. white-space: nowrap;
  897. cursor: pointer;
  898. outline: none;
  899. display: inline-block;
  900. line-height: 1;
  901. position: relative;
  902. vertical-align: middle;
  903. }
  904. .dialysis-print-order .radio-fang {
  905. display: inline-block;
  906. position: relative;
  907. border: 1px solid #000;
  908. box-sizing: border-box;
  909. width: 14px;
  910. height: 14px;
  911. background-color: #fff;
  912. z-index: 1;
  913. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  914. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  915. }
  916. .dialysis-print-order .is-checked-radio::after {
  917. content: "√";
  918. font-size: 15px;
  919. }
  920. .dialysis-print-order .print-table-no tr td {
  921. padding: 8px 5px;
  922. line-height: 25px;
  923. }
  924. .dialysis-print-order .print-table tr td {
  925. padding: 1px 1px;
  926. /*line-height: 25px;*/
  927. }
  928. .es-img {
  929. height: 30px;
  930. }
  931. .advice-name {
  932. text-align: left;
  933. }
  934. .advice-children {
  935. display: flex;
  936. }
  937. .title-box-pro {
  938. border: 0 #fff;
  939. line-height: 25px;
  940. height: 25px;
  941. text-align: left;
  942. padding-left: 10px !important;
  943. }
  944. .title-box-pro-tr {
  945. border: 0 #fff;
  946. }
  947. .text-align-left {
  948. text-align: left !important;
  949. padding-left: 10px !important;
  950. font-size: 14px !important;
  951. line-height: 25px;
  952. }
  953. .print-table-tr-new td {
  954. line-height: 20px !important;
  955. }
  956. .border-top-solid {
  957. border: solid 1px #000;
  958. }
  959. .print-template-two tr {
  960. line-height: 30px;
  961. }
  962. </style>