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

scheduleTablePrintTwo.vue 57KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429
  1. <template>
  2. <div>
  3. <div :class="Screencasting==true ? 'fullscreenbroad' : 'scheduleTablePrint'" >
  4. <div class="butt" style="text-align: right;">
  5. <el-button type="primary" @click="touping">{{Screencasting==true ? '取消投屏':'投屏'}}</el-button>
  6. <el-button type="primary" @click="printAction">打印</el-button>
  7. </div>
  8. <div class="tab" style="margin-top: 10px;">
  9. <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;word-break: break-all;word-wrap: break-word;'>
  10. <tr>
  11. <td rowspan="2">分区</td>
  12. <td rowspan="2">机号</td>
  13. <td colspan="3" v-if="first_day == 1">周一({{ weekTitle[0] }})</td>
  14. <td colspan="3" v-if="second_day == 2">周二({{ weekTitle[1] }})</td>
  15. <td colspan="3" v-if="three_day == 3">周三({{ weekTitle[2] }})</td>
  16. <td colspan="3" v-if="four_day == 4">周四({{ weekTitle[3] }})</td>
  17. <td colspan="3" v-if="five_day == 5">周五({{ weekTitle[4] }})</td>
  18. <td colspan="3" v-if="six_day == 6">周六({{ weekTitle[5] }})</td>
  19. <td colspan="3" v-if="seven_day == 7">周日({{ weekTitle[6] }})</td>
  20. <!-- <td>总数</td> -->
  21. </tr>
  22. <tr>
  23. <td v-if="first_day == 1">上午</td>
  24. <td v-if="first_day == 1">下午</td>
  25. <td v-if="first_day == 1">晚上</td>
  26. <td v-if="second_day == 2">上午</td>
  27. <td v-if="second_day == 2">下午</td>
  28. <td v-if="second_day == 2">晚上</td>
  29. <td v-if="three_day == 3">上午</td>
  30. <td v-if="three_day == 3">下午</td>
  31. <td v-if="three_day == 3">晚上</td>
  32. <td v-if="four_day == 4">上午</td>
  33. <td v-if="four_day == 4">下午</td>
  34. <td v-if="four_day == 4">晚上</td>
  35. <td v-if="five_day == 5">上午</td>
  36. <td v-if="five_day == 5">下午</td>
  37. <td v-if="five_day == 5">晚上</td>
  38. <td v-if="six_day == 6">上午</td>
  39. <td v-if="six_day == 6">下午</td>
  40. <td v-if="six_day == 6">晚上</td>
  41. <td v-if="seven_day == 7">上午</td>
  42. <td v-if="seven_day == 7">下午</td>
  43. <td v-if="seven_day == 7">晚上</td>
  44. </tr>
  45. <tr v-for="(item,index) in scheduleZone" :key="index">
  46. <td style="min-width:50px;">{{ item.area }}</td>
  47. <td style="min-width:50px;">{{ item.cut }}</td>
  48. <td style="min-width:50px;" v-if="first_day == 1">
  49. <span v-if="item.Mon_M.patient_id">
  50. <span>{{ item.Mon_M.patient }} </span><br/>
  51. <span >{{ item.Mon_M.mode_name }}</span><br/>
  52. <span v-if="org_id==10469 || org_id ==0">{{getAnticoagulant(item.Mon_M.anticoagulant)}}</span><br/>
  53. <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}
  54. </span>
  55. </span>
  56. </td>
  57. <td style="min-width:50px;" v-if="first_day == 1">
  58. <span v-if="item.Mon_A.patient_id">
  59. <span>{{ item.Mon_A.patient }} </span><br/>
  60. <span >{{ item.Mon_A.mode_name }}</span><br/>
  61. <span v-if="org_id==10469 || org_id == 0">{{getAnticoagulant(item.Mon_A.anticoagulant) }}</span>
  62. <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}
  63. </span>
  64. </span>
  65. </td>
  66. <td style="min-width:50px;" v-if="first_day == 1">
  67. <span v-if="item.Mon_N.patient_id">
  68. <span>{{ item.Mon_N.patient }} </span><br/>
  69. <span >{{ item.Mon_N.mode_name }}</span><br/>
  70. <span v-if="org_id ==10469 || org_id == 0">{{getAnticoagulant(item.Mon_N.anticoagulant) }}</span>
  71. <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}
  72. </span>
  73. </span>
  74. </td>
  75. <td style="min-width:50px;" v-if="second_day == 2">
  76. <span v-if="item.Tue_M.patient_id">
  77. <span>{{ item.Tue_M.patient }} </span><br/>
  78. <span >{{ item.Tue_M.mode_name }}</span><br/>
  79. <span v-if="org_id==0||org_id==10469">{{getAnticoagulant(item.Tue_M.anticoagulant ) }}</span><br/>
  80. <span v-show="showflag">{{item.Tue_M.dialysis_machine_name}}
  81. </span>
  82. </span>
  83. </td>
  84. <td style="min-width:50px;" v-if="second_day == 2">
  85. <span v-if="item.Tue_A.patient_id">
  86. <span>{{ item.Tue_A.patient }} </span><br/>
  87. <span >{{ item.Tue_A.mode_name }}</span><br/>
  88. <span v-if="org_id ==0||org_id == 10469">{{ getAnticoagulant(item.Tue_A.anticoagulant)}}</span>
  89. <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}
  90. </span>
  91. </span>
  92. </td>
  93. <td style="min-width:50px;" v-if="second_day == 2">
  94. <span v-if="item.Tue_N.patient_id">
  95. <span>{{ item.Tue_N.patient }} </span><br/>
  96. <span >{{ item.Tue_N.mode_name }}</span><br/>
  97. <span v-if="org_id==0||org_id ==10469">{{getAnticoagulant(item.Tue_N.anticoagulant) }}</span>
  98. <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}
  99. </span>
  100. </span>
  101. </td>
  102. <td style="min-width:50px;" v-if="three_day == 3">
  103. <span v-if="item.Wed_M.patient_id">
  104. <span>{{ item.Wed_M.patient }} </span><br/>
  105. <span >{{ item.Wed_M.mode_name }}</span><br/>
  106. <span v-if="org_id == 0 || org_id ==10469">{{getAnticoagulant(item.Wed_M.anticoagulant) }}</span><br/>
  107. <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}
  108. </span>
  109. </span>
  110. </td>
  111. <td style="min-width:50px;" v-if="three_day == 3">
  112. <span v-if="item.Wed_A.patient_id">
  113. <span>{{ item.Wed_A.patient }} </span><br/>
  114. <span >{{ item.Wed_A.mode_name }}</span><br/>
  115. <span v-if="org_id ==0||org_id ==10469">{{getAnticoagulant(item.Wed_A.anticoagulant)}}</span>
  116. <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}
  117. </span>
  118. </span>
  119. </td>
  120. <td style="min-width:50px;" v-if="three_day == 3">
  121. <span v-if="item.Wed_N.patient_id">
  122. <span>{{ item.Wed_N.patient }} </span><br/>
  123. <span >{{ item.Wed_N.mode_name }}</span><br/>
  124. <span v-if="org_id ==0 || org_id ==10469">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
  125. <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}
  126. </span>
  127. </span>
  128. </td>
  129. <td style="min-width:50px;" v-if="four_day == 4">
  130. <span v-if="item.Thurs_M.patient_id">
  131. <span>{{ item.Thurs_M.patient }} </span><br/>
  132. <span >{{ item.Thurs_M.mode_name }}</span><br/>
  133. <span v-if="org_id == 0||org_id ==10469">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
  134. <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}
  135. </span>
  136. </span>
  137. </td>
  138. <td style="min-width:50px;" v-if="four_day == 4">
  139. <span v-if="item.Thurs_A.patient_id">
  140. <span>{{ item.Thurs_A.patient }} </span><br/>
  141. <span >{{ item.Thurs_A.mode_name }}</span><br/>
  142. <span v-if="org_id ==0||org_id ==10469">{{getAnticoagulant(item.Thurs_A.anticoagulant) }}</span>
  143. <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}
  144. </span>
  145. </span>
  146. </td>
  147. <td style="min-width:50px;" v-if="four_day == 4">
  148. <span v-if="item.Thurs_N.patient_id">
  149. <span>{{ item.Thurs_N.patient }} </span><br/>
  150. <span >{{ item.Thurs_N.mode_name }}</span><br/>
  151. <span v-if="org_id ==0 || org_id ==10469" >{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span>
  152. <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}
  153. </span>
  154. </span>
  155. </td>
  156. <td style="min-width:50px;" v-if="five_day == 5">
  157. <span v-if="item.Fri_M.patient_id">
  158. <span>{{ item.Fri_M.patient }} </span><br/>
  159. <span >{{ item.Fri_M.mode_name }}</span><br/>
  160. <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span><br/>
  161. <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}
  162. </span>
  163. </span>
  164. </td>
  165. <td style="min-width:50px;" v-if="five_day == 5">
  166. <span v-if="item.Fri_A.patient_id">
  167. <span>{{ item.Fri_A.patient }} </span><br/>
  168. <span >{{ item.Fri_A.mode_name }}</span><br/>
  169. <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span>
  170. <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}
  171. </span>
  172. </span>
  173. </td>
  174. <td style="min-width:50px;" v-if="five_day == 5">
  175. <span v-if="item.Fri_N.patient_id">
  176. <span>{{ item.Fri_N.patient }} </span><br/>
  177. <span >{{ item.Fri_N.mode_name }}</span><br/>
  178. <span v-if="org_id == 0||org_id ==10469">{{getAnticoagulant(item.Fri_N.anticoagulant) }}</span>
  179. <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}
  180. </span>
  181. </span>
  182. </td>
  183. <td style="min-width:50px;" v-if="six_day == 6">
  184. <span v-if="item.Sat_M.patient_id">
  185. <span>{{ item.Sat_M.patient }} </span><br/>
  186. <span >{{ item.Sat_M.mode_name }}</span><br/>
  187. <span v-if="org_id ==0 || org_id ==10469">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span>
  188. <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}
  189. </span>
  190. </span>
  191. </td>
  192. <td style="min-width:50px;" v-if="six_day == 6">
  193. <span v-if="item.Sat_A.patient_id">
  194. <span>{{ item.Sat_A.patient }} </span><br/>
  195. <span >{{ item.Sat_A.mode_name }}</span><br/>
  196. <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span>
  197. <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}
  198. </span>
  199. </span>
  200. </td>
  201. <td style="min-width:50px;" v-if="six_day == 6">
  202. <span v-if="item.Sat_N.patient_id">
  203. <span>{{ item.Sat_N.patient }} </span><br/>
  204. <span >{{ item.Sat_N.mode_name }}</span><br/>
  205. <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span>
  206. <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}
  207. </span>
  208. </span>
  209. </td>
  210. <td style="min-width:50px;" v-if="seven_day == 7">
  211. <span v-if="item.Sun_M.patient_id">
  212. <span>{{ item.Sun_M.patient }} </span><br/>
  213. <span >{{ item.Sun_M.mode_name }}</span><br/>
  214. <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
  215. <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}
  216. </span>
  217. </span>
  218. </td>
  219. <td style="min-width:50px;" v-if="seven_day == 7">
  220. <span v-if="item.Sun_A.patient_id">
  221. <span>{{ item.Sun_A.patient }} </span><br/>
  222. <span >{{ item.Sun_A.mode_name }}</span><br/>
  223. <span v-if="org_id ==0 || org_id ==10469">{{getAnticoagulant(item.Sun_A.anticoagulant)}}</span>
  224. <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}
  225. </span>
  226. </span>
  227. </td>
  228. <td style="min-width:50px;" v-if="seven_day == 7">
  229. <span v-if="item.Sun_N.patient_id">
  230. <span>{{ item.Sun_N.patient }} </span><br/>
  231. <span >{{ item.Sun_N.mode_name }}</span><br/>
  232. <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sun_N.anticoagulant ) }}</span>
  233. <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}
  234. </span>
  235. </span>
  236. </td>
  237. <!-- <td>{{item.total}}</td> -->
  238. </tr>
  239. </table>
  240. </div>
  241. </div>
  242. </div>
  243. </template>
  244. <script>
  245. import {getSchedulesTwo,getWeekPanelsOne,getPatientSheduleCount,getAllZones,getSolutionSchedule} from "@/api/schedule";
  246. import print from 'print-js'
  247. export default {
  248. props:{
  249. scheduleZoneProp: {
  250. type: Array,
  251. dafault: []
  252. },
  253. },
  254. data(){
  255. return{
  256. showflag:sessionStorage.getItem('value1'),
  257. schedule_type:'',
  258. partition_id:'',
  259. theType:2,
  260. scheduleZone:[],
  261. weekTitle:[],
  262. scheduleZoneRow: [],
  263. partitions: {},
  264. theWeek: {
  265. lastWeek: 0,
  266. thisWeek: 0,
  267. nextWeek: 0,
  268. nextTwoWeek: 0
  269. },
  270. scheduleCountList:[],
  271. total:0,
  272. zones:[],
  273. zoneIdList:[],
  274. strArr:"",
  275. solutionList:[],
  276. week_date:"",
  277. Screencasting:false,//投屏
  278. first_day:0,
  279. second_day:0,
  280. three_day:0,
  281. four_day:0,
  282. five_day:0,
  283. six_day:0,
  284. seven_day:0,
  285. org_id:0
  286. }
  287. },
  288. created(){
  289. this.org_id = this.$store.getters.xt_user.org.id
  290. this.getAllZones()
  291. this.modeOptions = this.$store.getters.treatment_mode;
  292. this.partition_id = this.$route.query.partition_id
  293. var newList = []
  294. var arr = this.$route.query.week_date
  295. if(arr!=""){
  296. var newArr = arr.split(",")
  297. if(newArr!=null&&newArr.length > 0){
  298. for(let i=0;i<newArr.length;i++){
  299. if(newArr[i] == "周一"){
  300. newList.push(1)
  301. this.first_day = 1
  302. }
  303. if(newArr[i] == "周二"){
  304. newList.push(2)
  305. this.second_day = 2
  306. }
  307. if(newArr[i] == "周三"){
  308. newList.push(3)
  309. this.three_day = 3
  310. }
  311. if(newArr[i] == "周四"){
  312. newList.push(4)
  313. this.four_day = 4
  314. }
  315. if(newArr[i] == "周五"){
  316. newList.push(5)
  317. this.five_day = 5
  318. }
  319. if(newArr[i] == "周六"){
  320. newList.push(6)
  321. this.six_day = 6
  322. }
  323. if(newArr[i] == "周日"){
  324. newList.push(7)
  325. this.seven_day = 7
  326. }
  327. }
  328. this.week_date = newList.join(",")
  329. }
  330. }else{
  331. newList = [1,2,3,4,5,6,7]
  332. this.first_day = 1
  333. this.second_day = 2
  334. this.three_day = 3
  335. this.four_day = 4
  336. this.five_day = 5
  337. this.six_day = 6
  338. this.seven_day = 7
  339. this.week_date = newList.join(",")
  340. }
  341. // this.getSolutionSchedule()
  342. },
  343. methods:{
  344. getAllZones(){
  345. getAllZones().then(response=>{
  346. if(response.data.state == 1){
  347. var zones = response.data.data.zones
  348. for(let i=0;i<zones.length;i++){
  349. this.zoneIdList.push(zones[i].id)
  350. }
  351. this.zones.push(...zones)
  352. var strArr = this.zoneIdList.join(",")
  353. this.strArr = strArr
  354. this.getWeekPanels()
  355. //统计患者排班数量
  356. this.getPatientSheduleCount()
  357. }
  358. })
  359. },
  360. compare(p) { //这是比较函数
  361. return function (m, n) {
  362. var a = m[p];
  363. var b = n[p];
  364. return a - b; //升序
  365. }
  366. },
  367. getWeekPanels() {
  368. this.scheduleZone = []
  369. var partionStr = this.partition_id
  370. var arr = this.zoneIdList.join(',')
  371. var str = ""
  372. if(partionStr == 0){
  373. str = arr
  374. }
  375. if(partionStr != 0){
  376. str = partionStr
  377. }
  378. getWeekPanelsOne(1,str).then(response => {
  379. if (response.data.state == 0) {
  380. return false
  381. }
  382. var partitions = response.data.data.partitions
  383. console.log("分区",partitions)
  384. this.theWeek.thisWeek = response.data.data.theWeek
  385. this.theWeek.lastWeek = this.theWeek.thisWeek - 1
  386. this.theWeek.nextWeek = this.theWeek.thisWeek + 1
  387. this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
  388. var that = this
  389. if (partitions.length > 0) {
  390. partitions.forEach(function(partition) {
  391. if (partition.jihaos.length == 0) {
  392. return false
  393. }
  394. that.scheduleZoneRow.push(partition.jihaos.length)
  395. that.partitions[partition.id] = partition
  396. partition.jihaos.forEach(function(jihao) {
  397. var thisPa = {
  398. area: partition.name,
  399. zone_id: partition.id,
  400. zone_type: partition.type,
  401. cut: jihao.number,
  402. jihao_id: jihao.id,
  403. sort:jihao.sort,
  404. Mon_M: {
  405. schedule_id: 0,
  406. mode_id: 0,
  407. mode_name: '',
  408. patient_id: 0,
  409. patient: '',
  410. type:1,
  411. dialysis_machine_name:"",
  412. anticoagulant:"",
  413. },
  414. Mon_A: {
  415. schedule_id: 0,
  416. mode_id: 0,
  417. mode_name: '',
  418. patient_id: 0,
  419. patient: '',
  420. type:1,
  421. dialysis_machine_name:"",
  422. anticoagulant:""
  423. },
  424. Mon_N: {
  425. schedule_id: 0,
  426. mode_id: 0,
  427. mode_name: '',
  428. patient_id: 0,
  429. patient: '',
  430. type:1,
  431. dialysis_machine_name:"",
  432. anticoagulant:""
  433. },
  434. Tue_M: {
  435. schedule_id: 0,
  436. mode_id: 0,
  437. mode_name: '',
  438. patient_id: 0,
  439. patient: '',
  440. type:1,
  441. dialysis_machine_name:"",
  442. anticoagulant:""
  443. },
  444. Tue_A: {
  445. schedule_id: 0,
  446. mode_id: 0,
  447. mode_name: '',
  448. patient_id: 0,
  449. patient: '',
  450. type:1,
  451. dialysis_machine_name:"",
  452. anticoagulant:""
  453. },
  454. Tue_N: {
  455. schedule_id: 0,
  456. mode_id: 0,
  457. mode_name: '',
  458. patient_id: 0,
  459. patient: '',
  460. type:1,
  461. dialysis_machine_name:"",
  462. anticoagulant:""
  463. },
  464. Wed_M: {
  465. schedule_id: 0,
  466. mode_id: 0,
  467. mode_name: '',
  468. patient_id: 0,
  469. patient: '',
  470. type:1,
  471. dialysis_machine_name:"",
  472. anticoagulant:""
  473. },
  474. Wed_A: {
  475. schedule_id: 0,
  476. mode_id: 0,
  477. mode_name: '',
  478. patient_id: 0,
  479. patient: '',
  480. type:1,
  481. dialysis_machine_name:"",
  482. anticoagulant:""
  483. },
  484. Wed_N: {
  485. schedule_id: 0,
  486. mode_id: 0,
  487. mode_name: '',
  488. patient_id: 0,
  489. patient: '',
  490. type:1,
  491. dialysis_machine_name:"",
  492. anticoagulant:""
  493. },
  494. Thurs_M: {
  495. schedule_id: 0,
  496. mode_id: 0,
  497. mode_name: '',
  498. patient_id: 0,
  499. patient: '',
  500. type:1,
  501. dialysis_machine_name:"",
  502. anticoagulant:""
  503. },
  504. Thurs_A: {
  505. schedule_id: 0,
  506. mode_id: 0,
  507. mode_name: '',
  508. patient_id: 0,
  509. patient: '',
  510. type:1,
  511. dialysis_machine_name:"",
  512. anticoagulant:""
  513. },
  514. Thurs_N: {
  515. schedule_id: 0,
  516. mode_id: 0,
  517. mode_name: '',
  518. patient_id: 0,
  519. patient: '',
  520. type:1,
  521. dialysis_machine_name:"",
  522. anticoagulant:""
  523. },
  524. Fri_M: {
  525. schedule_id: 0,
  526. mode_id: 0,
  527. mode_name: '',
  528. patient_id: 0,
  529. patient: '',
  530. type:1,
  531. dialysis_machine_name:"",
  532. anticoagulant:""
  533. },
  534. Fri_A: {
  535. schedule_id: 0,
  536. mode_id: 0,
  537. mode_name: '',
  538. patient_id: 0,
  539. patient: '',
  540. type:1,
  541. dialysis_machine_name:"",
  542. anticoagulant:""
  543. },
  544. Fri_N: {
  545. schedule_id: 0,
  546. mode_id: 0,
  547. mode_name: '',
  548. patient_id: 0,
  549. patient: '',
  550. type:1,
  551. dialysis_machine_name:"",
  552. anticoagulant:""
  553. },
  554. Sat_M: {
  555. schedule_id: 0,
  556. mode_id: 0,
  557. mode_name: '',
  558. patient_id: 0,
  559. patient: '',
  560. type:1,
  561. dialysis_machine_name:"",
  562. anticoagulant:""
  563. },
  564. Sat_A: {
  565. schedule_id: 0,
  566. mode_id: 0,
  567. mode_name: '',
  568. patient_id: 0,
  569. patient: '',
  570. type:1,
  571. dialysis_machine_name:"",
  572. anticoagulant:""
  573. },
  574. Sat_N: {
  575. schedule_id: 0,
  576. mode_id: 0,
  577. mode_name: '',
  578. patient_id: 0,
  579. patient: '',
  580. type:1,
  581. dialysis_machine_name:"",
  582. anticoagulant:""
  583. },
  584. Sun_A: {
  585. schedule_id: 0,
  586. mode_id: 0,
  587. mode_name: '',
  588. patient_id: 0,
  589. patient: '',
  590. type:1,
  591. dialysis_machine_name:"",
  592. anticoagulant:""
  593. },
  594. Sun_N: {
  595. schedule_id: 0,
  596. mode_id: 0,
  597. mode_name: '',
  598. patient_id: 0,
  599. patient: '',
  600. type:1,
  601. dialysis_machine_name:"",
  602. anticoagulant:""
  603. },
  604. Sun_M: {
  605. schedule_id: 0,
  606. mode_id: 0,
  607. mode_name: '',
  608. patient_id: 0,
  609. patient: '',
  610. type:1,
  611. dialysis_machine_name:"",
  612. anticoagulant:""
  613. },
  614. total: 0
  615. }
  616. that.scheduleZone.push(thisPa)
  617. })
  618. })
  619. }
  620. this.scheduleZone.sort(this.compare('sort'))
  621. this.getSchedules()
  622. })
  623. },
  624. getSchedules() {
  625. var theType = 2;
  626. if(this.$route.query.weekTime == "lastWeek"){
  627. theType = 1
  628. }
  629. if(this.$route.query.weekTime == "thisWeek"){
  630. theType = 2
  631. }
  632. if(this.$route.query.weekTime == "nextWeek"){
  633. theType = 3
  634. }
  635. if(this.$route.query.weekTime == "nextTwoWeek"){
  636. theType = 4
  637. }
  638. var partionStr = this.partition_id
  639. var arr = this.zoneIdList.join(',')
  640. var str = ""
  641. if(partionStr == 0){
  642. str = arr
  643. }
  644. if(partionStr != 0){
  645. str = partionStr
  646. }
  647. const params = {
  648. weekTime:theType,
  649. patitionid:str,
  650. schedule_type:this.schedule_type,
  651. week_date:this.week_date,
  652. }
  653. getSchedulesTwo(params).then(response => {
  654. if (response.data.state == 1) {
  655. this.weekTitle = response.data.data.weekTitle;
  656. console.log("weekTitle99923232",this.weekTitle)
  657. this.weekDays = response.data.data.days;
  658. this.toDay = response.data.data.today;
  659. var theSchedules = response.data.data.schdules;
  660. var that = this;
  661. that.scheduleZone.forEach(function(zone, index) {
  662. that.scheduleZone[index].Mon_M = {
  663. mode_id: 0,
  664. mode_name: "",
  665. patient_id: 0,
  666. patient: "",
  667. type:1,
  668. dialysis_machine_name:"",
  669. anticoagulant:"",
  670. };
  671. that.scheduleZone[index].Mon_A = {
  672. mode_id: 0,
  673. mode_name: "",
  674. patient_id: 0,
  675. patient: "",
  676. type:1,
  677. dialysis_machine_name:"",
  678. anticoagulant:"",
  679. };
  680. that.scheduleZone[index].Mon_N = {
  681. mode_id: 0,
  682. mode_name: "",
  683. patient_id: 0,
  684. patient: "",
  685. type:1,
  686. dialysis_machine_name:"",
  687. anticoagulant:"",
  688. };
  689. that.scheduleZone[index].Tue_M = {
  690. mode_id: 0,
  691. mode_name: "",
  692. patient_id: 0,
  693. patient: "",
  694. type:1,
  695. dialysis_machine_name:"",
  696. anticoagulant:"",
  697. };
  698. that.scheduleZone[index].Tue_A = {
  699. mode_id: 0,
  700. mode_name: "",
  701. patient_id: 0,
  702. patient: "",
  703. type:1,
  704. dialysis_machine_name:"",
  705. anticoagulant:"",
  706. };
  707. that.scheduleZone[index].Tue_N = {
  708. mode_id: 0,
  709. mode_name: "",
  710. patient_id: 0,
  711. patient: "",
  712. type:1,
  713. dialysis_machine_name:"",
  714. anticoagulant:"",
  715. };
  716. that.scheduleZone[index].Wed_M = {
  717. mode_id: 0,
  718. mode_name: "",
  719. patient_id: 0,
  720. patient: "",
  721. type:1,
  722. dialysis_machine_name:"",
  723. anticoagulant:"",
  724. };
  725. that.scheduleZone[index].Wed_A = {
  726. mode_id: 0,
  727. mode_name: "",
  728. patient_id: 0,
  729. patient: "",
  730. type:1,
  731. dialysis_machine_name:"",
  732. anticoagulant:"",
  733. };
  734. that.scheduleZone[index].Wed_N = {
  735. mode_id: 0,
  736. mode_name: "",
  737. patient_id: 0,
  738. patient: "",
  739. type:1,
  740. dialysis_machine_name:"",
  741. anticoagulant:"",
  742. };
  743. that.scheduleZone[index].Thurs_M = {
  744. mode_id: 0,
  745. mode_name: "",
  746. patient_id: 0,
  747. patient: "",
  748. type:1,
  749. dialysis_machine_name:"",
  750. anticoagulant:"",
  751. };
  752. that.scheduleZone[index].Thurs_A = {
  753. mode_id: 0,
  754. mode_name: "",
  755. patient_id: 0,
  756. patient: "",
  757. type:1,
  758. dialysis_machine_name:"",
  759. anticoagulant:"",
  760. };
  761. that.scheduleZone[index].Thurs_N = {
  762. mode_id: 0,
  763. mode_name: "",
  764. patient_id: 0,
  765. patient: "",
  766. type:1,
  767. dialysis_machine_name:"",
  768. anticoagulant:"",
  769. };
  770. that.scheduleZone[index].Fri_M = {
  771. mode_id: 0,
  772. mode_name: "",
  773. patient_id: 0,
  774. patient: "",
  775. type:1,
  776. dialysis_machine_name:"",
  777. anticoagulant:"",
  778. };
  779. that.scheduleZone[index].Fri_A = {
  780. mode_id: 0,
  781. mode_name: "",
  782. patient_id: 0,
  783. patient: "",
  784. type:1,
  785. dialysis_machine_name:"",
  786. anticoagulant:"",
  787. };
  788. that.scheduleZone[index].Fri_N = {
  789. mode_id: 0,
  790. mode_name: "",
  791. patient_id: 0,
  792. patient: "",
  793. type:1,
  794. dialysis_machine_name:"",
  795. anticoagulant:"",
  796. };
  797. that.scheduleZone[index].Sat_M = {
  798. mode_id: 0,
  799. mode_name: "",
  800. patient_id: 0,
  801. patient: "",
  802. type:1,
  803. dialysis_machine_name:"",
  804. anticoagulant:"",
  805. };
  806. that.scheduleZone[index].Sat_A = {
  807. mode_id: 0,
  808. mode_name: "",
  809. patient_id: 0,
  810. patient: "",
  811. type:1,
  812. dialysis_machine_name:"",
  813. anticoagulant:"",
  814. };
  815. that.scheduleZone[index].Sat_N = {
  816. mode_id: 0,
  817. mode_name: "",
  818. patient_id: 0,
  819. patient: "",
  820. type:1,
  821. dialysis_machine_name:"",
  822. anticoagulant:"",
  823. };
  824. that.scheduleZone[index].Sun_A = {
  825. mode_id: 0,
  826. mode_name: "",
  827. patient_id: 0,
  828. patient: "",
  829. type:1,
  830. dialysis_machine_name:"",
  831. anticoagulant:"",
  832. };
  833. that.scheduleZone[index].Sun_N = {
  834. mode_id: 0,
  835. mode_name: "",
  836. patient_id: 0,
  837. patient: "",
  838. type:1,
  839. dialysis_machine_name:"",
  840. anticoagulant:"",
  841. };
  842. that.scheduleZone[index].Sun_M = {
  843. mode_id: 0,
  844. mode_name: "",
  845. patient_id: 0,
  846. patient: "",
  847. type:1,
  848. dialysis_machine_name:"",
  849. anticoagulant:"",
  850. };
  851. that.scheduleZone[index].total = 0;
  852. if (response.data.data.schdules.length > 0) {
  853. theSchedules.forEach(function(schedule, sindex) {
  854. if (zone.jihao_id == schedule.bed_id) {
  855. // if(zone.zone_id == schedule.partition_id && zone.jihao_id == schedule.bed_id) {
  856. var weekPath = that.weekPath(
  857. schedule.schedule_week,
  858. schedule.schedule_type
  859. );
  860. if (weekPath.length == 2) {
  861. // console.log(schedule);
  862. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  863. that.scheduleZone[index][weekPathKey] = {
  864. schedule_id: schedule.id,
  865. mode_id: schedule.mode_id,
  866. patient_id: schedule.patient_id,
  867. patient: schedule.patient,
  868. patient_contagions: schedule.patient_contagions,
  869. dialysis_machine_name: schedule.dialysis_machine_name,
  870. mode_name:typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name,
  871. anticoagulant:schedule.dialysissolution.anticoagulant
  872. };
  873. that.scheduleZone[index].total += 1;
  874. }
  875. }
  876. });
  877. }
  878. });
  879. var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1",type:0},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"jihao_id":"","total":"","zone_id":"","zone_type":"",sort:""}]
  880. for(let i=0;i<newArr.length;i++){
  881. for(let j=0;j<this.scheduleCountList.length;j++){
  882. newArr[i].cut = this.total
  883. //礼拜一上午
  884. if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 1){
  885. newArr[i].Mon_M.patient = this.scheduleCountList[j].Count
  886. }
  887. //礼拜一下午
  888. if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 2){
  889. newArr[i].Mon_A.patient = this.scheduleCountList[j].Count
  890. }
  891. //礼拜一晚上
  892. if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 3){
  893. newArr[i].Mon_N.patient = this.scheduleCountList[j].Count
  894. }
  895. //礼拜二上午
  896. if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 1){
  897. newArr[i].Tue_M.patient = this.scheduleCountList[j].Count
  898. }
  899. //礼拜二下午
  900. if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 2){
  901. newArr[i].Tue_A.patient = this.scheduleCountList[j].Count
  902. }
  903. //礼拜二晚上
  904. if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 3){
  905. newArr[i].Tue_N.patient = this.scheduleCountList[j].Count
  906. }
  907. //礼拜三上午
  908. if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
  909. newArr[i].Wed_M.patient = this.scheduleCountList[j].Count
  910. }
  911. //礼拜三下午
  912. if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
  913. newArr[i].Wed_A.patient = this.scheduleCountList[j].Count
  914. }
  915. //礼拜三晚上
  916. if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 3){
  917. newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
  918. }
  919. //礼拜四上午
  920. if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 1){
  921. newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
  922. }
  923. //礼拜四下午
  924. if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 2){
  925. newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
  926. }
  927. //礼拜四晚上
  928. if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 3){
  929. newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
  930. }
  931. //礼拜五上午
  932. if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 1){
  933. newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
  934. }
  935. //礼拜五下午
  936. if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 2){
  937. newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
  938. }
  939. //礼拜五晚上
  940. if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 3){
  941. newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
  942. }
  943. //礼拜六上午
  944. if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 1){
  945. newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
  946. }
  947. //礼拜六下午
  948. if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 2){
  949. newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
  950. }
  951. //礼拜六晚上
  952. if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 3){
  953. newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
  954. }
  955. //礼拜日上午
  956. if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 1){
  957. newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
  958. }
  959. //礼拜日下午
  960. if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 2){
  961. newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
  962. }
  963. //礼拜日晚上
  964. if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 3){
  965. newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
  966. }
  967. }
  968. }
  969. console.log("newArr222222222",newArr)
  970. that.scheduleZone.push(...newArr)
  971. for(let i=0;i<that.scheduleZone.length;i++){
  972. if(that.scheduleZone[i].area == "总数"){
  973. that.scheduleZone[i].sort = 999999
  974. }
  975. }
  976. that.scheduleZone.sort(this.compare('sort'))
  977. console.log('总数据77777777777',that.scheduleZone)
  978. } else {
  979. this.$message.error("网络错误");
  980. return false;
  981. }
  982. });
  983. },
  984. weekPath(week, schedule_type) {
  985. var weekArr = {
  986. 1: "Mon",
  987. 2: "Tue",
  988. 3: "Wed",
  989. 4: "Thurs",
  990. 5: "Fri",
  991. 6: "Sat",
  992. 7: "Sun"
  993. };
  994. var typeArr = { 1: "M", 2: "A", 3: "N" };
  995. if (
  996. typeof weekArr[week] === "undefined" ||
  997. typeof typeArr[schedule_type] === "undefined"
  998. ) {
  999. return [];
  1000. }
  1001. return [weekArr[week], typeArr[schedule_type]];
  1002. },
  1003. printAction: function() {
  1004. // const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
  1005. const style = '@media print {#scheduleTable{font-size:14px;} }'
  1006. printJS({
  1007. printable: 'scheduleTable',
  1008. type: 'html',
  1009. documentTitle: ' ',
  1010. style: style,
  1011. scanStyles: false
  1012. })
  1013. },
  1014. getPatientSheduleCount(){
  1015. var theType = 2;
  1016. if(this.$route.query.weekTime == "lastWeek"){
  1017. theType = 1
  1018. }
  1019. if(this.$route.query.weekTime == "thisWeek"){
  1020. theType = 2
  1021. }
  1022. if(this.$route.query.weekTime == "nextWeek"){
  1023. theType = 3
  1024. }
  1025. if(this.$route.query.weekTime == "nextTwoWeek"){
  1026. theType = 4
  1027. }
  1028. var partionStr = this.partition_id
  1029. console.log("partionStr",partionStr)
  1030. var arr = this.zoneIdList.join(',')
  1031. var str = ""
  1032. if(partionStr == 0){
  1033. str = arr
  1034. }
  1035. if(partionStr != 0){
  1036. str = partionStr
  1037. }
  1038. var params = {
  1039. weekTime:theType,
  1040. partition_id:str,
  1041. }
  1042. getPatientSheduleCount(params).then(response=>{
  1043. if(response.data.state == 1){
  1044. var list = response.data.data.list
  1045. console.log("list22222",list)
  1046. this.scheduleCountList = list
  1047. var total = response.data.data.total
  1048. console.log("totalw222",total)
  1049. this.total = total
  1050. }
  1051. })
  1052. },
  1053. getSolutionSchedule(){
  1054. getSolutionSchedule().then(response=>{
  1055. if(response.data.state ==1){
  1056. var solution = response.data.data.solution
  1057. console.log("solution",solution)
  1058. for(let i=0;i<solution.length;i++){
  1059. if(solution[i].mode_id == 1){
  1060. solution[i].mode_name = "HD"
  1061. }
  1062. if(solution[i].mode_id == 2){
  1063. solution[i].mode_name = "HDF"
  1064. }
  1065. if(solution[i].mode_id == 3){
  1066. solution[i].mode_name = "HD+HP"
  1067. }
  1068. if(solution[i].mode_id == 4){
  1069. solution[i].mode_name = "HP"
  1070. }
  1071. if(solution[i].mode_id == 5){
  1072. solution[i].mode_name = "HF"
  1073. }
  1074. if(solution[i].mode_id == 6){
  1075. solution[i].mode_name = "SCUF"
  1076. }
  1077. if(solution[i].mode_id == 7){
  1078. solution[i].mode_name = "IUF"
  1079. }
  1080. if(solution[i].mode_id == 8){
  1081. solution[i].mode_name = "HFHD"
  1082. }
  1083. if(solution[i].mode_id == 9){
  1084. solution[i].mode_name = "HFHD+HP"
  1085. }
  1086. if(solution[i].mode_id == 10){
  1087. solution[i].mode_name = "PHF"
  1088. }
  1089. if(solution[i].mode_id == 11){
  1090. solution[i].mode_name = "HFR"
  1091. }
  1092. if(solution[i].mode_id == 12){
  1093. solution[i].mode_name = "HDF+HP"
  1094. }
  1095. if(solution[i].mode_id == 13){
  1096. solution[i].mode_name = "CRRT"
  1097. }
  1098. if(solution[i].mode_id == 14){
  1099. solution[i].mode_name = "腹水回输"
  1100. }
  1101. if(solution[i].mode_id == 19){
  1102. solution[i].mode_name = "IUF+HD"
  1103. }
  1104. if(solution[i].mode_id == 20){
  1105. solution[i].mode_name = "UF"
  1106. }
  1107. if(solution[i].mode_id == 21){
  1108. solution[i].mode_name = "HD+"
  1109. }
  1110. if(solution[i].mode_id == 18){
  1111. solution[i].mode_name = "SCUF"
  1112. }
  1113. if(solution[i].mode_id == 19){
  1114. solution[i].mode_name = "SCUF"
  1115. }
  1116. if(solution[i].mode_id == 20){
  1117. solution[i].mode_name = "SCUF"
  1118. }
  1119. if(solution[i].mode_id == 21){
  1120. solution[i].mode_name = "HD+"
  1121. }
  1122. if(solution[i].mode_id == 22){
  1123. solution[i].mode_name = "血浆胆红素吸附+HDF"
  1124. }
  1125. if(solution[i].mode_id == 23){
  1126. solution[i].mode_name = "血浆胆红素吸附"
  1127. }
  1128. if(solution[i].mode_id == 24){
  1129. solution[i].mode_name = "I-HDF"
  1130. }
  1131. if(solution[i].mode_id == 25){
  1132. solution[i].mode_name = "HD高通"
  1133. }
  1134. if(solution[i].mode_id == 26){
  1135. solution[i].mode_name = "CVVH"
  1136. }
  1137. if(solution[i].mode_id == 27){
  1138. solution[i].mode_name = "CVVH"
  1139. }
  1140. if(solution[i].mode_id == 28){
  1141. solution[i].mode_name = "CVVHDF"
  1142. }
  1143. if(solution[i].mode_id == 29){
  1144. solution[i].mode_name = "PE"
  1145. }
  1146. if(solution[i].mode_id == 30){
  1147. solution[i].mode_name = "血浆胆红素吸附+HP"
  1148. }
  1149. if(solution[i].solution!=undefined){
  1150. solution[i].dialysis_dialyszers = solution[i].solution.dialysis_dialyszers
  1151. solution[i].dialysis_irrigation = solution[i].solution.dialysis_irrigation
  1152. solution[i].dialyzer_perfusion_apparatus = solution[i].solution.dialyzer_perfusion_apparatus
  1153. }
  1154. }
  1155. this.solutionList = solution
  1156. }
  1157. })
  1158. },
  1159. getDialyzer(patient_id,mode){
  1160. var diazers = ""
  1161. var irrigation = ""
  1162. for(let i=0;i<this.solutionList.length;i++){
  1163. if(patient_id == 0){
  1164. return ""
  1165. }
  1166. if(patient_id == this.solutionList[i].patient_id && mode == this.solutionList[i].mode_name){
  1167. if(this.solutionList[i].dialyzer_perfusion_apparatus!=""){
  1168. diazers = this.solutionList[i].dialyzer_perfusion_apparatus
  1169. irrigation = this.solutionList[i].dialysis_irrigation
  1170. }else{
  1171. diazers = this.solutionList[i].dialysis_dialyszers
  1172. irrigation = this.solutionList[i].dialysis_irrigation
  1173. }
  1174. }
  1175. }
  1176. if(irrigation!=""){
  1177. return diazers + "/" + irrigation
  1178. }else{
  1179. return diazers
  1180. }
  1181. },
  1182. compare (property) {
  1183. return function (a, b) {
  1184. var value1 = a[property]
  1185. var value2 = b[property]
  1186. return value1 - value2
  1187. }
  1188. },
  1189. // 投屏
  1190. touping(){
  1191. if(this.Screencasting ==false){
  1192. return this.Screencasting =true
  1193. }else{
  1194. return this.Screencasting =false
  1195. }
  1196. },
  1197. getAnticoagulant(val){
  1198. var name= ""
  1199. if(val == 1){
  1200. name ="无肝素"
  1201. }
  1202. if(val == 2){
  1203. name ="普通肝素"
  1204. }
  1205. if(val == 3){
  1206. name ="低分子肝素"
  1207. }
  1208. if(val == 4){
  1209. name ="阿加曲班"
  1210. }
  1211. if(val == 5){
  1212. name ="枸橼酸钠"
  1213. }
  1214. if(val == 6){
  1215. name ="低分子肝素钙"
  1216. }
  1217. if(val == 7){
  1218. name ="低分子肝素钠"
  1219. }
  1220. if(val == 8){
  1221. name ="依诺肝素"
  1222. }
  1223. if(val == 9){
  1224. name ="达肝素"
  1225. }
  1226. if(val == 10){
  1227. name ="体外抗凝"
  1228. }
  1229. if(val == 11){
  1230. name ="那屈肝素"
  1231. }
  1232. if(val == 12){
  1233. name ="无抗凝剂"
  1234. }
  1235. if(val == 13){
  1236. name ="那屈肝素钙"
  1237. }
  1238. if(val == 14){
  1239. name ="肝素钙注射液"
  1240. }
  1241. if(val == 15){
  1242. name ="甲磺酸萘莫司他"
  1243. }
  1244. return name
  1245. }
  1246. }
  1247. }
  1248. </script>
  1249. <style lang="scss">
  1250. .scheduleTablePrint{
  1251. width: 100%;
  1252. height: 100vh;
  1253. .butt{
  1254. height: 50px;
  1255. line-height: 50px;
  1256. }
  1257. .tab{
  1258. table{
  1259. td{
  1260. text-align: center;
  1261. padding: 5px;
  1262. word-wrap:break-word;
  1263. }
  1264. }
  1265. }
  1266. }
  1267. </style>
  1268. <style lang="scss" scoped>
  1269. .fullscreenbroad{
  1270. position: fixed;
  1271. top: 0;
  1272. right: 0;
  1273. bottom: 0;
  1274. left: 0;
  1275. overflow: auto;
  1276. margin: 0;
  1277. background: #fff;
  1278. padding: 20px;
  1279. z-index:5000;
  1280. height: 100%;
  1281. // .butt{
  1282. // margin-bottom: ;
  1283. // }
  1284. }
  1285. </style>