瀏覽代碼

新式医院需求

XMLWAN 4 年之前
父節點
當前提交
0bf40490ab

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -429,7 +429,7 @@
429 429
         <el-row :gutter="20"> -->
430 430
 
431 431
         <el-col :span="8" v-if="isShow('实际置换量')">
432
-          <el-form-item v-if="this.template_id == 20" label="实际置换量(ml): ">
432
+          <el-form-item v-if="this.template_id == 20 || this.template_id == 21" label="实际置换量(ml): ">
433 433
             <el-input v-model="form.actual_displacement"></el-input>
434 434
           </el-form-item>
435 435
           <el-form-item v-else label="实际置换量(L): ">

+ 26 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -171,7 +171,8 @@
171 171
       @close="resetDialog"
172 172
       :modal-append-to-body="false"
173 173
     >
174
-      <div class="txsj">
174
+    <div style="font-size:16px;">上机时间:{{this.getTime(dialysis_order.start_time,'{h}:{i}')}}</div>
175
+      <!-- <div class="txsj">
175 176
         <el-button
176 177
           round
177 178
           @click="openLast(1)"
@@ -183,7 +184,7 @@
183 184
           @click="openNext(2)"
184 185
         >下一方
185 186
         </el-button>
186
-      </div>
187
+      </div> -->
187 188
 
188 189
       <div class="txsj" v-show="showAdvicePanel">
189 190
         <el-button
@@ -561,6 +562,21 @@
561 562
         <el-button type="primary" v-if="form.id == 0" @click="submitAdvice" :loading="loading">保 存</el-button>
562 563
         <el-button type="primary" v-else @click="submitEditAdvice" :loading="loading">保 存</el-button>
563 564
       </div>
565
+      <div slot="footer" class="dialog-footer" v-show="!showAdviceForm">
566
+        <div class="txsj">
567
+          <el-button
568
+            round
569
+            @click="openLast(1)"
570
+          >上一方
571
+          </el-button>
572
+
573
+          <el-button
574
+            round
575
+            @click="openNext(2)"
576
+          >下一方
577
+          </el-button>
578
+        </div>
579
+      </div>
564 580
       <!-- 医嘱表单 end -->
565 581
     </el-dialog>
566 582
     <el-dialog
@@ -619,6 +635,7 @@
619 635
   import AddGroupAdvice from './adviceDialog/AddGroupAdvice'
620 636
   import EditGroupAdvice from './adviceDialog/EditGroupAdvice'
621 637
   import { uParseTime } from '@/utils/tools'
638
+  import { parseTime } from '@/utils'
622 639
   import {
623 640
     CheckDoctorAdvice,
624 641
     CreateDoctorAdvice,
@@ -2247,7 +2264,13 @@
2247 2264
           this.GetLastOrNextDoctorAdvice(params)
2248 2265
 
2249 2266
         }
2250
-      }
2267
+      },
2268
+      getTime(value, temp) {
2269
+        if (value != undefined) {
2270
+          return parseTime(value, temp)
2271
+        }
2272
+        return ''
2273
+      },
2251 2274
     },
2252 2275
     created() {
2253 2276
       var date = this.$route.query && this.$route.query.date

+ 8 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue 查看文件

@@ -72,6 +72,12 @@
72 72
         <el-input v-model="receiveTreatmentAsses.admission_number"></el-input>
73 73
       </el-form-item>
74 74
 
75
+      <el-form-item
76
+        label="诊断:" v-if="isShow('诊断') && this.receiveTreatmentAsses.condition == '1'"
77
+      >
78
+        <el-input v-model="receiveTreatmentAsses.diacrisis"></el-input>
79
+      </el-form-item>
80
+
75 81
       <el-form-item label="体位 : " v-if="isShow('体位')">
76 82
         <el-radio
77 83
           v-for="(item, index) in posture_arr"
@@ -274,7 +280,8 @@ export default {
274 280
         psychological_other: "",
275 281
         precaution: "",
276 282
         precaution_other: "",
277
-        admission_number: ""
283
+        admission_number: "",
284
+        diacrisis:""
278 285
       },
279 286
       precautionTwo: []
280 287
     };

+ 2 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

@@ -129,7 +129,8 @@
129 129
       if (this.form.puncture_nurse_id == 0) {
130 130
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
131 131
       }
132
-
132
+      
133
+     
133 134
     },
134 135
     watch: {
135 136
       'schedule.id': function() {

+ 42 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -140,6 +140,39 @@
140 140
             </el-form-item>
141 141
           </el-col>
142 142
 
143
+
144
+          <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
145
+            <el-form-item label="肝素钠(mg/h):">
146
+              <el-input
147
+                v-model="dialysisPrescription.heparin_sodium"
148
+              ></el-input>
149
+            </el-form-item>
150
+          </el-col>
151
+
152
+          <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10" >
153
+            <el-form-item label="鱼精蛋白(mg/h):">
154
+              <el-input
155
+                v-model="dialysisPrescription.nucleoprotamine"
156
+              ></el-input>
157
+            </el-form-item>
158
+          </el-col>
159
+
160
+          <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
161
+            <el-form-item label="下机前推注鱼精蛋白(mg):">
162
+              <el-input
163
+                v-model="dialysisPrescription.push_the_protamine"
164
+              ></el-input>
165
+            </el-form-item>
166
+          </el-col>
167
+
168
+          <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
169
+            <el-form-item label="无肝素备注:">
170
+              <el-input
171
+                v-model="dialysisPrescription.no_heparin_remarks"
172
+              ></el-input>
173
+            </el-form-item>
174
+          </el-col>
175
+
143 176
           <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
144 177
             <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23' :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
145 178
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -186,6 +219,10 @@
186 219
             </el-form-item>
187 220
           </el-col>
188 221
 
222
+          
223
+
224
+       
225
+
189 226
           <el-col :span="8" v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20)"
190 227
                   v-show="zhiShow">
191 228
             <el-form-item label="置换量(ml):">
@@ -1216,6 +1253,10 @@
1216 1253
           pre_impulse:0, //预冲量
1217 1254
           anticoagulant_stop_time_hour:"",
1218 1255
           anticoagulant_stop_time_min:"",
1256
+          push_the_protamine:"",//下机前推注鱼精蛋白
1257
+          heparin_sodium:"", //肝素钠
1258
+          nucleoprotamine:"",//鱼精蛋白
1259
+          no_heparin_remarks:"",
1219 1260
         },
1220 1261
 
1221 1262
         anticoagulant: {
@@ -1670,7 +1711,7 @@
1670 1711
               mode = 2
1671 1712
             }
1672 1713
             ParamsQuery['mode'] = mode
1673
-
1714
+             console.log("paramsquery",ParamsQuery)
1674 1715
             postPrescription(ParamsQuery).then(response => {
1675 1716
               if (response.data.state == 0) {
1676 1717
                 this.$message.error(response.data.msg)

+ 48 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyOne.vue 查看文件

@@ -352,7 +352,7 @@
352 352
                             <td width="70">透前体重:</td>
353 353
                             <td width="50">
354 354
                                 <div class="under-line">
355
-                                    &nbsp;{{ predialysis.weight_before ? parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(2) : "" }}
355
+                                    &nbsp;{{ predialysis.weight_before ? parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(2) : "/" }}
356 356
                                 </div>
357 357
                             </td>
358 358
                             <td width="20">Kg</td>
@@ -360,7 +360,7 @@
360 360
                             <td width="70">透后体重:</td>
361 361
                             <td width="50">
362 362
                                 <div class="under-line">
363
-                                    &nbsp;{{ afterdialysis.weight_after ? (afterdialysis.weight_after - afterdialysis.additional_weight) : "" }}
363
+                                    &nbsp;{{ afterdialysis.weight_after ? (afterdialysis.weight_after - afterdialysis.additional_weight) : "/" }}
364 364
                                 </div>
365 365
                             </td>
366 366
                             <td width="20">Kg</td>
@@ -390,7 +390,7 @@
390 390
                             <td width="40">计划</td>
391 391
                             <td width="50">
392 392
                                 <div class="under-line">
393
-                                    &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
393
+                                    &nbsp;{{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}
394 394
                                 </div>
395 395
                             </td>
396 396
                             <td width="20">ml</td>
@@ -543,6 +543,12 @@
543 543
                     <td width="80">
544 544
                       <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
545 545
                     </td>
546
+                    <td width="80">
547
+                      <div class="under-line">
548
+                        &nbsp;
549
+                        <span v-if="prescription.anticoagulant == 1">{{ prescription.no_heparin_remarks }}</span>
550
+                      </div>
551
+                    </td>
546 552
                     <td width="80">
547 553
                       <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通:"></label-box>
548 554
                     </td>
@@ -573,10 +579,9 @@
573 579
                     <td width="40">mg</td>
574 580
 
575 581
 
576
-                    <td width='300'>
582
+                    <td width='280'>
577 583
                       <label-box :isChecked="prescription.anticoagulant == 6 ? true:false" showValue="低分子肝素钙"></label-box>
578
-                      <label-box :isChecked="prescription.anticoagulant == 8 ? true:false" showValue="依诺肝素"></label-box>
579
-                      <label-box :isChecked="prescription.anticoagulant == 9 ? true:false" showValue="达肝素"></label-box>
584
+                      <label-box :isChecked="prescription.anticoagulant == 8 ? true:false" showValue="依诺肝素"></label-box> 
580 585
                     </td>
581 586
                     <td width="60">
582 587
                       <div class="under-line">
@@ -587,9 +592,44 @@
587 592
                     <td width="20">iu</td>
588 593
                     <td></td>
589 594
                   </tr>
595
+                  
590 596
                 </tbody>
591 597
               </table>
592
-
598
+              <table class="table-box">
599
+                <tr>
600
+                    <td width="80">
601
+                      <label-box :isChecked="prescription.anticoagulant == 9 ? true:false" showValue="达肝素"></label-box>
602
+                    </td>
603
+                    <td width="120">
604
+                      <label-box :isChecked="prescription.anticoagulant == 10 ? true:false" showValue="体外抗凝"></label-box>
605
+                    </td>
606
+                    <td width="60">肝素钠</td>
607
+                    <td width="60">
608
+                       <div class="under-line">
609
+                        &nbsp;
610
+                        <span v-if="prescription.anticoagulant == 10 ">{{ prescription.heparin_sodium }}</span>
611
+                      </div>
612
+                    </td>
613
+                    <td width="20">mg/h</td>
614
+                    <td width="100">鱼精蛋白</td>
615
+                    <td width="60">
616
+                       <div class="under-line">
617
+                        &nbsp;
618
+                        <span v-if="prescription.anticoagulant == 10 ">{{ prescription.nucleoprotamine }} </span>
619
+                      </div>
620
+                    </td>
621
+                    <td width="20">mg/h</td>
622
+                    <td width="160">下机前推注鱼精蛋白</td>
623
+                    <td width="60">
624
+                       <div class="under-line">
625
+                        &nbsp;
626
+                        <span v-if="prescription.anticoagulant == 10">{{ prescription.push_the_protamine }}</span>
627
+                      </div>
628
+                    </td>
629
+                    <td width="20">mg</td>
630
+                    <td></td>
631
+                  </tr>
632
+              </table>
593 633
               <table class="table-box">
594 634
                 <tbody>
595 635
                   <tr>
@@ -717,7 +757,7 @@
717 757
               &nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
718 758
             </td>
719 759
             <td>
720
-              &nbsp;{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}
760
+              &nbsp; <span v-if='getTime(monitor.operate_time, "{h}:{i}")'>{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span>
721 761
             </td>
722 762
             <td>
723 763
               &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}

+ 11 - 25
src/xt_pages/medicalScheduling/schedulingStatistics.vue 查看文件

@@ -2,9 +2,9 @@
2 2
     <div class="main-contain">
3 3
         <div class="position">
4 4
             <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-            <!-- <div style="display:flex;align-items:center">
5
+            <div style="display:flex;align-items:center">
6 6
                 <el-button type="primary" icon="el-icon-printer" @click='toPrint'>打印</el-button>
7
-            </div> -->
7
+            </div>
8 8
         </div>
9 9
         <div class="app-container">
10 10
             <div class="cell clearfix">
@@ -775,29 +775,15 @@ export default {
775 775
                 return Count
776 776
             }
777 777
         },
778
-        // toPrint(){
779
-        //     this.$router.push({
780
-        //         path: '/medicalScheduling/statistics/print',
781
-        //         // query: { date: date }
782
-        //     })
783
-        // },
784
-    //     toPrint: function() {
785
-    //         import('@/vendor/Export2Excel').then(excel => {
786
-    //       const tHeader = ['编号', '标题', '作者','回顾', '时间'];
787
-    //       const filterVal = ['id', 'title','author','pageviews','display_time'];
788
-    //      const list = [
789
-    //            {id: 1, title: 2, author: 3, pageviews: 4, display_time: 5},
790
-    //            {id: 6, title: 7, author: 8, pageviews: 9, display_time: 10},
791
-    //            {id: 11, title: 12, author: 13, pageviews: 14, display_time: 15},
792
-    //          ];
793
-    //      const data = this.formatJson(filterVal, list);
794
-    //         console.log("data",data)
795
-    //       excel.export_json_to_excel(tHeader, data, '书刊数据');
796
-    //         })
797
-    //     },
798
-    //     formatJson(filterVal, jsonData) {
799
-    //       return jsonData.map(v => filterVal.map(j => v[j]))
800
-    //     },
778
+        toPrint(){
779
+            this.$router.push({
780
+                path: '/medicalScheduling/statistics/print?start_time='+this.start_time+"&end_time="+this.end_time,
781
+                // query: { date: date }
782
+            })
783
+        },
784
+        formatJson(filterVal, jsonData) {
785
+          return jsonData.map(v => filterVal.map(j => v[j]))
786
+        },
801 787
 
802 788
         //获取统计图数据
803 789
         getchartlist(){

+ 208 - 15
src/xt_pages/medicalScheduling/statistics_print.vue 查看文件

@@ -15,31 +15,40 @@
15 15
                         <span class="main_title">{{ $store.getters.xt_user.org.org_name }}医护排班统计表</span>
16 16
                     </div>
17 17
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
18
-                      打印时间:
18
+                      打印时间:{{ getNowFormatDate()}}
19 19
                     </div>
20 20
                     <div class="table_panel">
21 21
                         <table class="table">
22 22
                             <thead>
23 23
                                 <tr>
24
-                                    <td width="120">医护姓名</td>
25
-                                    <td width="120">医护姓名</td>
26
-                                    <td width="120">医护姓名</td>
27
-                                    <td width="120">医护姓名</td>
28
-                                    <td width="120">医护姓名</td>
29
-                                    <td width="120">医护姓名</td>
24
+                                  <td width="150">医护姓名</td>
25
+                                  <td width="120" v-for="(modeItem, index) in scheduleList" :key="index">{{modeItem.class_name}}</td>
26
+                                  <td width="120">总工时/小时</td>
27
+                                  <td width="120">出勤/天</td>
28
+                                  <td width="120">缺勤/天</td>
30 29
                                 </tr>
31 30
                             </thead>
32 31
                             <tbody>
33
-                                <tr>
34
-                                    <td width="120">医护姓名</td>
35
-                                    <td width="120">医护姓名</td>
36
-                                    <td width="120">医护姓名</td>
37
-                                    <td width="120">医护姓名</td>
38
-                                    <td width="120">医护姓名</td>
39
-                                    <td width="120">医护姓名</td>
32
+                                <tr v-for="(item,i) in tableData" :key="i">
33
+                                  <td width="120">
34
+                                    {{ item.user_name}}
35
+                                   </td>
36
+                                   <td width="120" v-for="(it,i) in scheduleList" :key="i">
37
+                                    {{ getCount(item.doctor_id,it.class_name) }}
38
+                                   </td>
39
+                                   <td width="120">
40
+                                    {{ item.user_name}}
41
+                                   </td>
42
+                                    <td width="120">
43
+                                    {{item.attendance}}
44
+                                   </td>
45
+                                   <td width="120">
46
+                                    {{item.absence}}
47
+                                   </td>
40 48
                                 </tr>
41 49
                             </tbody>
42 50
                         </table>
51
+                        
43 52
                     </div>
44 53
                 </div>
45 54
             </div>
@@ -49,6 +58,8 @@
49 58
 
50 59
 <script>
51 60
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
61
+import { getDoctorList,getScheduleListTotal,getScheduleList } from '@/api/doctorSchedule'
62
+import { parseTime } from '@/utils'
52 63
 import print from 'print-js'
53 64
 export default {
54 65
     components:{
@@ -60,13 +71,195 @@ export default {
60 71
                 { path: false, name: '医护排班' },
61 72
                 { path: false, name: '排班统计打印' }
62 73
             ],
74
+            start_time:0,
75
+            end_time:0,
76
+            doctorlist:[],
77
+            tableData:[],
78
+            scheduleList:[],
63 79
         }
64 80
     },
65 81
     created(){
66
-
82
+      
83
+      var startime =  this.$route.query.start_time
84
+      this.start_time = parseInt(startime)
85
+       console.log("开始时间",this.start_time)
86
+      var end_time = this.$route.query.end_time
87
+      this.end_time = parseInt(end_time)
88
+      console.log("结束时间",this.end_time)
89
+       //获取该机构所有医护人员
90
+      this.getDoctorList()
91
+       // 获取统计表的数据
92
+      this.getlist()
93
+       //获取所有排班种
94
+      this.getScheduleList()
67 95
     },
68 96
     methods:{
97
+      getDoctorList(){
98
+        getDoctorList().then(response=>{
99
+          var list =  response.data.data.list
100
+          var doctorlist =  response.data.data.doctorlist
101
+          var nurselist =  response.data.data.nurselist
102
+          this.doctorArr = doctorlist
103
+          this.nurseArr = nurselist
104
+          this.doctorlist.push(...nurselist)
105
+          this.doctorlist.push(...doctorlist)
106
+        })
107
+      },
108
+
109
+      //获取统计表数据
110
+        getlist(){
111
+            if(this.timeSlot == 1){
112
+               this.start_time = this.getTimestamp(this.weekDayArr[0]),
113
+               this.end_time = this.getTimestamp(this.weekDayArr[6])
114
+            }
115
+            const params = {
116
+                start_time:this.start_time,
117
+                end_time:this.end_time,
118
+            }
119
+            // console.log("params",params)
120
+            getScheduleListTotal(params).then(response=>{
121
+                if(response.data.state == 1){
122
+                    //获取每个班次对应的次数
123
+                    var scheudleTotal =  response.data.data.scheudletotal
124
+                    // console.log("scheudletotal",scheudleTotal)
125
+                    //获取总分钟数
126
+                    var list = response.data.data.list
127
+                    // console.log("list",list)
128
+                    var workday = response.data.data.workDay
129
+                    // console.log("workday",workday)
130
+                    var noWorkDay = response.data.data.noWorkDay
131
+                    // console.log("noWorkDay",noWorkDay)
132
+
133
+                    let tempArr = [], newArr = []
134
+                    for (let i = 0; i < scheudleTotal.length; i++) {
135
+                        if (tempArr.indexOf(scheudleTotal[i].user_name) === -1) {
136
+                            newArr.push({
137
+                                user_name: scheudleTotal[i].user_name,
138
+                                doctor_id:scheudleTotal[i].doctor_id,
139
+                                list: [{class_name:scheudleTotal[i].class_name,doctor_id:scheudleTotal[i].doctor_id,Count:scheudleTotal[i].Count}]
140
+                            })
141
+                            tempArr.push(scheudleTotal[i].user_name);
142
+                        } else {
143
+                            for (let j = 0; j < newArr.length; j++) {
144
+                                if (newArr[j].user_name == scheudleTotal[i].user_name) {
145
+                                    newArr[j].list.push({class_name:scheudleTotal[i].class_name,doctor_id:scheudleTotal[i].doctor_id,Count:scheudleTotal[i].Count})
146
+                                }
147
+                            }
148
+                        }
149
+                    }
150
+
151
+                    newArr.map(item => {
152
+                        list.map(it => {
153
+                            if(item.doctor_id == it.doctor_id){
154
+                                item.totalminute = it.totalminute
155
+                            }
156
+                        })
157
+                    })
158
+                    newArr.map(item => {
159
+                        workday.map(it => {
160
+                            if(item.doctor_id == it.doctor_id){
161
+                                item.attendance = it.Count
162
+                            }
163
+                        })
164
+                    })
165
+                    newArr.map(item => {
166
+                        noWorkDay.map(it => {
167
+                            if(item.doctor_id == it.doctor_id){
168
+                                item.absence = it.Count
169
+                            }
170
+                        })
171
+                    })
172
+
173
+                    let arr = [...newArr]
174
+
175
+                    arr.sort(this.compare('doctor_id'))
176
+                    this.doctorlist.sort(this.compare('admin_user_id'))
177
+                    this.doctorlist.forEach((item, index) => {
178
+                      if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
179
+
180
+                      }else{
181
+                        arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
182
+                      }
183
+                    })
69 184
 
185
+
186
+                    console.log('打印数据',arr)
187
+                    this.tableData = arr
188
+                    this.$nextTick(() => {
189
+                      this.$refs.tab.doLayout()
190
+                    })
191
+                }
192
+            })
193
+        },
194
+        compare(property){
195
+            return function(a,b){
196
+              var value1 = a[property];
197
+              var value2 = b[property];
198
+              return value2 - value1;
199
+            }
200
+        },
201
+         //获取所有班种
202
+        getScheduleList(){
203
+          getScheduleList().then(response=>{
204
+             if(response.data.state == 1){
205
+                var schedulelist = response.data.data.scheduleList
206
+                // console.log("schedulelist",schedulelist)
207
+                this.scheduleList = schedulelist
208
+             }
209
+          })
210
+        },
211
+
212
+         printAction: function() {
213
+          const style = '@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: 16px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 10px 5px; white-space: pre-line;} .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; } }'
214
+
215
+          printJS({
216
+          printable: 'print_content',
217
+          type: 'html',
218
+          documentTitle: '  ',
219
+          style: style,
220
+          scanStyles: false
221
+          })
222
+      },
223
+       getCount(id,name){
224
+            if(id != undefined){
225
+                let Count = '';
226
+                this.tableData.map(item => {
227
+                    if(item.doctor_id == id){
228
+                        if(item.list){
229
+                            item.list.map(it => {
230
+                                if(it.class_name == name){
231
+                                    Count = it.Count
232
+                                }
233
+                            })
234
+                        }
235
+
236
+                    }
237
+                })
238
+                return Count
239
+            }
240
+        },
241
+       getTime(value, temp) {
242
+        if (value != undefined) {
243
+          return parseTime(value, temp)
244
+        }
245
+        return ''
246
+      },
247
+
248
+     getNowFormatDate() {
249
+        var date = new Date();
250
+        var seperator1 = "-";
251
+        var year = date.getFullYear();
252
+        var month = date.getMonth() + 1;
253
+        var strDate = date.getDate();
254
+        if (month >= 1 && month <= 9) {
255
+            month = "0" + month;
256
+        }
257
+        if (strDate >= 0 && strDate <= 9) {
258
+            strDate = "0" + strDate;
259
+        }
260
+        var currentdate = year + seperator1 + month + seperator1 + strDate;
261
+        return currentdate;
262
+      },
70 263
     }
71 264
 }
72 265
 </script>