Browse Source

8月15日

XMLWAN 2 years ago
parent
commit
8fd662c8fa

+ 4 - 2
src/api/dialysis_record.js View File

47
   })
47
   })
48
 }
48
 }
49
 
49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark) {
51
   var params = {
51
   var params = {
52
     patient_id: patient_id,
52
     patient_id: patient_id,
53
     date: schedule_date,
53
     date: schedule_date,
69
     dialysis_dialyszers: dialysis_dialyszers,
69
     dialysis_dialyszers: dialysis_dialyszers,
70
     dialysis_irrigation: dialysis_irrigation,
70
     dialysis_irrigation: dialysis_irrigation,
71
     blood_access_id: blood_access_id,
71
     blood_access_id: blood_access_id,
72
-    nuclein_date: nuclein_date
72
+    nuclein_date: nuclein_date,
73
+    schedule_remark: schedule_remark,
74
+    order_remark: order_remark
73
   }
75
   }
74
   console.log('params', params)
76
   console.log('params', params)
75
   return request({
77
   return request({

+ 8 - 0
src/api/schedule.js View File

134
   })
134
   })
135
 }
135
 }
136
 
136
 
137
+export function getNextScheduleWeekDayOne(params) {
138
+  return request({
139
+    url: '/api/schedule/getnextscheduleweekdayone',
140
+    method: 'get',
141
+    params: params
142
+  })
143
+}
144
+
137
 export function getThreeWeekList(params) {
145
 export function getThreeWeekList(params) {
138
   return request({
146
   return request({
139
     url: '/api/schedule/getthreeweeklist',
147
     url: '/api/schedule/getthreeweeklist',

+ 10 - 10
src/router/modules/dialysis.js View File

38
     //     noCache: true
38
     //     noCache: true
39
     //   }
39
     //   }
40
     // },
40
     // },
41
-    // {
42
-    //   path: '/dialysis/dialysisDoctorAdvice',
43
-    //   component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
44
-    //   name: '透析医嘱',
45
-    //   meta: {
46
-    //     title: '透析医嘱',
47
-    //     noCache: true
48
-    //   }
49
-    // },
50
     {
41
     {
51
       path: '/dialysis/dialysisDoctorAdvice',
42
       path: '/dialysis/dialysisDoctorAdvice',
52
-      component: () => import('@/xt_pages/dialysis/newDoctorAdvice'),
43
+      component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
53
       name: '透析医嘱',
44
       name: '透析医嘱',
54
       meta: {
45
       meta: {
55
         title: '透析医嘱',
46
         title: '透析医嘱',
56
         noCache: true
47
         noCache: true
57
       }
48
       }
58
     },
49
     },
50
+    // {
51
+    //   path: '/dialysis/dialysisDoctorAdvice',
52
+    //   component: () => import('@/xt_pages/dialysis/newDoctorAdvice'),
53
+    //   name: '透析医嘱',
54
+    //   meta: {
55
+    //     title: '透析医嘱',
56
+    //     noCache: true
57
+    //   }
58
+    // },
59
     {
59
     {
60
       path: '/dialysis/doctorAdvicePrint',
60
       path: '/dialysis/doctorAdvicePrint',
61
       component: () => import('@/xt_pages/dialysis/doctorAdvicePrint'),
61
       component: () => import('@/xt_pages/dialysis/doctorAdvicePrint'),

+ 11 - 0
src/router/modules/workforce.js View File

113
       noCache: true
113
       noCache: true
114
     }
114
     }
115
   },
115
   },
116
+  {
117
+    path: '/schedule/remind/print/setting/one',
118
+    component: () => import('@/xt_pages/workforce/remind_print_setting_one'),
119
+    name: 'remind_print_setting_one',
120
+    hidden: true,
121
+    is_menu: false,
122
+    meta: {
123
+      title: 'remind_print_setting_one',
124
+      noCache: true
125
+    }
126
+  },
116
   {
127
   {
117
     path: '/scheduleTablePrint',
128
     path: '/scheduleTablePrint',
118
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),
129
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),

+ 9 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue View File

543
                                 <span v-if="record.prescription.anticoagulant == 7"
543
                                 <span v-if="record.prescription.anticoagulant == 7"
544
                                     >&nbsp;低分子肝素钠</span
544
                                     >&nbsp;低分子肝素钠</span
545
                                 >
545
                                 >
546
+                                <span v-if="record.prescription.anticoagulant == 8">&nbsp;依诺肝素</span>
547
+                                <span v-if="record.prescription.anticoagulant == 9">&nbsp;达肝素</span>
548
+                                 <span v-if="record.prescription.anticoagulant == 10">&nbsp;体外抗凝</span>
549
+                                 <span v-if="record.prescription.anticoagulant == 11">&nbsp;那屈肝素</span>
550
+                                 <span v-if="record.prescription.anticoagulant == 12">&nbsp;无抗凝剂</span>
551
+                                <span v-if="record.prescription.anticoagulant == 13">&nbsp;那屈肝素钙</span>
552
+                                
553
+                               
554
+                             
546
                                 </div>
555
                                 </div>
547
                             </div>
556
                             </div>
548
                             <div class="inline_block" style="margin-left:20px;" v-if="record.prescription.anticoagulant != 5">
557
                             <div class="inline_block" style="margin-left:20px;" v-if="record.prescription.anticoagulant != 5">

+ 24 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

128
           ></el-date-picker>
128
           ></el-date-picker>
129
         </el-form-item>
129
         </el-form-item>
130
 
130
 
131
+      
132
+        <el-form-item label="上机备注:" style="width:300px"  v-if="isShowFiled('上机备注')">
133
+          <el-input style="width:200px" v-model="form.order_remark"></el-input>
134
+        </el-form-item>
135
+
136
+         <el-form-item label="排班备注:" style="width:300px"  v-if="isShowFiled('排班备注')">
137
+          <el-input style="width:200px" v-model="form.schedule_remark"></el-input>
138
+        </el-form-item>
139
+
140
+
131
 
141
 
132
         <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
142
         <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
133
           <el-date-picker
143
           <el-date-picker
199
           dialysis_irrigation:"",
209
           dialysis_irrigation:"",
200
           blood_access_id:"",
210
           blood_access_id:"",
201
           nuclein_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
211
           nuclein_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
212
+          schedule_remark:"",
213
+          order_remark:"",
202
         },
214
         },
203
         blood_access_option:[],
215
         blood_access_option:[],
204
         schedual_type: 0,
216
         schedual_type: 0,
264
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
276
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
265
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
277
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
266
       this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
278
       this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
267
-
279
+  
268
 
280
 
269
       if (this.form.puncture_nurse_id == 0) {
281
       if (this.form.puncture_nurse_id == 0) {
270
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
282
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
290
       this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
302
       this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
291
       this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
303
       this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
292
       this.form.blood_access_id = this.dialysis_order.blood_access_id
304
       this.form.blood_access_id = this.dialysis_order.blood_access_id
305
+      this.form.schedule_remark = this.dialysis_order.schedule_remark
306
+      this.form.order_remark = this.dialysis_order.order_remark
293
       this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
307
       this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
294
       this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
308
       this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
295
       this.blood_access_option = getDataConfig(
309
       this.blood_access_option = getDataConfig(
296
           'hemodialysis',
310
           'hemodialysis',
297
           'vascular_access_desc'
311
           'vascular_access_desc'
298
         )
312
         )
313
+      this.form.schedule_remark = this.dialysis_order.schedule_remark
314
+      this.form.order_remark = this.dialysis_order.order_remark
299
     },
315
     },
300
     watch: {
316
     watch: {
301
       patient:{
317
       patient:{
321
         this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
337
         this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
322
         this.form.blood_access_id = this.dialysis_order.blood_access_id
338
         this.form.blood_access_id = this.dialysis_order.blood_access_id
323
         this.form.nuclein_date = this.dialysis_order.id == 0?this.getTimeOne(this.lastOrder.nuclein_date): this.getTimeOne(this.dialysis_order.nuclein_date)
339
         this.form.nuclein_date = this.dialysis_order.id == 0?this.getTimeOne(this.lastOrder.nuclein_date): this.getTimeOne(this.dialysis_order.nuclein_date)
340
+        this.form.schedule_remark = this.dialysis_order.id == 0?this.lastOrder.schedule_remark:this.dialysis_order.schedule_remark
341
+        this.form.order_remark = this.dialysis_order.id == 0?this.lastOrder.order_remark:this.dialysis_order.order_remark
324
         var nowDate = new Date()
342
         var nowDate = new Date()
325
         var nowYear = nowDate.getFullYear()
343
         var nowYear = nowDate.getFullYear()
326
         var nowMonth = nowDate.getMonth() + 1
344
         var nowMonth = nowDate.getMonth() + 1
481
         var nowMinutes = nowDate.getMinutes()
499
         var nowMinutes = nowDate.getMinutes()
482
         var nowSeconds = nowDate.getSeconds()
500
         var nowSeconds = nowDate.getSeconds()
483
         this.form.nuclein_date = this.dialysis_order.id == 0?this.getTimeOne(lastOrder.nuclein_date): this.getTimeOne(this.dialysis_order.nuclein_date)
501
         this.form.nuclein_date = this.dialysis_order.id == 0?this.getTimeOne(lastOrder.nuclein_date): this.getTimeOne(this.dialysis_order.nuclein_date)
502
+        this.form.schedule_remark = this.dialysis_order.id == 0?this.lastOrder.schedule_remark: this.dialysis_order.schedule_remark
503
+        this.form.order_remark = this.dialysis_order.id == 0?this.lastOrder.order_remark: this.dialysis_order.order_remark
484
         if (this.dialysis_order.id != 0) {
504
         if (this.dialysis_order.id != 0) {
485
           this.form.start_time = this.getTime(this.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
505
           this.form.start_time = this.getTime(this.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
486
         } else {
506
         } else {
537
         console.log("质控护士",this.form.quality_nurse_id)
557
         console.log("质控护士",this.form.quality_nurse_id)
538
         console.log("this.form.nuclein_date",this.form.nuclein_date)
558
         console.log("this.form.nuclein_date",this.form.nuclein_date)
539
        
559
        
540
-        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id,this.form.puncture_needle,this.form.puncture_way,this.form.dialysis_dialyszers,this.form.dialysis_irrigation,this.form.blood_access_id,this.form.nuclein_date).then(rs => {
560
+        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id,this.form.puncture_needle,this.form.puncture_way,this.form.dialysis_dialyszers,this.form.dialysis_irrigation,this.form.blood_access_id,this.form.nuclein_date,this.form.schedule_remark,this.form.order_remark).then(rs => {
541
           this.loading = false
561
           this.loading = false
542
           var resp = rs.data
562
           var resp = rs.data
543
           if (resp.state == 1) {
563
           if (resp.state == 1) {
580
         ParamsQuery["blood_access_id"] = this.form.blood_access_id
600
         ParamsQuery["blood_access_id"] = this.form.blood_access_id
581
         ParamsQuery["nuclein_date"] = this.form.nuclein_date
601
         ParamsQuery["nuclein_date"] = this.form.nuclein_date
582
         ParamsQuery['mode'] = "2"
602
         ParamsQuery['mode'] = "2"
603
+        ParamsQuery["schedule_remark"] = this.form.schedule_remark
604
+        ParamsQuery["order_remark"] = this.form.order_remark
583
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
605
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
584
           ParamsQuery['mode'] = "3"
606
           ParamsQuery['mode'] = "3"
585
         }
607
         }

+ 12 - 0
src/xt_pages/dialysis/details/dialysisComputer.vue View File

74
           <span class="content">{{getTimeOne(this.record.nuclein_date)}}</span>
74
           <span class="content">{{getTimeOne(this.record.nuclein_date)}}</span>
75
         </li>
75
         </li>
76
       </ul>
76
       </ul>
77
+      <ul>
78
+        <li v-if="isShow('排班备注')">
79
+          <label>排班备注 : </label>
80
+          <span class="content">{{this.record.schedule_remark}}</span>
81
+        </li>
82
+      </ul>
83
+      <ul>
84
+        <li v-if="isShow('上机备注')">
85
+          <label>上机备注 : </label>
86
+          <span class="content">{{this.record.order_remark}}</span>
87
+        </li>
88
+      </ul>
77
       <ul>
89
       <ul>
78
         <li v-if="isShow('上机时间')">
90
         <li v-if="isShow('上机时间')">
79
           <label>上机时间 : </label>
91
           <label>上机时间 : </label>

+ 173 - 0
src/xt_pages/dialysis/details/index.vue View File

386
     </el-dialog>
386
     </el-dialog>
387
 
387
 
388
 
388
 
389
+
390
+  
391
+      <el-dialog
392
+                :visible.sync="endVisibility"
393
+                :close-on-click-modal="false"
394
+                :close-on-press-escape="false"
395
+                :show-close="false"
396
+                width="30%"
397
+        >
398
+         <el-button
399
+            size="small"
400
+            icon="el-icon-printer"
401
+            type="primary"
402
+            @click="printAction"
403
+            style="float:right"
404
+            >打印</el-button
405
+          >
406
+       <div id="print_content">
407
+        <div class="print_main_content">
408
+          <div class="table_panel">
409
+             <div v-for="(main_collection,index) in printList" :key="index">
410
+              <div class="signPrint" style="width: 360px;font-size:16px;">
411
+                <div style="margin-left:50px;">姓名:
412
+                  <span>{{main_collection.patient.name}} </span>
413
+                  ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁)
414
+                </div>
415
+                <div class="printCell" style="display:flex;justify-content: space-around;">
416
+                  <span style="display: block;width: 50%;">
417
+                    床号:{{ main_collection.number.number }}
418
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
419
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
420
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
421
+                  </span>
422
+                  <span style="display: block;width: 50%;">{{ printDate }}</span>
423
+                </div>
424
+                <div class="printCell" style="display:flex;justify-content: space-around;">
425
+                   <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
426
+                    <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
427
+
428
+                </div>
429
+                <div class="printCell" style="display:flex;justify-content: space-around;">
430
+                  <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
431
+                  
432
+                  <span style="display: block;width: 50%;">
433
+                    首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
434
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
435
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
436
+                  </span>
437
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
438
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
439
+                  </span>
440
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
441
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}mg
442
+                  </span>
443
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
444
+                   {{main_collection.dialysissolution.anticoagulant_shouji}} mg
445
+                   </span>
446
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
447
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}iu
448
+                  </span>
449
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
450
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
451
+                   </span>
452
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
453
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
454
+                  </span>
455
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
456
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
457
+                  </span>
458
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
459
+                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
460
+                    </span>
461
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
462
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
463
+                   </span>
464
+                    </span> 
465
+                 
466
+                </div>
467
+                <div class="printCell" style="display:flex;justify-content: space-around;">
468
+                  <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
469
+                 <span style="display: block;width: 50%;">
470
+                     维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
471
+                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
472
+                    mg/h
473
+                  </span>
474
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
475
+                    mg/h
476
+                  </span>
477
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
478
+                   iu/h
479
+                  </span>
480
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
481
+                    mg/h
482
+                  </span>
483
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
484
+                    mg/h
485
+                   </span>
486
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
487
+                   iu/h
488
+                  </span>
489
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
490
+                   iu/h
491
+                   </span>
492
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
493
+                    iu/h
494
+                  </span>
495
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
496
+                    iu/h
497
+                  </span>
498
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
499
+                    iu/h
500
+                    </span>
501
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
502
+                    iu/h
503
+                   </span>
504
+                  </span>
505
+                
506
+                </div>
507
+                <div class="printCell" style="display:flex;justify-content: space-around;">
508
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
509
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span> 
510
+                    <span v-else>L</span>
511
+                  </span>
512
+                  <span style="display: block;width: 50%;">
513
+                    总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
514
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">
515
+                    mg
516
+                  </span>
517
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
518
+                    mg
519
+                  </span>
520
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
521
+                    iu
522
+                  </span>
523
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
524
+                   mg
525
+                  </span>
526
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
527
+                    mg
528
+                   </span>
529
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
530
+                   iu
531
+                  </span>
532
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
533
+                    iu
534
+                   </span>
535
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
536
+                     iu
537
+                  </span>
538
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
539
+                   iu
540
+                  </span>
541
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
542
+                    iu
543
+                    </span>
544
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
545
+                   iu
546
+                   </span>
547
+                  </span>
548
+                </div>
549
+              </div>
550
+            </div>
551
+          </div>
552
+        </div>
553
+      </div>
554
+
555
+      <span slot="footer" class="dialog-footer">
556
+        <el-button @click="endVisibility = false">取 消</el-button>
557
+      </span>
558
+    </el-dialog>
559
+
560
+
389
     </div>
561
     </div>
390
     <div style="width:75%" v-show="!showView">
562
     <div style="width:75%" v-show="!showView">
391
       <div style="margin-left:60px;color:#34495e">
563
       <div style="margin-left:60px;color:#34495e">
867
       preparestock:[],
1039
       preparestock:[],
868
       his_doctor_advices:[],
1040
       his_doctor_advices:[],
869
       startVisibility:false,
1041
       startVisibility:false,
1042
+      endVisibility:false,
870
       printList:[],
1043
       printList:[],
871
       anticoagulants_confit:null,
1044
       anticoagulants_confit:null,
872
       printDate:'',
1045
       printDate:'',

+ 77 - 46
src/xt_pages/dialysis/newDoctorAdvice.vue View File

743
                 console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
743
                 console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
744
               }
744
               }
745
             }
745
             }
746
+
747
+
748
+
746
            
749
            
747
            if(config.is_open == 0 || config.is_open == 2){
750
            if(config.is_open == 0 || config.is_open == 2){
748
             var schedules = resp.data.scheduals
751
             var schedules = resp.data.scheduals
752
+
753
+
754
+           
755
+           var newList = []
756
+           if(this.is_sort == 0){
757
+              newList = schedules
758
+           }
759
+           if(this.is_sort == 1){
760
+              schedules.map(item => {
761
+                  item.is_sort = item.device_number.sort
762
+                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
763
+              })
764
+              
765
+               newList = schedules.sort(this.compare('is_sort'))
766
+              
767
+    
768
+
769
+            }
770
+            if(this.is_sort == 2){
771
+              schedules.map(item => {
772
+                  item.is_sort = item.device_number.sort
773
+                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
774
+              })
775
+               newList = schedules.sort(this.compare('assess_time'))
776
+            }
777
+
749
             this.show = true
778
             this.show = true
750
             this.showOne = false
779
             this.showOne = false
751
             let arr = []
780
             let arr = []
752
             let newArr = []
781
             let newArr = []
753
             let newSchedules = []
782
             let newSchedules = []
754
-            schedules.map(item => {
783
+          
784
+            newList.map(item => {
755
              item.doctor_advice.map(it =>{
785
              item.doctor_advice.map(it =>{
756
                 it.name = item.patient.name
786
                 it.name = item.patient.name
757
                     if(item.prescription != null){
787
                     if(item.prescription != null){
766
                     it.number = item.device_number.number
796
                     it.number = item.device_number.number
767
                     it.zone_name = item.device_number.zone.name
797
                     it.zone_name = item.device_number.zone.name
768
                     it.sort = item.device_number.sort,
798
                     it.sort = item.device_number.sort,
769
-                    it.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
799
+                   
770
                     arr.push(it)
800
                     arr.push(it)
771
                 })
801
                 })
802
+                item.is_sort = item.device_number.sort
803
+                item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
772
             })
804
             })
805
+
806
+            console.log("schedules9999999998888888888",schedules)
807
+           
808
+
809
+          
773
            
810
            
774
             if(this.schedulType == 0){
811
             if(this.schedulType == 0){
775
                 newSchedules = arr
812
                 newSchedules = arr
808
                 }
845
                 }
809
             })
846
             })
810
             this.indexInfoList = newArr
847
             this.indexInfoList = newArr
811
-            
812
-            if(this.is_sort == 1){
813
-              var newList = []
814
-               newList =  this.scheduleMap.sort(this.compare('sort'))
815
-              
816
-               this.scheduleMap = []
817
-               this.scheduleMap = newList
818
-            }
819
-            if(this.is_sort == 2){
820
-              var newList = []
821
-               newList =  this.scheduleMap.sort(this.compare('assess_time'))
822
-               this.scheduleMap = []
823
-               this.scheduleMap = newList
824
-            }
825
             console.log("this.scheduleMap", this.scheduleMap)
848
             console.log("this.scheduleMap", this.scheduleMap)
849
+        
850
+           
826
            }
851
            }
827
 
852
 
828
-
829
            if(config.is_open == 1){
853
            if(config.is_open == 1){
830
-           
831
              this.show = false
854
              this.show = false
832
              this.showOne  = true
855
              this.showOne  = true
833
             var schedules =  resp.data.hisAdvices
856
             var schedules =  resp.data.hisAdvices
835
             let arr = []
858
             let arr = []
836
             let newArr = []
859
             let newArr = []
837
             let newSchedules = []
860
             let newSchedules = []
838
-            schedules.map(item => {
861
+           var newList = []
862
+           if(this.is_sort == 0){
863
+              newList = schedules
864
+           }
865
+           if(this.is_sort == 1){
866
+              schedules.map(item => {
867
+                  item.is_sort = item.device_number.sort
868
+                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
869
+              })
870
+              
871
+               newList = schedules.sort(this.compare('is_sort'))
872
+              
873
+    
874
+
875
+            }
876
+            if(this.is_sort == 2){
877
+              schedules.map(item => {
878
+                  item.is_sort = item.device_number.sort
879
+                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
880
+              })
881
+               newList = schedules.sort(this.compare('assess_time'))
882
+            }
883
+            newList.map(item => {
839
              item.doctor_advice.map(it =>{
884
              item.doctor_advice.map(it =>{
840
                 it.name = item.patient.name
885
                 it.name = item.patient.name
841
                     if(item.prescription != null){
886
                     if(item.prescription != null){
850
                     it.number = item.device_number.number
895
                     it.number = item.device_number.number
851
                     it.zone_name = item.device_number.zone.name
896
                     it.zone_name = item.device_number.zone.name
852
                     it.sort = item.device_number.sort,
897
                     it.sort = item.device_number.sort,
853
-                    it.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
898
+                   
854
                     arr.push(it)
899
                     arr.push(it)
855
                 })
900
                 })
901
+              item.is_sort = item.device_number.sort
902
+              it.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
856
             })
903
             })
857
             if(this.schedulType == 0){
904
             if(this.schedulType == 0){
858
                 newSchedules = arr
905
                 newSchedules = arr
891
                 }
938
                 }
892
             })
939
             })
893
             this.indexInfoList = newArr
940
             this.indexInfoList = newArr
894
-            console.log("this.scheduleMap2222", this.scheduleMap)
895
-
896
-             if(this.is_sort == 1){
897
-            
898
-               var newList = []
899
-               newList =  this.scheduleMap.sort(this.compare('sort'))
900
-              
901
-               this.scheduleMap = []
902
-               this.scheduleMap = newList
903
-
904
-            }
905
-            if(this.is_sort == 2){
906
-              var newList = []
907
-               newList =  this.scheduleMap.sort(this.compare('assess_time'))
908
-              
909
-               this.scheduleMap = []
910
-               this.scheduleMap = newList
911
-            }
912
            }
941
            }
913
          }
942
          }
914
          
943
          
1233
        this.requestSchedualDoctors(this.time)
1262
        this.requestSchedualDoctors(this.time)
1234
      },
1263
      },
1235
      toExcution(){
1264
      toExcution(){
1265
+       
1236
        if(this.selecting_schs.length ==0){
1266
        if(this.selecting_schs.length ==0){
1237
          this.$message.error("请勾选需要执行的医嘱")
1267
          this.$message.error("请勾选需要执行的医嘱")
1238
          return false
1268
          return false
1247
      },
1277
      },
1248
 
1278
 
1249
      excutionDoctorAdvice(){
1279
      excutionDoctorAdvice(){
1250
-
1280
+  
1251
        if (this.execTime.length == 0) {
1281
        if (this.execTime.length == 0) {
1252
           this.$message.error('请选择执行时间!')
1282
           this.$message.error('请选择执行时间!')
1253
           return false
1283
           return false
1283
             this.exceLoading = false
1313
             this.exceLoading = false
1284
             this.execTimeDialogVisible = false
1314
             this.execTimeDialogVisible = false
1285
             this.requestSchedualDoctors(this.time)
1315
             this.requestSchedualDoctors(this.time)
1286
-           }else{
1287
-            var msg = response.data.data.msg
1288
-            this.$message.success("执行成功!")
1289
-            this.exceLoading = false
1290
-            this.execTimeDialogVisible = false
1291
-            this.requestSchedualDoctors(this.time)
1316
+           }
1317
+           if(response.data.data.msg == 3){
1318
+             this.$message.error("执行人和核对人不能是同一个人,执行失败!")
1292
            }
1319
            }
1293
          
1320
          
1294
           }
1321
           }
1404
             this.exceLoading = false
1431
             this.exceLoading = false
1405
             this.execTimeDialogVisibleOne = false
1432
             this.execTimeDialogVisibleOne = false
1406
             this.requestSchedualDoctors(this.time)
1433
             this.requestSchedualDoctors(this.time)
1407
-           }else{
1434
+           }
1435
+           if(response.data.data.msg == 1){
1408
             var msg = response.data.data.msg
1436
             var msg = response.data.data.msg
1409
             this.$message.success("执行成功!")
1437
             this.$message.success("执行成功!")
1410
             this.exceLoading = false
1438
             this.exceLoading = false
1411
             this.execTimeDialogVisibleOne = false
1439
             this.execTimeDialogVisibleOne = false
1412
             this.requestSchedualDoctors(this.time)
1440
             this.requestSchedualDoctors(this.time)
1413
            }
1441
            }
1442
+           if(response.data.data.msg == 3){
1443
+             this.$message.error("执行人与核对人不能是同一个人,执行失败!")
1444
+           }
1414
         }
1445
         }
1415
       })
1446
       })
1416
     }
1447
     }

+ 10 - 8
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

571
     },
571
     },
572
 
572
 
573
      exportList(){
573
      exportList(){
574
-      
574
+        console.log("表哥",this.tablePrint)
575
+        
575
         for(let i=0;i<this.tablePrint.length;i++){
576
         for(let i=0;i<this.tablePrint.length;i++){
576
           this.tablePrint[i].index = i+1
577
           this.tablePrint[i].index = i+1
577
           this.tablePrint[i].ctime = this.getTime(this.tablePrint[i].ctime)
578
           this.tablePrint[i].ctime = this.getTime(this.tablePrint[i].ctime)
578
         }
579
         }
579
         for(let i=0;i<this.tablePrint.length;i++){
580
         for(let i=0;i<this.tablePrint.length;i++){
580
-           if(this.org_id == 9919){
581
-
582
-             this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
583
-             this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
581
+           if(this.org_id == 9919 || this.org_id == 9671){
582
+             this.tablePrint[i].min_price = this.tablePrint[i].price
583
+             this.tablePrint[i].count = parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))/this.tablePrint[i].min_number)
584
+             this.tablePrint[i].total_price =  ((parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))/this.tablePrint[i].min_number))*this.tablePrint[i].price).toFixed(2)
584
              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
585
              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
585
-             this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
586
+             this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)/this.tablePrint[i].min_number
586
            }else{
587
            }else{
587
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
588
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
588
               this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
589
               this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
832
         }
833
         }
833
         return count
834
         return count
834
       },
835
       },
835
-      getCountSenven(drug_id,val,price){
836
+      getCountSenven(drug_id,val,price,min_number){
837
+        console.log("min_number232333223",min_number)
836
         var count = 0
838
         var count = 0
837
         for(let i=0;i<val.length;i++){
839
         for(let i=0;i<val.length;i++){
838
           count+= val[i].count
840
           count+= val[i].count
839
         }
841
         }
840
-        return (count*price).toFixed(2)
842
+        return (parseInt(count/min_number)*price).toFixed(2)
841
       },
843
       },
842
       getCountSenvenOne(drug_id,val,price){
844
       getCountSenvenOne(drug_id,val,price){
843
         var count = 0
845
         var count = 0

+ 2 - 2
src/xt_pages/stock/drugs/drugOutOrderPrint.vue View File

42
               </td>
42
               </td>
43
 
43
 
44
               <td style="line-height: 50px">
44
               <td style="line-height: 50px">
45
-                <span v-if="org_id == 9671 || org_id == 9919">{{getCountSix(item.drug_id,item.child)}}</span>
45
+                <span v-if="org_id == 9671 || org_id == 9919">{{parseInt(getCountSix(item.drug_id,item.child)/item.min_number)}}</span>
46
                 <span v-else>{{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
46
                 <span v-else>{{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
47
               </td>
47
               </td>
48
               <td style="line-height:50px">
48
               <td style="line-height:50px">
50
                   <span v-else>{{item.min_price}}</span>
50
                   <span v-else>{{item.min_price}}</span>
51
               </td>
51
               </td>
52
               <td style="line-height:50px">
52
               <td style="line-height:50px">
53
-                <span v-if="org_id ==9671 || org_id == 9919">{{(getCountSenven(item.drug_id,item.child,item.price))}}</span>
53
+                <span v-if="org_id ==9671 || org_id == 9919">{{((parseInt(getCountSix(item.drug_id,item.child)/item.min_number))*item.price).toFixed(2)}}</span>
54
                 <span v-else>{{(getCountOne(item.child,item.max_unit,item.min_unit,item.min_number)*item.min_price).toFixed(2)}}</span>
54
                 <span v-else>{{(getCountOne(item.child,item.max_unit,item.min_unit,item.min_number)*item.min_price).toFixed(2)}}</span>
55
               </td>
55
               </td>
56
               <td style="line-height: 50px">
56
               <td style="line-height: 50px">

+ 23 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue View File

659
       this.getNextScheduleWeekDay()
659
       this.getNextScheduleWeekDay()
660
     },
660
     },
661
     signPrint() {
661
     signPrint() {
662
-        var zone = this.zone
662
+        
663
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
664
+         var zone = this.zone
665
+          var newArr = []
666
+          for(let i=0;i<this.zoneList.length;i++){
667
+            newArr.push(this.zoneList[i].id)
668
+          }
669
+          var arr = newArr.join(",")
670
+          var str = ""
671
+          if(this.zone == 0){
672
+            str = arr
673
+          }
674
+          if(zone != 0){
675
+            str = zone.join(",")
676
+          }
677
+          this.$router.push({
678
+            path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
679
+          })
680
+          }
681
+        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340){
682
+          var zone = this.zone
663
         var newArr = []
683
         var newArr = []
664
         for(let i=0;i<this.zoneList.length;i++){
684
         for(let i=0;i<this.zoneList.length;i++){
665
            newArr.push(this.zoneList[i].id)
685
            newArr.push(this.zoneList[i].id)
675
         this.$router.push({
695
         this.$router.push({
676
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
696
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
677
         })
697
         })
698
+        }
699
+       
678
     },
700
     },
679
     getTime(val) {
701
     getTime(val) {
680
       if(val == ""){
702
       if(val == ""){

+ 40 - 17
src/xt_pages/workforce/components/tableWeeks.vue View File

887
       }
887
       }
888
       ,
888
       ,
889
       signPrint() {
889
       signPrint() {
890
-        var zone = this.zone
891
-        console.log("zone23232",zone)
892
-        var newArr = []
893
-        for(let i=0;i<this.zoneList.length;i++){
894
-           newArr.push(this.zoneList[i].id)
895
-        }
896
-        var arr = newArr.join(",")
897
-        var str = ""
898
-        if(this.zone == 0){
899
-           str = arr  
900
-        }
901
-        if(zone != 0){
902
-          str = zone.join(",")
903
-        }
904
-        this.$router.push({
905
-          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
906
-        })
890
+
891
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
892
+         var zone = this.zone
893
+          console.log("zone23232",zone)
894
+          var newArr = []
895
+          for(let i=0;i<this.zoneList.length;i++){
896
+            newArr.push(this.zoneList[i].id)
897
+          }
898
+          var arr = newArr.join(",")
899
+          var str = ""
900
+          if(this.zone == 0){
901
+            str = arr  
902
+          }
903
+          if(zone != 0){
904
+            str = zone.join(",")
905
+          }
906
+          this.$router.push({
907
+            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
+          })
909
+        }
910
+        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340){
911
+          var zone = this.zone
912
+          console.log("zone23232",zone)
913
+          var newArr = []
914
+          for(let i=0;i<this.zoneList.length;i++){
915
+            newArr.push(this.zoneList[i].id)
916
+          }
917
+          var arr = newArr.join(",")
918
+          var str = ""
919
+          if(this.zone == 0){
920
+            str = arr  
921
+          }
922
+          if(zone != 0){
923
+            str = zone.join(",")
924
+          }
925
+          this.$router.push({
926
+            path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
927
+          })
928
+         }
929
+      
907
       }
930
       }
908
       ,
931
       ,
909
       compare(property) {
932
       compare(property) {

+ 20 - 5
src/xt_pages/workforce/remind_print_setting.vue View File

85
                 <div style="margin-left:50px;">姓名:
85
                 <div style="margin-left:50px;">姓名:
86
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
86
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
87
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
87
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
88
-                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
88
+                  <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no) }}岁)</span> 
89
+                  <span v-if="type ==2 && printObj.name == 1">({{ main_collection.dialysis_no }},{{getNewAge(main_collection.id_card_no) }}岁)</span> 
89
                 </div>
90
                 </div>
90
                 <div class="printCell">
91
                 <div class="printCell">
91
                   <span>
92
                   <span>
136
                  
137
                  
137
                 </div>
138
                 </div>
138
                 <div class="printCell">
139
                 <div class="printCell">
139
-                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
140
+                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight?main_collection.lastafterweight.weight_after:0).toFixed(2) }}Kg</span>
140
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
141
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
141
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
142
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
142
                     mg/h
143
                     mg/h
221
 </template>
222
 </template>
222
 
223
 
223
 <script>
224
 <script>
224
-  import { getScheduleList,getPrintList,getNextScheduleWeekDay } from '@/api/schedule'
225
+  import { getScheduleList,getPrintList,getNextScheduleWeekDayOne } from '@/api/schedule'
225
   import { parseTime } from '@/utils'
226
   import { parseTime } from '@/utils'
226
   import { uParseTime } from '@/utils/tools'
227
   import { uParseTime } from '@/utils/tools'
227
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
228
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
532
         //   week_time:this.week_time,
533
         //   week_time:this.week_time,
533
         // }
534
         // }
534
       console.log("params",params)
535
       console.log("params",params)
535
-      getNextScheduleWeekDay(params).then(response => {
536
+      getNextScheduleWeekDayOne(params).then(response => {
536
         this.scheduleData = [];
537
         this.scheduleData = [];
537
         if (response.data.state == 1) {
538
         if (response.data.state == 1) {
538
           var scheduleData = response.data.data.schedule;
539
           var scheduleData = response.data.data.schedule;
599
         } 
600
         } 
600
        }
601
        }
601
        return name
602
        return name
602
-     }
603
+     },
604
+      getNewAge(UUserCard) {
605
+      if (UUserCard != null && UUserCard != '') {
606
+        // 获取年龄
607
+        var myDate = new Date()
608
+        var month = myDate.getMonth() + 1
609
+        var day = myDate.getDate()
610
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
611
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
612
+          age++
613
+        }
614
+        return age
615
+      }
616
+    },
617
+
603
     }
618
     }
604
   }
619
   }
605
 </script>
620
 </script>