dialysisPrintOrder.vue 58KB

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