张保健 1年前
父节点
当前提交
3ca03eddf3
共有 2 个文件被更改,包括 68 次插入43 次删除
  1. 27 2
      src/xt_pages/workforce/printOne.vue
  2. 41 41
      src/xt_pages/workforce/remind_print_setting_one.vue

+ 27 - 2
src/xt_pages/workforce/printOne.vue 查看文件

@@ -1,7 +1,17 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 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 15
       <el-row style="float: right">
6 16
         <el-col :span="24">
7 17
           <el-button
@@ -85,6 +95,8 @@ export default {
85 95
       td_4_width: '20%',
86 96
 
87 97
       month: 1,
98
+      hiddenFlag: false,
99
+      hiddenText: '隐藏备注',
88 100
       begin_day: 1,
89 101
 
90 102
       schedules: [
@@ -419,6 +431,15 @@ export default {
419 431
     this.getlist()
420 432
   },
421 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 443
     getAllZone() {
423 444
       GetAllZone().then((response) => {
424 445
         if (response.data.state == 0) {
@@ -616,7 +637,11 @@ export default {
616 637
       if (arr.length > 0) {
617 638
         for (let i = 0; i < arr.length; i++) {
618 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 647
       console.log(str, 'strstrstr')

+ 41 - 41
src/xt_pages/workforce/remind_print_setting_one.vue 查看文件

@@ -22,7 +22,7 @@
22 22
              
23 23
 
24 24
               <div class="signPrint" style="font-size:16px;">
25
-                <div>姓名:
25
+                <div style="font-size:24px;font-weight: 400;">姓名:
26 26
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
27 27
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
28 28
                   <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
@@ -33,37 +33,14 @@
33 33
                     {{getNewAge(main_collection.id_card_no) }}岁)</span> 
34 34
                   
35 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 36
                 <div class="printCell">
45 37
                   透析模式:
46 38
                     <span>{{getModeId(main_collection.mode_id)}}</span>
47 39
                   
48 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 41
                 <div class="printCell">
64 42
                   <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
65 43
                 </div>
66
-             
67 44
                 <div class="printCell">
68 45
                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
69 46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
@@ -173,7 +150,20 @@
173 150
                    </span>
174 151
           
175 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 167
                 <div class="printCell">
178 168
                    透析器:
179 169
                     <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
@@ -190,6 +180,18 @@
190 180
                     <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
191 181
                     <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
192 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 196
               </div>
195 197
            </div>
@@ -235,7 +237,7 @@
235 237
         printObj: {},
236 238
         type: 1,
237 239
         printDate: '',
238
-        loading:false,
240
+        loading: false
239 241
       }
240 242
     },
241 243
     components: {
@@ -262,7 +264,7 @@
262 264
           week_time: this.week_time,
263 265
           zone: this.zone
264 266
         }
265
-      
267
+  
266 268
         this.loading = true
267 269
         getScheduleList(params).then(response => {
268 270
           if (response.data.state == 1) {
@@ -366,9 +368,9 @@
366 368
         }
367 369
       },
368 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 374
         if (this.org_id == 9671 || this.org_id == 10340) {
373 375
           printJS({
374 376
             printable: 'print_content',
@@ -498,13 +500,11 @@
498 500
         // }
499 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 509
         const params = {
510 510
           start_time: this.toStamp(next_monday),
@@ -713,10 +713,10 @@
713 713
         return name
714 714
       },
715 715
       toStamp(date) {
716
-        const myDate = new Date(date).getTime()/1000 - 28800
716
+        const myDate = new Date(date).getTime() / 1000 - 28800
717 717
         // const stmapEg = Date.parse(myDate) / 1000
718
-       return myDate
719
-      },
718
+        return myDate
719
+      }
720 720
 
721 721
     }
722 722
   }
@@ -801,7 +801,7 @@
801 801
 .printCell{
802 802
   span{
803 803
     display: inline-block;
804
-    width: 180px;
804
+    width: 220px;
805 805
   }
806 806
 }
807 807
 </style>