소스 검색

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

See999 4 년 전
부모
커밋
aa4bfc2dff

+ 2 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 파일 보기

@@ -21,13 +21,13 @@
21 21
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
22 22
           </el-select>
23 23
         </el-form-item>
24
-        <el-form-item label="穿刺护士"  v-if="isShowFiled('穿刺护士')">
24
+        <el-form-item label="穿刺者"  v-if="isShowFiled('穿刺者')">
25 25
           <el-select v-model="form.puncture_nurse_id" placeholder="请选择穿刺护士">
26 26
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
27 27
           </el-select>
28 28
         </el-form-item>
29 29
         <el-form-item label="冲管护士"  v-if="isShowFiled('冲管护士')">
30
-          <el-select v-model="form.washpipe_nurse" placeholder="请选择穿刺护士">
30
+          <el-select v-model="form.washpipe_nurse" placeholder="请选择冲管护士">
31 31
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
32 32
           </el-select>
33 33
         </el-form-item>

+ 2 - 2
src/xt_pages/dialysis/details/dialysisComputer.vue 파일 보기

@@ -17,8 +17,8 @@
17 17
         </li>
18 18
       </ul>
19 19
       <ul>
20
-        <li v-if="isShow('穿刺护士')">
21
-          <label>穿刺护士 : </label>
20
+        <li v-if="isShow('穿刺')">
21
+          <label>穿刺 : </label>
22 22
           <span class="content">{{ puncture_nurse }}</span>
23 23
         </li>
24 24
         <li v-if="isShow('冲管护士')">

+ 1 - 26
src/xt_pages/medicalScheduling/class.vue 파일 보기

@@ -380,7 +380,6 @@ export default {
380 380
            getDoctorScheduleList(params).then(response=>{
381 381
               if(response.data.state == 1){
382 382
                  var schedules = response.data.data.schedules
383
-                  console.log("schedules",schedules)
384 383
                  for(let i=0;i<schedules.length;i++){
385 384
                     if(schedules[i].class_attributes == 1){
386 385
                         schedules[i].class_attributes ="出勤"
@@ -429,7 +428,6 @@ export default {
429 428
         getScheduleDetail(id).then(response=>{
430 429
            if(response.data.state == 1){
431 430
              var scheduleDetail = response.data.data.scheduleDetail
432
-             console.log("scheduledetail",scheduleDetail)
433 431
              this.form.id = scheduleDetail.id
434 432
              this.form.class_name = scheduleDetail.class_name
435 433
              this.form.class_attributes = scheduleDetail.class_attributes
@@ -546,9 +544,6 @@ export default {
546 544
         },
547 545
      changtime(){
548 546
          //计算时长
549
-        console.log("timeone",this.form.timeone_start)
550
-        console.log("timeonend",this.form.timeone_end)
551
-        console.log("timeonetype",this.form.timeone_type)
552 547
         var longtime = 0
553 548
         var timeone = 0
554 549
         var timetwo = 0
@@ -564,7 +559,7 @@ export default {
564 559
           var timeone =  this.timeDifference(this.form.timeone_start,oneHours)
565 560
          timeone = timeone
566 561
         }
567
-       console.log("时间选择1时长",this.timeStamp(timeone))
562
+     
568 563
                 
569 564
         //时间选择2的时间差
570 565
         if(this.form.timetwo_type == 1){
@@ -578,18 +573,12 @@ export default {
578 573
             var timetwo =  this.timeDifference(this.form.timetwo_start,oneHours)
579 574
             timetwo = timetwo
580 575
         }
581
-          console.log("timetwo",timetwo)
582
-          console.log("时间选择2时长",this,this.timeStamp(timetwo))
583 576
                   
584 577
         longtime = timeone + timetwo
585
-        console.log("longtime",longtime)
586 578
         this.form.work_time = this.timeStamp(longtime)
587 579
      },
588 580
      changtimeTwo(){
589 581
            //计算时长
590
-        console.log("timeone",this.form.timeone_start)
591
-        console.log("timeonend",this.form.timeone_end)
592
-        console.log("timeonetype",this.form.timeone_type)
593 582
         var longtime = 0
594 583
         var timeone = 0
595 584
         var timetwo = 0
@@ -605,7 +594,6 @@ export default {
605 594
           var timeone =  this.timeDifference(this.form.timeone_start,oneHours)
606 595
          timeone = timeone
607 596
         }
608
-       console.log("时间选择1时长",this.timeStamp(timeone))
609 597
                 
610 598
         //时间选择2的时间差
611 599
         if(this.form.timetwo_type == 1){
@@ -619,11 +607,8 @@ export default {
619 607
             var timetwo =  this.timeDifference(this.form.timetwo_start,oneHours)
620 608
             timetwo = timetwo
621 609
         }
622
-          console.log("timetwo",timetwo)
623
-          console.log("时间选择2时长",this,this.timeStamp(timetwo))
624 610
                   
625 611
         longtime = timeone + timetwo
626
-        console.log("longtime",longtime)
627 612
         this.form.work_time = this.timeStamp(longtime) 
628 613
      }
629 614
     },
@@ -631,16 +616,6 @@ export default {
631 616
         //获取班种列表
632 617
         this.getList()
633 618
     },
634
-    watch: {
635
-    //  监听对象数据变化
636
-    work_time: {
637
-      handler(newVal, oldVal) {
638
-        console.log(newVal)
639
-        console,log(oldVal)
640
-      },
641
-      deep: true  // 非常非常重要,这个是深度监听,默认是false。true的时候才能监听到对象的变化
642
-    }
643
-   }
644 619
 }
645 620
 </script>
646 621
 <style scoped>

+ 11 - 18
src/xt_pages/medicalScheduling/index.vue 파일 보기

@@ -40,7 +40,7 @@
40 40
             </div>
41 41
             <div class="schedulingTable" style="display:flex;justify-content: space-between;">
42 42
                 <div style="width: 70%">
43
-                    <el-table :data="tableData" border :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" :row-style="{ color: '#303133' }"  @cell-click="clickThis">
43
+                    <el-table :data="tableData" border :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" :row-style="{ color: '#303133' }"  @cell-click="clickThis" :cell-style="tableCellStyle">
44 44
                         <el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
45 45
                             <template slot-scope="scope">
46 46
                                  {{scope.row.user_name}}
@@ -450,7 +450,6 @@ export default {
450 450
             getStaffScheduleList(params).then(response=>{
451 451
                 if(response.data.state == 1){
452 452
                     var staffList =  response.data.data.staffList
453
-                   console.log("所有排班数据",staffList)
454 453
                     for(let i=0;i<staffList.length;i++){
455 454
                     if(staffList[i].schedule_week == 0){
456 455
                         staffList[i].class_index = 0
@@ -474,7 +473,6 @@ export default {
474 473
                         staffList[i].class_index = 6
475 474
                     }
476 475
                     }
477
-                    console.log("staffList--------",staffList)
478 476
                     let tempArr = [], newArr = []
479 477
                     for (let i = 0; i < staffList.length; i++) {
480 478
                         if (tempArr.indexOf(staffList[i].user_name) === -1) {
@@ -501,7 +499,6 @@ export default {
501 499
                     
502 500
                       }else{
503 501
                         arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
504
-                        // console.log("arr",arr)
505 502
                       }
506 503
                     })
507 504
                     console.log("arr=======",arr)
@@ -626,7 +623,6 @@ export default {
626 623
                             // console.log("arr",arr)
627 624
                           }
628 625
                         })
629
-                        console.log("全部=======",arr)
630 626
                         arr.sort(this.compare('user_type'))
631 627
                         this.tableData = arr
632 628
                     }
@@ -675,8 +671,6 @@ export default {
675 671
         })
676 672
         },
677 673
         toSearch(){
678
-            console.log("医护人员姓名",this.keywords)
679
-            
680 674
             const params = {
681 675
             user_name: this.keywords,
682 676
             start_time:this.getTimestamp(this.weekDayArr[0]),
@@ -685,7 +679,6 @@ export default {
685 679
             toSearchScheduleList(params).then(response=>{
686 680
                 if(response.data.state == 1){
687 681
                     var staffList =  response.data.data.staffList
688
-                    console.log("stafflist",staffList)
689 682
                     let tempArr = [], newArr = []
690 683
                     for (let i = 0; i < staffList.length; i++) {
691 684
                         if (tempArr.indexOf(staffList[i].user_name) === -1) {
@@ -729,7 +722,6 @@ export default {
729 722
             start_time:this.getTimestamp(this.weekDayArr[0]),
730 723
             end_time:this.getTimestamp(this.weekDayArr[6])
731 724
             }
732
-            console.log("params",params)
733 725
             this.$confirm(
734 726
             '是否要清除当周排班? <br>清除后,信息将无法恢复',
735 727
             '删除提示',
@@ -780,7 +772,6 @@ export default {
780 772
             UpdateContinusSchedule(params).then(response=>{
781 773
                 if(response.data.state == 1){
782 774
                 var schedule =  response.data.data.schedule
783
-                console.log("schedule",schedule)
784 775
                 this.$message.success("保存成功")
785 776
                 }
786 777
             })
@@ -798,8 +789,6 @@ export default {
798 789
             this.currentFirstDate1 = num + 1
799 790
         },
800 791
         submitAction(formName){
801
-            console.log("数据",this.typeOptions)
802
-            console.log("2222",this.timeOptions)
803 792
             var label = ""
804 793
             for(let i=0;i<this.timeOptions.length;i++){
805 794
                if(this.form.copyWeek == this.timeOptions[i].value){
@@ -808,9 +797,7 @@ export default {
808 797
             }
809 798
            var start = label.split('~')
810 799
            var copy_startime = this.getTimestamp(start[0])   
811
-           console.log("copy_startime",copy_startime)   
812 800
            var copy_endtime = this.getTimestamp(start[1]) 
813
-           console.log("copy_endtime",copy_endtime)
814 801
 
815 802
             const params = {
816 803
               start_time:this.getTimestamp(this.weekDayArr[0]),
@@ -818,13 +805,11 @@ export default {
818 805
               copy_startime:copy_startime,
819 806
               copy_endtime:copy_endtime,
820 807
             }
821
-            console.log("params",params)
822 808
            this.$refs[formName].validate(valid=>{
823 809
               if(valid){
824 810
                 copyStaffSchedule(params).then(response=>{
825 811
                    if(response.data.state == 1){
826 812
                      var msg = response.data.data.msg
827
-                     console.log("msg",msg)
828 813
                      this.$message.success("复制成功")
829 814
                      this.newVisible = false
830 815
                    }else{
@@ -841,6 +826,16 @@ export default {
841 826
                 return value2 - value1;
842 827
             }
843 828
         },
829
+       tableCellStyle (row, rowIndex, column) {
830
+         var week = (row.column.label).split('');
831
+         var weeks = week[4]+week[5]+week[6]+week[7]+week[8]+week[9]+week[10]+week[11]+week[12]
832
+        //  console.log("week",week)
833
+         console.log("weeks",weeks)
834
+         var weekdate =  this.getTimestamp(weeks)
835
+         if(weekdate  < this.timeNow){
836
+           return 'background-color:#e5e5e5;'
837
+          }
838
+       },
844 839
     },
845 840
     created(){
846 841
         //获取医护人员
@@ -877,9 +872,7 @@ export default {
877 872
             
878 873
         }
879 874
       var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
880
-      console.log('now',now)
881 875
       this.timeNow = this.getTimestamp(now)
882
-      console.log("timenow",this.timeNow)
883 876
       
884 877
     }
885 878
 }

+ 1 - 6
src/xt_pages/medicalScheduling/medical_print.vue 파일 보기

@@ -87,7 +87,6 @@ export default {
87 87
       getDoctorList(){
88 88
         getDoctorList().then(response=>{
89 89
           var list =  response.data.data.list
90
-          console.log("医护列表",list)
91 90
           this.doctorlist = list
92 91
           this.getStaffScheduleList()
93 92
         })
@@ -101,7 +100,6 @@ export default {
101 100
          getStaffScheduleList(params).then(response=>{
102 101
             if(response.data.state == 1){
103 102
               var staffList = response.data.data.staffList
104
-              console.log("staffList",staffList)
105 103
 
106 104
               let tempArr = [], newArr = []
107 105
               for (let i = 0; i < staffList.length; i++) {
@@ -129,10 +127,10 @@ export default {
129 127
               
130 128
                 }else{
131 129
                   arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
132
-                  // console.log("arr",arr)
133 130
                 }
134 131
               })
135 132
               arr.sort(this.compare('user_type'))
133
+              console.log("表哥数据----------",arr)
136 134
               this.tableData = arr
137 135
               
138 136
             }
@@ -191,13 +189,10 @@ export default {
191 189
     },
192 190
     created(){
193 191
       var starttime =  this.$route.query.starttime
194
-      console.log("starttime",starttime)
195 192
       this.start_time = starttime
196 193
       var endtime =  this.$route.query.endtime
197
-      console.log("endtime",endtime)
198 194
       this.end_time = endtime
199 195
       this.weekArr = this.$route.query.weekArr.split(',')
200
-      console.log(22222222222,this.$route.query.weekArr.split(','))
201 196
       //获取该机构所有医护人员
202 197
       this.getDoctorList()
203 198
     }

+ 22 - 1
src/xt_pages/user/components/PatientDetail.vue 파일 보기

@@ -633,6 +633,20 @@
633 633
           </el-form-item>
634 634
         </el-col>
635 635
 
636
+        <el-col :span="24">
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
+
636 650
         <el-col :span="24">
637 651
           <el-form-item label="慢性病 : " prop="diseases">
638 652
             <el-checkbox-group v-model="form.diseases">
@@ -1055,7 +1069,8 @@ const defaultForm = {
1055 1069
   first_treatment_date: "",
1056 1070
   dialysis_age: "",
1057 1071
   expense_kind: "",
1058
-  contact_name: ""
1072
+  contact_name: "",
1073
+  sch_remark:"",
1059 1074
 };
1060 1075
 
1061 1076
 export default {
@@ -1334,6 +1349,8 @@ export default {
1334 1349
             this.form.contagions = response.data.data.contagions;
1335 1350
             this.form.diseases = response.data.data.diseases;
1336 1351
             this.form.remark = patietInfo.remark;
1352
+            this.form.sch_remark = patietInfo.sch_remark;
1353
+
1337 1354
             this.form.diagnose = patietInfo.diagnose;
1338 1355
 
1339 1356
             this.form.patient_complains = patietInfo.patient_complains;
@@ -1478,6 +1495,10 @@ export default {
1478 1495
               /\n/g,
1479 1496
               "<br/>"
1480 1497
             );
1498
+            this.patientPrint.sch_remark = patietInfo.sch_remark.replace(
1499
+              /\n/g,
1500
+              "<br/>"
1501
+            );
1481 1502
             this.patientPrint.diagnose = patietInfo.diagnose.replace(
1482 1503
               /\n/g,
1483 1504
               "<br/>"

+ 21 - 0
src/xt_pages/user/components/PatientForm.vue 파일 보기

@@ -280,6 +280,22 @@
280 280
                   </el-radio-group>
281 281
                 </el-form-item>
282 282
               </el-col>
283
+
284
+              <el-col :span="24">
285
+                <el-form-item
286
+                  label="备注 : "
287
+                  prop="sch_remark">
288
+                  <el-input
289
+                    type="textarea"
290
+                    :rows="3"
291
+                    v-model="form.sch_remark"
292
+                    resize="none"
293
+                    placeholder
294
+                  ></el-input>
295
+                </el-form-item>
296
+              </el-col>
297
+
298
+
283 299
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''" v-show="showLapseto">
284 300
                 <el-form-item
285 301
                   label="治疗状态(转归) : "
@@ -716,6 +732,8 @@
716 732
               ></el-input>
717 733
             </el-form-item>
718 734
           </el-col>
735
+
736
+
719 737
           <!--<el-col :span="24">-->
720 738
           <!--<el-form-item label="传染病 : " prop="checkContagions">-->
721 739
           <!--<el-checkbox-group v-model="form.contagions">-->
@@ -949,6 +967,7 @@ const defaultForm = {
949 967
   contagions: [],
950 968
   diseases: [],
951 969
   remark: "",
970
+  sch_remark:"",
952 971
   diagnose: "",
953 972
   is_infectious: 1,
954 973
   age: "",
@@ -1661,6 +1680,8 @@ export default {
1661 1680
             this.form.contagions = response.data.data.contagions;
1662 1681
             this.form.diseases = response.data.data.diseases;
1663 1682
             this.form.remark = patietInfo.remark;
1683
+            this.form.sch_remark = patietInfo.sch_remark;
1684
+
1664 1685
             this.form.diagnose = patietInfo.diagnose;
1665 1686
 
1666 1687
             this.form.patient_complains = patietInfo.patient_complains;

+ 7 - 0
src/xt_pages/workforce/components/tableData.vue 파일 보기

@@ -426,6 +426,13 @@
426 426
             </span>
427 427
           </template>
428 428
         </el-table-column>
429
+        <el-table-column
430
+          property="sch_remark"
431
+          label="备注"
432
+          min-width="200"
433
+          align="center"
434
+        >
435
+        </el-table-column>
429 436
       </el-table>
430 437
       <div slot="footer" class="dialog-footer">
431 438
         <el-button @click="closePatientPanel()">取 消</el-button>