Explorar el Código

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

28169 hace 1 año
padre
commit
ab3b21bd7e

+ 52 - 0
src/utils/move.js Ver fichero

@@ -0,0 +1,52 @@
1
+// 鼠标移动滚动位置类
2
+class Drag {
3
+  constructor(vm) {
4
+    this.dragWrap = vm;// 要挂载的容器
5
+    this._dom = {};
6
+    this._x = 0;
7
+    this._y = 0;
8
+    this._top = 0;
9
+    this._left = 0;
10
+    this.move = false;
11
+    this.down = false;
12
+    this.init.apply(this, arguments);
13
+  }
14
+
15
+  // 绑定事件
16
+  init() {
17
+    this.bindEvent();
18
+  }
19
+
20
+  // 给要素增加鼠标事件mousedown,mouseup,mousemove
21
+  bindEvent() {
22
+    var t = this;
23
+    this.dragWrap.addEventListener('mousedown', function (e) {
24
+      e && e.preventDefault();
25
+      if (!t.move) {
26
+        t.move = false;
27
+        t.down = true;
28
+        t._x = e.clientX;
29
+        t._y = e.clientY;
30
+        t._top = t.dragWrap.scrollTop;
31
+        t._left = t.dragWrap.scrollLeft;
32
+      }
33
+    });
34
+    this.dragWrap.addEventListener('mouseup', function (e) {
35
+      e && e.preventDefault();
36
+      t.move = false;
37
+      t.down = false;
38
+    });
39
+    this.dragWrap.addEventListener('mousemove', function (e) {
40
+      if (t.down) {
41
+        e && e.preventDefault();
42
+        t.move = true;
43
+        let x = t._x - e.clientX;
44
+        let y = t._y - e.clientY;
45
+        t.dragWrap.scrollLeft = t._left + x;
46
+        t.dragWrap.scrollTop = t._top + y;
47
+      }
48
+    });
49
+  }
50
+}
51
+export default Drag;
52
+

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver fichero

@@ -3426,7 +3426,7 @@ export default {
3426 3426
         }
3427 3427
 
3428 3428
       } else if (index == 9) {
3429
-        if (this.org_id == 10375){
3429
+        if (this.org_id == 10375 && this.hisPatientInfo.balance_accounts_type == 1){
3430 3430
           var that = this
3431 3431
           axios
3432 3432
             .get('http://127.0.0.1:9532/api/settle/query', {

+ 23 - 24
src/xt_pages/workforce/components/tableData.vue Ver fichero

@@ -91,7 +91,6 @@
91 91
         </el-switch>
92 92
       </div>
93 93
     </div>
94
-
95 94
     <!-- <el-dialog :visible.sync="searchTableVisible" width="80%" class="eldialog">
96 95
       <div style="position: relative;">
97 96
         <el-table
@@ -267,7 +266,7 @@
267 266
         show-summary
268 267
         :cell-class-name="cellClass"
269 268
         sum-text="总数"
270
-        height="600"
269
+        height="calc(100vh - 150px)"
271 270
         ref="table"
272 271
         style="table-layout: fixed;"
273 272
       >
@@ -793,7 +792,7 @@ export default {
793 792
   },
794 793
   data() {
795 794
     return {
796
-      // tableContainHeight:"calc(100% - 50px)",
795
+      // tableContainHeight:null,
797 796
       value1:false,
798 797
       modename_value:true,
799 798
       weeks:weekOptions,
@@ -931,27 +930,27 @@ export default {
931 930
   },
932 931
 
933 932
   watch: {
934
-    // schedule_type:function (){
935
-    //   this.isShowShangWu = false
936
-    //   this.isShowXiaWu = false
937
-    //   this.isShowWanShang = false
938
-    //   if(this.schedule_type.length > 0) {
939
-    //     for (let i = 0; i < this.schedule_type.length; i++) {
940
-    //       if (this.schedule_type[i] == 1) {
941
-    //         this.isShowShangWu = true
942
-    //       } else if (this.schedule_type[i] == 2) {
943
-    //         this.isShowXiaWu = true
944
-    //       } else if (this.schedule_type[i] == 3) {
945
-    //         this.isShowWanShang = true
946
-    //       }
947
-    //     }
948
-    //   }else{
949
-    //     this.isShowShangWu = true
950
-    //     this.isShowXiaWu = true
951
-    //     this.isShowWanShang = true
952
-    //   }
933
+     schedule_type:function (){
934
+       this.isShowShangWu = false
935
+      this.isShowXiaWu = false
936
+      this.isShowWanShang = false
937
+      if(this.schedule_type.length > 0) {
938
+        for (let i = 0; i < this.schedule_type.length; i++) {
939
+          if (this.schedule_type[i] == 1) {
940
+            this.isShowShangWu = true
941
+          } else if (this.schedule_type[i] == 2) {
942
+            this.isShowXiaWu = true
943
+          } else if (this.schedule_type[i] == 3) {
944
+            this.isShowWanShang = true
945
+          }
946
+        }
947
+      }else{
948
+        this.isShowShangWu = true
949
+        this.isShowXiaWu = true
950
+        this.isShowWanShang = true
951
+      }
953 952
 
954
-    // },
953
+    },
955 954
      week_type:function () {
956 955
       // console.log(this.week_type)
957 956
       // console.log(this.schedule_type)
@@ -3464,7 +3463,7 @@ textarea{
3464 3463
 }
3465 3464
 
3466 3465
 #table_data {
3467
-  min-height: calc(100vh - 350px);
3466
+  //min-height: calc(100vh - 350px);
3468 3467
   .switch{
3469 3468
     margin-left: 10px;
3470 3469
   }