28169 2 年 前
コミット
665b6f850a
共有2 個のファイルを変更した36 個の追加2 個の削除を含む
  1. 19 1
      src/xt_pages/Pharmacy/DrugDispensing.vue
  2. 17 1
      src/xt_pages/Pharmacy/PatientDispensing.vue

+ 19 - 1
src/xt_pages/Pharmacy/DrugDispensing.vue ファイルの表示

@@ -1091,7 +1091,25 @@ export default {
1091 1091
       };
1092 1092
       getpatientswithdrugs(params).then((res) => {
1093 1093
         if (res.data.state == 1) {
1094
-          this.tableData = res.data.data.list; //列表数据
1094
+          var list = res.data.data.list; //列表数据
1095
+
1096
+          if(this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 10217 ){
1097
+            this.tableData = []
1098
+            if(list!=null && list.length >0){
1099
+              for(let i=0;i<list.length;i++){
1100
+                if(list[i].data_sources != "临时医嘱"){
1101
+                  this.tableData.push(list[i])
1102
+                }
1103
+              }
1104
+            }
1105
+
1106
+          }
1107
+          if(this.$store.getters.xt_user.org.id != 0 && this.$store.getters.xt_user.org.id != 10217){
1108
+            this.tableData = []
1109
+            this.tableData = list
1110
+          }
1111
+         
1112
+         
1095 1113
           this.total = res.data.data.total; //合计
1096 1114
         } else {
1097 1115
           this.$message.error(res.data.msg);

+ 17 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue ファイルの表示

@@ -522,7 +522,23 @@ export default {
522 522
       };
523 523
       getpharmacycontent(params).then((res) => {
524 524
         if (res.data.state == 1) {
525
-          this.tableData = res.data.data.list;
525
+           var list = res.data.data.list;
526
+           console.log("hhhhawoowowow",list)
527
+          if(this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 10217 ){
528
+            this.tableData = []
529
+            if(list!=null && list.length >0){
530
+              for(let i=0;i<list.length;i++){
531
+                if(list[i].DataSources != "临时医嘱"){
532
+                  this.tableData.push(list[i])
533
+                }
534
+              }
535
+            }
536
+
537
+          }
538
+          if(this.$store.getters.xt_user.org.id != 0 && this.$store.getters.xt_user.org.id != 10217){
539
+            this.tableData = []
540
+            this.tableData = list
541
+          }
526 542
         } else {
527 543
           this.$message.error(res.data.msg);
528 544
         }