Selaa lähdekoodia

Merge branch 'master' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

csx 4 vuotta sitten
vanhempi
commit
4c9460eebf

+ 11 - 0
src/api/advice.js Näytä tiedosto

@@ -477,3 +477,14 @@ export function SaveEditAdvices(params) {
477 477
     params: params
478 478
   });
479 479
 }
480
+
481
+
482
+
483
+
484
+export function GetLastOrNextDoctorAdvice(params) {
485
+  return request({
486
+    url: "/api/doctoradvice/get",
487
+    method: "get",
488
+    params: params
489
+  });
490
+}

+ 1 - 1
src/router/index.js Näytä tiedosto

@@ -101,7 +101,7 @@ var _constant_router_map = [{
101 101
 var _asy_router_map = [
102 102
   patient,
103 103
   workforce,
104
-  // medicalScheduling,
104
+  medicalScheduling,
105 105
   weight_sign,
106 106
   dialysis,
107 107
   stock,

File diff suppressed because it is too large
+ 1796 - 1381
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue


+ 5 - 3
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Näytä tiedosto

@@ -386,7 +386,7 @@
386 386
               <el-input v-model="nameForm.advice_name"></el-input>
387 387
             </el-form-item>
388 388
           </el-col>
389
-          
389
+
390 390
         </el-row>
391 391
         <el-row>
392 392
           <el-col :span="12">
@@ -487,7 +487,7 @@
487 487
           </el-col>
488 488
         </el-row>
489 489
         <el-row>
490
-          
490
+
491 491
           <el-col :span="12">
492 492
             <el-form-item label="执行频率 :" prop="execution_frequency">
493 493
               <el-select
@@ -1295,6 +1295,8 @@ export default {
1295 1295
               }
1296 1296
               this.$set(item, "children", item.children);
1297 1297
             }
1298
+            console.log("11122333")
1299
+            console.log(item)
1298 1300
             this.allSelectedTemplate.unshift(item);
1299 1301
             adviceTemplate.DoctorAdviceTemplate[index].selection = false;
1300 1302
           }
@@ -1367,7 +1369,7 @@ export default {
1367 1369
             this.$set(item, "children", item.children);
1368 1370
           }
1369 1371
         }
1370
-
1372
+        console.log(this.groupForm.adviceNames)
1371 1373
         this.groupForm.adviceNames.push(item);
1372 1374
       }
1373 1375
       this.templateFormVisible = false;

+ 38 - 33
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -779,15 +779,15 @@
779 779
     >
780 780
       <div style="font-size:0.6rem;padding-left:0.38rem;margin-top:0.2rem;">
781 781
         <span style="font-weight: bold;color: #409eff;">开始时间:</span>
782
-        <el-time-picker
783
-          format="HH:mm"
784
-          value-format="HH:mm"
782
+        <el-date-picker
783
+          type="datetime"
784
+          format="yyyy-MM-dd HH:mm"
785
+          value-format="yyyy-MM-dd HH:mm"
786
+          placeholder="选择时间"
785 787
           v-model="start_time"
786
-          @change="changeTime"
787
-          :picker-options="{
788
-      selectableRange: '00:00:00 - 23:59:00'
789
-    }">
790
-        </el-time-picker>
788
+          style="width:100%;"
789
+        ></el-date-picker>
790
+
791 791
         <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
792 792
       </div>
793 793
       <el-checkbox-group v-model="checkedCities">
@@ -1541,23 +1541,15 @@
1541 1541
                 })
1542 1542
                 var date = new Date()
1543 1543
 
1544
-                var hour =
1545
-                  date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1546
-                var minute =
1547
-                  date.getMinutes() < 10
1548
-                    ? '0' + date.getMinutes()
1549
-                    : date.getMinutes()
1544
+                console.log(this.start_time)
1550 1545
 
1551 1546
                 const params = {
1552 1547
                   advices: results,
1553
-                  advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1548
+                  advice_date: this.start_time.split(" ")[0],
1554 1549
                   advice_doctor: results[0].advice_doctor,
1555 1550
                   advice_type: results[0].advice_type,
1556 1551
                   parent_id: this.patient_id,
1557
-                  start_time:
1558
-                    uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
1559
-                    ' ' +
1560
-                   this.advice_start_time,
1552
+                  start_time:this.start_time,
1561 1553
                   remark: ''
1562 1554
                 }
1563 1555
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
@@ -1619,15 +1611,12 @@
1619 1611
 
1620 1612
                 const params = {
1621 1613
                   advices: results,
1622
-                  advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1614
+                  advice_date: this.start_time.split(" ")[0],
1623 1615
                   advice_doctor: results[0].advice_doctor,
1624 1616
                   advice_type: results[0].advice_type,
1625 1617
                   parent_id: this.patient_id,
1626
-                  start_time:
1627
-                    uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
1628
-                    ' ' +
1629
-                    this.advice_start_time,
1630
-                  remark: ''
1618
+                  start_time:this.start_time,
1619
+                  remark: '',
1631 1620
                 }
1632 1621
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
1633 1622
                   rs => {
@@ -1760,17 +1749,33 @@
1760 1749
       },
1761 1750
       show(pre,schedual,last) {
1762 1751
 
1752
+        var date = new Date()
1753
+        var year = date.getFullYear()
1754
+        var month = date.getMonth() + 1
1755
+        var day = date.getDate()
1756
+
1757
+        var hours = date.getHours()
1758
+        var minites = date.getMinutes()
1759
+
1760
+        if (month < 10) {
1761
+          month = '0' + month
1762
+        }
1763
+        if (day < 10) {
1764
+          day = '0' + day
1765
+        }
1766
+        if (hours < 10) {
1767
+          hours = '0' + hours
1768
+        }
1769
+        if (minites < 10) {
1770
+          minites = '0' + minites
1771
+        }
1772
+
1763 1773
         if(schedual.schedule_type == 1){
1764
-          this.start_time = new Date(2016, 9, 10, 7, 0,0)
1765
-          this.advice_start_time = "07:00"
1774
+          this.start_time = year +"-"+month +"-"+day +" " + "07:00"
1766 1775
         }else if(schedual.schedule_type == 2){
1767
-          this.start_time = new Date(2016, 9, 10, 12, 0,0)
1768
-          this.advice_start_time = "12:00"
1769
-
1776
+          this.start_time = year +"-"+month +"-"+day +" " + "12:00"
1770 1777
         }else if(schedual.schedule_type ==3){
1771
-          this.start_time = new Date(2016, 9, 10, 18, 0,0)
1772
-          this.advice_start_time = "18:00"
1773
-
1778
+          this.start_time = year +"-"+month +"-"+day +" " + "18:00"
1774 1779
         }
1775 1780
 
1776 1781
         if (pre.anticoagulant == 3) {

+ 26 - 3
src/xt_pages/dialysis/details/index.vue Näytä tiedosto

@@ -870,7 +870,7 @@ export default {
870 870
     getScheduleDetail: function() {
871 871
       this.loading = true
872 872
       var dateStr = parseTime(this.date, '{y}-{m}-{d}')
873
-     
873
+
874 874
       this.doctor_advices = []
875 875
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
876 876
         var resp = rs.data
@@ -896,10 +896,10 @@ export default {
896 896
             }
897 897
           }
898 898
           var doctor_advices = resp.data.doctor_advices // 临时医嘱
899
-       
899
+
900 900
           var double_check = resp.data.double_check // 双人核对
901 901
           var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
902
-    
902
+
903 903
           var treatment_summary = resp.data.treatment_summary // 治疗小结
904 904
           var monitor_records = resp.data.monitor_records // 透析监测
905 905
           var dialysis_order = resp.data.dialysis_order // 透析记录
@@ -954,6 +954,29 @@ export default {
954 954
           this.headNurses = headNurses
955 955
           this.system_prescribe = system_prescribe
956 956
 
957
+
958
+
959
+
960
+          this.niprocart_info = []
961
+          this.jms_info = []
962
+          this.fistula_needle_set_info = []
963
+          this.fistula_needle_set_16_info = []
964
+          this.hemoperfusion_info = []
965
+          this.dialyser_sterilised_info = []
966
+
967
+          this.filtryzer_info = []
968
+          this.dialyzers_info = []
969
+          this.injector_info = []
970
+
971
+          this.bloodlines_info = []
972
+          this.tubingHemodialysis_info = []
973
+          this.safe_package_info = []
974
+          this.aliquid_info = []
975
+
976
+
977
+
978
+
979
+
957 980
           this.niprocart_info = niprocart_info
958 981
           this.jms_info = jms_info
959 982
           this.fistula_needle_set_info = fistula_needle_set_info

+ 92 - 92
src/xt_pages/medicalScheduling/index.vue Näytä tiedosto

@@ -196,7 +196,7 @@
196 196
                         </el-option>
197 197
                     </el-select>
198 198
                 </el-form-item>
199
-                
199
+
200 200
             </el-form>
201 201
             <div slot="footer" class="dialog-footer">
202 202
                 <el-button @click="newVisible=false">取 消</el-button>
@@ -250,7 +250,7 @@
250 250
                           <el-table-column
251 251
                             align="center"
252 252
                             label="是否排班">
253
-                            <template slot-scope="scope">           
253
+                            <template slot-scope="scope">
254 254
                               <el-radio-group v-model="scope.row.is_sort" @change="changeRadio(scope.row)">
255 255
                                  <el-radio :label="1">是</el-radio>
256 256
                                  <el-radio :label="0">否</el-radio>
@@ -289,7 +289,7 @@
289 289
                                     <span v-if="scope.row.user_title == 10">副主任护师</span>
290 290
                                     <span v-if="scope.row.user_title == 11">主任护师</span>
291 291
                                     <span v-if="scope.row.user_title == 12">运营专员</span>
292
-                                    <span v-if="scope.row.user_title == 13">运营主管</span>  
292
+                                    <span v-if="scope.row.user_title == 13">运营主管</span>
293 293
                                 </template>
294 294
                              </el-table-column>
295 295
                                 <el-table-column
@@ -302,7 +302,7 @@
302 302
                                 <el-table-column
303 303
                                 align="center"
304 304
                                 label="是否排班">
305
-                                <template slot-scope="scope">           
305
+                                <template slot-scope="scope">
306 306
                                   <el-radio-group v-model="scope.row.is_sort" @change="changeRadio(scope.row)">
307 307
                                      <el-radio :label="1">是</el-radio>
308 308
                                      <el-radio :label="0">否</el-radio>
@@ -378,7 +378,7 @@ export default {
378 378
               copyWeek:"",
379 379
             },
380 380
            rules: {
381
-             copyWeek: [{ required: true, message: "请选择复制时间段", trigger: "blur" }],  
381
+             copyWeek: [{ required: true, message: "请选择复制时间段", trigger: "blur" }],
382 382
            },
383 383
            timeNow:0,
384 384
            arrZero:[],
@@ -472,7 +472,7 @@ export default {
472 472
                     }
473 473
                     this.schedulelist = schedulelist
474 474
                 }
475
-            }) 
475
+            })
476 476
         },
477 477
         hangdleClick(val,index,num){
478 478
         //  console.log("val",val)
@@ -541,7 +541,7 @@ export default {
541 541
             schedule_date:this.getTimestamp(this.schedule_date)
542 542
             }
543 543
             //  console.log("params",params)
544
-            
544
+
545 545
             addSchedule(params).then(response=>{
546 546
             if(response.data.state == 1){
547 547
                 var schedule = response.data.data.schedule
@@ -551,36 +551,36 @@ export default {
551 551
                 }
552 552
             })
553 553
         },
554
-        formatDate(date){      
555
-            var year = date.getFullYear()+'.'       
554
+        formatDate(date){
555
+            var year = date.getFullYear()+'.'
556 556
             var month = (date.getMonth()+1)+'.';
557 557
             var day = date.getDate();
558 558
             return year+month+day
559
-        }, 
560
-        formatDateTwo(date){      
561
-            var year = date.getFullYear()+'.'       
559
+        },
560
+        formatDateTwo(date){
561
+            var year = date.getFullYear()+'.'
562 562
             var month = (date.getMonth()+1)+'.';
563 563
             var day = date.getDate();
564 564
             return year+month+day
565
-        }, 
566
-        addDate(date,n){        
567
-            date.setDate(date.getDate()+n);        
565
+        },
566
+        addDate(date,n){
567
+            date.setDate(date.getDate()+n);
568 568
             return date;
569
-        },  
569
+        },
570 570
             //
571
-        setDate(date){           
571
+        setDate(date){
572 572
             var week = date.getDay()-1;
573 573
             date = this.addDate(date,week*-1);
574 574
             this.currentFirstDate = new Date(date);
575 575
             this.currentDate = new Date(date)
576
-            for(var i = 0;i<this.clen; i++){     
576
+            for(var i = 0;i<this.clen; i++){
577 577
                 this.weekDayArr.push(this.formatDate(i==0 ? date : this.addDate(date,1)))
578
-            }         
578
+            }
579 579
         },
580
-            //上一周 
580
+            //上一周
581 581
         lastclick(){
582 582
             this.weekDayArr=[]
583
-            this.setDate(this.addDate(this.currentFirstDate,-7));   
583
+            this.setDate(this.addDate(this.currentFirstDate,-7));
584 584
             if (this.weekNum == 1) {
585 585
                 let year = this.nowYear - 1
586 586
                 let month = 12
@@ -592,8 +592,8 @@ export default {
592 592
             this.getNextWeekList()
593 593
         },
594 594
             //下一周
595
-        nextclick(){ 
596
-            this.weekDayArr=[]                
595
+        nextclick(){
596
+            this.weekDayArr=[]
597 597
             this.setDate(this.addDate(this.currentFirstDate,7));
598 598
             this.weekNum = this.weekNum + 1
599 599
             if (this.weekNum == 53) {
@@ -607,16 +607,16 @@ export default {
607 607
         },
608 608
 
609 609
         getYearWeek(year,month,date){
610
-        /*  
611
-            dateNow是当前日期 
612
-            dateFirst是当年第一天  
613
-            dataNumber是当前日期是今年第多少天  
614
-            用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周  
615
-        */      
610
+        /*
611
+            dateNow是当前日期
612
+            dateFirst是当年第一天
613
+            dataNumber是当前日期是今年第多少天
614
+            用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周
615
+        */
616 616
         let dateNow = new Date(year, parseInt(month) - 1, date);
617 617
         let dateFirst = new Date(year, 0, 1);
618 618
         let dataNumber = Math.round((dateNow.valueOf() - dateFirst.valueOf()) / 86400000);
619
-        return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);        
619
+        return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);
620 620
         },
621 621
         getTimestamp(time) { //把时间日期转成时间戳
622 622
         return (new Date(time)).getTime() / 1000
@@ -636,7 +636,7 @@ export default {
636 636
             }
637 637
             getStaffScheduleList(params).then(response=>{
638 638
                 if(response.data.state == 1){
639
-                    var staffList =  response.data.data.staffList                
639
+                    var staffList =  response.data.data.staffList
640 640
                     // console.log("获取所有排班",staffList)
641 641
                     var sevenStr = ""
642 642
                     var oneStr = ""
@@ -652,18 +652,18 @@ export default {
652 652
                     this.arrFour = []
653 653
                     this.arrFive = []
654 654
                     this.arrSix = []
655
-                
655
+
656 656
                     for(let i=0;i<staffList.length;i++){
657 657
                     if(staffList[i].schedule_week == 0){
658 658
                         staffList[i].class_index = 0
659 659
                          var arr = []
660
-                        this.arrZero.push(staffList[i].class_name)             
660
+                        this.arrZero.push(staffList[i].class_name)
661 661
                         for(let i=0;i<this.arrZero.length;i++){
662 662
                            if(this.arrZero[i]!=''){
663 663
                               arr.push(this.arrZero[i])
664 664
                            }
665 665
                         }
666
-                        var countedNames = arr.reduce(function (allNames, name) { 
666
+                        var countedNames = arr.reduce(function (allNames, name) {
667 667
                             if (name in allNames) {
668 668
                                 allNames[name]++;
669 669
                             }
@@ -690,7 +690,7 @@ export default {
690 690
                               arr.push(this.arrOne[i])
691 691
                            }
692 692
                         }
693
-                        var countedNames = arr.reduce(function (allNames, name) { 
693
+                        var countedNames = arr.reduce(function (allNames, name) {
694 694
                             if (name in allNames) {
695 695
                                 allNames[name]++;
696 696
                             }
@@ -717,7 +717,7 @@ export default {
717 717
                               arr.push(this.arrTwo[i])
718 718
                            }
719 719
                         }
720
-                        var countedNames = arr.reduce(function (allNames, name) { 
720
+                        var countedNames = arr.reduce(function (allNames, name) {
721 721
                             if (name in allNames) {
722 722
                                 allNames[name]++;
723 723
                             }
@@ -744,7 +744,7 @@ export default {
744 744
                               arr.push(this.arrThree[i])
745 745
                            }
746 746
                         }
747
-                        var countedNames = arr.reduce(function (allNames, name) { 
747
+                        var countedNames = arr.reduce(function (allNames, name) {
748 748
                             if (name in allNames) {
749 749
                                 allNames[name]++;
750 750
                             }
@@ -771,7 +771,7 @@ export default {
771 771
                               arr.push(this.arrFour[i])
772 772
                            }
773 773
                         }
774
-                        var countedNames = arr.reduce(function (allNames, name) { 
774
+                        var countedNames = arr.reduce(function (allNames, name) {
775 775
                             if (name in allNames) {
776 776
                                 allNames[name]++;
777 777
                             }
@@ -799,7 +799,7 @@ export default {
799 799
                               arr.push(this.arrFive[i])
800 800
                            }
801 801
                         }
802
-                        var countedNames = arr.reduce(function (allNames, name) { 
802
+                        var countedNames = arr.reduce(function (allNames, name) {
803 803
                             if (name in allNames) {
804 804
                                 allNames[name]++;
805 805
                             }
@@ -826,7 +826,7 @@ export default {
826 826
                               arr.push(this.arrSix[i])
827 827
                            }
828 828
                         }
829
-                        var countedNames = arr.reduce(function (allNames, name) { 
829
+                        var countedNames = arr.reduce(function (allNames, name) {
830 830
                             if (name in allNames) {
831 831
                                 allNames[name]++;
832 832
                             }
@@ -869,13 +869,13 @@ export default {
869 869
                     this.doctorlist.sort(this.compare('admin_user_id'))
870 870
                     this.doctorlist.forEach((item, index) => {
871 871
                       if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
872
-                    
872
+
873 873
                       }else{
874 874
                         arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
875 875
                       }
876 876
                     })
877 877
                     arr.sort(this.compare('user_type'))
878
-                    
878
+
879 879
                     let arr2 = []
880 880
                     arr2.push({class_name:oneStr,schedule_week:1})
881 881
                     arr2.push({class_name:twoStr,schedule_week:2})
@@ -891,8 +891,8 @@ export default {
891 891
                     obj.list = arr2
892 892
                     arr.push(obj)
893 893
                     this.tableData = arr
894
-        
895
-                
894
+
895
+
896 896
                 }
897 897
             })
898 898
         },
@@ -909,12 +909,12 @@ export default {
909 909
                             }
910 910
                         })
911 911
                     }
912
-                    
912
+
913 913
                 }
914 914
                 })
915 915
                 return newClass
916 916
             }
917
-        
917
+
918 918
         },
919 919
         getClassAttributes(name,index){
920 920
             if(name != undefined){
@@ -928,19 +928,19 @@ export default {
928 928
                             }
929 929
                         })
930 930
                     }
931
-                    
931
+
932 932
                 }
933 933
                 })
934 934
                 return newClass
935 935
             }
936
-        
936
+
937 937
         },
938 938
 
939
-        unique(arr) { 
939
+        unique(arr) {
940 940
             const res = new Map();
941 941
             return arr.filter((arr) => !res.has(arr.admin_user_id) && res.set(arr.admin_user_id, 1))
942 942
         },
943
-        
943
+
944 944
         //获取上一周下一周的排班数据
945 945
         getNextWeekList(){
946 946
             const params = {
@@ -975,7 +975,7 @@ export default {
975 975
                               arr.push(this.arrZero[i])
976 976
                            }
977 977
                         }
978
-                        var countedNames = arr.reduce(function (allNames, name) { 
978
+                        var countedNames = arr.reduce(function (allNames, name) {
979 979
                             if (name in allNames) {
980 980
                                 allNames[name]++;
981 981
                             }
@@ -1002,7 +1002,7 @@ export default {
1002 1002
                               arr.push(this.arrOne[i])
1003 1003
                            }
1004 1004
                         }
1005
-                        var countedNames = arr.reduce(function (allNames, name) { 
1005
+                        var countedNames = arr.reduce(function (allNames, name) {
1006 1006
                             if (name in allNames) {
1007 1007
                                 allNames[name]++;
1008 1008
                             }
@@ -1029,7 +1029,7 @@ export default {
1029 1029
                               arr.push(this.arrTwo[i])
1030 1030
                            }
1031 1031
                         }
1032
-                        var countedNames = arr.reduce(function (allNames, name) { 
1032
+                        var countedNames = arr.reduce(function (allNames, name) {
1033 1033
                             if (name in allNames) {
1034 1034
                                 allNames[name]++;
1035 1035
                             }
@@ -1056,7 +1056,7 @@ export default {
1056 1056
                               arr.push(this.arrThree[i])
1057 1057
                            }
1058 1058
                         }
1059
-                        var countedNames = arr.reduce(function (allNames, name) { 
1059
+                        var countedNames = arr.reduce(function (allNames, name) {
1060 1060
                             if (name in allNames) {
1061 1061
                                 allNames[name]++;
1062 1062
                             }
@@ -1083,7 +1083,7 @@ export default {
1083 1083
                               arr.push(this.arrFour[i])
1084 1084
                            }
1085 1085
                         }
1086
-                        var countedNames = arr.reduce(function (allNames, name) { 
1086
+                        var countedNames = arr.reduce(function (allNames, name) {
1087 1087
                             if (name in allNames) {
1088 1088
                                 allNames[name]++;
1089 1089
                             }
@@ -1111,7 +1111,7 @@ export default {
1111 1111
                               arr.push(this.arrFive[i])
1112 1112
                            }
1113 1113
                         }
1114
-                        var countedNames = arr.reduce(function (allNames, name) { 
1114
+                        var countedNames = arr.reduce(function (allNames, name) {
1115 1115
                             if (name in allNames) {
1116 1116
                                 allNames[name]++;
1117 1117
                             }
@@ -1138,7 +1138,7 @@ export default {
1138 1138
                               arr.push(this.arrSix[i])
1139 1139
                            }
1140 1140
                         }
1141
-                        var countedNames = arr.reduce(function (allNames, name) { 
1141
+                        var countedNames = arr.reduce(function (allNames, name) {
1142 1142
                             if (name in allNames) {
1143 1143
                                 allNames[name]++;
1144 1144
                             }
@@ -1180,7 +1180,7 @@ export default {
1180 1180
                     this.doctorlist.sort(this.compare('admin_user_id'))
1181 1181
                     this.doctorlist.forEach((item, index) => {
1182 1182
                       if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1183
-                    
1183
+
1184 1184
                       }else{
1185 1185
                         arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
1186 1186
                         // console.log("arr",arr)
@@ -1210,13 +1210,13 @@ export default {
1210 1210
             const params = {
1211 1211
             start_time:this.getTimestamp(this.weekDayArr[0]),
1212 1212
             end_time:this.getTimestamp(this.weekDayArr[6]),
1213
-            doctor_id:id 
1213
+            doctor_id:id
1214 1214
             }
1215 1215
             getScheduleByDoctorId(params).then(response=>{
1216 1216
                 if(response.data.state == 1){
1217 1217
                     var  staffList =  response.data.data.staffList
1218 1218
                     // console.log("staffList",staffList)
1219
-    
1219
+
1220 1220
                     let tempArr = [], newArr = []
1221 1221
                     for (let i = 0; i < staffList.length; i++) {
1222 1222
                         if (tempArr.indexOf(staffList[i].user_name) === -1) {
@@ -1242,7 +1242,7 @@ export default {
1242 1242
                         this.doctorlist.sort(this.compare('admin_user_id'))
1243 1243
                         this.doctorlist.forEach((item, index) => {
1244 1244
                           if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1245
-                        
1245
+
1246 1246
                           }else{
1247 1247
                             arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
1248 1248
                             // console.log("arr",arr)
@@ -1263,7 +1263,7 @@ export default {
1263 1263
                         })
1264 1264
                         newDoctor.map((item, index) => {
1265 1265
                         if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1266
-                        
1266
+
1267 1267
                           }else{
1268 1268
                             arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
1269 1269
                             // console.log("arr",arr)
@@ -1283,7 +1283,7 @@ export default {
1283 1283
                         })
1284 1284
                         newDoctor.map((item, index) => {
1285 1285
                         if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1286
-                        
1286
+
1287 1287
                           }else{
1288 1288
                             arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
1289 1289
                             // console.log("arr",arr)
@@ -1331,7 +1331,7 @@ export default {
1331 1331
                         this.doctorlist.sort(this.compare('admin_user_id'))
1332 1332
                         this.doctorlist.forEach((item, index) => {
1333 1333
                           if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1334
-                        
1334
+
1335 1335
                           }else{
1336 1336
                             arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
1337 1337
                             // console.log("arr",arr)
@@ -1382,7 +1382,7 @@ export default {
1382 1382
             //     }else{
1383 1383
             //     this.$message.error("排班已存在")
1384 1384
             //     }
1385
-            // }) 
1385
+            // })
1386 1386
         },
1387 1387
         toContinuous(){
1388 1388
             var is_status = 0
@@ -1422,8 +1422,8 @@ export default {
1422 1422
                }
1423 1423
             }
1424 1424
            var start = label.split('~')
1425
-           var copy_startime = this.getTimestamp(start[0])   
1426
-           var copy_endtime = this.getTimestamp(start[1]) 
1425
+           var copy_startime = this.getTimestamp(start[0])
1426
+           var copy_endtime = this.getTimestamp(start[1])
1427 1427
 
1428 1428
             const params = {
1429 1429
               start_time:this.getTimestamp(this.weekDayArr[0]),
@@ -1461,7 +1461,7 @@ export default {
1461 1461
             if (week.length == 14) {
1462 1462
                 weeks = week[4]+week[5]+week[6]+week[7]+week[8]+week[9]+week[10]+week[11]+week[12]
1463 1463
             }
1464
-            
1464
+
1465 1465
             //  console.log("week",week)
1466 1466
             //  console.log("weeks",weeks)
1467 1467
             var weekdate =  this.getTimestamp(weeks)
@@ -1478,31 +1478,31 @@ export default {
1478 1478
         changeSort(val){
1479 1479
           console.log('val',val)
1480 1480
             const params = {
1481
-              sort:parseInt(val.sort), 
1482
-              id:val.id, 
1481
+              sort:parseInt(val.sort),
1482
+              id:val.id,
1483 1483
             }
1484 1484
             console.log("params",params)
1485
-          SaveNurseSort(params).then(response=>{
1486
-             if(response.data.state == 1){
1487
-               var role = response.data.data.role
1488
-               this.$message.success("保存成功")
1489
-               this.getDoctorList()
1490
-             }
1491
-          })
1485
+          // SaveNurseSort(params).then(response=>{
1486
+          //    if(response.data.state == 1){
1487
+          //      var role = response.data.data.role
1488
+          //      this.$message.success("保存成功")
1489
+          //      this.getDoctorList()
1490
+          //    }
1491
+          // })
1492 1492
         },
1493 1493
        changeRadio(val){
1494 1494
           console.log("val",val)
1495 1495
            const params = {
1496 1496
               id:val.id,
1497
-              is_sort:val.is_sort, 
1497
+              is_sort:val.is_sort,
1498 1498
            }
1499
-         SaveIsSchedule(params).then(response=>{
1500
-            if(response.data.state == 1){
1501
-              var role =  response.data.data.role
1502
-              this.$message.success("保存成功")
1503
-              this.getDoctorList()
1504
-            }
1505
-         })
1499
+         // SaveIsSchedule(params).then(response=>{
1500
+         //    if(response.data.state == 1){
1501
+         //      var role =  response.data.data.role
1502
+         //      this.$message.success("保存成功")
1503
+         //      this.getDoctorList()
1504
+         //    }
1505
+         // })
1506 1506
        }
1507 1507
     },
1508 1508
     created(){
@@ -1530,19 +1530,19 @@ export default {
1530 1530
                 let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
1531 1531
                 this.timeOptions.push({value:i,label:stt})
1532 1532
             }else{
1533
-                
1533
+
1534 1534
                 newNum++
1535 1535
                 let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + newNum + ')'
1536
-                this.typeOptions.push({value:i,label:str}) 
1536
+                this.typeOptions.push({value:i,label:str})
1537 1537
                 let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
1538
-                this.timeOptions.push({value:i,label:stt}) 
1538
+                this.timeOptions.push({value:i,label:stt})
1539 1539
             }
1540
-            
1540
+
1541 1541
         }
1542 1542
       var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
1543 1543
       this.timeNow = this.getTimestamp(now)
1544
-      
1545
-      
1544
+
1545
+
1546 1546
     }
1547 1547
 }
1548 1548
 </script>
@@ -1567,7 +1567,7 @@ export default {
1567 1567
         background-color: rgb(245, 247, 250);
1568 1568
         color: rgb(96, 98, 102);
1569 1569
         font-weight:bold;
1570
-        
1570
+
1571 1571
     }
1572 1572
     .classMain{
1573 1573
         height: 400px;

+ 30 - 30
src/xt_pages/medicalScheduling/schedulingStatistics.vue Näytä tiedosto

@@ -67,7 +67,7 @@
67 67
                     :picker-options="pickerOptions">
68 68
                     </el-date-picker>
69 69
                 </div>
70
-                
70
+
71 71
             </div>
72 72
             <div class="tableTitle">统计图</div>
73 73
             <div class="cell clearfix" style="margin:0;">
@@ -123,7 +123,7 @@
123 123
 import echarts from "echarts";
124 124
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
125 125
 import LineChart from "../qcd/components/LineChart";
126
-import { getScheduleList,getScheduleListTotal }  from '@/api/doctorSchedule'
126
+import { getScheduleList }  from '@/api/doctorSchedule'
127 127
 export default {
128 128
     components:{
129 129
         BreadCrumb,
@@ -273,39 +273,39 @@ export default {
273 273
         this.weekNum = this.getYearWeek(year,month,date)
274 274
         this.todayDate=this.formatDate(new Date())
275 275
         this.setDate(new Date())
276
-      
276
+
277 277
 
278 278
       //获取所有排班种
279 279
       this.getScheduleList()
280
-  
281
-      //获取统计表的数据
282
-      this.getlist()
280
+
281
+      // 获取统计表的数据
282
+      // this.getlist()
283 283
     },
284 284
     methods:{
285 285
         toSearch(){},
286
-        formatDate(date){      
287
-            var year = date.getFullYear()+'.'       
286
+        formatDate(date){
287
+            var year = date.getFullYear()+'.'
288 288
             var month = (date.getMonth()+1)+'.';
289 289
             var day = date.getDate();
290 290
             return year+month+day
291
-        }, 
292
-        addDate(date,n){        
293
-            date.setDate(date.getDate()+n);        
291
+        },
292
+        addDate(date,n){
293
+            date.setDate(date.getDate()+n);
294 294
             return date;
295
-        },  
296
-        setDate(date){           
295
+        },
296
+        setDate(date){
297 297
             var week = date.getDay()-1;
298 298
             date = this.addDate(date,week*-1);
299 299
             this.currentFirstDate = new Date(date);
300 300
             this.currentDate = new Date(date)
301
-            for(var i = 0;i<this.clen; i++){     
301
+            for(var i = 0;i<this.clen; i++){
302 302
                 this.weekDayArr.push(this.formatDate(i==0 ? date : this.addDate(date,1)))
303
-            }         
303
+            }
304 304
         },
305
-        //上一周 
305
+        //上一周
306 306
         lastclick(){
307 307
             this.weekDayArr=[]
308
-            this.setDate(this.addDate(this.currentFirstDate,-7));   
308
+            this.setDate(this.addDate(this.currentFirstDate,-7));
309 309
             if (this.weekNum == 1) {
310 310
                 let year = this.nowYear - 1
311 311
                 let month = 12
@@ -316,8 +316,8 @@ export default {
316 316
             this.weekNum = this.weekNum - 1
317 317
         },
318 318
         //下一周
319
-        nextclick(){ 
320
-            this.weekDayArr=[]                
319
+        nextclick(){
320
+            this.weekDayArr=[]
321 321
             this.setDate(this.addDate(this.currentFirstDate,7));
322 322
             this.weekNum = this.weekNum + 1
323 323
             if (this.weekNum == 53) {
@@ -329,16 +329,16 @@ export default {
329 329
             }
330 330
         },
331 331
         getYearWeek(year,month,date){
332
-            /*  
333
-                dateNow是当前日期 
334
-                dateFirst是当年第一天  
335
-                dataNumber是当前日期是今年第多少天  
336
-                用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周  
337
-            */      
332
+            /*
333
+                dateNow是当前日期
334
+                dateFirst是当年第一天
335
+                dataNumber是当前日期是今年第多少天
336
+                用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周
337
+            */
338 338
             let dateNow = new Date(year, parseInt(month) - 1, date);
339 339
             let dateFirst = new Date(year, 0, 1);
340 340
             let dataNumber = Math.round((dateNow.valueOf() - dateFirst.valueOf()) / 86400000);
341
-            return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);        
341
+            return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);
342 342
             },
343 343
             getTimestamp(time) { //把时间日期转成时间戳
344 344
             return (new Date(time)).getTime() / 1000
@@ -354,10 +354,10 @@ export default {
354 354
             var month = nowDate.getMonth() + 1; // getMonth 方法返回 0-11,代表1-12月
355 355
             var endOfMonth = new Date(fullYear, month, 0).getDate(); // 获取本月最后一天
356 356
             let monthEndTime = this.getFullDate(cloneNowDate.setDate(endOfMonth))
357
-            
358
-            
357
+
358
+
359 359
             console.log('monthEndTime',this.getTimestamp(monthEndTime))
360
-            
360
+
361 361
         },
362 362
         getFullDate(targetDate) {
363 363
             var D, y, m, d;
@@ -386,7 +386,7 @@ export default {
386 386
                 var schedulelist = response.data.data.scheduleList
387 387
                 console.log("schedulelist",schedulelist)
388 388
                 this.scheduleList = schedulelist
389
-             } 
389
+             }
390 390
           })
391 391
         },
392 392
 

+ 14 - 13
src/xt_pages/user/components/PatientDetail.vue Näytä tiedosto

@@ -223,6 +223,19 @@
223 223
                 </el-radio-group>
224 224
               </el-form-item>
225 225
             </el-col>
226
+            <el-col :span="8">
227
+              <el-form-item label="备注" prop="sch_remark">
228
+                <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
229
+                <el-input
230
+                  type="textarea"
231
+                  :rows="3"
232
+                  v-model="form.sch_remark"
233
+                  resize="none"
234
+                  placeholder=""
235
+                  readonly
236
+                ></el-input>
237
+              </el-form-item>
238
+            </el-col>
226 239
             <el-col :span="8" style="height:59px;">
227 240
               <el-form-item
228 241
                 label="治疗状态(转归) : "
@@ -633,19 +646,7 @@
633 646
           </el-form-item>
634 647
         </el-col>
635 648
 
636
-        <el-col :span="8">
637
-          <el-form-item label="" prop="sch_remark">
638
-            <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
639
-            <el-input
640
-              type="textarea"
641
-              :rows="3"
642
-              v-model="form.sch_remark"
643
-              resize="none"
644
-              placeholder=""
645
-              readonly
646
-            ></el-input>
647
-          </el-form-item>
648
-        </el-col>
649
+
649 650
 
650 651
         <el-col :span="24">
651 652
           <el-form-item label="慢性病 : " prop="diseases">