浏览代码

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

陈少旭 1周前
父节点
当前提交
dbb21ceabc

+ 2 - 2
.idea/shelf/在进行更新之前于_2023_11_22_9_30_取消提交了更改_[更改]/doctorAdvice.vue 查看文件

@@ -1766,7 +1766,7 @@
1766 1766
                 >&nbsp;{{ tranAge(currentPatient.birthday) }}岁</span
1767 1767
               >
1768 1768
             </li>
1769
-            <li v-if="currentPatient.user_org_id!=10090">
1769
+            <!-- <li v-if="currentPatient.user_org_id!=10090">
1770 1770
               <span class="name" style="width:30px;">科:</span>
1771 1771
 
1772 1772
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
@@ -1784,7 +1784,7 @@
1784 1784
             <li v-if="currentPatient.user_org_id!=10090">
1785 1785
               <span class="name" style="width:30px;">床:</span>
1786 1786
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1787
-            </li>
1787
+            </li> -->
1788 1788
             <li>
1789 1789
               <span class="name" style="width:70px;">透析号:</span>
1790 1790
               <span class="InputBox"

+ 2 - 1
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsone.vue 查看文件

@@ -622,7 +622,8 @@ export default {
622 622
     },
623 623
     chooseWay(way) {
624 624
       this.wayType = way
625
-    }, getCurrentOrgPatients() {
625
+    }, 
626
+    getCurrentOrgPatients() {
626 627
       getCurrentOrgPatients().then(response => {
627 628
         if (response.data.state == 1) {
628 629
           var patients = response.data.data.patients

+ 19 - 9
src/xt_pages/Pharmacy/PatientDispensing.vue 查看文件

@@ -155,7 +155,7 @@
155 155
             <el-button type="primary" @click="endispense" v-if="state == 2"
156 156
               >退药</el-button
157 157
             >
158
-            <el-button type="primary" @click="toPrint">打印</el-button>
158
+            <el-button type="primary" @click="toPrint" v-if="printShow">打印</el-button>
159 159
             <!--                    <el-button @click="tiaoshi">调试</el-button>-->
160 160
             <el-button type="primary" v-if="state == 1" @click="toSetting"
161 161
               >设置</el-button
@@ -424,7 +424,8 @@ export default {
424 424
       total_count:0,
425 425
       newArrList:[],
426 426
       textAreaList:[],
427
-      scan_code:""
427
+      scan_code:"",
428
+      printShow:false,
428 429
     };
429 430
   },
430 431
  
@@ -542,11 +543,13 @@ export default {
542 543
       if (this.state == 1) {
543 544
         this.tableData = []
544 545
         this.patients = {}
546
+        this.printShow  = false
545 547
         this.getpatientdetails(0);
546 548
       }
547 549
       if (this.state == 2) {
548 550
         this.patients = {}
549 551
         this.tableData = []
552
+        this.printShow  = false
550 553
         this.getpatientdetails(1);
551 554
       }
552 555
     },
@@ -859,6 +862,7 @@ export default {
859 862
       getpharmacycontent(params).then((res) => {
860 863
         if (res.data.state == 1) {
861 864
           //  loading.close()
865
+         
862 866
            var list = res.data.data.list;
863 867
            console.log("hhhhawoowowow",res.data.data)
864 868
            this.baseList =[]
@@ -889,6 +893,7 @@ export default {
889 893
             this.tableData = []
890 894
             this.tableData = list
891 895
           }
896
+          this.printShow = true
892 897
           // console.log("tableDatawoowow",this.tableData)
893 898
           // loading.close()
894 899
         } else {
@@ -1283,7 +1288,7 @@ export default {
1283 1288
     getDrugCode(id,DataSources,DrugCode,index,DrugId){
1284 1289
       
1285 1290
      // 针对百霖
1286
-       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0){
1291
+       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0|| this.$store.getters.xt_user.org.id==10726){
1287 1292
           var params = {
1288 1293
             drug_id:DrugId,
1289 1294
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
@@ -1412,7 +1417,7 @@ export default {
1412 1417
 
1413 1418
         
1414 1419
          
1415
-        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610){
1420
+        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10726){
1416 1421
 
1417 1422
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
1418 1423
              
@@ -1463,12 +1468,17 @@ export default {
1463 1468
                    is_err_check = true
1464 1469
                  }
1465 1470
 
1466
-                 if(drugindentificaitoncode>0){
1467
-                  if(arr[i].substring(0,7)!= drugindentificaitoncode){
1468
-                    this.$message.error("药品标识码格式不正确,请重新扫码")
1469
-                    is_err_check = true
1470
-                  }
1471
+
1472
+                 if(this.$store.getters.xt_user.org.id != 10726){
1473
+                    if(drugindentificaitoncode>0){
1474
+                      if(arr[i].substring(0,7)!= drugindentificaitoncode){
1475
+                        this.$message.error("药品标识码格式不正确,请重新扫码")
1476
+                        is_err_check = true
1477
+                      }
1478
+                    }
1471 1479
                  }
1480
+
1481
+               
1472 1482
                 
1473 1483
 
1474 1484
                }

+ 3 - 2
src/xt_pages/dialysis/PatientBox.vue 查看文件

@@ -23,8 +23,9 @@
23 23
           <div>
24 24
             <div class="right">
25 25
               <h3 class="name">
26
-                {{ schedule.patient.name
27
-                }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
26
+                {{ schedule.patient.name}}
27
+                <span v-if="$store.getters.xt_user.org.id==10744 || $store.getters.xt_user.org.id==0">{{ schedule.patient.dialysis_no }}</span> 
28
+                <span class="yc" v-show="isAbnormal(schedule)">异常</span>
28 29
               </h3>
29 30
               <span class="num">
30 31
                 {{ genderText(schedule) }} | {{ getAge(schedule)>200 ? schedule.patient.age : getAge(schedule) }} 岁

+ 4 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue 查看文件

@@ -1400,7 +1400,7 @@
1400 1400
                     <td width="60" style="line-height: 20px">
1401 1401
                       电导度<br />mS/cm
1402 1402
                     </td>
1403
-                    <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />ml/min</td>
1403
+                    <td width="60" style="line-height:20px" v-if="org_id == 10015 || org_id == 0">置换液流量<br />ml/min</td>
1404 1404
                     <td width="" style="line-height: 20px">病情变化及处理</td>
1405 1405
                   </tr>
1406 1406
 
@@ -1491,7 +1491,7 @@
1491 1491
                         monitor.conductivity ? monitor.conductivity : ""
1492 1492
                       }}
1493 1493
                     </td>
1494
-                    <td v-if="org_id == 10015">
1494
+                    <td v-if="org_id == 10015 || org_id == 0">
1495 1495
                      &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
1496 1496
                     </td>
1497 1497
                     <td>
@@ -2486,11 +2486,13 @@ export default {
2486 2486
         "腹痛",
2487 2487
       ],
2488 2488
       isShowZero: false,
2489
+      org_id:0,
2489 2490
     };
2490 2491
   },
2491 2492
   created() {
2492 2493
     var xtuser = this.$store.getters.xt_user;
2493 2494
     this.orgname = xtuser.org.org_name;
2495
+    this.org_id = this.$store.getters.xt_user.org.id;
2494 2496
     //   this.orgname = "遂溪方济医院";
2495 2497
     this.modeOptions = this.$store.getters.treatment_mode;
2496 2498
     //   this.replacementWays = this.$store.getters.replacement_ways;

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -932,7 +932,7 @@
932 932
             align="center"
933 933
             label="置换液流量(ml/h)"
934 934
             width="100"
935
-            v-if="isShow('置换液流量') && template_id != 27 && template_id != 60"
935
+            v-if="isShow('置换液流量') && template_id != 27 && template_id != 60&& org_id != 10015"
936 936
           >
937 937
             <template slot-scope="scope">
938 938
               {{
@@ -947,7 +947,7 @@
947 947
             align="center"
948 948
             label="置换液流量(ml/min)"
949 949
             width="100"
950
-            v-if="isShow('置换液流量') && (template_id == 27 || template_id == 60)"
950
+            v-if="isShow('置换液流量') && (template_id == 27 || template_id == 60 || org_id ==10015)"
951 951
           >
952 952
             <template slot-scope="scope">
953 953
               {{

+ 5 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue 查看文件

@@ -879,7 +879,7 @@
879 879
               <td width="60" style="line-height:20px">血流量<br />ml/min</td>
880 880
               <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
881 881
 
882
-              <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />ml/min</td>
882
+              <td width="60" style="line-height:20px" v-if="org_id == 10015 || org_id == 0">置换液流量<br />ml/min</td>
883 883
               <!-- <td width="60">钠浓度<br/>mmol/L</td>
884 884
           <td width="80">透析液温度<br/>℃</td>
885 885
           <td width="60">置换率<br/>ml/min</td> -->
@@ -936,7 +936,7 @@
936 936
               <td>
937 937
                 &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
938 938
               </td>
939
-              <td v-if="org_id == 10015">
939
+              <td v-if="org_id == 10015 || org_id == 0">
940 940
                 &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
941 941
               </td>
942 942
               <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
@@ -1897,7 +1897,8 @@ export default {
1897 1897
       doctorForm: {
1898 1898
         doctor: '',
1899 1899
         url: ''
1900
-      }
1900
+      },
1901
+      org_id:0,
1901 1902
     }
1902 1903
   },
1903 1904
   methods: {
@@ -2695,6 +2696,7 @@ export default {
2695 2696
 
2696 2697
     var xtuser = this.$store.getters.xt_user
2697 2698
     this.orgname = xtuser.org.org_name
2699
+    this.org_id = this.$store.getters.xt_user.org.id;
2698 2700
     // this.orgname = "遂溪方济医院";
2699 2701
     this.modeOptions = this.$store.getters.treatment_mode
2700 2702
     this.replacementWays = this.$store.getters.replacement_ways

+ 14 - 14
src/xt_permission.js 查看文件

@@ -12,20 +12,20 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
28
- // 线上注释
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
+//  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
31 31
   // alert('path:' + to.path)