|
@@ -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;
|