Patientshift.vue 44KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs" style="flex:1;"></bread-crumb>
  5. </div>
  6. <div class="app-container" style="background-color: white">
  7. <div id="print_content">
  8. <div style="margin: 20px 0;">
  9. <div class="content_top">日期:
  10. <el-date-picker
  11. @change="date_picker"
  12. v-model="date"
  13. type="date"
  14. placeholder="选择日期">
  15. </el-date-picker>
  16. </div>
  17. <div class="content_top">排班班次:
  18. <el-select v-model="classes" placeholder="请选择" @change="banci_select">
  19. <el-option
  20. v-for="item in schedulArr"
  21. :key="item.value"
  22. :label="item.label"
  23. :value="item.value">
  24. </el-option>
  25. </el-select>
  26. </div>
  27. <div class="content_top">病区选择:
  28. <el-select v-model="bingqu" placeholder="请选择" @change="bingqu_select">
  29. <el-option
  30. v-for="item in partitionArr"
  31. :key="item.value"
  32. :label="item.name"
  33. :value="item.id">
  34. </el-option>
  35. </el-select>
  36. </div>
  37. <div class="content_top">隐藏备注:
  38. <el-switch
  39. v-model="hidder"
  40. active-color="#13ce66"
  41. inactive-color="#ff4949"
  42. active-text="ON"
  43. inactive-text="OFF">
  44. </el-switch>
  45. </div>
  46. </div>
  47. <div class="table_panel" v-for="(item, index) in tableData" :key="index">
  48. <table class="table">
  49. <thead>
  50. <tr>
  51. <td :width="td_1_width">分区</td>
  52. <td :width="td_3_width">病人姓名</td>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. <tr v-for="(ite,index) in item.zones" :key="index">
  57. <td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
  58. <td>
  59. <div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" >
  60. <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':hidder ? '30px': '110px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true" @dragover="allowDrop">
  61. <div class="huanzhekuai">
  62. <div v-for="(item2) in item.list" draggable="true" >
  63. <template >
  64. <div v-if="it.id==item2.bed_id" style="display: inline-block;">
  65. <div>
  66. <span>{{nameSplit(item2.name) }}({{ getmode(item2.mode_id) }})</span><br>
  67. <span v-if="!hidder" >
  68. <span style="font-size: 14px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
  69. <span style="font-size: 14px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
  70. <span style="font-size: 13px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
  71. </span>
  72. </div>
  73. </div>
  74. </template>
  75. </div>
  76. </div>
  77. </div>
  78. <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
  79. {{ it.number }}
  80. </div>
  81. </div>
  82. </td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. </div>
  87. <!-- 双击弹窗 -->
  88. <el-dialog
  89. title="提示"
  90. :visible.sync="centerDialogVisible"
  91. width="30%"
  92. center>
  93. <div>
  94. <div style="display: flex;">
  95. <div style="width:150px;margin-right: 10px;">
  96. <div style="margin: 10px 0;">分区
  97. <el-select v-model="fenqu_dialog" placeholder="请选择" @change="dialogfenqu">
  98. <el-option
  99. v-for="item in partitionArr"
  100. :key="item.value"
  101. :label="item.name"
  102. :value="item.id">
  103. </el-option>
  104. </el-select>
  105. </div>
  106. <div>床位
  107. <el-select v-model="chuangwei" placeholder="请选择" @change="dialogchuangwei">
  108. <el-option
  109. v-for="item in subzone"
  110. :key="item.value"
  111. :label="item.number"
  112. :value="item.id">
  113. </el-option>
  114. </el-select>
  115. </div>
  116. </div>
  117. <div style="width:350px">
  118. <div style="display: flex;">
  119. <div>
  120. <div style="margin: 10px 30px 10px 10px;background: rgb(74 211 235 / 51%);height: 110px;width: 125px;text-align: center;">
  121. <span >{{ huanzhe.name}}({{getmode(huanzhe.mode_id)}})</span><br>
  122. <span style="font-size: 14px;margin-bottom: 5px;">
  123. {{ huanzhe.zeng_fenqu }}-{{ huanzhe.zeng_chuang }}
  124. </span><br>
  125. <span style="font-size: 14px;margin-bottom: 5px;">{{getBloodAccess(huanzhe.boolen_id)}}</span><br>
  126. <span style="font-size: 13px;margin-bottom: 5px;">{{huanzhe.schedule_remark}}</span>
  127. </div>
  128. <div style="margin-left: 10px;">{{getZoneName(xian_fenqu.zone_id)}}-{{xian_fenqu.number}}</div>
  129. </div>
  130. <div>
  131. <div style="margin: 10px 30px 10px 10px;background: rgb(74 197 235);height: 110px;width: 125px;text-align: center;">
  132. <span >{{genghuan.name}}</span><span v-if="genghuan.mode_id !=''">({{genghuan.mode_id}})</span><br>
  133. <span style="font-size: 14px;margin-bottom: 5px;">
  134. {{ genghuan.genghuan_fenqu }}-{{ genghuan.genghuan_chuang }}
  135. <!-- A1区-6号床 -->
  136. </span><br>
  137. <span style="font-size: 14px;margin-bottom: 5px;"></span>{{getBloodAccess(genghuan.g_boolen_id)}}<br>
  138. <span style="font-size: 13px;margin-bottom: 5px;">{{genghuan.genghuan_remark}}</span>
  139. </div>
  140. <div style="margin-left: 10px;">{{getZoneName(g_xian_fenqu.zone_id)}}-{{g_xian_fenqu.number}}</div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <span slot="footer" class="dialog-footer">
  147. <el-button @click="centerDialogVisible = false">取 消</el-button>
  148. <el-button type="primary" @click="verify_dialog">确 定</el-button>
  149. </span>
  150. </el-dialog>
  151. <!-- 排班替换/交换提示弹窗 -->
  152. <el-dialog
  153. title="提示"
  154. :visible.sync="tipDialogVisible"
  155. width="300px"
  156. :modal-append-to-body='false'
  157. :close-on-click-modal="false"
  158. >
  159. <div>
  160. 所选位置已有排班,请选择操作
  161. </div>
  162. <span slot="footer" class="dialog-footer">
  163. <el-button
  164. type="danger"
  165. @click="tipDialogVisibleTwo = true"
  166. >替换</el-button>
  167. <el-button
  168. type="primary"
  169. @click="tipDialogVisibleThree = true"
  170. >交换</el-button>
  171. <el-button @click="tipDialogVisible = false">取 消</el-button>
  172. </span>
  173. </el-dialog>
  174. <!-- 排班替换 -->
  175. <el-dialog
  176. title="提示"
  177. :visible.sync="tipDialogVisibleTwo"
  178. width="300px"
  179. class="replace"
  180. :modal-append-to-body='false'
  181. :close-on-click-modal="false"
  182. >
  183. <div>
  184. 是否将此位置排班替换
  185. </div>
  186. <span slot="footer" class="dialog-footer">
  187. <el-button
  188. type="primary"
  189. @click="coverSch()"
  190. >确定</el-button>
  191. <el-button @click="tipDialogVisibleTwo = false">取 消</el-button>
  192. </span>
  193. </el-dialog>
  194. <!-- 将此位置排班互换 -->
  195. <el-dialog
  196. title="提示"
  197. :visible.sync="tipDialogVisibleThree"
  198. width="300px"
  199. class="exchange"
  200. :modal-append-to-body='false'
  201. :close-on-click-modal="false"
  202. >
  203. <div>
  204. 是否将此位置排班互换
  205. </div>
  206. <span slot="footer" class="dialog-footer">
  207. <el-button
  208. type="primary"
  209. @click="changeSchTwo()"
  210. >确定</el-button>
  211. <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
  212. </span>
  213. </el-dialog>
  214. </div>
  215. </div>
  216. </div>
  217. </template>
  218. <script>
  219. import { GetAllZone, getSchedualPrintList } from '@/api/dialysis'
  220. import { parseTime } from '@/utils'
  221. import { uParseTime } from '@/utils/tools'
  222. import { getDataConfig } from '@/utils/data'
  223. import {CreateScheduleTwo} from '@/api/schedule'
  224. import {CoverSch,ExchangeSch,} from "@/api/schedule_template/sch_template";
  225. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  226. import print from 'print-js'
  227. const moment = require('moment')
  228. // import {getAllZones} from "@/api/schedule"
  229. export default {
  230. name: 'SchedulePrint',
  231. data() {
  232. return {
  233. crumbs: [
  234. { path: false, name: '排班管理' },
  235. { path: false, name: '患者调班' }
  236. ],
  237. tipDialogVisible:false,
  238. tipDialogVisibleTwo:false,
  239. tipDialogVisibleThree:false,
  240. hidder: true,
  241. td_1_width: '8%',
  242. td_3_width: '90%',
  243. date:'',
  244. classes:1,
  245. bingqu:0,
  246. fenqu_dialog:0,
  247. chuangwei:519,
  248. options:[],
  249. centerDialogVisible:false,
  250. cur_drag_info:{
  251. id:'',
  252. name:'',
  253. quhao:'',
  254. chaung:'',
  255. patient_id:'',
  256. },
  257. currentData:{
  258. currentData_id:'',
  259. currentData_name:'',
  260. currentData_quhao:'',
  261. currentData_chaung:'',
  262. patient_id:'',
  263. bed_id:'',
  264. mode_id:'',
  265. partition_id:'',
  266. schedule_date:'',
  267. schedule_type:'',
  268. schedule_week: '',
  269. },
  270. // 交换空白时数据
  271. schedule:{
  272. schedule_date:'',
  273. schedule_type:'',
  274. bed_id:'',
  275. partition_id:'',
  276. schedule_week:'',
  277. mode_id:'',
  278. bed_name:'',
  279. contagions:'',
  280. id:0,
  281. partition_type:'',
  282. patient:'',
  283. patient_id:'',
  284. type_name:'',
  285. zone_name:''
  286. },
  287. schedulArr: [
  288. { value: 1, label: "上午" },
  289. { value: 2, label: "下午" },
  290. { value: 3, label: "晚上" }
  291. ],
  292. zones:[],
  293. schedules: [
  294. {
  295. day: 1,
  296. weekday: '星期一',
  297. all: {
  298. am: {
  299. /* zone_name: [ schedule, ... ] */
  300. },
  301. pm: {
  302. /* zone_name: [ schedule, ... ] */
  303. },
  304. evening: {
  305. /* zone_name: [ schedule, ... ] */
  306. }
  307. },
  308. hdf: [
  309. /* schedule, ... */
  310. ],
  311. hd_hp: [
  312. /* schedule, ... */
  313. ],
  314. new_hdf: {
  315. am: {
  316. /* zone_name: [ schedule, ... ] */
  317. },
  318. pm: {
  319. /* zone_name: [ schedule, ... ] */
  320. },
  321. evening: {
  322. /* zone_name: [ schedule, ... ] */
  323. }
  324. },
  325. new_hd_hp: {
  326. am: {
  327. /* zone_name: [ schedule, ... ] */
  328. },
  329. pm: {
  330. /* zone_name: [ schedule, ... ] */
  331. },
  332. evening: {
  333. /* zone_name: [ schedule, ... ] */
  334. }
  335. }
  336. },
  337. {
  338. day: 2,
  339. weekday: '星期二',
  340. all: {
  341. am: {
  342. /* zone_name: [ schedule, ... ] */
  343. },
  344. pm: {
  345. /* zone_name: [ schedule, ... ] */
  346. },
  347. evening: {
  348. /* zone_name: [ schedule, ... ] */
  349. }
  350. },
  351. hdf: [
  352. /* schedule, ... */
  353. ],
  354. hd_hp: [
  355. /* schedule, ... */
  356. ],
  357. new_hdf: {
  358. am: {
  359. /* zone_name: [ schedule, ... ] */
  360. },
  361. pm: {
  362. /* zone_name: [ schedule, ... ] */
  363. },
  364. evening: {
  365. /* zone_name: [ schedule, ... ] */
  366. }
  367. },
  368. new_hd_hp: {
  369. am: {
  370. /* zone_name: [ schedule, ... ] */
  371. },
  372. pm: {
  373. /* zone_name: [ schedule, ... ] */
  374. },
  375. evening: {
  376. /* zone_name: [ schedule, ... ] */
  377. }
  378. }
  379. },
  380. {
  381. day: 3,
  382. weekday: '星期三',
  383. all: {
  384. am: {
  385. /* zone_name: [ schedule, ... ] */
  386. },
  387. pm: {
  388. /* zone_name: [ schedule, ... ] */
  389. },
  390. evening: {
  391. /* zone_name: [ schedule, ... ] */
  392. }
  393. },
  394. hdf: [
  395. /* schedule, ... */
  396. ],
  397. hd_hp: [
  398. /* schedule, ... */
  399. ],
  400. new_hdf: {
  401. am: {
  402. /* zone_name: [ schedule, ... ] */
  403. },
  404. pm: {
  405. /* zone_name: [ schedule, ... ] */
  406. },
  407. evening: {
  408. /* zone_name: [ schedule, ... ] */
  409. }
  410. },
  411. new_hd_hp: {
  412. am: {
  413. /* zone_name: [ schedule, ... ] */
  414. },
  415. pm: {
  416. /* zone_name: [ schedule, ... ] */
  417. },
  418. evening: {
  419. /* zone_name: [ schedule, ... ] */
  420. }
  421. }
  422. },
  423. {
  424. day: 4,
  425. weekday: '星期四',
  426. all: {
  427. am: {
  428. /* zone_name: [ schedule, ... ] */
  429. },
  430. pm: {
  431. /* zone_name: [ schedule, ... ] */
  432. },
  433. evening: {
  434. /* zone_name: [ schedule, ... ] */
  435. }
  436. },
  437. hdf: [
  438. /* schedule, ... */
  439. ],
  440. hd_hp: [
  441. /* schedule, ... */
  442. ],
  443. new_hdf: {
  444. am: {
  445. /* zone_name: [ schedule, ... ] */
  446. },
  447. pm: {
  448. /* zone_name: [ schedule, ... ] */
  449. },
  450. evening: {
  451. /* zone_name: [ schedule, ... ] */
  452. }
  453. },
  454. new_hd_hp: {
  455. am: {
  456. /* zone_name: [ schedule, ... ] */
  457. },
  458. pm: {
  459. /* zone_name: [ schedule, ... ] */
  460. },
  461. evening: {
  462. /* zone_name: [ schedule, ... ] */
  463. }
  464. }
  465. },
  466. {
  467. day: 5,
  468. weekday: '星期五',
  469. all: {
  470. am: {
  471. /* zone_name: [ schedule, ... ] */
  472. },
  473. pm: {
  474. /* zone_name: [ schedule, ... ] */
  475. },
  476. evening: {
  477. /* zone_name: [ schedule, ... ] */
  478. }
  479. },
  480. hdf: [
  481. /* schedule, ... */
  482. ],
  483. hd_hp: [
  484. /* schedule, ... */
  485. ],
  486. new_hdf: {
  487. am: {
  488. /* zone_name: [ schedule, ... ] */
  489. },
  490. pm: {
  491. /* zone_name: [ schedule, ... ] */
  492. },
  493. evening: {
  494. /* zone_name: [ schedule, ... ] */
  495. }
  496. },
  497. new_hd_hp: {
  498. am: {
  499. /* zone_name: [ schedule, ... ] */
  500. },
  501. pm: {
  502. /* zone_name: [ schedule, ... ] */
  503. },
  504. evening: {
  505. /* zone_name: [ schedule, ... ] */
  506. }
  507. }
  508. },
  509. {
  510. day: 6,
  511. weekday: '星期六',
  512. all: {
  513. am: {
  514. /* zone_name: [ schedule, ... ] */
  515. },
  516. pm: {
  517. /* zone_name: [ schedule, ... ] */
  518. },
  519. evening: {
  520. /* zone_name: [ schedule, ... ] */
  521. }
  522. },
  523. hdf: [
  524. /* schedule, ... */
  525. ],
  526. hd_hp: [
  527. /* schedule, ... */
  528. ],
  529. new_hdf: {
  530. am: {
  531. /* zone_name: [ schedule, ... ] */
  532. },
  533. pm: {
  534. /* zone_name: [ schedule, ... ] */
  535. },
  536. evening: {
  537. /* zone_name: [ schedule, ... ] */
  538. }
  539. },
  540. new_hd_hp: {
  541. am: {
  542. /* zone_name: [ schedule, ... ] */
  543. },
  544. pm: {
  545. /* zone_name: [ schedule, ... ] */
  546. },
  547. evening: {
  548. /* zone_name: [ schedule, ... ] */
  549. }
  550. }
  551. },
  552. {
  553. day: 7,
  554. weekday: '星期日',
  555. all: {
  556. am: {
  557. /* zone_name: [ schedule, ... ] */
  558. },
  559. pm: {
  560. /* zone_name: [ schedule, ... ] */
  561. },
  562. evening: {
  563. /* zone_name: [ schedule, ... ] */
  564. }
  565. },
  566. hdf: [
  567. /* schedule, ... */
  568. ],
  569. hd_hp: [
  570. /* schedule, ... */
  571. ],
  572. new_hdf: {
  573. am: {
  574. /* zone_name: [ schedule, ... ] */
  575. },
  576. pm: {
  577. /* zone_name: [ schedule, ... ] */
  578. },
  579. evening: {
  580. /* zone_name: [ schedule, ... ] */
  581. }
  582. },
  583. new_hd_hp: {
  584. am: {
  585. /* zone_name: [ schedule, ... ] */
  586. },
  587. pm: {
  588. /* zone_name: [ schedule, ... ] */
  589. },
  590. evening: {
  591. /* zone_name: [ schedule, ... ] */
  592. }
  593. }
  594. }
  595. ],
  596. total: [],
  597. list: [],
  598. loading: false,
  599. tableData: [],
  600. numberlist: [],
  601. partitionArr: [],
  602. listname:[],
  603. mode:[{id:1,name:'HD'},{id:2,name:'HDF'},{id:3,name:'HD+HP'},{id:4,name:'HP'},{id:5,name:'HF'},{id:6,name:'SCUF'},{id:7,name:'IUF'},{id:8,name:'HFHD'},
  604. {id:9,name:'HFHD+HP'},{id:10,name:'PHF'},{id:11,name:'HFR'},{id:12,name:'HDF+HP'},{id:13,name:'CRRT'},{id:14,name:'腹水回输'},{id:15,name:'IUF+HD'},{id:16,name:'UF'},
  605. {id:17,name:'HD+'},{id:18,name:'血浆胆红素吸附+HDF'},{id:19,name:'血浆胆红素吸附'},{id:20,name:'I-HDF'},{id:21,name:'HD高通'},{id:22,name:'CVVH'},{id:23,name:'CVVHD'},
  606. {id:24,name:'CVVHDF'},{id:25,name:'PE'},{id:26,name:'血浆胆红素吸附+HP'},{id:27,name:'HPD'},{id:28,name:'HDP'}],
  607. subzone:[],
  608. huanzhe:{
  609. id:null,
  610. name:'',
  611. mode_id:'',
  612. zeng_fenqu:'',
  613. zeng_chuang:'',
  614. boolen_id:'',
  615. schedule_remark:'',
  616. patient_id:'',
  617. partition_id:'',
  618. schedule_week: '',
  619. },
  620. xian_fenqu:'',
  621. g_xian_fenqu:'',
  622. genghuan:{
  623. id:null,
  624. name:'',
  625. mode_id:'',
  626. genghuan_fenqu:'',
  627. genghuan_chuang:'',
  628. g_boolen_id:'',
  629. genghuan_remark:'',
  630. patient_id:'',
  631. },
  632. }
  633. },
  634. components: {
  635. BreadCrumb
  636. },
  637. created() {
  638. this.date= moment(new Date()).format("YYYY-MM-DD");
  639. console.log('dsafas',this.date);
  640. this.getAllZones()
  641. this.getlist()
  642. },
  643. mounted(){
  644. // console.log('8888',this.huanzhe.order.DeviceNumber.zone.name);
  645. },
  646. methods:{
  647. drop(e,val,value){
  648. this.allowDrop(e)
  649. var bedid = ''
  650. var bedname=''
  651. var zonename=''
  652. var zoneid=''
  653. console.log('kkkkk',e.target.innerText);
  654. const inntext= e.target.innerText.split('(')[0]
  655. for(let i=0;i<val.list.length;i++){
  656. if(inntext == val.list[i].name){
  657. console.log('6666',val,value);
  658. console.log('7777',this.numberlist);
  659. this.tipDialogVisible=true
  660. this.currentData={
  661. currentData_id:val.list[i].id,
  662. currentData_name:val.list[i].name,
  663. currentData_quhao:val.list[i].order.DeviceNumber.zone.name,
  664. currentData_chaung:val.list[i].order.DeviceNumber.number,
  665. patient_id:val.list[i].patient_id
  666. }
  667. }
  668. }
  669. for(let x=0;x<this.numberlist.length;x++){
  670. if(value==this.numberlist[x].number){
  671. bedid = this.numberlist[x].id
  672. bedname=this.numberlist[x].number
  673. zoneid =this.numberlist[x].zone_id
  674. }
  675. }
  676. for(let y=0;y<this.partitionArr.length;y++){
  677. if(zoneid == this.partitionArr[y].id){
  678. zonename = this.partitionArr[y].name
  679. }
  680. }
  681. if(e.target.innerText == ''){
  682. console.log('3333',e.target.innerText);
  683. this.schedule={
  684. schedule_date:this.date,
  685. schedule_type:this.classes,
  686. bed_id:bedid,
  687. partition_id:zoneid,
  688. schedule_week:this.cur_drag_info.schedule_week,
  689. mode_id:this.cur_drag_info.mode_id,
  690. bed_name:bedname,
  691. contagions:'',
  692. id:0,
  693. partition_type:'',
  694. patient:this.cur_drag_info.name,
  695. patient_id:this.cur_drag_info.patient_id,
  696. type_name:'',
  697. zone_name:zonename
  698. }
  699. this.currentData={
  700. currentData_id:0,
  701. currentData_name:this.cur_drag_info.name,
  702. currentData_quhao:this.cur_drag_info.quhao,
  703. currentData_chaung:this.cur_drag_info.chaung,
  704. patient_id:this.cur_drag_info.patient_id,
  705. }
  706. console.log('8888',this.currentData.currentData_id);
  707. this.setScheduleTwo(this.cur_drag_info.id)
  708. // var params={
  709. // patient_id:this.currentData.patient_id,
  710. // id_two:this.currentData.currentData_id
  711. // }
  712. // CreateScheduleTwo(this.currentData.patient_id,this.currentData.currentData_id).then((response)=>{
  713. // if (response.data.state == 0) {
  714. // this.$message.error(response.data.msg);
  715. // } else {
  716. // var schedule = response.data.data.schedule;
  717. // this.getlist()
  718. // }
  719. // })
  720. // this.CreateScheduleTwo(this.currentData.patient_id,this.currentData,this.currentData.currentData_id)
  721. }
  722. // for(let i=0;i<this.numberlist.length;i++){
  723. // for(let j=0;j<val.list.length;j++){
  724. // if(this.numberlist[i].id==val.list[y].bed_id){
  725. // }
  726. // }
  727. // }
  728. // this.currentData={
  729. // currentData_id:val.id,
  730. // currentData_name:val.name,
  731. // currentData_quhao:val.order.DeviceNumber.zone.name,
  732. // currentData_chaung:val.order.DeviceNumber.number,
  733. // },
  734. // this.currentData={
  735. // currentData_id:this.cur_drag_info.id,
  736. // currentData_name:this.cur_drag_info.name,
  737. // currentData_quhao:this.cur_drag_info.quhao,
  738. // currentData_chaung:this.cur_drag_info.chaung,
  739. // },
  740. },
  741. allowDrop(e) {
  742. e.preventDefault();
  743. },
  744. // 替换
  745. coverSch(){
  746. this.tipDialogVisible=false
  747. let params={
  748. id_one:this.cur_drag_info.id,
  749. id_two:this.currentData.currentData_id
  750. }
  751. CoverSch(params).then((response) => {
  752. if (response.data.state == 0) {
  753. this.$message.error(response.data.msg);
  754. this.tipDialogVisibleTwo = false
  755. } else {
  756. console.log('888888888888',response.data);
  757. this.$message.success("替换成功");
  758. this.tipDialogVisible = false
  759. this.tipDialogVisibleTwo = false
  760. this.getlist();
  761. }
  762. });
  763. },
  764. // 交换
  765. changeSchTwo(){
  766. this.tipDialogVisible=false
  767. let params={
  768. id_one:this.cur_drag_info.id,
  769. id_two:this.currentData.currentData_id
  770. }
  771. ExchangeSch(params).then((response) => {
  772. if (response.data.state == 0) {
  773. this.$message.error(response.data.msg);
  774. this.tipDialogVisibleThree = false
  775. } else {
  776. console.log('22222222',response.data);
  777. this.$message.success("交换成功");
  778. this.tipDialogVisible = false
  779. this.tipDialogVisibleThree = false
  780. this.getlist();
  781. }
  782. });
  783. },
  784. // 交换空白
  785. setScheduleTwo(id_two){
  786. this.CreateScheduleTwo(this.currentData.patient_id, this.schedule,id_two);
  787. },
  788. // 双击弹窗交换空白
  789. setSchedulethree(id_two){
  790. this.CreateScheduleTwo(this.huanzhe.patient_id, this.schedule,id_two);
  791. },
  792. async CreateScheduleTwo(id, data,id_two) {
  793. let response =await CreateScheduleTwo(id, data,id_two)
  794. if (response.data.state == 0) {
  795. this.$message.error(response.data.msg);
  796. } else {
  797. var schedule = response.data.data.schedule;
  798. this.getlist()
  799. }
  800. },
  801. // 需要拖动的
  802. curInfoDragStart(e,val){
  803. const inntext2= e.target.innerText.split('(')[0]
  804. for(let i=0;i<val.list.length;i++){
  805. if(inntext2 == val.list[i].name){
  806. this.cur_drag_info={
  807. id:val.list[i].id,
  808. name:val.list[i].name,
  809. quhao:val.list[i].order.DeviceNumber.zone.name,
  810. chaung:val.list[i].order.DeviceNumber.number,
  811. patient_id:val.list[i].patient_id,
  812. bed_id:val.list[i].bed_id,
  813. mode_id:val.list[i].mode_id,
  814. partition_id:val.list[i].partition_id,
  815. schedule_date:this.date,
  816. schedule_type:this.classes,
  817. schedule_week: val.list[i].schedule_week,
  818. }
  819. }
  820. }
  821. console.log('bbbb',e.target.innerText);
  822. console.log('4444',val);
  823. console.log('5555',this.cur_drag_info);
  824. },
  825. // 选中日期
  826. date_picker(e){
  827. var time=moment(e).format("YYYY-MM-DD");
  828. console.log('sfddas',time);
  829. this.date=time
  830. this.getlist()
  831. },
  832. // 选择班次
  833. banci_select(e){
  834. console.log(e);
  835. for(let i=0;i<this.schedulArr.length;i++){
  836. if(e==this.schedulArr[i].value){
  837. this.classes = e
  838. }
  839. this.getlist()
  840. }
  841. },
  842. // 选择分区
  843. bingqu_select(e){
  844. console.log('1234546',e);
  845. for (let i = 0; i < this.partitionArr.length; i++) {
  846. if(e==this.partitionArr[i].id){
  847. this.bingqu=e
  848. }
  849. }
  850. this.getlist()
  851. },
  852. // 分区
  853. getAllZones() {
  854. GetAllZone().then(response => {
  855. if (response.data.state == 0) {
  856. this.$message.error(response.data.msg);
  857. return false;
  858. } else {
  859. this.partitionArr = response.data.data.zone;
  860. this.partitionArr.unshift({ id: 0, name: "全部" });
  861. console.log('asfasdfsadfa',response.data.data);
  862. }
  863. });
  864. },
  865. getlist() {
  866. var params = {
  867. schedule_date: this.date,
  868. schedule_type: this.classes,
  869. partition_type: this.bingqu,
  870. keywords: '',
  871. page: 1,
  872. limit: 5000
  873. }
  874. this.loading = true
  875. this.tableData = []
  876. console.log('111111111',params);
  877. getSchedualPrintList(params).then((response) => {
  878. if (response.data.state == 1) {
  879. this.loading = false
  880. console.log('111111',response.data.data);
  881. var list = response.data.data.list
  882. this.list = list
  883. var listOne = response.data.data.listOne
  884. this.zones =listOne
  885. var numberlist=response.data.data.numberList
  886. this.numberlist= numberlist
  887. this.subzone = numberlist
  888. if (list != null && list.length > 0) {
  889. const dataInfo = {}
  890. list.forEach((item, index) => {
  891. const { schedule_type } = item
  892. if (!dataInfo[schedule_type]) {
  893. dataInfo[schedule_type] = {
  894. schedule_type: item.schedule_type,
  895. schedule_date: item.schedule_date,
  896. zones: [],
  897. list:[],
  898. }
  899. }
  900. })
  901. const arr = Object.values(dataInfo)
  902. // console.log('arr222', arr)
  903. if (arr != null && arr.length > 0) {
  904. for (let i = 0; i < arr.length; i++) {
  905. for (let j = 0; j < listOne.length; j++) {
  906. if (arr[i].schedule_type == listOne[j].schedule_type) {
  907. arr[i].zones.push(listOne[j])
  908. }
  909. }
  910. for(let x=0;x<list.length;x++){
  911. arr[i].list.push(list[x])
  912. }
  913. }
  914. }
  915. // console.log('排班数据------------------', arr)
  916. this.tableData = arr
  917. console.log('22222222',this.tableData);
  918. }
  919. this.numberList = response.data.data.numberList
  920. // console.log('list2332233232wo', list)
  921. // console.log('numberList', this.numberList)
  922. }
  923. })
  924. },
  925. getTimeOne(val) {
  926. if (val == '') {
  927. return ''
  928. } else {
  929. return uParseTime(val, '{y}-{m}-{d}')
  930. }
  931. },
  932. // getPatientName(schedule_type, partition_id) {
  933. // var str = ''
  934. // var arr = []
  935. // if (this.list != null && this.list.length > 0) {
  936. // for (let i = 0; i < this.list.length; i++) {
  937. // if (this.list[i].schedule_type == schedule_type && this.list[i].partition_id == partition_id) {
  938. // arr.push(this.list[i])
  939. // }
  940. // }
  941. // }
  942. // if (arr.length > 0) {
  943. // for (let i = 0; i < arr.length; i++) {
  944. // arr[i].name = this.nameSplit(arr[i].name)
  945. // console.log('666666',arr[i].name);
  946. // if (this.hiddenFlag) {
  947. // str+= arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
  948. // } else {
  949. // str+=arr[i].name
  950. // }
  951. // }
  952. // }
  953. // // console.log(str, 'strstrstr')
  954. // return str
  955. // },
  956. // 透析模式
  957. getmode(id){
  958. for(let i=0;i<this.mode.length;i++){
  959. if(id=this.mode[i].id){
  960. return this.mode[i].name
  961. }
  962. }
  963. },
  964. // 切割患者姓名
  965. nameSplit(val) {
  966. var reg = /[\u4e00-\u9fa5]/g
  967. let name = val
  968. name = name.substr(-4)
  969. var names = name.match(reg)
  970. name = names.join('')
  971. if (name.includes('区')) {
  972. name = name.replace('区', '')
  973. }
  974. if (name.includes('号')) {
  975. name = name.replace('号', '')
  976. }
  977. return name
  978. },
  979. // 分区
  980. getZoneName(id) {
  981. var name = ''
  982. for (let i = 0; i < this.partitionArr.length; i++) {
  983. if (id == this.partitionArr[i].id) {
  984. name = this.partitionArr[i].name
  985. }
  986. }
  987. return name
  988. },
  989. // 血管通路
  990. getBloodAccess(id) {
  991. var name = ''
  992. var list = getDataConfig(
  993. 'hemodialysis',
  994. 'vascular_access_desc'
  995. )
  996. for (let i = 0; i < list.length; i++) {
  997. if (id == list[i].id) {
  998. name = list[i].name
  999. }
  1000. }
  1001. return name
  1002. },
  1003. // 双击打开弹窗
  1004. db_click(e,val){
  1005. if(e.target.innerText !=''){
  1006. this.centerDialogVisible=true
  1007. this.xian_fenqu=val
  1008. console.log('qqqqq',this.chuangwei,'val',val);
  1009. for(let i=0;i<this.list.length;i++){
  1010. // 双击弹窗的右侧第一个数据
  1011. if(val.id==this.list[i].bed_id){
  1012. console.log('zzzzz',this.list[i]);
  1013. this.huanzhe.id=this.list[i].id
  1014. this.huanzhe.name=this.list[i].name
  1015. this.huanzhe.mode_id=this.list[i].mode_id
  1016. this.huanzhe.zeng_fenqu=this.list[i].order.DeviceNumber.zone.name
  1017. this.huanzhe.zeng_chuang = this.list[i].order.DeviceNumber.number
  1018. this.huanzhe.boolen_id = this.list[i].order.blood_access_id
  1019. this.huanzhe.schedule_remark = this.list[i].order.schedule_remark
  1020. this.huanzhe.patient_id = this.list[i].patient_id
  1021. this.huanzhe.partition_id = this.list[i].partition_id
  1022. this.huanzhe.schedule_week= this.list[i].schedule_week
  1023. // return this.huanzhe
  1024. // console.log('55555',this.huanzhe);
  1025. }
  1026. // 双击弹窗的右侧第二个默认数据
  1027. if(this.chuangwei==this.list[i].bed_id){
  1028. console.log('xxxxx',this.chuangwei);
  1029. this.genghuan.id = this.list[i].id
  1030. this.genghuan.name=this.list[i].name
  1031. this.genghuan.mode_id=this.list[i].mode_id
  1032. this.genghuan.genghuan_fenqu=this.list[i].order.DeviceNumber.zone.name
  1033. this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
  1034. this.genghuan.g_boolen_id = this.list[i].order.blood_access_id
  1035. this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
  1036. this.genghuan.patient_id = this.list[i].patient_id
  1037. // console.log('99999',this.genghuan);
  1038. // console.log('000000',this.list[i].bed_id);
  1039. // return this.genghuan
  1040. }
  1041. // // 第二的床位
  1042. // for(let y=0;y<this.numberlist.length;y++){
  1043. // if(this.chuangwei==this.numberlist[y].id){
  1044. // this.g_xian_fenqu=this.numberlist[y]
  1045. // }
  1046. }
  1047. // 第二的床位
  1048. for(let y=0;y<this.numberlist.length;y++){
  1049. if(this.chuangwei==this.numberlist[y].id){
  1050. this.g_xian_fenqu=this.numberlist[y]
  1051. }
  1052. }
  1053. return this.genghuan
  1054. }else{
  1055. this.centerDialogVisible=false
  1056. }
  1057. // console.log('双击弹窗',this.zeng_fenqu);
  1058. // console.log('双击弹窗33',e);
  1059. // console.log('双击弹窗333',value);
  1060. },
  1061. // 双击弹窗分区
  1062. dialogfenqu(e){
  1063. for (let i = 0; i < this.partitionArr.length; i++) {
  1064. if(e==this.partitionArr[i].id){
  1065. this.fenqu_dialog=e
  1066. }
  1067. }
  1068. var params = {
  1069. schedule_date: this.date,
  1070. schedule_type: this.classes,
  1071. partition_type: this.fenqu_dialog,
  1072. keywords: '',
  1073. page: 1,
  1074. limit: 5000
  1075. }
  1076. getSchedualPrintList(params).then((response)=>{
  1077. if (response.data.state == 1) {
  1078. var list = response.data.data.list
  1079. this.list = list
  1080. var listOne = response.data.data.listOne
  1081. this.zones =listOne
  1082. var numberlist=response.data.data.numberList
  1083. console.log('00000',this.list);
  1084. this.subzone=[]
  1085. for(let i=0;i<numberlist.length;i++){
  1086. if(this.fenqu_dialog==0){
  1087. this.subzone = numberlist
  1088. this.chuangwei = numberlist[0].id//默认被交换的床位
  1089. this.g_xian_fenqu = numberlist[0]//被交换的分区床位对象
  1090. }
  1091. if(this.fenqu_dialog==numberlist[i].zone_id){
  1092. const obj={id:null,number:'',zone_id:null}
  1093. obj.id=numberlist[i].id
  1094. obj.number=numberlist[i].number
  1095. obj.zone_id=numberlist[i].zone_id
  1096. this.subzone.push(obj)
  1097. this.chuangwei = this.subzone[0].id
  1098. this.g_xian_fenqu=this.subzone[0]
  1099. }
  1100. }
  1101. console.log('22222',this.g_xian_fenqu);
  1102. // 默认的患者
  1103. for(let i=0;i<this.list.length;i++){
  1104. if(this.chuangwei==this.list[i].bed_id){
  1105. this.genghuan.name=this.list[i].name
  1106. this.genghuan.mode_id=this.list[i].mode_id
  1107. this.genghuan.genghuan_fenqu=this.list[i].order.DeviceNumber.zone.name
  1108. this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
  1109. this.genghuan.g_boolen_id =this.list[i].order.blood_access_id
  1110. this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
  1111. console.log('99999',this.genghuan);
  1112. console.log('000000',this.list[i].bed_id);
  1113. return this.genghuan
  1114. }else{
  1115. console.log('eeeeee');
  1116. this.genghuan.name=''
  1117. this.genghuan.mode_id=''
  1118. this.genghuan.genghuan_fenqu=''
  1119. this.genghuan.genghuan_chuang = ''
  1120. this.genghuan.g_boolen_id = ''
  1121. this.genghuan.genghuan_remark =''
  1122. // return this.genghuan
  1123. // console.log('qqqqqq',this.list[i].bed_id);
  1124. }
  1125. }
  1126. // this.numberlist= numberlist
  1127. }
  1128. })
  1129. // console.log('77777',this.chuangwei);
  1130. // for(let i=0;i<list.length;i++){
  1131. // if(this.chuangwei==list[i].bed_id){
  1132. // this.genghuan.name=list[i].name
  1133. // this.genghuan.mode_id=list[i].mode_id
  1134. // this.genghuan.genghuan_fenqu=list[i].order.DeviceNumber.zone.name
  1135. // this.genghuan.genghuan_chuang = list[i].order.DeviceNumber.number
  1136. // this.genghuan.g_boolen_id =list[i].order.blood_access_id
  1137. // this.genghuan.genghuan_remark = list[i].order.schedule_remark
  1138. // console.log('99999',this.genghuan);
  1139. // console.log('000000',list[i].bed_id);
  1140. // return this.genghuan
  1141. // }else{
  1142. // console.log('eeeeee');
  1143. // this.genghuan.name=''
  1144. // this.genghuan.mode_id=''
  1145. // this.genghuan.genghuan_fenqu=''
  1146. // this.genghuan.genghuan_chuang = ''
  1147. // this.genghuan.g_boolen_id = ''
  1148. // this.genghuan.genghuan_remark =''
  1149. // // return this.genghuan
  1150. // // console.log('qqqqqq',this.list[i].bed_id);
  1151. // }
  1152. // }
  1153. },
  1154. // 双击弹窗床位
  1155. dialogchuangwei(e){
  1156. console.log('333333',e);
  1157. for (let i = 0; i < this.subzone.length; i++) {
  1158. if(e==this.subzone[i].id){
  1159. this.chuangwei=e
  1160. }
  1161. }
  1162. for(let i=0;i<this.list.length;i++){
  1163. if(this.chuangwei==this.list[i].bed_id){
  1164. this.genghuan.id = this.list[i].id
  1165. this.genghuan.name=this.list[i].name
  1166. this.genghuan.mode_id=this.list[i].mode_id
  1167. this.genghuan.genghuan_fenqu=this.list[i].order.DeviceNumber.zone.name
  1168. this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
  1169. this.genghuan.g_boolen_id = this.list[i].order.blood_access_id
  1170. this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
  1171. for(let y=0;y<this.subzone.length;y++){
  1172. if(this.chuangwei==this.subzone[y].id){
  1173. this.g_xian_fenqu=this.subzone[y]
  1174. console.log('cccc',this.g_xian_fenqu);
  1175. }
  1176. }
  1177. console.log('99999',this.genghuan);
  1178. console.log('000000',this.list[i].bed_id);
  1179. return this.genghuan
  1180. }
  1181. if(this.chuangwei!=this.list[i].bed_id){
  1182. console.log('eeeeee');
  1183. this.genghuan.id = null
  1184. this.genghuan.name=''
  1185. this.genghuan.mode_id=''
  1186. this.genghuan.genghuan_fenqu=''
  1187. this.genghuan.genghuan_chuang = ''
  1188. this.genghuan.g_boolen_id = ''
  1189. this.genghuan.genghuan_remark =''
  1190. // return this.genghuan
  1191. // console.log('qqqqqq',this.list[i].bed_id);
  1192. }
  1193. }
  1194. // 更换的床位置
  1195. for(let y=0;y<this.subzone.length;y++){
  1196. if(this.chuangwei==this.subzone[y].id){
  1197. this.g_xian_fenqu=this.subzone[y]
  1198. console.log('cccc',this.g_xian_fenqu);
  1199. }
  1200. }
  1201. },
  1202. // 双击弹窗确定
  1203. verify_dialog(){
  1204. this.centerDialogVisible=false
  1205. console.log('mmmmm',this.genghuan.id);
  1206. if(this.genghuan.id != ''){
  1207. for(let i=0;i<this.list.length;i++){
  1208. if(this.chuangwei==this.list[i].bed_id){
  1209. console.log('hhhhh',this.chuangwei);
  1210. let params={
  1211. id_one:this.huanzhe.id,
  1212. id_two:this.genghuan.id
  1213. }
  1214. ExchangeSch(params).then((response) => {
  1215. if (response.data.state == 0) {
  1216. this.$message.error(response.data.msg);
  1217. this.tipDialogVisibleThree = false
  1218. } else {
  1219. console.log('22222222',response.data);
  1220. this.$message.success("交换成功");
  1221. this.tipDialogVisible = false
  1222. this.tipDialogVisibleThree = false
  1223. this.getlist();
  1224. }
  1225. });
  1226. return this.genghuan
  1227. }
  1228. // // else{
  1229. // // var zonename=''
  1230. // // var bedname=''
  1231. // // var zoneid=''
  1232. // // console.log('6666',this.chuangwei);
  1233. // // for(let y=0;y<this.subzone.length;y++){
  1234. // // if(this.chuangwei == this.subzone[y].id){
  1235. // // bedname=this.subzone[y].number
  1236. // // zoneid=this.subzone[y].zone_id
  1237. // // console.log('aaaa',this.chuangwei,this.subzone[y].id,this.subzone[y].number);
  1238. // // this.schedule={
  1239. // // schedule_date:this.date,
  1240. // // schedule_type:this.classes,
  1241. // // bed_id:this.chuangwei,
  1242. // // partition_id:zoneid,
  1243. // // schedule_week:this.huanzhe.schedule_week,
  1244. // // mode_id:this.huanzhe.mode_id,
  1245. // // bed_name:bedname,
  1246. // // contagions:'',
  1247. // // id:0,
  1248. // // partition_type:'',
  1249. // // patient:this.huanzhe.name,
  1250. // // patient_id:this.huanzhe.patient_id,
  1251. // // type_name:'',
  1252. // // zone_name:zonename
  1253. // // }
  1254. // // this.setSchedulethree(this.huanzhe.id)
  1255. // // return ''
  1256. // // }
  1257. // // }
  1258. // // }
  1259. }
  1260. }
  1261. // else if(this.genghuan.id == 'null'){
  1262. var zonename=''
  1263. var bedname=''
  1264. var zoneid=''
  1265. console.log('6666',this.chuangwei);
  1266. for(let y=0;y<this.subzone.length;y++){
  1267. if(this.chuangwei == this.subzone[y].id){
  1268. bedname=this.subzone[y].number
  1269. zoneid=this.subzone[y].zone_id
  1270. console.log('aaaa',this.chuangwei,this.subzone[y].id,this.subzone[y].number);
  1271. this.schedule={
  1272. schedule_date:this.date,
  1273. schedule_type:this.classes,
  1274. bed_id:this.chuangwei,
  1275. partition_id:zoneid,
  1276. schedule_week:this.huanzhe.schedule_week,
  1277. mode_id:this.huanzhe.mode_id,
  1278. bed_name:bedname,
  1279. contagions:'',
  1280. id:0,
  1281. partition_type:'',
  1282. patient:this.huanzhe.name,
  1283. patient_id:this.huanzhe.patient_id,
  1284. type_name:'',
  1285. zone_name:zonename
  1286. }
  1287. this.setSchedulethree(this.huanzhe.id)
  1288. return ''
  1289. }
  1290. }
  1291. // }
  1292. }
  1293. }
  1294. }
  1295. </script>
  1296. <style rel="stylesheet/scss" lang="scss" scoped>
  1297. #print_content {
  1298. background-color: white;
  1299. padding: 0 0 20px 0;
  1300. .content_top{
  1301. display: inline-block;
  1302. }
  1303. .order_title_panl {
  1304. text-align: center;
  1305. .main_title {
  1306. font-size: 18px;
  1307. line-height: 40px;
  1308. font-weight: 500;
  1309. }
  1310. }
  1311. .table_panel {
  1312. .table {
  1313. width: 100%;
  1314. border: 1px solid;
  1315. border-collapse: collapse;
  1316. padding: 2px;
  1317. thead {
  1318. tr {
  1319. td {
  1320. border: 1px solid;
  1321. text-align: center;
  1322. font-size: 20px;
  1323. padding: 15px 5px;
  1324. }
  1325. }
  1326. }
  1327. tbody {
  1328. tr {
  1329. td {
  1330. border: 1px solid;
  1331. // text-align: center;
  1332. font-size: 18px;
  1333. padding: 5px 5px;
  1334. .huanzhekuai{
  1335. width: 125px;
  1336. display: inline-block;
  1337. text-align: center;
  1338. // margin:0 10px;
  1339. }
  1340. .huanzhekuais{
  1341. width: 125px;
  1342. // display: inline-block;
  1343. text-align: center;
  1344. margin:0 10px;
  1345. // line-height: 110px;
  1346. background: #30b8e394;
  1347. }
  1348. }
  1349. }
  1350. }
  1351. }
  1352. }
  1353. }
  1354. </style>