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

printOne.vue 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs" style="flex:1;"></bread-crumb>
  5. <el-row style="float: right;margin-right: 20px;">
  6. <el-col :span="24">
  7. <el-button
  8. size="small"
  9. type="success"
  10. @click="hiddenBtn"
  11. >{{hiddenText}}</el-button
  12. >
  13. </el-col>
  14. </el-row>
  15. <el-row style="float: right">
  16. <el-col :span="24">
  17. <el-button
  18. size="small"
  19. icon="el-icon-printer"
  20. type="primary"
  21. @click="printAction"
  22. >打印</el-button
  23. >
  24. </el-col>
  25. </el-row>
  26. </div>
  27. <div class="app-container" style="background-color: white">
  28. <div id="print_content">
  29. <div
  30. class="print_main_content"
  31. v-for="(item, index) in tableData"
  32. :key="index"
  33. >
  34. <div class="order_title_panl">
  35. <span class="main_title"
  36. >{{ getTimeOne(item.schedule_date) }}&nbsp;
  37. <span v-if="item.schedule_type == 1">上午</span>
  38. <span v-if="item.schedule_type == 2">下午</span>
  39. <span v-if="item.schedule_type == 3">晚上</span>
  40. </span>
  41. </div>
  42. <div class="table_panel">
  43. <table class="table">
  44. <thead>
  45. <tr>
  46. <td :width="td_1_width">分区</td>
  47. <td :width="td_3_width">病人姓名</td>
  48. <td :width="td_3_width" v-if="hiddenFlag == false">统计</td>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. <tr v-for="(it, i) in item.zones" :key="i">
  53. <td :width="td_1_width">
  54. <span v-if="hiddenFlag == false">总人数: {{getZonePatient(it.partition_id,item.schedule_type)}}<span v-if="getZonePatient(it.partition_id,item.schedule_type)>0">人</span><br/></span>
  55. {{ getZoneName(it.partition_id) }}
  56. </td>
  57. <td :width="td_3_width" valign="top">
  58. <div style="min-height: 80px">
  59. <div class="proj">
  60. <div class="proj_item" style="font-size:20px">
  61. <p v-html="getPatientName(item.schedule_type,it.partition_id)" class="zone_name" style="font-size:20px">
  62. </p>
  63. </div>
  64. </div>
  65. </div>
  66. </td>
  67. <td :width="td_3_width" v-if="hiddenFlag == false">
  68. <span v-if="getMonPatient(it.partition_id)>0 || getMonAfterPatient(it.partition_id)>0 || getNightPatient(it.partition_id) >0"></span>血滤(HDF):<br>
  69. <span v-if="getMonPatient(it.partition_id)>0 && item.schedule_type == 1">上午:{{getMonPatient(it.partition_id)}}人</span><br>
  70. <span v-if="item.schedule_type ==1"> {{getMonPatientName(it.partition_id)}} </span><br>
  71. <span v-if="getMonAfterPatient(it.partition_id)>0 && item.schedule_type == 2">下午:{{getMonAfterPatient(it.partition_id)}}人</span> <br>
  72. <span v-if="item.schedule_type == 2"> {{getMonAfterPatientName(it.partition_id) }}</span> <br>
  73. <span v-if="getNightPatient(it.partition_id) >0 && item.schedule_type == 3">晚上:{{getNightPatient(it.partition_id)}}人 </span> <br>
  74. <span v-if="item.schedule_type == 3"> {{getNightPatientName(it.partition_id) }}</span>
  75. <br>
  76. <span v-if="getMonPatientOne(it.partition_id)>0 || getMonAfterPatientOne(it.partition_id)>0 || getNightPatientOne(it.partition_id) >0">灌流(HD+HP):</span><br>
  77. <span v-if="getMonPatientOne(it.partition_id)>0 && item.schedule_type == 1">上午:{{getMonPatientOne(it.partition_id)}}人</span><br>
  78. <span v-if="item.schedule_type == 1"> {{getMonPatientNameOne(it.partition_id)}}</span> <br>
  79. <span v-if="getMonAfterPatientOne(it.partition_id)>0 && item.schedule_type == 2">下午:{{getMonAfterPatientOne(it.partition_id)}}人</span> <br>
  80. <span v-if="item.schedule_type == 2">{{getMonAfterPatientNameOne(it.partition_id) }} </span> <br>
  81. <span v-if="getNightPatientOne(it.partition_id) >0 && item.schedule_type == 3">晚上:{{getNightPatientOne(it.partition_id)}}人 </span> <br>
  82. <span v-if="item.schedule_type == 3">{{getNightPatientNameOne(it.partition_id) }}</span>
  83. </td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </template>
  93. <script>
  94. import { GetAllZone, getSchedualPrintList } from '@/api/dialysis'
  95. import { parseTime } from '@/utils'
  96. import { uParseTime } from '@/utils/tools'
  97. import { getDataConfig } from '@/utils/data'
  98. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  99. import print from 'print-js'
  100. export default {
  101. name: 'SchedulePrint',
  102. data() {
  103. return {
  104. crumbs: [
  105. { path: false, name: '排班管理' },
  106. { path: false, name: '排班打印' }
  107. ],
  108. td_1_width: '8%',
  109. td_2_width: '8%',
  110. td_3_width: '64%',
  111. td_4_width: '20%',
  112. month: 1,
  113. hiddenFlag: false,
  114. hiddenText: '隐藏备注',
  115. begin_day: 1,
  116. schedules: [
  117. {
  118. day: 1,
  119. weekday: '星期一',
  120. all: {
  121. am: {
  122. /* zone_name: [ schedule, ... ] */
  123. },
  124. pm: {
  125. /* zone_name: [ schedule, ... ] */
  126. },
  127. evening: {
  128. /* zone_name: [ schedule, ... ] */
  129. }
  130. },
  131. hdf: [
  132. /* schedule, ... */
  133. ],
  134. hd_hp: [
  135. /* schedule, ... */
  136. ],
  137. new_hdf: {
  138. am: {
  139. /* zone_name: [ schedule, ... ] */
  140. },
  141. pm: {
  142. /* zone_name: [ schedule, ... ] */
  143. },
  144. evening: {
  145. /* zone_name: [ schedule, ... ] */
  146. }
  147. },
  148. new_hd_hp: {
  149. am: {
  150. /* zone_name: [ schedule, ... ] */
  151. },
  152. pm: {
  153. /* zone_name: [ schedule, ... ] */
  154. },
  155. evening: {
  156. /* zone_name: [ schedule, ... ] */
  157. }
  158. }
  159. },
  160. {
  161. day: 2,
  162. weekday: '星期二',
  163. all: {
  164. am: {
  165. /* zone_name: [ schedule, ... ] */
  166. },
  167. pm: {
  168. /* zone_name: [ schedule, ... ] */
  169. },
  170. evening: {
  171. /* zone_name: [ schedule, ... ] */
  172. }
  173. },
  174. hdf: [
  175. /* schedule, ... */
  176. ],
  177. hd_hp: [
  178. /* schedule, ... */
  179. ],
  180. new_hdf: {
  181. am: {
  182. /* zone_name: [ schedule, ... ] */
  183. },
  184. pm: {
  185. /* zone_name: [ schedule, ... ] */
  186. },
  187. evening: {
  188. /* zone_name: [ schedule, ... ] */
  189. }
  190. },
  191. new_hd_hp: {
  192. am: {
  193. /* zone_name: [ schedule, ... ] */
  194. },
  195. pm: {
  196. /* zone_name: [ schedule, ... ] */
  197. },
  198. evening: {
  199. /* zone_name: [ schedule, ... ] */
  200. }
  201. }
  202. },
  203. {
  204. day: 3,
  205. weekday: '星期三',
  206. all: {
  207. am: {
  208. /* zone_name: [ schedule, ... ] */
  209. },
  210. pm: {
  211. /* zone_name: [ schedule, ... ] */
  212. },
  213. evening: {
  214. /* zone_name: [ schedule, ... ] */
  215. }
  216. },
  217. hdf: [
  218. /* schedule, ... */
  219. ],
  220. hd_hp: [
  221. /* schedule, ... */
  222. ],
  223. new_hdf: {
  224. am: {
  225. /* zone_name: [ schedule, ... ] */
  226. },
  227. pm: {
  228. /* zone_name: [ schedule, ... ] */
  229. },
  230. evening: {
  231. /* zone_name: [ schedule, ... ] */
  232. }
  233. },
  234. new_hd_hp: {
  235. am: {
  236. /* zone_name: [ schedule, ... ] */
  237. },
  238. pm: {
  239. /* zone_name: [ schedule, ... ] */
  240. },
  241. evening: {
  242. /* zone_name: [ schedule, ... ] */
  243. }
  244. }
  245. },
  246. {
  247. day: 4,
  248. weekday: '星期四',
  249. all: {
  250. am: {
  251. /* zone_name: [ schedule, ... ] */
  252. },
  253. pm: {
  254. /* zone_name: [ schedule, ... ] */
  255. },
  256. evening: {
  257. /* zone_name: [ schedule, ... ] */
  258. }
  259. },
  260. hdf: [
  261. /* schedule, ... */
  262. ],
  263. hd_hp: [
  264. /* schedule, ... */
  265. ],
  266. new_hdf: {
  267. am: {
  268. /* zone_name: [ schedule, ... ] */
  269. },
  270. pm: {
  271. /* zone_name: [ schedule, ... ] */
  272. },
  273. evening: {
  274. /* zone_name: [ schedule, ... ] */
  275. }
  276. },
  277. new_hd_hp: {
  278. am: {
  279. /* zone_name: [ schedule, ... ] */
  280. },
  281. pm: {
  282. /* zone_name: [ schedule, ... ] */
  283. },
  284. evening: {
  285. /* zone_name: [ schedule, ... ] */
  286. }
  287. }
  288. },
  289. {
  290. day: 5,
  291. weekday: '星期五',
  292. all: {
  293. am: {
  294. /* zone_name: [ schedule, ... ] */
  295. },
  296. pm: {
  297. /* zone_name: [ schedule, ... ] */
  298. },
  299. evening: {
  300. /* zone_name: [ schedule, ... ] */
  301. }
  302. },
  303. hdf: [
  304. /* schedule, ... */
  305. ],
  306. hd_hp: [
  307. /* schedule, ... */
  308. ],
  309. new_hdf: {
  310. am: {
  311. /* zone_name: [ schedule, ... ] */
  312. },
  313. pm: {
  314. /* zone_name: [ schedule, ... ] */
  315. },
  316. evening: {
  317. /* zone_name: [ schedule, ... ] */
  318. }
  319. },
  320. new_hd_hp: {
  321. am: {
  322. /* zone_name: [ schedule, ... ] */
  323. },
  324. pm: {
  325. /* zone_name: [ schedule, ... ] */
  326. },
  327. evening: {
  328. /* zone_name: [ schedule, ... ] */
  329. }
  330. }
  331. },
  332. {
  333. day: 6,
  334. weekday: '星期六',
  335. all: {
  336. am: {
  337. /* zone_name: [ schedule, ... ] */
  338. },
  339. pm: {
  340. /* zone_name: [ schedule, ... ] */
  341. },
  342. evening: {
  343. /* zone_name: [ schedule, ... ] */
  344. }
  345. },
  346. hdf: [
  347. /* schedule, ... */
  348. ],
  349. hd_hp: [
  350. /* schedule, ... */
  351. ],
  352. new_hdf: {
  353. am: {
  354. /* zone_name: [ schedule, ... ] */
  355. },
  356. pm: {
  357. /* zone_name: [ schedule, ... ] */
  358. },
  359. evening: {
  360. /* zone_name: [ schedule, ... ] */
  361. }
  362. },
  363. new_hd_hp: {
  364. am: {
  365. /* zone_name: [ schedule, ... ] */
  366. },
  367. pm: {
  368. /* zone_name: [ schedule, ... ] */
  369. },
  370. evening: {
  371. /* zone_name: [ schedule, ... ] */
  372. }
  373. }
  374. },
  375. {
  376. day: 7,
  377. weekday: '星期日',
  378. all: {
  379. am: {
  380. /* zone_name: [ schedule, ... ] */
  381. },
  382. pm: {
  383. /* zone_name: [ schedule, ... ] */
  384. },
  385. evening: {
  386. /* zone_name: [ schedule, ... ] */
  387. }
  388. },
  389. hdf: [
  390. /* schedule, ... */
  391. ],
  392. hd_hp: [
  393. /* schedule, ... */
  394. ],
  395. new_hdf: {
  396. am: {
  397. /* zone_name: [ schedule, ... ] */
  398. },
  399. pm: {
  400. /* zone_name: [ schedule, ... ] */
  401. },
  402. evening: {
  403. /* zone_name: [ schedule, ... ] */
  404. }
  405. },
  406. new_hd_hp: {
  407. am: {
  408. /* zone_name: [ schedule, ... ] */
  409. },
  410. pm: {
  411. /* zone_name: [ schedule, ... ] */
  412. },
  413. evening: {
  414. /* zone_name: [ schedule, ... ] */
  415. }
  416. }
  417. }
  418. ],
  419. total: [],
  420. list: [],
  421. schedule_date: '',
  422. schedule_type: 0,
  423. partition_type: 0,
  424. keywords: '',
  425. loading: false,
  426. tableData: [],
  427. numberList: [],
  428. partitionArr: []
  429. }
  430. },
  431. components: {
  432. BreadCrumb
  433. },
  434. created() {
  435. var date = new Date().getTime()
  436. if (this.$route.query.date) {
  437. date = this.$route.query.date
  438. }
  439. var date_str = parseTime(date, '{y}-{m}-{d}')
  440. this.month = parseInt(parseTime(date, '{m}'))
  441. this.getAllZone()
  442. this.getlist()
  443. },
  444. methods: {
  445. hiddenBtn() {
  446. if (this.hiddenFlag) {
  447. this.hiddenFlag = false
  448. this.hiddenText = '隐藏备注'
  449. } else {
  450. this.hiddenFlag = true
  451. this.hiddenText = '显示备注'
  452. }
  453. },
  454. getAllZone() {
  455. GetAllZone().then((response) => {
  456. if (response.data.state == 0) {
  457. this.$message.error(response.data.msg)
  458. return false
  459. } else {
  460. this.partitionArr = response.data.data.zone
  461. }
  462. })
  463. },
  464. getlist() {
  465. var params = {
  466. schedule_date: this.$route.query.schedule_date,
  467. schedule_type: parseInt(this.$route.query.schedule_type),
  468. partition_type: parseInt(this.$route.query.partition_type),
  469. keywords: this.$route.query.keywords,
  470. page: 1,
  471. limit: 5000
  472. }
  473. this.loading = true
  474. this.tableData = []
  475. getSchedualPrintList(params).then((response) => {
  476. if (response.data.state == 1) {
  477. this.loading = false
  478. console.log('111111',response.data.data);
  479. var list = response.data.data.list
  480. this.list = list
  481. var listOne = response.data.data.listOne
  482. if (list != null && list.length > 0) {
  483. const dataInfo = {}
  484. list.forEach((item, index) => {
  485. const { schedule_type } = item
  486. if (!dataInfo[schedule_type]) {
  487. dataInfo[schedule_type] = {
  488. schedule_type: item.schedule_type,
  489. schedule_date: item.schedule_date,
  490. zones: []
  491. }
  492. }
  493. })
  494. const arr = Object.values(dataInfo)
  495. console.log('arr222', arr)
  496. if (arr != null && arr.length > 0) {
  497. for (let i = 0; i < arr.length; i++) {
  498. for (let j = 0; j < listOne.length; j++) {
  499. if (arr[i].schedule_type == listOne[j].schedule_type) {
  500. arr[i].zones.push(listOne[j])
  501. }
  502. }
  503. }
  504. }
  505. console.log('排班数据------------------', arr)
  506. this.tableData = arr
  507. }
  508. this.numberList = response.data.data.numberList
  509. console.log('list2332233232wo', list)
  510. console.log('numberList', this.numberList)
  511. }
  512. })
  513. },
  514. getTimeOne(val) {
  515. if (val == '') {
  516. return ''
  517. } else {
  518. return uParseTime(val, '{y}-{m}-{d}')
  519. }
  520. },
  521. getPatientNum(week, type) {
  522. if (week == '星期一') {
  523. week = 1
  524. } else if (week == '星期二') {
  525. week = 2
  526. } else if (week == '星期三') {
  527. week = 3
  528. } else if (week == '星期四') {
  529. week = 4
  530. } else if (week == '星期五') {
  531. week = 5
  532. } else if (week == '星期六') {
  533. week = 6
  534. } else if (week == '星期日') {
  535. week = 7
  536. }
  537. let num = 0
  538. this.total.map((item) => {
  539. if (item.schedule_week == week && item.schedule_type == type) {
  540. num = item.Count
  541. }
  542. })
  543. return num
  544. },
  545. patient_names: function(schedules) {
  546. var names = []
  547. for (let index = 0; index < schedules.length; index++) {
  548. const schedule = schedules[index]
  549. console.log(schedule)
  550. names.push(schedule.patient.name)
  551. }
  552. const obj = {}
  553. names = names.reduce((cur, next) => {
  554. obj[next] ? '' : (obj[next] = true && cur.push(next))
  555. return cur
  556. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  557. console.log('names', names)
  558. return names.join('、')
  559. },
  560. patient_other_names: function(schedules) {
  561. const am = []
  562. const pm = []
  563. const evening = []
  564. var names = []
  565. for (let index = 0; index < schedules.length; index++) {
  566. const schedule = schedules[index]
  567. console.log(schedule)
  568. names.push(schedule.patient.name)
  569. if (schedule.schedule_type == 1) {
  570. am.push(schedule.patient.name)
  571. } else if (schedule.schedule_type == 2) {
  572. pm.push(schedule.patient.name)
  573. } else if (schedule.schedule_type == 3) {
  574. evening.push(schedule.patient.name)
  575. }
  576. }
  577. const obj = {}
  578. names = names.reduce((cur, next) => {
  579. obj[next] ? '' : (obj[next] = true && cur.push(next))
  580. return cur
  581. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  582. var str = ''
  583. if (am.length > 0) {
  584. str =
  585. '上午:' +
  586. am.length +
  587. '人' +
  588. '<br/>' +
  589. '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' +
  590. am.join('、') +
  591. '<br/>'
  592. }
  593. if (pm.length > 0) {
  594. str =
  595. str +
  596. '下午:' +
  597. pm.length +
  598. '人' +
  599. '<br/>' +
  600. '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' +
  601. pm.join('、') +
  602. '<br/>'
  603. }
  604. if (evening.length > 0) {
  605. str =
  606. str +
  607. '晚上:' +
  608. evening.length +
  609. '人' +
  610. '<br/>' +
  611. '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' +
  612. evening.join('、')
  613. }
  614. return str
  615. },
  616. printAction: function() {
  617. const style =
  618. '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 20px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 20px; line-height: 20px; } .zone_name { font-weight: 500; } }'
  619. printJS({
  620. printable: 'print_content',
  621. type: 'html',
  622. documentTitle: ' ',
  623. style: style,
  624. scanStyles: false
  625. })
  626. },
  627. getPatientName(schedule_type, partition_id) {
  628. var str = ''
  629. var arr = []
  630. if (this.list != null && this.list.length > 0) {
  631. for (let i = 0; i < this.list.length; i++) {
  632. if (this.list[i].schedule_type == schedule_type && this.list[i].partition_id == partition_id) {
  633. arr.push(this.list[i])
  634. }
  635. }
  636. }
  637. if (arr.length > 0) {
  638. for (let i = 0; i < arr.length; i++) {
  639. arr[i].name = this.nameSplit(arr[i].name)
  640. if (this.hiddenFlag) {
  641. str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
  642. } else {
  643. str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + ' ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + ' ' + '排班备注:' + arr[i].order.schedule_remark + ')<br/>'
  644. }
  645. }
  646. }
  647. console.log(str, 'strstrstr')
  648. return str.slice(0, str.length - 1)
  649. },
  650. // 切割患者姓名
  651. nameSplit(val) {
  652. var reg = /[\u4e00-\u9fa5]/g
  653. let name = val
  654. name = name.substr(-4)
  655. var names = name.match(reg)
  656. name = names.join('')
  657. if (name.includes('区')) {
  658. name = name.replace('区', '')
  659. }
  660. if (name.includes('号')) {
  661. name = name.replace('号', '')
  662. }
  663. return name
  664. },
  665. getZoneName(id) {
  666. var name = ''
  667. for (let i = 0; i < this.partitionArr.length; i++) {
  668. if (id == this.partitionArr[i].id) {
  669. name = this.partitionArr[i].name
  670. }
  671. }
  672. return name
  673. },
  674. getBloodAccess(id) {
  675. var name = ''
  676. var list = getDataConfig(
  677. 'hemodialysis',
  678. 'vascular_access_desc'
  679. )
  680. for (let i = 0; i < list.length; i++) {
  681. if (id == list[i].id) {
  682. name = list[i].name
  683. }
  684. }
  685. return name
  686. },
  687. getZonePatient(partition_id,schedule_type){
  688. var arr = []
  689. if(this.list!=null && this.list.length >0){
  690. for(let i=0;i<this.list.length;i++){
  691. if(partition_id == this.list[i].partition_id && schedule_type == this.list[i].schedule_type){
  692. arr.push(this.list[i])
  693. }
  694. }
  695. }
  696. if(arr.length >0){
  697. return arr.length
  698. }else{
  699. return ""
  700. }
  701. },
  702. getMonPatient(partition_id){
  703. var arr = []
  704. if(this.list!=null && this.list.length >0){
  705. for(let i=0;i<this.list.length;i++){
  706. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==1){
  707. arr.push(this.list[i])
  708. }
  709. }
  710. }
  711. if(arr.length >0){
  712. return arr.length
  713. }else{
  714. return ""
  715. }
  716. },
  717. getMonPatientOne(partition_id){
  718. var arr = []
  719. if(this.list!=null && this.list.length >0){
  720. for(let i=0;i<this.list.length;i++){
  721. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==1){
  722. arr.push(this.list[i])
  723. }
  724. }
  725. }
  726. if(arr.length >0){
  727. return arr.length
  728. }else{
  729. return ""
  730. }
  731. },
  732. getMonPatientName(partition_id){
  733. var arr = []
  734. if(this.list!=null && this.list.length >0){
  735. for(let i=0;i<this.list.length;i++){
  736. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==1){
  737. arr.push(this.list[i].name)
  738. }
  739. }
  740. }
  741. if(arr.length >0){
  742. var str = arr.join(",")
  743. return str
  744. }else{
  745. return ""
  746. }
  747. },
  748. getMonPatientNameOne(partition_id){
  749. var arr = []
  750. if(this.list!=null && this.list.length >0){
  751. for(let i=0;i<this.list.length;i++){
  752. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==1){
  753. arr.push(this.list[i].name)
  754. }
  755. }
  756. }
  757. if(arr.length >0){
  758. var str = arr.join(",")
  759. return str
  760. }else{
  761. return ""
  762. }
  763. },
  764. getMonAfterPatient(partition_id){
  765. var arr = []
  766. if(this.list!=null && this.list.length >0){
  767. for(let i=0;i<this.list.length;i++){
  768. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==2){
  769. arr.push(this.list[i])
  770. }
  771. }
  772. }
  773. if(arr.length >0){
  774. return arr.length
  775. }else{
  776. return ""
  777. }
  778. },
  779. getMonAfterPatientOne(partition_id){
  780. var arr = []
  781. if(this.list!=null && this.list.length >0){
  782. for(let i=0;i<this.list.length;i++){
  783. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==2){
  784. arr.push(this.list[i])
  785. }
  786. }
  787. }
  788. if(arr.length >0){
  789. return arr.length
  790. }else{
  791. return ""
  792. }
  793. },
  794. getMonAfterPatientName(partition_id){
  795. var arr = []
  796. if(this.list!=null && this.list.length >0){
  797. for(let i=0;i<this.list.length;i++){
  798. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==2){
  799. arr.push(this.list[i].name)
  800. }
  801. }
  802. }
  803. if(arr.length >0){
  804. var str = arr.join(",")
  805. return str
  806. }else{
  807. return ""
  808. }
  809. },
  810. getMonAfterPatientNameOne(partition_id){
  811. var arr = []
  812. if(this.list!=null && this.list.length >0){
  813. for(let i=0;i<this.list.length;i++){
  814. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==2){
  815. arr.push(this.list[i].name)
  816. }
  817. }
  818. }
  819. if(arr.length >0){
  820. var str = arr.join(",")
  821. return str
  822. }else{
  823. return ""
  824. }
  825. },
  826. getNightPatient(partition_id){
  827. var arr = []
  828. if(this.list!=null && this.list.length >0){
  829. for(let i=0;i<this.list.length;i++){
  830. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==3){
  831. arr.push(this.list[i])
  832. }
  833. }
  834. }
  835. if(arr.length >0){
  836. return arr.length
  837. }else{
  838. return ""
  839. }
  840. },
  841. getNightPatientOne(partition_id){
  842. var arr = []
  843. if(this.list!=null && this.list.length >0){
  844. for(let i=0;i<this.list.length;i++){
  845. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==3){
  846. arr.push(this.list[i])
  847. }
  848. }
  849. }
  850. if(arr.length >0){
  851. return arr.length
  852. }else{
  853. return ""
  854. }
  855. },
  856. getNightPatientName(partition_id){
  857. var arr = []
  858. if(this.list!=null && this.list.length >0){
  859. for(let i=0;i<this.list.length;i++){
  860. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==3){
  861. arr.push(this.list[i].name)
  862. }
  863. }
  864. }
  865. if(arr.length >0){
  866. var str = arr.join(",")
  867. return str
  868. }else{
  869. return ""
  870. }
  871. },
  872. getNightPatientNameOne(partition_id){
  873. var arr = []
  874. if(this.list!=null && this.list.length >0){
  875. for(let i=0;i<this.list.length;i++){
  876. if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==3){
  877. arr.push(this.list[i].name)
  878. }
  879. }
  880. }
  881. if(arr.length >0){
  882. var str = arr.join(",")
  883. return str
  884. }else{
  885. return ""
  886. }
  887. }
  888. }
  889. }
  890. </script>
  891. <style rel="stylesheet/scss" lang="scss" scoped>
  892. .print_main_content {
  893. background-color: white;
  894. width: 960px;
  895. margin: 0 auto;
  896. padding: 0 0 20px 0;
  897. .order_title_panl {
  898. text-align: center;
  899. .main_title {
  900. font-size: 18px;
  901. line-height: 40px;
  902. font-weight: 500;
  903. }
  904. }
  905. .table_panel {
  906. .table {
  907. width: 100%;
  908. border: 1px solid;
  909. border-collapse: collapse;
  910. padding: 2px;
  911. thead {
  912. tr {
  913. td {
  914. border: 1px solid;
  915. text-align: center;
  916. font-size: 20px;
  917. padding: 15px 5px;
  918. }
  919. }
  920. }
  921. tbody {
  922. tr {
  923. td {
  924. border: 1px solid;
  925. text-align: center;
  926. font-size: 18px;
  927. padding: 10px 5px;
  928. .proj {
  929. padding: 5px 0;
  930. text-align: left;
  931. .proj_title {
  932. font-size: 16px;
  933. font-weight: 500;
  934. line-height: 25px;
  935. }
  936. .proj_item {
  937. font-size: 15px;
  938. line-height: 20px;
  939. .zone_name {
  940. font-weight: bold;
  941. }
  942. }
  943. }
  944. }
  945. }
  946. }
  947. }
  948. }
  949. }
  950. </style>