张保健 2 years ago
parent
commit
3ca03eddf3

+ 27 - 2
src/xt_pages/workforce/printOne.vue View File

1
 <template>
1
 <template>
2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
4
+      <bread-crumb :crumbs="crumbs" style="flex:1;"></bread-crumb>
5
+      <el-row style="float: right;margin-right: 20px;">
6
+        <el-col :span="24">
7
+          <el-button
8
+            size="small"
9
+            type="success"
10
+            @click="hiddenBtn"
11
+            >{{hiddenText}}</el-button
12
+          >
13
+        </el-col>
14
+      </el-row>
5
       <el-row style="float: right">
15
       <el-row style="float: right">
6
         <el-col :span="24">
16
         <el-col :span="24">
7
           <el-button
17
           <el-button
85
       td_4_width: '20%',
95
       td_4_width: '20%',
86
 
96
 
87
       month: 1,
97
       month: 1,
98
+      hiddenFlag: false,
99
+      hiddenText: '隐藏备注',
88
       begin_day: 1,
100
       begin_day: 1,
89
 
101
 
90
       schedules: [
102
       schedules: [
419
     this.getlist()
431
     this.getlist()
420
   },
432
   },
421
   methods: {
433
   methods: {
434
+    hiddenBtn() {
435
+      if (this.hiddenFlag) {
436
+        this.hiddenFlag = false
437
+        this.hiddenText = '隐藏备注'
438
+      } else {
439
+        this.hiddenFlag = true
440
+        this.hiddenText = '显示备注'
441
+      }
442
+    },
422
     getAllZone() {
443
     getAllZone() {
423
       GetAllZone().then((response) => {
444
       GetAllZone().then((response) => {
424
         if (response.data.state == 0) {
445
         if (response.data.state == 0) {
616
       if (arr.length > 0) {
637
       if (arr.length > 0) {
617
         for (let i = 0; i < arr.length; i++) {
638
         for (let i = 0; i < arr.length; i++) {
618
           arr[i].name = this.nameSplit(arr[i].name)
639
           arr[i].name = this.nameSplit(arr[i].name)
619
-          str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '上机备注:' + arr[i].order.order_remark + ')<br/>'
640
+          if (this.hiddenFlag) {
641
+            str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
642
+          } else {
643
+            str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '上机备注:' + arr[i].order.order_remark + ')<br/>'
644
+          }
620
         }
645
         }
621
       }
646
       }
622
       console.log(str, 'strstrstr')
647
       console.log(str, 'strstrstr')

+ 41 - 41
src/xt_pages/workforce/remind_print_setting_one.vue View File

22
              
22
              
23
 
23
 
24
               <div class="signPrint" style="font-size:16px;">
24
               <div class="signPrint" style="font-size:16px;">
25
-                <div>姓名:
25
+                <div style="font-size:24px;font-weight: 400;">姓名:
26
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </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>
27
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
28
                   <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
28
                   <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
33
                     {{getNewAge(main_collection.id_card_no) }}岁)</span> 
33
                     {{getNewAge(main_collection.id_card_no) }}岁)</span> 
34
                   
34
                   
35
                 </div>
35
                 </div>
36
-                <div class="printCell">身份证:
37
-                    <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
38
-                    <span v-if="type ==2">{{main_collection.id_card_no}} </span>
39
-                </div>
40
-                <div class="printCell">电话号码:
41
-                    <span v-if="type ==1">{{main_collection.patient.phone}} </span>
42
-                    <span v-if="type ==2">{{main_collection.phone}} </span>
43
-                </div>
44
                 <div class="printCell">
36
                 <div class="printCell">
45
                   透析模式:
37
                   透析模式:
46
                     <span>{{getModeId(main_collection.mode_id)}}</span>
38
                     <span>{{getModeId(main_collection.mode_id)}}</span>
47
                   
39
                   
48
                 </div>
40
                 </div>
49
-                <div class="printCell">
50
-                  <span>
51
-                    分区/床号
52
-                    <span  style="width:auto;">{{main_collection.zone.name}}/</span>
53
-                    {{ main_collection.number.number }}
54
-                    <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
55
-                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
56
-                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
57
-                  </span>
58
-                 
59
-                </div>
60
-                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
61
-                    <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
62
-                </div>
63
                 <div class="printCell">
41
                 <div class="printCell">
64
                   <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
42
                   <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
65
                 </div>
43
                 </div>
66
-             
67
                 <div class="printCell">
44
                 <div class="printCell">
68
                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
45
                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
69
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
173
                    </span>
150
                    </span>
174
           
151
           
175
                 </div>
152
                 </div>
176
-           
153
+                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
154
+                    <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
155
+                </div>
156
+                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
157
+                    <span>上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
158
+                </div>
159
+                <div class="printCell">身份证:
160
+                    <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
161
+                    <span v-if="type ==2">{{main_collection.id_card_no}} </span>
162
+                </div>
163
+                <div class="printCell">电话号码:
164
+                    <span v-if="type ==1">{{main_collection.patient.phone}} </span>
165
+                    <span v-if="type ==2">{{main_collection.phone}} </span>
166
+                </div>
177
                 <div class="printCell">
167
                 <div class="printCell">
178
                    透析器:
168
                    透析器:
179
                     <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
169
                     <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
190
                     <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
180
                     <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
191
                     <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
181
                     <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
192
                 </div>
182
                 </div>
183
+                
184
+                <div class="printCell">
185
+                  <span>
186
+                    分区/床号
187
+                    <span  style="width:auto;">{{main_collection.zone.name}}/</span>
188
+                    {{ main_collection.number.number }}
189
+                    <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
190
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
191
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
192
+                  </span>
193
+                 
194
+                </div>
193
               
195
               
194
               </div>
196
               </div>
195
            </div>
197
            </div>
235
         printObj: {},
237
         printObj: {},
236
         type: 1,
238
         type: 1,
237
         printDate: '',
239
         printDate: '',
238
-        loading:false,
240
+        loading: false
239
       }
241
       }
240
     },
242
     },
241
     components: {
243
     components: {
262
           week_time: this.week_time,
264
           week_time: this.week_time,
263
           zone: this.zone
265
           zone: this.zone
264
         }
266
         }
265
-      
267
+  
266
         this.loading = true
268
         this.loading = true
267
         getScheduleList(params).then(response => {
269
         getScheduleList(params).then(response => {
268
           if (response.data.state == 1) {
270
           if (response.data.state == 1) {
366
         }
368
         }
367
       },
369
       },
368
       printAction: function() {
370
       printAction: function() {
369
-        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 { } .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: 200px;} @page {margin-top:10px;}}'
370
-        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: 200px;} @page {margin-top:10px;}}'
371
-        const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .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: 200px;} @page {margin-top:10px;}}'
371
+        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 { } .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: 220px;} @page {margin-top:10px;}}'
372
+        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: 220px;} @page {margin-top:10px;}}'
373
+        const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .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: 220px;} @page {margin-top:10px;}}'
372
         if (this.org_id == 9671 || this.org_id == 10340) {
374
         if (this.org_id == 9671 || this.org_id == 10340) {
373
           printJS({
375
           printJS({
374
             printable: 'print_content',
376
             printable: 'print_content',
498
         // }
500
         // }
499
         var now_time = parseInt(this.week_type) * 86400 + this.start_time
501
         var now_time = parseInt(this.week_type) * 86400 + this.start_time
500
 
502
 
501
-       let weekOfDay = parseInt(moment().format('E'))
502
-        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
503
-        console.log("卡 is h2323233232",this.toStamp(next_monday))
504
-        let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
505
-        console.log("下周日",this.toStamp(next_sunday))
506
-
507
-      
503
+        const weekOfDay = parseInt(moment().format('E'))
504
+        const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
505
+        console.log('卡 is h2323233232', this.toStamp(next_monday))
506
+        const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
507
+        console.log('下周日', this.toStamp(next_sunday))
508
 
508
 
509
         const params = {
509
         const params = {
510
           start_time: this.toStamp(next_monday),
510
           start_time: this.toStamp(next_monday),
713
         return name
713
         return name
714
       },
714
       },
715
       toStamp(date) {
715
       toStamp(date) {
716
-        const myDate = new Date(date).getTime()/1000 - 28800
716
+        const myDate = new Date(date).getTime() / 1000 - 28800
717
         // const stmapEg = Date.parse(myDate) / 1000
717
         // const stmapEg = Date.parse(myDate) / 1000
718
-       return myDate
719
-      },
718
+        return myDate
719
+      }
720
 
720
 
721
     }
721
     }
722
   }
722
   }
801
 .printCell{
801
 .printCell{
802
   span{
802
   span{
803
     display: inline-block;
803
     display: inline-block;
804
-    width: 180px;
804
+    width: 220px;
805
   }
805
   }
806
 }
806
 }
807
 </style>
807
 </style>