yq1 před 1 rokem
rodič
revize
9fed9596d9

+ 12 - 0
src/router/modules/workforce.js Zobrazit soubor

@@ -143,6 +143,18 @@ export default {
143 143
       noCache: true
144 144
     }
145 145
   },
146
+  // id 10469
147
+  {
148
+    path: '/schedule/remind/print/setting/two',
149
+    component: () => import('@/xt_pages/workforce/remind_print_setting_two'),
150
+    name: 'remind_print_setting_two',
151
+    hidden: true,
152
+    is_menu: false,
153
+    meta: {
154
+      title: 'remind_print_setting_two',
155
+      noCache: true
156
+    }
157
+  },
146 158
   {
147 159
     path: '/scheduleTablePrint',
148 160
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),

+ 3 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue Zobrazit soubor

@@ -1,11 +1,11 @@
1 1
 
2 2
 <template>
3 3
   <div id='invoice-print'>
4
-    <div v-for='(i,index) in pageArr.length' :key="index" style="width: 80%;margin: 0 auto;">
4
+    <div v-for='(i,index) in pageArr.length' :key="index" style="width: 80%;margin: 0 auto;font-size: 16px;">
5 5
       <div style="text-align: center;width: 100%;font-size: 20px; font-weight: bolder;">盐城响水燕舞血液透析中心收据</div>
6 6
       <div style="display: flex; margin: 15px 0 5px 0;">
7
-        <div style="flex: 1;">业务流水号:{{ list.order_number }}</div>
8
-        <div style="flex: 1;">医疗机构类型:</div>
7
+        <div style="flex: 1.1;">业务流水号:{{ list.order_number }}</div>
8
+        <div style="flex: 0.9;">医疗机构类型:</div>
9 9
         <div style="flex: 1;">医院国家编码:H32092103007</div>
10 10
        
11 11
       </div>

+ 29 - 10
src/xt_pages/workforce/components/nextTableWeeks.vue Zobrazit soubor

@@ -150,7 +150,7 @@
150 150
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
151 151
                 <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
152 152
                 <span v-if="org_id==10131 || org_id == 10215">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span>
153
-              
153
+
154 154
               </span>
155 155
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ scope.row.dialysissolution.dialysis_dialyszers}}</span>
156 156
           </span>
@@ -366,10 +366,10 @@ export default {
366 366
           str = zone.join(",")
367 367
         }
368 368
 
369
-       
369
+
370 370
         let weekOfDay = parseInt(moment().format('E'))
371 371
         let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
372
-        
372
+
373 373
         let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
374 374
 
375 375
         console.log("开始时间++++++++",(this.getTimestamp(next_monday)/1000)-28800)
@@ -377,8 +377,8 @@ export default {
377 377
         var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
378 378
         console.log("now_time------------------",now_time)
379 379
 
380
-       
381
-      
380
+
381
+
382 382
        const params = {
383 383
           start_time:next_monday,
384 384
           end_time:next_sunday,
@@ -651,9 +651,9 @@ export default {
651 651
         var name = ''
652 652
         for (let i = 0; i < solution.length; i++) {
653 653
           if (mode_id == solution[i].mode_id) {
654
-         
654
+
655 655
             name = solution[i].dialyzer_perfusion_apparatus
656
-            
656
+
657 657
           }
658 658
         }
659 659
         console.log('name', name)
@@ -664,7 +664,7 @@ export default {
664 664
       this.getNextScheduleWeekDay()
665 665
     },
666 666
     signPrint() {
667
-        
667
+        //
668 668
         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id ==10375){
669 669
          var zone = this.zone
670 670
           var newArr = []
@@ -683,7 +683,7 @@ export default {
683 683
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
684 684
           })
685 685
           }
686
-        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340){
686
+        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340 && this.org_id !=10375 && this.org_id !=10469  && this.org_id !=0 ){
687 687
           var zone = this.zone
688 688
         var newArr = []
689 689
         for(let i=0;i<this.zoneList.length;i++){
@@ -701,7 +701,26 @@ export default {
701 701
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
702 702
         })
703 703
         }
704
-       
704
+        else if(this.org_id==10469 || this.org_id==0){
705
+          var zone = this.zone
706
+          console.log("zone23232",zone)
707
+          var newArr = []
708
+          for(let i=0;i<this.zoneList.length;i++){
709
+            newArr.push(this.zoneList[i].id)
710
+          }
711
+          var arr = newArr.join(",")
712
+          var str = ""
713
+          if(this.zone == 0){
714
+            str = arr
715
+          }
716
+          if(zone != 0){
717
+            str = zone.join(",")
718
+          }
719
+          this.$router.push({
720
+            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
721
+          })
722
+        }
723
+
705 724
     },
706 725
     getTime(val) {
707 726
       if(val == ""){

+ 36 - 20
src/xt_pages/workforce/components/tableWeeks.vue Zobrazit soubor

@@ -27,7 +27,7 @@
27 27
                 打印设置
28 28
             </el-button>
29 29
 
30
-           
30
+
31 31
         </div>
32 32
 
33 33
         <div class="cell clearfix">
@@ -230,7 +230,7 @@
230 230
                     </span> -->
231 231
 
232 232
                     <!-- <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
233
-                    
233
+
234 234
                       <!-- {{scope.row.prescription.dialysis_dialyszers}} -->
235 235
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
236 236
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
@@ -240,7 +240,7 @@
240 240
                        {{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}
241 241
                     </span>
242 242
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus !=''">{{scope.row.prescription.dialyzer_perfusion_apparatus}}</span>
243
-  
243
+
244 244
                     <span v-if="scope.row.prescription.dialysis_irrigation==''">/{{scope.row.dialysissolution.dialysis_irrigation}}</span>
245 245
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
246 246
             </template>
@@ -259,7 +259,7 @@
259 259
                     <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
260 260
                     <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
261 261
                     <span v-if="scope.row.dialysissolution.anticoagulant === 11">那屈肝素</span>
262
-                       
262
+
263 263
                     <span v-if="scope.row.dialysissolution.antioxidant_commodity_name!=''">
264 264
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
265 265
           </span>
@@ -865,8 +865,7 @@
865 865
 
866 866
         return desc
867 867
 
868
-      }
869
-      ,
868
+      },
870 869
       printAction() {
871 870
         var zone = this.zone
872 871
         var newArr = []
@@ -876,7 +875,7 @@
876 875
         var arr = newArr.join(",")
877 876
         var str = ""
878 877
         if(this.zone == 0){
879
-           str = arr  
878
+           str = arr
880 879
         }
881 880
         if(zone != 0){
882 881
           str = zone.join(",")
@@ -884,11 +883,10 @@
884 883
         this.$router.push({
885 884
           path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str
886 885
         })
887
-      }
888
-      ,
886
+      },
889 887
       signPrint() {
890
-
891
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 0 || this.org_id == 10375){
888
+//
889
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340  || this.org_id == 10375){
892 890
          var zone = this.zone
893 891
           console.log("zone23232",zone)
894 892
           var newArr = []
@@ -898,7 +896,7 @@
898 896
           var arr = newArr.join(",")
899 897
           var str = ""
900 898
           if(this.zone == 0){
901
-            str = arr  
899
+            str = arr
902 900
           }
903 901
           if(zone != 0){
904 902
             str = zone.join(",")
@@ -907,7 +905,7 @@
907 905
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
908 906
           })
909 907
         }
910
-        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0 && this.org_id!=10375){
908
+        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0 && this.org_id!=10375 && this.org_id!=10469){
911 909
           var zone = this.zone
912 910
           console.log("zone23232",zone)
913 911
           var newArr = []
@@ -917,7 +915,7 @@
917 915
           var arr = newArr.join(",")
918 916
           var str = ""
919 917
           if(this.zone == 0){
920
-            str = arr  
918
+            str = arr
921 919
           }
922 920
           if(zone != 0){
923 921
             str = zone.join(",")
@@ -925,8 +923,26 @@
925 923
           this.$router.push({
926 924
             path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
927 925
           })
928
-         }
929
-      
926
+        }else if(this.org_id==10469 || this.org_id==0){
927
+          var zone = this.zone
928
+          console.log("zone23232",zone)
929
+          var newArr = []
930
+          for(let i=0;i<this.zoneList.length;i++){
931
+            newArr.push(this.zoneList[i].id)
932
+          }
933
+          var arr = newArr.join(",")
934
+          var str = ""
935
+          if(this.zone == 0){
936
+            str = arr
937
+          }
938
+          if(zone != 0){
939
+            str = zone.join(",")
940
+          }
941
+          this.$router.push({
942
+            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
943
+          })
944
+        }
945
+
930 946
       }
931 947
       ,
932 948
       compare(property) {
@@ -989,7 +1005,7 @@
989 1005
       ,
990 1006
 
991 1007
       getScheduleList() {
992
-        
1008
+
993 1009
         var zone = this.zone
994 1010
         var newArr = []
995 1011
         for(let i=0;i<this.zoneList.length;i++){
@@ -998,7 +1014,7 @@
998 1014
         var arr = newArr.join(",")
999 1015
         var str = ""
1000 1016
         if(this.zone == 0){
1001
-           str = arr  
1017
+           str = arr
1002 1018
         }
1003 1019
         if(zone != 0){
1004 1020
           str = zone.join(",")
@@ -1544,9 +1560,9 @@
1544 1560
         var name = ''
1545 1561
         for (let i = 0; i < solution.length; i++) {
1546 1562
           if (mode_id == solution[i].mode_id) {
1547
-         
1563
+
1548 1564
             name = solution[i].dialyzer_perfusion_apparatus
1549
-            
1565
+
1550 1566
           }
1551 1567
         }
1552 1568
         console.log('name', name)

+ 2 - 3
src/xt_pages/workforce/remind.vue Zobrazit soubor

@@ -5,18 +5,17 @@
5 5
 
6 6
   </div>
7 7
   <div class="app-container">
8
-
9 8
     <el-tabs v-model="activeName"  ref="elTabs">
10 9
         <el-tab-pane name="thisWeek">
11 10
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
12 11
         </el-tab-pane>
13 12
         <el-tab-pane name="nextWeek">
14 13
             <span slot="label"><i class="el-icon-date"></i> 下一周({{theWeek.nextWeek}})</span>
15
-        </el-tab-pane> 
14
+        </el-tab-pane>
16 15
     </el-tabs>
17 16
     <table-push v-if="activeName=='pushTime'"></table-push>
18 17
     <!-- <table-weeks v-else :week-time="activeName"> </table-weeks> -->
19
-     
18
+
20 19
    <table-weeks v-if="activeName == 'thisWeek'"> </table-weeks>
21 20
    <nextTableWeeks v-if="activeName =='nextWeek'"></nextTableWeeks>
22 21
   </div>

+ 817 - 0
src/xt_pages/workforce/remind_print_setting_two.vue Zobrazit soubor

@@ -0,0 +1,817 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button
8
+            size="small"
9
+            icon="el-icon-printer"
10
+            type="primary"
11
+            @click="printAction"
12
+            >打印</el-button
13
+          >
14
+        </el-col>
15
+      </el-row>
16
+    </div>
17
+    <div class="app-container" style="background-color: white;">
18
+      <div id="print_content">
19
+        <div class="print_main_content">
20
+          <div class="table_panel">
21
+            <div v-for="(main_collection,index) in scheduleData" :key="index" class="boxshadow"
22
+              style="page-break-after: always; box-sizing: border-box;margin: 0px 35px 30px;">
23
+              <div style="border: 1px solid black;width: 90%;"  >
24
+                <div style="margin: 5px 5px;">
25
+                  <span>
26
+                    <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
27
+                    <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
28
+                  </span>&nbsp;&nbsp;
29
+                  <!-- <span style="font-weight: bolder;">
30
+                    {{main_collection.patient.name}} </span>&nbsp;&nbsp;  -->
31
+                  <span>
32
+                    <span v-if="main_collection.patient.gender==1">男</span>
33
+                    <span v-if="main_collection.patient.gender==2">女</span>
34
+                  </span>&nbsp;&nbsp;
35
+                  <span>
36
+                    <span v-if="type ==1 && printObj.name == 1">{{getNewAge(main_collection.patient.id_card_no) }}岁</span>
37
+                    <span v-if="type ==2 && printObj.name == 1">{{getNewAge(main_collection.id_card_no) }}岁</span>
38
+                  </span>&nbsp;&nbsp;
39
+
40
+                  <!-- <span>{{getNewAge(main_collection.patient.id_card_no)  }}岁</span>&nbsp;&nbsp; -->
41
+                  <span>{{getTimes(main_collection.schedule_date)}}</span>&nbsp;&nbsp;
42
+                  <span></span>&nbsp;&nbsp;
43
+                  <span>
44
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
45
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
46
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
47
+                  </span>&nbsp;&nbsp;<span>{{ main_collection.number.number }}</span>
48
+                </div>
49
+                <div style="margin: 5px 5px;">
50
+                  <span>身高:{{ main_collection.patient.height?main_collection.patient.height:"" }} cm</span>&nbsp;&nbsp;
51
+                  <span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
52
+                  <span>HCT:%</span>&nbsp;&nbsp;<span>KTV目标:</span>
53
+                </div>
54
+              </div>
55
+              <div style="height: 30px;width: 90%;border: 1px solid black;">
56
+
57
+              </div>
58
+              <div style="border: 1px solid black;width: 90%;">
59
+                <div style="display: flex;margin: 5px 5px;">
60
+                  <div style="flex: 1;">透析模式:{{getModeId(main_collection.mode_id)}}</div>
61
+                  <div style="flex: 1;">透析器/灌流器:
62
+                    {{ main_collection.dialysissolution.dialysis_strainer }}
63
+                    <span v-if="printObj.dialyzers == 1&& main_collection.dialysissolution.dialysis_dialyszers!=''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
64
+                    <span v-if="printObj.perfusion_apparatus == 1&& main_collection.dialysissolution.dialysis_irrigation!=''">{{main_collection.dialysissolution.dialysis_irrigation}}</span>
65
+                    <span v-if="main_collection.dialysissolution.dialysis_strainer!=''">{{ main_collection.dialysissolution.dialysis_strainer }}</span>
66
+                    <span v-if="main_collection.dialysissolution.dialyzer_perfusion_apparatus!=''">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
67
+                  </div>
68
+
69
+                </div>
70
+                <div style="display: flex;margin: 5px 5px;">
71
+                  <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
72
+                  <div style="flex: 1;">置换液总量:{{main_collection.prescription.displace_liqui_value}}L</div>
73
+                </div>
74
+                <div style="margin: 5px 5px;">
75
+                  <div>透析液类型:
76
+                    <span>Na:{{ main_collection.prescription.sodium }}</span>
77
+                    <span>K:{{ main_collection.prescription.kalium }}</span>
78
+                    <span>Ca:{{main_collection.prescription.calcium }}</span>
79
+                    <span>
80
+                      <span v-if="main_collection.prescription.chaptalization==0"> 不含 </span>
81
+                      <span v-if="main_collection.prescription.chaptalization>0"> 含糖:{{main_collection.prescription.chaptalization}} </span>
82
+                      HCO3:</span>
83
+                  </div>
84
+                </div>
85
+                <div style="display: flex;margin: 5px 5px;">
86
+                  <div style="flex: 1;">超滤曲线:</div>
87
+                  <div style="flex: 1;">Na曲线:</div>
88
+                </div>
89
+                <div style="margin: 5px 5px;">
90
+                  <span>抗凝方案:</span>
91
+                  <span>{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
92
+                  <span>
93
+                    首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
94
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
95
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}mg
96
+                    </span>
97
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
98
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
99
+                    </span>
100
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
101
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
102
+                    </span>
103
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
104
+                    {{main_collection.dialysissolution.anticoagulant_shouji}} mg
105
+                    </span>
106
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
107
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
108
+                    </span>
109
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
110
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
111
+                    </span>
112
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
113
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
114
+                    </span>
115
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
116
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
117
+                    </span>
118
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
119
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
120
+                      </span>
121
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
122
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
123
+                    </span>
124
+                  </span>
125
+
126
+                  <span>
127
+                    维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
128
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
129
+                      mg/h
130
+                    </span>
131
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
132
+                      mg/h
133
+                    </span>
134
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
135
+                    iu/h
136
+                    </span>
137
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
138
+                      mg/h
139
+                    </span>
140
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
141
+                      mg/h
142
+                    </span>
143
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
144
+                    iu/h
145
+                    </span>
146
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
147
+                    iu/h
148
+                    </span>
149
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
150
+                      iu/h
151
+                    </span>
152
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
153
+                      iu/h
154
+                    </span>
155
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
156
+                      iu/h
157
+                      </span>
158
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
159
+                      iu/h
160
+                    </span>
161
+                  </span>
162
+
163
+                  <span>
164
+                      总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
165
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
166
+                      mg
167
+                    </span>
168
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
169
+                      mg
170
+                    </span>
171
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
172
+                      iu
173
+                    </span>
174
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
175
+                    mg
176
+                    </span>
177
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
178
+                      mg
179
+                    </span>
180
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
181
+                    iu
182
+                    </span>
183
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
184
+                      iu
185
+                    </span>
186
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
187
+                      iu
188
+                    </span>
189
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
190
+                    iu
191
+                    </span>
192
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
193
+                      iu
194
+                      </span>
195
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
196
+                    iu
197
+                    </span>
198
+                  </span>
199
+                </div>
200
+                <div style="margin: 5px 5px;">
201
+                  血管通路:{{getBloodAccess(main_collection.assessmentbefor.blood_access_part_opera_id)}}
202
+                </div>
203
+              </div>
204
+              <div style="border: 1px solid black;width: 90%;">
205
+                <div style="margin: 5px 5px;">高危因素:{{ main_collection.prescription.remark }}</div>
206
+              </div>
207
+            </div>
208
+          </div>
209
+        </div>
210
+      </div>
211
+    </div>
212
+  </div>
213
+</template>
214
+
215
+<script>
216
+  import { getScheduleList,getPrintList,getNextScheduleWeekDayOne } from '@/api/schedule'
217
+  import { parseTime } from '@/utils'
218
+  import { uParseTime } from '@/utils/tools'
219
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
220
+  import { getDataConfig } from '@/utils/data'
221
+  import print from 'print-js'
222
+  const moment = require('moment')
223
+  export default {
224
+    name: 'SchedulePrint',
225
+    data() {
226
+      return {
227
+        crumbs: [
228
+          { path: false, name: '排班提醒' },
229
+          { path: false, name: '排班提醒打印' }
230
+        ],
231
+        scheduleData:[],
232
+        week_type: 0,
233
+        day:'',
234
+        td_1_width: '10%',
235
+        td_2_width: '10%',
236
+        td_3_width: '25%',
237
+        td_4_width: '45%',
238
+        modeOptions: null,
239
+        anticoagulants_confit:null,
240
+        currentDate:'',
241
+        start_time:moment().week(moment().week() + 1).startOf('week').unix(),
242
+        end_time:moment().week(moment().week() + 1).endOf('week').unix(),
243
+        org_id:0,
244
+        now_time:0,
245
+        zone:"",
246
+        pre_status:0,
247
+        printObj:{},
248
+        type:1,
249
+        printDate:'',
250
+        blood_access_part_opera:[],
251
+      }
252
+    },
253
+    components: {
254
+      BreadCrumb
255
+    },
256
+    created() {
257
+     this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
258
+     this.type = this.$route.query.type
259
+     this.getPrintList()
260
+     this.org_id = this.$store.getters.xt_user.org.id
261
+     console.log("机构ID",this.org_id)
262
+     this.currentDate = this.getCurrentDate()
263
+     console.log("打印时间----------------------------",this.currentDate)
264
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
265
+    this.modeOptions = this.$store.getters.treatment_mode
266
+    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
267
+    this.week_type = this.$route.query.week_type
268
+    this.week_time  = this.$route.query.week_time
269
+    this.zone = this.$route.query.zone
270
+    this.pre_status = this.$route.query.prestatus
271
+
272
+    if(parseInt(this.$route.query.type) == 1){
273
+      const params = {
274
+          week_type:this.week_type,
275
+          week_time:this.week_time,
276
+          zone:this.zone,
277
+        }
278
+       console.log("params",params)
279
+       getScheduleList(params).then(response=>{
280
+         if(response.data.state ==1){
281
+           var list = response.data.data.list
282
+
283
+           for(let i=0;i<list.length;i++){
284
+              list[i].sort = list[i].number.sort
285
+           }
286
+           var arr = list.sort(this.compare('sort'))
287
+           console.log("arr--------",arr)
288
+           this.scheduleData = arr
289
+
290
+             let a = response.data.data.day
291
+              console.log("a",a)
292
+              var myDate = new Date(a);
293
+              var year = myDate.getFullYear(); //年
294
+              var month = myDate.getMonth() + 1; //月
295
+              var day = myDate.getDate(); //日
296
+              var days = myDate.getDay();
297
+              switch(days) {
298
+              case 1:
299
+                days = '星期一';
300
+                break;
301
+              case 2:
302
+                days = '星期二';
303
+                break;
304
+              case 3:
305
+                days = '星期三';
306
+                break;
307
+              case 4:
308
+                days = '星期四';
309
+                break;
310
+              case 5:
311
+                days = '星期五';
312
+                break;
313
+              case 6:
314
+                days = '星期六';
315
+                break;
316
+              case 0:
317
+                days = '星期日';
318
+                break;
319
+          }
320
+          var str = year + "年" + month + "月" + day + "日  ";
321
+          this.currentDate = str
322
+          }
323
+       })
324
+
325
+      var now_time = parseInt(this.week_type) * 86400 + this.start_time
326
+      console.log("now",now_time)
327
+      this.now_time = now_time
328
+    }
329
+    if(parseInt(this.$route.query.type) == 2){
330
+       this.getNextScheduleWeekDay()
331
+    }
332
+
333
+    },
334
+    methods: {
335
+      getAdvice:function(doctor_advice) {
336
+        if (doctor_advice != null) {
337
+
338
+        let name = ""
339
+        for (let i = 0; i< doctor_advice.length; i++) {
340
+
341
+          let prescribing_number = ''
342
+          let single_dose = ''
343
+          let drug_spec = ''
344
+
345
+          if (doctor_advice[i].prescribing_number > 0) {
346
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
347
+          }
348
+          if (doctor_advice[i].single_dose > 0) {
349
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
350
+          }
351
+
352
+          if (doctor_advice[i].drug_spec > 0) {
353
+            drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
354
+          }
355
+
356
+          name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
357
+
358
+          if (doctor_advice[i].child.length > 0) {
359
+
360
+            for (let a = 0; a < doctor_advice[i].child.length; a++) {
361
+
362
+              if (doctor_advice[i].child[a].prescribing_number > 0) {
363
+                doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
364
+              } else {
365
+                doctor_advice[i].child[a]['presc'] = ''
366
+              }
367
+
368
+              if (doctor_advice[i].child[a].single_dose > 0) {
369
+                doctor_advice[i].child[a]['single'] = " " + ' 单次用量 ' + " " + doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
370
+              } else {
371
+                doctor_advice[i].child[a]['single'] = ''
372
+              }
373
+
374
+              name = name + "▲" + doctor_advice[i].child[a].advice_name + ""
375
+                + doctor_advice[i].child[a].advice_desc
376
+                + doctor_advice[i].child[a].drug_spec_unit
377
+                + doctor_advice[i].child[a].presc
378
+                + doctor_advice[i].child[a].single + "\n"
379
+            }
380
+
381
+          }
382
+        }
383
+          return name
384
+
385
+
386
+        }
387
+
388
+      },
389
+      printAction: function() {
390
+        const style = '@media print {.signPrint{margin-left:30px;} .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 {font-size:25px } .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: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
391
+        // const style1 = '@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: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
392
+          printJS({
393
+            printable: 'print_content',
394
+            type: 'html',
395
+            documentTitle: '  ',
396
+            style: style,
397
+            scanStyles: false
398
+          })
399
+
400
+      }, getSchedulesType: function(type) {
401
+        let type_name = ''
402
+        switch (type) {
403
+          case 1:
404
+            type_name = '上午'
405
+            break
406
+          case 2:
407
+            type_name = '下午'
408
+            break
409
+          case 3:
410
+            type_name = '晚上'
411
+            break
412
+        }
413
+        return type_name
414
+      },
415
+      getCurrentDate: function () {
416
+        console.log(this.$route.query.week_type)
417
+        var myDate = new Date();
418
+        var year = myDate.getFullYear(); //年
419
+        var month = myDate.getMonth() + 1; //月
420
+        var day = myDate.getDate() + 7; //日
421
+        var newday = myDate.getDay();
422
+        var days = parseInt(this.$route.query.week_type);
423
+        var dayNum = parseInt(this.$route.query.week_type);
424
+        switch(days) {
425
+          case 1:
426
+            days = '星期一';
427
+            break;
428
+          case 2:
429
+            days = '星期二';
430
+            break;
431
+          case 3:
432
+            days = '星期三';
433
+            break;
434
+          case 4:
435
+            days = '星期四';
436
+            break;
437
+          case 5:
438
+            days = '星期五';
439
+            break;
440
+          case 6:
441
+            days = '星期六';
442
+            break;
443
+          case 7:
444
+            days = '星期日';
445
+            break;
446
+        }
447
+        if(newday > dayNum){
448
+          let lastDay = day - (newday - dayNum)
449
+          console.log("lastDay1",lastDay)
450
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
451
+          return str;
452
+        }else if(newday < dayNum){
453
+          let lastDay = day + (dayNum - newday)
454
+          console.log("lastDay2",lastDay)
455
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
456
+          return str;
457
+        }else{
458
+          var str = year + "年" + month + "月" + day + "日  " + days;
459
+          return str;
460
+        }
461
+
462
+
463
+      },
464
+
465
+       compare(property) {
466
+       return function (a, b) {
467
+          var value1 = a[property];
468
+          var value2 = b[property];
469
+          return value1 - value2;
470
+      }
471
+     },
472
+     getTime(val) {
473
+         if(val == ""){
474
+          return ""
475
+         }else {
476
+          return uParseTime(val, '{y}-{m}-{d}')
477
+         }
478
+      },
479
+      getTimes(time) {
480
+        return uParseTime(time, '{y}-{m}-{d}')
481
+      },
482
+     getPrintList(){
483
+      getPrintList().then(response=>{
484
+         if(response.data.state == 1){
485
+           var list = response.data.data.list
486
+           console.log("打印设置",list)
487
+           this.printObj = list
488
+         }
489
+      })
490
+     },
491
+     getTimestamp(time) { //把时间日期转成时间戳
492
+        return (new Date(time)).getTime()
493
+    },
494
+    getNextScheduleWeekDay() {
495
+        const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
496
+        const end = moment().weekday(7).format('YYYY-MM-DD')
497
+        var zone = this.zone
498
+        // var newArr = []
499
+        // for(let i=0;i<this.zoneList.length;i++){
500
+        //    newArr.push(this.zoneList[i].id)
501
+        // }
502
+        // var arr = newArr.join(",")
503
+        // var str = ""
504
+        // if(this.zone == 0){
505
+        //    str = arr
506
+        // }
507
+        // if(zone != 0){
508
+        //   str = zone.join(",")
509
+        // }
510
+        // var now_time = parseInt(this.week_type) * 86400 + this.start_time
511
+        let weekOfDay = parseInt(moment().format('E'))
512
+        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
513
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
514
+        const params = {
515
+          start_time:moment().week(moment().week() + 1).startOf('week').unix(),
516
+          end_time:moment().week(moment().week() + 1).endOf('week').unix(),
517
+          week_type:this.week_type,
518
+          week_time:this.week_time,
519
+          zone:this.zone,
520
+          record_date:this.getTime(now_time)
521
+        }
522
+        // const params = {
523
+        //   start_time:1609603200,
524
+        //   end_time:1610208000,
525
+        //   week_type:this.week_type,
526
+        //   week_time:this.week_time,
527
+        // }
528
+      console.log("params",params)
529
+      getNextScheduleWeekDayOne(params).then(response => {
530
+        this.scheduleData = [];
531
+        if (response.data.state == 1) {
532
+          var scheduleData = response.data.data.schedule;
533
+
534
+          for(let i=0;i<scheduleData.length;i++){
535
+              scheduleData[i].sort = scheduleData[i].number.sort
536
+          }
537
+            var arr =   scheduleData.sort(this.compare('sort'))
538
+            console.log("元旦快乐",arr)
539
+            this.scheduleData = arr
540
+
541
+            // var newList = []
542
+            // for(let i=0;i<scheduleData.length;i++){
543
+            //   if(scheduleData.prescription.id > 0){
544
+            //      newList.push(scheduleData[i])
545
+            //   }
546
+            // }
547
+            // var arr =   newList.sort(this.compare('sort'))
548
+            // console.log("元旦快乐",arr)
549
+            // this.scheduleData = arr
550
+        } else {
551
+          this.$message.error("网络错误");
552
+          return false;
553
+        }
554
+      });
555
+     },
556
+    getAnticoagulant(name){
557
+
558
+      if(name == 0){
559
+         name = ""
560
+       }
561
+       if(name == 1){
562
+         name = "无肝素"
563
+       }
564
+       if(name == 2){
565
+         name = "普通肝素"
566
+       }
567
+       if(name == 3){
568
+         name ="低分子肝素"
569
+       }
570
+
571
+       if(name == 4){
572
+         name = "阿加曲班"
573
+       }
574
+        if(name == 5){
575
+         name = "枸橼酸钠"
576
+       }
577
+        if(name == 6){
578
+         name = "低分子肝素钙"
579
+       }
580
+        if(name == 7){
581
+         name = "低分子肝素钠"
582
+       }
583
+       if(name == 8){
584
+         name = "依诺肝素"
585
+       }
586
+
587
+       if(name == 9){
588
+         name = "达肝素"
589
+       }
590
+       if(name == 10){
591
+         name = "体外抗凝"
592
+       }
593
+
594
+       if(name == 11){
595
+         name = "那屈肝素"
596
+       }
597
+
598
+       if(name == 12){
599
+         name = "无抗凝剂"
600
+       }
601
+       if(name == 13){
602
+         name = "那屈肝素钙"
603
+       }
604
+
605
+
606
+
607
+       return name
608
+     },
609
+     getAnticoagulantZonliang(arr,mode_id){
610
+       var name = 0
611
+       if(arr.length > 0){
612
+         for(let i=0;i<arr.length;i++){
613
+          if(mode_id == arr[i].mode_id){
614
+            name = arr[i].anticoagulant_zongliang
615
+          }
616
+        }
617
+       }
618
+       return name
619
+     },
620
+      getNewAge(UUserCard) {
621
+      if (UUserCard != null && UUserCard != '') {
622
+        // 获取年龄
623
+        var myDate = new Date()
624
+        var month = myDate.getMonth() + 1
625
+        var day = myDate.getDate()
626
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
627
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
628
+          age++
629
+        }
630
+        return age
631
+      }
632
+      },
633
+      getModeId(val){
634
+      var name =""
635
+      if(val == 1){
636
+        name ="HD"
637
+      }
638
+      if(val == 2){
639
+        name ="HDF"
640
+      }
641
+      if(val == 3){
642
+        name ="HD+HP"
643
+      }
644
+      if(val == 4){
645
+        name ="HP"
646
+      }
647
+      if(val == 5){
648
+        name ="HF"
649
+      }
650
+      if(val == 6){
651
+        name ="SCUF"
652
+      }
653
+      if(val == 7){
654
+        name ="IUF"
655
+      }
656
+      if(val == 8){
657
+        name ="IUF"
658
+      }
659
+      if(val == 9){
660
+        name ="HFHD+HP"
661
+      }
662
+      if(val == 10){
663
+        name ="HFHD+HP"
664
+      }
665
+      if(val == 11){
666
+        name ="HFR"
667
+      }
668
+      if(val == 12){
669
+        name ="HDF+HP"
670
+      }
671
+      if(val == 13){
672
+        name ="CRRT"
673
+      }
674
+      if(val == 14){
675
+        name ="腹水回输"
676
+      }
677
+      if(val == 19){
678
+        name ="IUF+HD"
679
+      }
680
+      if(val == 20){
681
+        name ="UF"
682
+      }
683
+      if(val == 21){
684
+        name ="HD+"
685
+      }
686
+      if(val == 22){
687
+        name ="血浆胆红素吸附+HDF"
688
+      }
689
+      if(val == 23){
690
+        name ="血浆胆红素吸附"
691
+      }
692
+      if(val == 24){
693
+        name ="I-HDF"
694
+      }
695
+      if(val == 25){
696
+        name ="HD高通"
697
+      }
698
+      if(val == 26){
699
+        name ="CVVH"
700
+      }
701
+      if(val == 27){
702
+        name ="CVVHD"
703
+      }
704
+      if(val == 28){
705
+        name ="CVVHDF"
706
+      }
707
+      if(val == 29){
708
+        name ="PE"
709
+      }
710
+      if(val == 30){
711
+        name ="血浆胆红素吸附+HP"
712
+      }
713
+      if(val == 31){
714
+        name ="HPD"
715
+      }
716
+      if(val == 32){
717
+        name ="HDP"
718
+      }
719
+      return name
720
+      },
721
+      getBloodAccess(id){
722
+        var name = ""
723
+        for(let i=0;i<this.blood_access_part_opera.length;i++){
724
+          if(id == this.blood_access_part_opera[i].id){
725
+             name = this.blood_access_part_opera[i].name
726
+          }
727
+        }
728
+        return name
729
+      }
730
+    }
731
+  }
732
+</script>
733
+
734
+<style rel="stylesheet/scss" lang="scss" scoped>
735
+.print_main_content {
736
+  background-color: white;
737
+  max-width: 1500px;
738
+  margin: 0 auto;
739
+  padding: 0 0 20px 0;
740
+
741
+  .order_title_panl {
742
+    text-align: center;
743
+
744
+    .main_title {
745
+      font-size: 18px;
746
+      line-height: 40px;
747
+      font-weight: 500;
748
+    }
749
+  }
750
+  .table_panel {
751
+    .boxshadow{
752
+      box-shadow: 0 0 5px gray;
753
+      padding: 10px 20px;
754
+    }
755
+    .table {
756
+      width: 100%;
757
+      border: 1px solid;
758
+      border-collapse: collapse;
759
+      padding: 2px;
760
+
761
+      thead {
762
+        tr {
763
+          td {
764
+            border: 1px solid;
765
+            text-align: center;
766
+            font-size: 20px;
767
+            padding: 15px 5px;
768
+          }
769
+        }
770
+      }
771
+      tbody {
772
+        tr {
773
+          td {
774
+            border: 1px solid;
775
+            text-align: center;
776
+            font-size: 18px;
777
+            padding: 10px 5px;
778
+
779
+            .proj {
780
+              padding: 5px 0;
781
+              text-align: left;
782
+
783
+              .proj_title {
784
+                font-size: 16px;
785
+                font-weight: 500;
786
+                line-height: 25px;
787
+              }
788
+
789
+              .proj_item {
790
+                font-size: 15px;
791
+                line-height: 20px;
792
+
793
+                .zone_name {
794
+                  font-weight: 500;
795
+                }
796
+              }
797
+            }
798
+          }
799
+        }
800
+      }
801
+    }
802
+  }
803
+}
804
+.signPrint{
805
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
806
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
807
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
808
+  margin-bottom: 20px;
809
+  padding: 20px 10px;
810
+}
811
+.printCell{
812
+  span{
813
+    display: inline-block;
814
+    width: 180px;
815
+  }
816
+}
817
+</style>