Browse Source

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 6 months ago
parent
commit
61cc770dfa

+ 22 - 6
src/pages/main/DetailsPage.vue View File

@@ -47,8 +47,8 @@
47 47
       <div class="Tab">
48 48
         <!-- <CaseHistory v-show="index == 0" title="病历"></CaseHistory> -->
49 49
         <!--<check-tab v-show="index==1" title="化验单"></check-tab>-->
50
-        <dialysis-tab v-if="index == 1" title="透析" v-on:records="jump(val)"></dialysis-tab>
51
-        <today-tab ref="today" v-show="index == 0 && !showView" title="今日" @show_patient_list="showPatientList"></today-tab>
50
+        <dialysis-tab v-if="index == 1" title="透析" v-on:records="jump(val)" @tabIndex="tabIndex" :tableIndex2="tableIndex2"></dialysis-tab>
51
+        <today-tab ref="today" v-show="index == 0 && !showView" title="今日" @show_patient_list="showPatientList" :index = index @tiaozhuan = 'tiaozhuan_click' :tableIndex = tableIndex @history="history_click"></today-tab>
52 52
         <!-- <div v-if="showView" style="text-align:center;font-size:0.6rem;">
53 53
           <p style="margin-top:20px;">当前叫号</p>
54 54
           <p style="margin-top:20px;">{{ $route.query.patient_name ? $route.query.patient_name : ""}}</p>
@@ -222,6 +222,8 @@ export default {
222 222
       patient_name: '',
223 223
       date: 0,
224 224
       index: 0,
225
+      tableIndex:0,
226
+      tableIndex2:0,
225 227
       patient: null,
226 228
       sqls: [
227 229
         window.matchMedia('(max-width:418px)'), // 和CSS一样,也要注意顺序!
@@ -693,6 +695,7 @@ export default {
693 695
     },
694 696
     ClickTab: function (tabIndex) {
695 697
       this.index = tabIndex
698
+      this.tableIndex = tabIndex
696 699
     },
697 700
     backAction () {
698 701
       // this.$router.back(-1);
@@ -1168,7 +1171,7 @@ export default {
1168 1171
       return (time1/1000)-28800
1169 1172
     },
1170 1173
     formatter (day) {
1171
-     
1174
+
1172 1175
       this.patientAllDayList.map(item => {
1173 1176
       //  console.log("itemwowowwo",item.scheudle)
1174 1177
        if(this.$store.getters.user.template_info.org_id == 9538 || this.$store.getters.user.template_info.org_id == 10101 || this.$store.getters.user.template_info.org_id == 10353 || this.$store.getters.user.template_info.org_id == 9946){
@@ -1198,8 +1201,8 @@ export default {
1198 1201
        }
1199 1202
 
1200 1203
       })
1201
-     
1202
-     
1204
+
1205
+
1203 1206
       return day
1204 1207
     },
1205 1208
     getPatientDialysisRecord () {
@@ -1290,6 +1293,19 @@ export default {
1290 1293
           }
1291 1294
        })
1292 1295
 
1296
+    },
1297
+    tiaozhuan_click(eve){
1298
+      console.log('33333333322222',eve);
1299
+      this.index = eve
1300
+    },
1301
+    // 自定义方法
1302
+    tabIndex(eve){
1303
+      console.log('eve111111',eve);
1304
+      this.tableIndex = eve
1305
+    },
1306
+    history_click(eve){
1307
+      console.log('history_click',eve);
1308
+      this.tableIndex2 =eve
1293 1309
     }
1294 1310
 
1295 1311
   },
@@ -1608,7 +1624,7 @@ export default {
1608 1624
   .van-calendar__top-info{
1609 1625
     background: #f44; /* 红色背景 */
1610 1626
   }
1611
- 
1627
+
1612 1628
 }
1613 1629
 .custom-date-one{
1614 1630
   .van-calendar__top-info{

+ 11 - 2
src/pages/main/dialysis/DialysisTab.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="newDialysisTab">
3
-      <van-tabs v-model="index">
3
+      <van-tabs v-model="index" @change="ClickTab">
4 4
         <van-tab title="医嘱">
5 5
           <advice-table v-if="index == 0"></advice-table>
6 6
         </van-tab>
@@ -19,7 +19,7 @@
19 19
         <van-tab title="血管通路">
20 20
           <pass-assessment></pass-assessment>
21 21
         </van-tab>
22
-        
22
+
23 23
         <!-- <van-tab title="检验检查">
24 24
           <inspection style="padding-top: 2.75rem;"></inspection>
25 25
         </van-tab>
@@ -66,6 +66,9 @@ export default {
66 66
       index: 0
67 67
     }
68 68
   },
69
+  props:{
70
+    tableIndex2:Number
71
+  },
69 72
   components: {
70 73
     LongTable,
71 74
     SchedulTable,
@@ -81,15 +84,21 @@ export default {
81 84
     TreatSummary,
82 85
     Standingorder
83 86
   },
87
+  created(){
88
+    this.index = this.tableIndex2
89
+  },
84 90
   methods: {
85 91
     ClickTab: function (tabIndex) {
86 92
       console.log('tabIndex',tabIndex);
87 93
       this.index = tabIndex
94
+      this.$emit('tabIndex',tabIndex)
88 95
     }
89 96
   },
90 97
   mounted () {
91 98
     if (this.$route.query.active2) {
92 99
       this.index = parseInt(this.$route.query.active2)
100
+      console.log('121212121',this.index);
101
+
93 102
     }
94 103
   }
95 104
 }

+ 117 - 3
src/pages/main/today/TodayTab.vue View File

@@ -129,6 +129,7 @@
129 129
                       :dialysis_order="dialysis_order"
130 130
                       :is_advice_open="is_advice_open"
131 131
                       :prescription_prop="prescription"
132
+                      
132 133
                       ref="orders_dialog"></doctorAdvice>
133 134
         <!-- 双人核对 -->
134 135
         <doubleCheck v-if="barActive == 5" :patient_prop="patient" ref="doubleCheck"
@@ -214,6 +215,15 @@
214 215
       @touchcancel="end" alt="">
215 216
     </div>
216 217
 
218
+    <div class="checkBox4" @click="tiaozhuan" ref="moveBtn2" >
219
+      <img src="../../../assets/images/check2.png" @mousedown="down2" @touchstart="down2"
220
+      @mousemove="move2"
221
+      @touchmove="move2"
222
+      @mouseup="end2"
223
+      @touchend="end2"
224
+      @touchcancel="end2" alt="" v-if="barActive == 4">
225
+    </div>
226
+
217 227
     <div class="checkBox3"  @click="toExecution" ref="moveBtns" v-if="user_type==3 && ($store.getters.user.template_info.org_id==10340 || $store.getters.user.template_info.org_id==10489)">
218 228
         <img src="../../../assets/images/advice.png" @mousedown="downs" @touchstart="downs"
219 229
       @mousemove="moves"
@@ -224,8 +234,8 @@
224 234
         <span class="redpoints" v-if="total>0">
225 235
           {{ total }}
226 236
         </span>
227
-     </div>
228
-
237
+    </div>
238
+     
229 239
     <van-dialog v-model="dry_visibility"  width="90%"  show-cancel-button>
230 240
       <div style="margin:10px;height:100px; overflow-y: scroll;">
231 241
         <div style="">
@@ -353,6 +363,10 @@ export default {
353 363
     basicTreatmentOf
354 364
 
355 365
   },
366
+  props:{
367
+    index:Number,
368
+    tableIndex:Number
369
+  },
356 370
   inject: ['reload'],
357 371
   data () {
358 372
     return {
@@ -466,6 +480,11 @@ export default {
466 480
         x: 0,
467 481
         y: 0
468 482
       },
483
+      position2:{
484
+        x: 0,
485
+        y: 0
486
+      },
487
+
469 488
       active: 0,
470 489
       nx: '',
471 490
       ny: '',
@@ -480,9 +499,18 @@ export default {
480 499
       dsy: '',
481 500
       xsPum: '',
482 501
       ysPum: '',
502
+
503
+      nx2: '',
504
+      ny2: '',
505
+      dx2: '',
506
+      dy2: '',
507
+      xPum2: '',
508
+      yPum2: '',
509
+
483 510
       isShow: false,
484 511
       moveBtn: {},
485 512
       moveBtns: {},
513
+      moveBtn2:{},
486 514
       is_project_open: 0,
487 515
       new_dialysis_goods: [],
488 516
       list: [],
@@ -620,6 +648,15 @@ export default {
620 648
   },
621 649
 
622 650
   mounted () {
651
+    this.moveBtn2 = this.$refs.moveBtn2
652
+    if (sessionStorage.getItem('checkBtnTop2')) {
653
+      this.moveBtn2.style.top = sessionStorage.getItem('checkBtnTop2')
654
+      this.moveBtn2.style.bottom = 'initial'
655
+    }
656
+    if (sessionStorage.getItem('checkBtnLeft2')) {
657
+      this.moveBtn2.style.left = sessionStorage.getItem('checkBtnLeft2')
658
+    }
659
+
623 660
     this.moveBtn = this.$refs.moveBtn
624 661
     if (sessionStorage.getItem('checkBtnTop')) {
625 662
       this.moveBtn.style.top = sessionStorage.getItem('checkBtnTop')
@@ -687,6 +724,13 @@ export default {
687 724
     // $route: 'requestDialysisRecord'
688 725
   },
689 726
   methods: {
727
+    tiaozhuan(){
728
+      this.index = 1
729
+      this.tableIndex = 4
730
+      this.$emit('tiaozhuan',this.index)
731
+      this.$emit('history',this.tableIndex)
732
+      console.log('this.index',this.index);
733
+    },
690 734
     down (event) {
691 735
       this.flags = true
692 736
       var touch
@@ -699,6 +743,8 @@ export default {
699 743
       this.position.y = touch.clientY
700 744
       this.dx = this.moveBtn.offsetLeft
701 745
       this.dy = this.moveBtn.offsetTop
746
+      console.log('this.moveBtn.offsetLeft',this.moveBtn.offsetLeft);
747
+      
702 748
     },
703 749
     move (event) {
704 750
       if (this.flags) {
@@ -798,6 +844,65 @@ export default {
798 844
         passive: false
799 845
       })
800 846
     },
847
+
848
+    // 长期医嘱
849
+    down2 (event) {
850
+      console.log('this.moveBtn2',this.moveBtn2);
851
+      this.flags = true
852
+      var touch
853
+      if (event.touches) {
854
+        touch = event.touches[0]
855
+      } else {
856
+        touch = event
857
+      }
858
+      this.position2.x = touch.clientX
859
+      this.position2.y = touch.clientY
860
+      this.dx2 = this.moveBtn2.offsetLeft
861
+      this.dy2 = this.moveBtn2.offsetTop
862
+    },
863
+    move2 (event) {
864
+      if (this.flags) {
865
+        var touch
866
+        if (event.touches) {
867
+          touch = event.touches[0]
868
+        } else {
869
+          touch = event
870
+        }
871
+        this.nx2 = touch.clientX - this.position2.x
872
+        this.ny2 = touch.clientY - this.position2.y
873
+        this.xPum2 = this.dx2 + this.nx2
874
+        this.yPum2 = this.dy2 + this.ny2
875
+        var clientWidth = document.documentElement.clientWidth
876
+        var clientHeight = document.documentElement.clientHeight
877
+        if (
878
+          this.xPum2 > 0 &&
879
+          this.xPum2 < clientWidth - this.moveBtn2.offsetWidth
880
+        ) {
881
+          this.moveBtn2.style.left = this.xPum2 + 'px'
882
+        }
883
+        if (
884
+          this.yPum2 > 0 &&
885
+          this.yPum2 < clientHeight - this.moveBtn2.offsetHeight
886
+        ) {
887
+          this.moveBtn2.style.top = this.yPum2 + 'px'
888
+        }
889
+
890
+        // 阻止页面的滑动默认事件
891
+        document.addEventListener('touchmove', this.handler, {
892
+          passive: false
893
+        })
894
+      }
895
+    },
896
+    // 鼠标释放时候的函数
897
+    end2 () {
898
+      this.flags = false
899
+      sessionStorage.setItem('checkBtnTop2', this.moveBtn2.style.top)
900
+      sessionStorage.setItem('checkBtnLeft2', this.moveBtn2.style.left)
901
+      document.addEventListener('touchmove', this.handler, {
902
+        passive: false
903
+      })
904
+    },
905
+
801 906
     handler () {
802 907
       if (this.flags) {
803 908
         event.preventDefault()
@@ -3549,7 +3654,16 @@ export default {
3549 3654
     height: 3.5rem;
3550 3655
   }
3551 3656
 }
3552
-
3657
+.checkBox4 {
3658
+  position: fixed;
3659
+  left: 0.6rem;
3660
+  bottom: 11rem;
3661
+  z-index:5000;
3662
+  img {
3663
+    width: 3.5rem;
3664
+    height: 3.5rem;
3665
+  }
3666
+}
3553 3667
 .contagionImg{
3554 3668
   width: 1rem !important;
3555 3669
   height: 1rem !important;

+ 2 - 3
src/pages/new_Patientscheduling/new_content.vue View File

@@ -35,7 +35,6 @@
35 35
         border
36 36
         :fit="true"
37 37
         :data="scheduleZone"
38
-
39 38
         :height="tableContainHeight"
40 39
         ref="table"
41 40
         style="table-layout: fixed;"
@@ -57,7 +56,7 @@
57 56
         <el-table-column prop="Mon_M" label="上午" min-width="60" align="center">
58 57
           <template slot-scope="scope">
59 58
             <div >
60
-              <el-popover :ref="`popover-${scope.$index}`"
59
+              <el-popover ref="popover"
61 60
                 placement="top"
62 61
                 title=""
63 62
                 width=""
@@ -68,7 +67,7 @@
68 67
                   <el-button @click='patientedit(scope.row.Mon_M)'>调班</el-button>
69 68
                   <el-button @click="delete_click(scope.row.Mon_M)" v-if="scope.row.Mon_M.stage==0">删除</el-button>
70 69
                 </div>
71
-                <div style="text-align: center;" v-if="scope.row.Mon_M.patient_id ==''" >
70
+                <div style="text-align: center;" v-if="scope.row.Mon_M.patient_id == ''" >
72 71
                   <el-button @click='newappend(scope.row.Mon_M)'>新增</el-button>
73 72
                 </div>
74 73
                 <schedule-item slot="reference" :schedule-detail="scope.row.Mon_M"></schedule-item>