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

print.vue 50KB

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