瀏覽代碼

8月15日

XMLWAN 2 年之前
父節點
當前提交
8fd662c8fa

+ 4 - 2
src/api/dialysis_record.js 查看文件

@@ -47,7 +47,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
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 51
   var params = {
52 52
     patient_id: patient_id,
53 53
     date: schedule_date,
@@ -69,7 +69,9 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
69 69
     dialysis_dialyszers: dialysis_dialyszers,
70 70
     dialysis_irrigation: dialysis_irrigation,
71 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 76
   console.log('params', params)
75 77
   return request({

+ 8 - 0
src/api/schedule.js 查看文件

@@ -134,6 +134,14 @@ export function getNextScheduleWeekDay(params) {
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 145
 export function getThreeWeekList(params) {
138 146
   return request({
139 147
     url: '/api/schedule/getthreeweeklist',

+ 10 - 10
src/router/modules/dialysis.js 查看文件

@@ -38,24 +38,24 @@ export default {
38 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 42
       path: '/dialysis/dialysisDoctorAdvice',
52
-      component: () => import('@/xt_pages/dialysis/newDoctorAdvice'),
43
+      component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
53 44
       name: '透析医嘱',
54 45
       meta: {
55 46
         title: '透析医嘱',
56 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 60
       path: '/dialysis/doctorAdvicePrint',
61 61
       component: () => import('@/xt_pages/dialysis/doctorAdvicePrint'),

+ 11 - 0
src/router/modules/workforce.js 查看文件

@@ -113,6 +113,17 @@ export default {
113 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 128
     path: '/scheduleTablePrint',
118 129
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),

+ 9 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue 查看文件

@@ -543,6 +543,15 @@
543 543
                                 <span v-if="record.prescription.anticoagulant == 7"
544 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 555
                                 </div>
547 556
                             </div>
548 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 查看文件

@@ -128,6 +128,16 @@
128 128
           ></el-date-picker>
129 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 142
         <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
133 143
           <el-date-picker
@@ -199,6 +209,8 @@
199 209
           dialysis_irrigation:"",
200 210
           blood_access_id:"",
201 211
           nuclein_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
212
+          schedule_remark:"",
213
+          order_remark:"",
202 214
         },
203 215
         blood_access_option:[],
204 216
         schedual_type: 0,
@@ -264,7 +276,7 @@
264 276
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
265 277
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
266 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 281
       if (this.form.puncture_nurse_id == 0) {
270 282
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
@@ -290,12 +302,16 @@
290 302
       this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
291 303
       this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
292 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 307
       this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
294 308
       this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
295 309
       this.blood_access_option = getDataConfig(
296 310
           'hemodialysis',
297 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 316
     watch: {
301 317
       patient:{
@@ -321,6 +337,8 @@
321 337
         this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
322 338
         this.form.blood_access_id = this.dialysis_order.blood_access_id
323 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 342
         var nowDate = new Date()
325 343
         var nowYear = nowDate.getFullYear()
326 344
         var nowMonth = nowDate.getMonth() + 1
@@ -481,6 +499,8 @@
481 499
         var nowMinutes = nowDate.getMinutes()
482 500
         var nowSeconds = nowDate.getSeconds()
483 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 504
         if (this.dialysis_order.id != 0) {
485 505
           this.form.start_time = this.getTime(this.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
486 506
         } else {
@@ -537,7 +557,7 @@
537 557
         console.log("质控护士",this.form.quality_nurse_id)
538 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 561
           this.loading = false
542 562
           var resp = rs.data
543 563
           if (resp.state == 1) {
@@ -580,6 +600,8 @@
580 600
         ParamsQuery["blood_access_id"] = this.form.blood_access_id
581 601
         ParamsQuery["nuclein_date"] = this.form.nuclein_date
582 602
         ParamsQuery['mode'] = "2"
603
+        ParamsQuery["schedule_remark"] = this.form.schedule_remark
604
+        ParamsQuery["order_remark"] = this.form.order_remark
583 605
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
584 606
           ParamsQuery['mode'] = "3"
585 607
         }

+ 12 - 0
src/xt_pages/dialysis/details/dialysisComputer.vue 查看文件

@@ -74,6 +74,18 @@
74 74
           <span class="content">{{getTimeOne(this.record.nuclein_date)}}</span>
75 75
         </li>
76 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 89
       <ul>
78 90
         <li v-if="isShow('上机时间')">
79 91
           <label>上机时间 : </label>

+ 173 - 0
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -386,6 +386,178 @@
386 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 561
     </div>
390 562
     <div style="width:75%" v-show="!showView">
391 563
       <div style="margin-left:60px;color:#34495e">
@@ -867,6 +1039,7 @@ export default {
867 1039
       preparestock:[],
868 1040
       his_doctor_advices:[],
869 1041
       startVisibility:false,
1042
+      endVisibility:false,
870 1043
       printList:[],
871 1044
       anticoagulants_confit:null,
872 1045
       printDate:'',

+ 77 - 46
src/xt_pages/dialysis/newDoctorAdvice.vue 查看文件

@@ -743,15 +743,45 @@ export default {
743 743
                 console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
744 744
               }
745 745
             }
746
+
747
+
748
+
746 749
            
747 750
            if(config.is_open == 0 || config.is_open == 2){
748 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 778
             this.show = true
750 779
             this.showOne = false
751 780
             let arr = []
752 781
             let newArr = []
753 782
             let newSchedules = []
754
-            schedules.map(item => {
783
+          
784
+            newList.map(item => {
755 785
              item.doctor_advice.map(it =>{
756 786
                 it.name = item.patient.name
757 787
                     if(item.prescription != null){
@@ -766,10 +796,17 @@ export default {
766 796
                     it.number = item.device_number.number
767 797
                     it.zone_name = item.device_number.zone.name
768 798
                     it.sort = item.device_number.sort,
769
-                    it.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
799
+                   
770 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 811
             if(this.schedulType == 0){
775 812
                 newSchedules = arr
@@ -808,26 +845,12 @@ export default {
808 845
                 }
809 846
             })
810 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 848
             console.log("this.scheduleMap", this.scheduleMap)
849
+        
850
+           
826 851
            }
827 852
 
828
-
829 853
            if(config.is_open == 1){
830
-           
831 854
              this.show = false
832 855
              this.showOne  = true
833 856
             var schedules =  resp.data.hisAdvices
@@ -835,7 +858,29 @@ export default {
835 858
             let arr = []
836 859
             let newArr = []
837 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 884
              item.doctor_advice.map(it =>{
840 885
                 it.name = item.patient.name
841 886
                     if(item.prescription != null){
@@ -850,9 +895,11 @@ export default {
850 895
                     it.number = item.device_number.number
851 896
                     it.zone_name = item.device_number.zone.name
852 897
                     it.sort = item.device_number.sort,
853
-                    it.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
898
+                   
854 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 904
             if(this.schedulType == 0){
858 905
                 newSchedules = arr
@@ -891,24 +938,6 @@ export default {
891 938
                 }
892 939
             })
893 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,6 +1262,7 @@ export default {
1233 1262
        this.requestSchedualDoctors(this.time)
1234 1263
      },
1235 1264
      toExcution(){
1265
+       
1236 1266
        if(this.selecting_schs.length ==0){
1237 1267
          this.$message.error("请勾选需要执行的医嘱")
1238 1268
          return false
@@ -1247,7 +1277,7 @@ export default {
1247 1277
      },
1248 1278
 
1249 1279
      excutionDoctorAdvice(){
1250
-
1280
+  
1251 1281
        if (this.execTime.length == 0) {
1252 1282
           this.$message.error('请选择执行时间!')
1253 1283
           return false
@@ -1283,12 +1313,9 @@ export default {
1283 1313
             this.exceLoading = false
1284 1314
             this.execTimeDialogVisible = false
1285 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,13 +1431,17 @@ export default {
1404 1431
             this.exceLoading = false
1405 1432
             this.execTimeDialogVisibleOne = false
1406 1433
             this.requestSchedualDoctors(this.time)
1407
-           }else{
1434
+           }
1435
+           if(response.data.data.msg == 1){
1408 1436
             var msg = response.data.data.msg
1409 1437
             this.$message.success("执行成功!")
1410 1438
             this.exceLoading = false
1411 1439
             this.execTimeDialogVisibleOne = false
1412 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 查看文件

@@ -571,18 +571,19 @@ export default {
571 571
     },
572 572
 
573 573
      exportList(){
574
-      
574
+        console.log("表哥",this.tablePrint)
575
+        
575 576
         for(let i=0;i<this.tablePrint.length;i++){
576 577
           this.tablePrint[i].index = i+1
577 578
           this.tablePrint[i].ctime = this.getTime(this.tablePrint[i].ctime)
578 579
         }
579 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 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 587
            }else{
587 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 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,12 +833,13 @@ export default {
832 833
         }
833 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 838
         var count = 0
837 839
         for(let i=0;i<val.length;i++){
838 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 844
       getCountSenvenOne(drug_id,val,price){
843 845
         var count = 0

+ 2 - 2
src/xt_pages/stock/drugs/drugOutOrderPrint.vue 查看文件

@@ -42,7 +42,7 @@
42 42
               </td>
43 43
 
44 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 46
                 <span v-else>{{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
47 47
               </td>
48 48
               <td style="line-height:50px">
@@ -50,7 +50,7 @@
50 50
                   <span v-else>{{item.min_price}}</span>
51 51
               </td>
52 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 54
                 <span v-else>{{(getCountOne(item.child,item.max_unit,item.min_unit,item.min_number)*item.min_price).toFixed(2)}}</span>
55 55
               </td>
56 56
               <td style="line-height: 50px">

+ 23 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue 查看文件

@@ -659,7 +659,27 @@ export default {
659 659
       this.getNextScheduleWeekDay()
660 660
     },
661 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 683
         var newArr = []
664 684
         for(let i=0;i<this.zoneList.length;i++){
665 685
            newArr.push(this.zoneList[i].id)
@@ -675,6 +695,8 @@ export default {
675 695
         this.$router.push({
676 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 701
     getTime(val) {
680 702
       if(val == ""){

+ 40 - 17
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

@@ -887,23 +887,46 @@
887 887
       }
888 888
       ,
889 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 932
       compare(property) {

+ 20 - 5
src/xt_pages/workforce/remind_print_setting.vue 查看文件

@@ -85,7 +85,8 @@
85 85
                 <div style="margin-left:50px;">姓名:
86 86
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
87 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 90
                 </div>
90 91
                 <div class="printCell">
91 92
                   <span>
@@ -136,7 +137,7 @@
136 137
                  
137 138
                 </div>
138 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 141
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
141 142
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
142 143
                     mg/h
@@ -221,7 +222,7 @@
221 222
 </template>
222 223
 
223 224
 <script>
224
-  import { getScheduleList,getPrintList,getNextScheduleWeekDay } from '@/api/schedule'
225
+  import { getScheduleList,getPrintList,getNextScheduleWeekDayOne } from '@/api/schedule'
225 226
   import { parseTime } from '@/utils'
226 227
   import { uParseTime } from '@/utils/tools'
227 228
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -532,7 +533,7 @@
532 533
         //   week_time:this.week_time,
533 534
         // }
534 535
       console.log("params",params)
535
-      getNextScheduleWeekDay(params).then(response => {
536
+      getNextScheduleWeekDayOne(params).then(response => {
536 537
         this.scheduleData = [];
537 538
         if (response.data.state == 1) {
538 539
           var scheduleData = response.data.data.schedule;
@@ -599,7 +600,21 @@
599 600
         } 
600 601
        }
601 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 620
 </script>