Browse Source

新分支

28169 1 year ago
parent
commit
a14487fccd

+ 30 - 0
src/store/modules/globalConfig.js View File

@@ -886,6 +886,36 @@ const global_config = {
886 886
         zongliang_unit: 'mg',
887 887
         gaimingcheng_unit: '',
888 888
         gaijiliang_unit: ''
889
+      },
890
+      14: {
891
+        id: 14,
892
+        name: '肝素钙注射液',
893
+        type: 1,
894
+        shouji: 1,
895
+        weichi: 1,
896
+        zongliang: 1,
897
+        gaimingcheng: -1,
898
+        gaijiliang: -1,
899
+        shouji_unit: 'mg',
900
+        weichi_unit: 'mg/h',
901
+        zongliang_unit: 'mg',
902
+        gaimingcheng_unit: '',
903
+        gaijiliang_unit: ''
904
+      },
905
+      15: {
906
+        id: 15,
907
+        name: '甲磺酸萘莫司他',
908
+        type: 1,
909
+        shouji: 1,
910
+        weichi: 1,
911
+        zongliang: 1,
912
+        gaimingcheng: -1,
913
+        gaijiliang: -1,
914
+        shouji_unit: 'mg',
915
+        weichi_unit: 'mg/h',
916
+        zongliang_unit: 'mg',
917
+        gaimingcheng_unit: '',
918
+        gaijiliang_unit: ''
889 919
       }
890 920
     },
891 921
     anticoagulants_set: {

+ 4 - 2
src/xt_pages/device/airDisinfectTwo.vue View File

@@ -920,7 +920,8 @@
920 920
          { id: 2, name: "500mg/l含氯消毒剂" },
921 921
          { id: 3, name: "1000mg/l含氯消毒剂" },
922 922
          { id: 4, name: "1500mg/l含氯消毒剂" },
923
-         { id: 5, name: "消毒湿巾" }
923
+         { id: 5, name: "消毒湿巾" },
924
+         { id:6, name:"75%酒精"}
924 925
          ],
925 926
          DisinfectionMode: [
926 927
             { id: 1, name: "紫外线" },
@@ -1018,8 +1019,9 @@
1018 1019
             this.form.last_total_time =""
1019 1020
             this.form.last_total_time = last_total_time
1020 1021
             this.last_total_time = last_total_time
1021
-            this.dialogFormVisible =  true
1022
+           
1022 1023
           }
1024
+          this.dialogFormVisible =  true
1023 1025
          }
1024 1026
         })
1025 1027
       },

+ 20 - 26
src/xt_pages/device/objectTableDisinfectTwo.vue View File

@@ -22,7 +22,7 @@
22 22
           </div>
23 23
           <div style="float:right;margin-bottom:10px;">
24 24
             <el-button type="primary" @click="printCard">打印</el-button>
25
-            <el-button type="primary" @click="Add">新增</el-button>
25
+            <el-button type="primary" @click="dialogFormVisible = true">新增</el-button>
26 26
 
27 27
           </div>
28 28
           <div class="tab_air">
@@ -39,7 +39,8 @@
39 39
                 </el-table-column>
40 40
                 <el-table-column prop="fenopda" :label="'湿化瓶'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
41 41
                     <template slot-scope="scope">
42
-                        {{scope.row.first_total_time?scope.row.first_total_time:""}}
42
+                        <!-- {{scope.row.first_total_time?scope.row.first_total_time:""}} -->
43
+                        {{ scope.row.first_disinfection_time }}
43 44
                     </template>
44 45
                 </el-table-column>
45 46
                 <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
@@ -52,7 +53,8 @@
52 53
 
53 54
                 <el-table-column prop="date" :label="'止血带'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
54 55
                     <template slot-scope="scope">
55
-                        {{scope.row.sencond_total_time?scope.row.sencond_total_time:""}}
56
+                        <!-- {{scope.row.sencond_total_time?scope.row.sencond_total_time:""}} -->
57
+                        {{ scope.row.sencond_disinfection_time }}
56 58
                     </template>
57 59
                 </el-table-column>
58 60
                 <el-table-column prop="name" label="责任人" align="center" min-width="60">
@@ -64,7 +66,8 @@
64 66
 
65 67
                 <el-table-column prop="province" :label="'医疗垃圾桶'+'\n'+'1000mg/l含氯制剂'" align="center" min-width="60">
66 68
                     <template slot-scope="scope">
67
-                        {{scope.row.third_total_time?scope.row.third_total_time:""}}
69
+                        <!-- {{scope.row.third_total_time?scope.row.third_total_time:""}} -->
70
+                        {{ scope.row.third_disinfection_time }}
68 71
                     </template>
69 72
                 </el-table-column>
70 73
                 <el-table-column prop="city" label="负责人" align="center" min-width="60">
@@ -77,7 +80,8 @@
77 80
 
78 81
                 <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
79 82
                     <template slot-scope="scope">
80
-                        {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}}
83
+                        <!-- {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}} -->
84
+                        {{ scope.row.fourth_disinfection_time }}
81 85
                     </template>
82 86
                 </el-table-column>
83 87
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
@@ -90,7 +94,8 @@
90 94
 
91 95
                 <el-table-column prop="city" :label="'体温枪'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
92 96
                     <template slot-scope="scope">
93
-                        {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}}
97
+                        <!-- {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}} -->
98
+                        {{ scope.row.last_disinfection_time }}
94 99
                     </template>
95 100
                 </el-table-column>
96 101
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
@@ -989,7 +994,7 @@
989 994
 
990 995
                             <tr v-for="(item,index) in tableData" :key="index">
991 996
                                 <td>{{getTimes(item.record_date) }}</td>
992
-                                <td>{{item.first_total_time}}</td>
997
+                                <td>{{item.first_disinfection_time}}</td>
993 998
                                 <td>
994 999
                                 <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
995 1000
                                    {{getName(item.first_creator)}}
@@ -998,7 +1003,7 @@
998 1003
                                     <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
999 1004
                                 </span>   
1000 1005
                                 </td>
1001
-                                <td>{{item.sencond_total_time}}</td>
1006
+                                <td>{{item.sencond_disinfection_time}}</td>
1002 1007
                                 <td>
1003 1008
                                  <span v-if="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator) == ''">
1004 1009
                                    {{getName(item.sencond_creator)}}
@@ -1007,7 +1012,7 @@
1007 1012
                                     <img style="height:30px;" :src="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator)" alt="" srcset="">
1008 1013
                                 </span>   
1009 1014
                                 </td>
1010
-                                <td>{{getTimes(item.third_total_time) }}</td>
1015
+                                <td>{{item.third_disinfection_time }}</td>
1011 1016
                                 <td>
1012 1017
                                     <span v-if="setAdminUserES(item.third_creator?item.third_creator:item.third_creator) == ''">
1013 1018
                                    {{getName(item.third_creator)}}
@@ -1016,7 +1021,7 @@
1016 1021
                                     <img style="height:30px;" :src="setAdminUserES(item.third_creator?item.third_creator:item.third_creator)" alt="" srcset="">
1017 1022
                                 </span>   
1018 1023
                                 </td>
1019
-                                <td>{{ getTimes(item.fourth_total_time) }}</td>
1024
+                                <td>{{ item.fourth_disinfection_time }}</td>
1020 1025
                                 <td>
1021 1026
                                     <span v-if="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator) == ''">
1022 1027
                                    {{getName(item.fourth_creator)}}
@@ -1025,7 +1030,7 @@
1025 1030
                                     <img style="height:30px;" :src="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator)" alt="" srcset="">
1026 1031
                                 </span>   
1027 1032
                                 </td>
1028
-                                <td>{{ getTimes(item.last_total_time) }}</td>
1033
+                                <td>{{ item.last_disinfection_time}}</td>
1029 1034
                                 <td>
1030 1035
                                     <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
1031 1036
                                    {{getName(item.last_creator)}}
@@ -1055,8 +1060,7 @@
1055 1060
         getObjectTableDisInfectList,
1056 1061
         getObjectTableDisInfectByIdList,
1057 1062
         updateObjectTableDisinfect, 
1058
-        deleteObjectTableDisinfect,
1059
-        getObjectTableDisinfectLongTime
1063
+        deleteObjectTableDisinfect
1060 1064
     } from "@/api/device"
1061 1065
     import { uParseTime } from '@/utils/tools'
1062 1066
     const moment = require('moment')
@@ -1151,7 +1155,8 @@
1151 1155
          { id: 2, name: "500mg/l含氯消毒剂" },
1152 1156
          { id: 3, name: "1000mg/l含氯消毒剂" },
1153 1157
          { id: 4, name: "1500mg/l含氯消毒剂" },
1154
-         { id: 5, name: "消毒湿巾" }
1158
+         { id: 5, name: "消毒湿巾" },
1159
+         {  id:6, name:"75%酒精"}
1155 1160
          ],
1156 1161
          DisinfectionMode: [
1157 1162
             { id: 1, name: "擦拭" },
@@ -1160,11 +1165,6 @@
1160 1165
          ],
1161 1166
          operators: [],
1162 1167
          operatorMaps:{},
1163
-         first_total_time:0,
1164
-         sencond_total_time:0,
1165
-         third_total_time:0,
1166
-         fourth_total_time:0,
1167
-         last_total_time:0,
1168 1168
          
1169 1169
         }
1170 1170
       },
@@ -1547,13 +1547,7 @@
1547 1547
            // return ''
1548 1548
            // }
1549 1549
        },
1550
-       Add(){
1551
-        getObjectTableDisinfectLongTime().then(response=>{
1552
-           if(response.data.state == 1){
1553
-              this.dialogFormVisible = true
1554
-           }
1555
-        })
1556
-       }  
1550
+        
1557 1551
       }
1558 1552
     }
1559 1553
   </script>

+ 2 - 0
src/xt_pages/dialysis/PatientBox.vue View File

@@ -136,6 +136,8 @@
136 136
                 <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
137 137
                 <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
138 138
                 <span v-if="schedule.prescription.anticoagulant == 13">那屈肝素钙</span>
139
+                <span v-if="schedule.prescription.anticoagulant == 14">肝素钙注射液</span>
140
+                <span v-if="schedule.prescription.anticoagulant == 15">甲磺酸萘莫司他</span>
139 141
              </span>
140 142
           </span>
141 143
         </p>

+ 26 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue View File

@@ -2973,15 +2973,33 @@
2973 2973
           return record[key] == target_value;
2974 2974
         }
2975 2975
       },
2976
+      // getAge: function (val) {
2977
+      //   if (val.age == 0) {
2978
+      //     if (val.birthday == 0) {
2979
+      //       return "";
2980
+      //     }
2981
+      //     return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2982
+      //   } else {
2983
+      //     return val.age;
2984
+      //   }
2985
+      // },
2976 2986
       getAge: function (val) {
2977
-        if (val.age == 0) {
2978
-          if (val.birthday == 0) {
2979
-            return "";
2980
-          }
2981
-          return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2982
-        } else {
2983
-          return val.age;
2984
-        }
2987
+            var thisLen = val.id_card_no.length;
2988
+            var birth = "";
2989
+            if (thisLen == 15) {
2990
+                birth = "19" + val.id_card_no.substr(6, 6);
2991
+            } else {
2992
+                birth = val.id_card_no.substr(6, 8);
2993
+            }
2994
+            var birthtwo =
2995
+                birth.substr(0, 4) +
2996
+                "-" +
2997
+                birth.substr(4, 2) +
2998
+                "-" +
2999
+                birth.substr(6, 2);
3000
+
3001
+            var age = jsGetAge(birthtwo, "-");
3002
+            return age;
2985 3003
       },
2986 3004
       newAdviceGroupObject: function () {
2987 3005
         return Object.assign(

+ 27 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue View File

@@ -1546,16 +1546,34 @@ export default {
1546 1546
         return record[key] == target_value;
1547 1547
       }
1548 1548
     },
1549
+    // getAge: function (val) {
1550
+    //   if (val.age == 0) {
1551
+    //     if (val.birthday == 0) {
1552
+    //       return "";
1553
+    //     }
1554
+    //     return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
1555
+    //   } else {
1556
+    //     return val.age;
1557
+    //   }
1558
+    // },
1549 1559
     getAge: function (val) {
1550
-      if (val.age == 0) {
1551
-        if (val.birthday == 0) {
1552
-          return "";
1553
-        }
1554
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
1555
-      } else {
1556
-        return val.age;
1557
-      }
1558
-    },
1560
+            var thisLen = val.id_card_no.length;
1561
+            var birth = "";
1562
+            if (thisLen == 15) {
1563
+                birth = "19" + val.id_card_no.substr(6, 6);
1564
+            } else {
1565
+                birth = val.id_card_no.substr(6, 8);
1566
+            }
1567
+            var birthtwo =
1568
+                birth.substr(0, 4) +
1569
+                "-" +
1570
+                birth.substr(4, 2) +
1571
+                "-" +
1572
+                birth.substr(6, 2);
1573
+
1574
+            var age = jsGetAge(birthtwo, "-");
1575
+            return age;
1576
+      },
1559 1577
     newAdviceGroupObject: function () {
1560 1578
       return Object.assign(
1561 1579
         {},

+ 93 - 9
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

@@ -27,7 +27,7 @@
27 27
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
28 28
     </div>
29 29
     <div class="cell clearfix" style="justify-content: space-between;">
30
-      <div style="display:flex;">
30
+      <!-- <div style="display:flex;">
31 31
         <label class="title"> <span class="name">分区</span> : </label>
32 32
         <div class="time">
33 33
           <ul class>
@@ -41,7 +41,16 @@
41 41
             </li>
42 42
           </ul>
43 43
         </div>
44
-      </div>
44
+      </div> -->
45
+      <label class="title"><span class="name">分区</span> : </label>
46
+      <el-select v-model="partition_id" multiple  placeholder="请选择分区" style="margin-left:-400px"  @change="selectPartitionType">
47
+        <el-option
48
+          v-for="item in partitionArrOne"
49
+          :key="item.id"
50
+          :label="item.name"
51
+          :value="item.id">
52
+        </el-option>
53
+      </el-select>
45 54
       <div>
46 55
         <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
47 56
         <el-button size="small" icon="el-icon-printer" @click="toSign" type="primary">标签打印</el-button>
@@ -81,6 +90,37 @@
81 90
             {{scope.row.patient.name}}
82 91
            </template>
83 92
         </el-table-column>
93
+        <el-table-column align="center" label="透析模式" v-if="dialysisSett.name==1">
94
+           <template slot-scope="scope">
95
+            <span v-if="scope.row.mode_id == 1">HD</span>
96
+            <span v-if="scope.row.mode_id == 2">HDF</span>
97
+            <span v-if="scope.row.mode_id == 3">HD+HP</span>
98
+            <span v-if="scope.row.mode_id == 4">HP</span>
99
+            <span v-if="scope.row.mode_id == 5">HF</span>
100
+            <span v-if="scope.row.mode_id == 6">SCUF</span>
101
+            <span v-if="scope.row.mode_id == 7">IUF</span>
102
+            <span v-if="scope.row.mode_id == 8">HFHD</span>
103
+            <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
104
+            <span v-if="scope.row.mode_id == 10">PHF</span>
105
+            <span v-if="scope.row.mode_id == 11">HFR</span>
106
+            <span v-if="scope.row.mode_id == 12">HDF+HP</span>
107
+            <span v-if="scope.row.mode_id == 13">CRRT</span>
108
+            <span v-if="scope.row.mode_id == 19">IUF+HD</span>
109
+            <span v-if="scope.row.mode_id == 20">UF</span>
110
+            <span v-if="scope.row.mode_id == 21">HD+</span>
111
+            <span v-if="scope.row.mode_id == 22">血浆胆红素吸附+HDF</span>
112
+            <span v-if="scope.row.mode_id == 23">血浆胆红素吸附</span>
113
+            <span v-if="scope.row.mode_id == 24">I-HDF</span>
114
+            <span v-if="scope.row.mode_id == 25">HD高通F</span>
115
+            <span v-if="scope.row.mode_id == 26">CVVH</span>
116
+            <span v-if="scope.row.mode_id == 27">CVVHD</span>
117
+            <span v-if="scope.row.mode_id == 28">CVVHDF</span>
118
+            <span v-if="scope.row.mode_id == 29">PE</span>
119
+            <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
120
+            <span v-if="scope.row.mode_id == 31">HPD</span>
121
+            <span v-if="scope.row.mode_id == 32">HDP</span>
122
+           </template>
123
+        </el-table-column>
84 124
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
85 125
            <template slot-scope="scope">
86 126
             {{scope.row.patient.dialysis_no}}
@@ -489,7 +529,7 @@
489 529
         partion_type:0,
490 530
         tableList:[],
491 531
         dialysisSett:{},
492
-
532
+        partitionArrOne:[],
493 533
         dialogVisibleOne: false,
494 534
         prescription_status: false,
495 535
         week: false,
@@ -526,6 +566,8 @@
526 566
             return v.getTime() < new Date().getTime() - 86400000;
527 567
           },
528 568
         },
569
+        partition_id:0,
570
+        zoneList:[],
529 571
       }
530 572
     },
531 573
     open(){
@@ -534,7 +576,7 @@
534 576
     created() {
535 577
        this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
536 578
        this.displace_liqui_part_option = this.$store.getters.displace_liqui
537
-       console.log("志愿液",this.displace_liqui_part_option)
579
+    
538 580
        var filedList = store.getters.xt_user.fileds
539 581
        var newArr = [
540 582
         {value:999999,filed_name_cn:"姓名"},
@@ -550,8 +592,6 @@
550 592
         }
551 593
         this.predialysisConditionOptions = newArr
552 594
        }
553
-     
554
-      this.getAllZone()
555 595
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
556 596
       var newDate = new Date();
557 597
       var y = newDate.getFullYear();
@@ -565,14 +605,40 @@
565 605
       this.query.schedule_type = 0
566 606
       this.query.partition_id = 0
567 607
       this.query.page = 1
568
-      this.getlist()
608
+      this.getAllZone()
609
+     
610
+     
569 611
      
570 612
     },
571 613
     methods: {
572 614
       getlist(){
615
+      
616
+        
617
+        var str = ""
618
+         if(this.partition_id==0){
619
+            console.log("进阿里232332")
620
+            console.log("wowoowowow",this.zoneList.join(","))
621
+            str = this.zoneList.join(",")
622
+         }
623
+
624
+         if(this.partition_id!=0){
625
+           str = this.partition_id.join(",")
626
+         }
627
+         this.query.partition_id = ""
628
+         this.query.partition_id = str 
629
+      
573 630
         getDialysisParameter(this.query).then(response=>{
574 631
             if(response.data.state == 1){
575 632
               var list = response.data.data.list
633
+              
634
+              if(list!=null &&list.length>0){
635
+                for(let i=0;i<list.length;i++){
636
+                  list[i].sort = 0
637
+                  list[i].sort = list[i].device_number.sort
638
+                }
639
+      
640
+              }
641
+              list.sort(this.compare('sort'))
576 642
               this.list = list
577 643
               this.total = response.data.data.total
578 644
               this.dialysisSett = response.data.data.dialysisSett
@@ -580,6 +646,13 @@
580 646
             }
581 647
         }) 
582 648
       },
649
+      compare(p) { //这是比较函数
650
+        return function (m, n) {
651
+          var a = m[p];
652
+          var b = n[p];
653
+          return a - b; //升序
654
+        }
655
+      },
583 656
       handleSizeChange(val) {
584 657
         this.query.limit = val;
585 658
         this.getlist();
@@ -636,7 +709,7 @@
636 709
 
637 710
       },
638 711
       selectPartitionType(partitionType) {
639
-        this.partitionType = partitionType
712
+        // this.partitionType = partitionType
640 713
         this.query.partition_id = partitionType
641 714
         this.query.page = 1
642 715
 
@@ -654,16 +727,27 @@
654 727
             this.$message.error(response.data.msg)
655 728
             return false
656 729
           } else {
730
+           
731
+
732
+            for(let i=0;i<response.data.data.zone.length;i++){
733
+               this.partitionArrOne.push(response.data.data.zone[i])
734
+               this.zoneList.push(response.data.data.zone[i].id)
735
+            }
657 736
             this.partitionArr = response.data.data.zone
737
+           
738
+            console.log("全部中",this.partitionArrOne)
658 739
             this.partitionArr.unshift({ id: 0, name: '全部' })
740
+            this.getlist()
741
+            
659 742
           }
660 743
         })
661 744
       },
662 745
       statistics() {
663 746
          this.tableList = []
747
+       
664 748
          var params = {
665 749
           schedule_type:this.schedule_type,
666
-          partion_type:this.partion_type,
750
+          partion_type:this.partitionType,
667 751
           selected_date:this.query.schedule_date,
668 752
         }
669 753
         getDialysisParameterGoodList(params).then(response=>{

+ 48 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue View File

@@ -28,6 +28,7 @@
28 28
                 <td width="50">序号</td>
29 29
                 <td width="100"  v-if="dialysisSett.device_number==1">透析机号</td>
30 30
                 <td width="100"  v-if="dialysisSett.name==1">姓名</td>
31
+                <td width="100"  v-if="dialysisSett.name==1">透析模式</td>
31 32
                 <td width="100" v-if="dialysisSett.dialysis_no==1">透析号</td>
32 33
                 <td width="100" v-if="dialysisSett.admission_number==1">住院(门诊)号</td>
33 34
                 <td width="100"  v-if="dialysisSett.weight_befor==1">透前体重</td>
@@ -61,6 +62,36 @@
61 62
                 <td width="100"  v-if="dialysisSett.name==1">
62 63
                    {{item.patient.name}}
63 64
                 </td>
65
+                <td width="100">
66
+                  <span v-if="item.mode_id == 1">HD</span>
67
+                  <span v-if="item.mode_id == 2">HDF</span>
68
+                  <span v-if="item.mode_id == 3">HD+HP</span>
69
+                  <span v-if="item.mode_id == 4">HP</span>
70
+                  <span v-if="item.mode_id == 5">HF</span>
71
+                  <span v-if="item.mode_id == 6">SCUF</span>
72
+                  <span v-if="item.mode_id == 7">IUF</span>
73
+                  <span v-if="item.mode_id == 8">HFHD</span>
74
+                  <span v-if="item.mode_id == 9">HFHD+HP</span>
75
+                  <span v-if="item.mode_id == 10">PHF</span>
76
+                  <span v-if="item.mode_id == 11">HFR</span>
77
+                  <span v-if="item.mode_id == 12">HDF+HP</span>
78
+                  <span v-if="item.mode_id == 13">CRRT</span>
79
+                  <span v-if="item.mode_id == 19">IUF+HD</span>
80
+                  <span v-if="item.mode_id == 20">UF</span>
81
+                  <span v-if="item.mode_id == 21">HD+</span>
82
+                  <span v-if="item.mode_id == 22">血浆胆红素吸附+HDF</span>
83
+                  <span v-if="item.mode_id == 23">血浆胆红素吸附</span>
84
+                  <span v-if="item.mode_id == 24">I-HDF</span>
85
+                  <span v-if="item.mode_id == 25">HD高通F</span>
86
+                  <span v-if="item.mode_id == 26">CVVH</span>
87
+                  <span v-if="item.mode_id == 27">CVVHD</span>
88
+                  <span v-if="item.mode_id == 28">CVVHDF</span>
89
+                  <span v-if="item.mode_id == 29">PE</span>
90
+                  <span v-if="item.mode_id == 30">血浆胆红素吸附+HP</span>
91
+                  <span v-if="item.mode_id == 31">HPD</span>
92
+                  <span v-if="item.mode_id == 32">HDP</span>
93
+                 
94
+                </td>
64 95
                 <td width="100" v-if="dialysisSett.dialysis_no==1">
65 96
                    {{item.patient.dialysis_no}}
66 97
                 </td>
@@ -199,7 +230,7 @@
199 230
        var params = {
200 231
          schedule_date:this.$route.query.schedule_date,
201 232
          schedule_type:this.$route.query.schedule_type,
202
-         partion_id:this.$route.query.partion_id,
233
+         partition_id:this.$route.query.partion_id,
203 234
          page:this.$route.query.page,
204 235
          limit:this.$route.query.limit,
205 236
          ids:this.$route.query.ids,
@@ -208,6 +239,14 @@
208 239
       getDialysisParameter(params).then(response=>{
209 240
           if(response.data.state == 1){
210 241
             var list = response.data.data.list
242
+            if(list!=null &&list.length>0){
243
+                for(let i=0;i<list.length;i++){
244
+                  list[i].sort = 0
245
+                  list[i].sort = list[i].device_number.sort
246
+                }
247
+      
248
+              }
249
+              list.sort(this.compare('sort'))
211 250
             this.list = list
212 251
             this.dialysisSett = response.data.data.dialysisSett
213 252
             console.log("设置",this.dialysisSett)
@@ -292,7 +331,14 @@
292 331
          }
293 332
        }
294 333
        return name
295
-     }
334
+     },
335
+     compare(p) { //这是比较函数
336
+        return function (m, n) {
337
+          var a = m[p];
338
+          var b = n[p];
339
+          return a - b; //升序
340
+        }
341
+      },
296 342
     
297 343
     }
298 344
   }

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -9,7 +9,7 @@
9 9
                 class="newDialog"
10 10
         >
11 11
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
12
-            <span style="position: absolute;left: 22%;top: 3%">
12
+            <!-- <span style="position: absolute;left: 22%;top: 3%">
13 13
               透前体重: --kg
14 14
             </span>
15 15
             <span style="position: absolute;left: 35%;top: 3%">
@@ -17,7 +17,7 @@
17 17
             </span>
18 18
             <span style="position: absolute;left: 48%;top: 3%">
19 19
               衣物重:--kg
20
-            </span>
20
+            </span> -->
21 21
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
22 22
             <el-form
23 23
                     ref="dialysisPrescription"
@@ -51,7 +51,7 @@
51 51
                         </el-form-item>
52 52
                     </el-col>
53 53
                     <el-col :span="8" v-if="isShows('透析时长')">
54
-                        <el-form-item label="透析时长(min): " prop="dialysis_duration_minute" :rules="isCheckmust('透析时长')">
54
+                        <el-form-item label="透析时长(min): " prop="dialysis_duration_minute">
55 55
                             <el-input
56 56
                                     type="number"
57 57
                                     v-model="dialysisPrescription.dialysis_duration_minute"
@@ -2707,7 +2707,7 @@ mu
2707 2707
         if(moment().weekday() == 6){
2708 2708
            total_day ="周六"
2709 2709
         }
2710
-        if(moment().weekday() == 7){
2710
+        if(moment().weekday() == 0){
2711 2711
            total_day ="周日"
2712 2712
         }
2713 2713
         console.log("---------",this.targetAdvices)

+ 2 - 2
src/xt_pages/dialysis/signPrint.vue View File

@@ -28,7 +28,7 @@
28 28
                             规格:{{getSpecialName(it.drug_id)}} 
29 29
                             
30 30
                             </div>  
31
-                            <div v-if="(org_id ==0 || org_id==10440) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
31
+                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
32 32
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
33 33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
34 34
                              
@@ -45,7 +45,7 @@
45 45
                             规格:{{getSpecialName(its.drug_id)}} 
46 46
                             
47 47
                             </div>  
48
-                            <div v-if=" org_id ==0 || org_id==10440">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
48
+                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
49 49
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
50 50
                             <div>给药途径:{{its.delivery_way}}</div>  
51 51
                         </div>

+ 32 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -3582,20 +3582,39 @@ export default {
3582 3582
       }
3583 3583
       return "";
3584 3584
     },
3585
+    // getAge: function (val) {
3586
+    //   if (
3587
+    //     this.org_template_info.template_id == 2 ||
3588
+    //     this.org_template_info.template_id == 0
3589
+    //   ) {
3590
+    //     if (val.age == 0) {
3591
+    //       return jsGetAge(val.birth, "-");
3592
+    //     } else {
3593
+    //       return val.age;
3594
+    //     }
3595
+    //   } else {
3596
+    //     return jsGetAge(val.birth, "-");
3597
+    //   }
3598
+    // },
3585 3599
     getAge: function (val) {
3586
-      if (
3587
-        this.org_template_info.template_id == 2 ||
3588
-        this.org_template_info.template_id == 0
3589
-      ) {
3590
-        if (val.age == 0) {
3591
-          return jsGetAge(val.birth, "-");
3592
-        } else {
3593
-          return val.age;
3594
-        }
3595
-      } else {
3596
-        return jsGetAge(val.birth, "-");
3597
-      }
3598
-    },
3600
+            var thisLen = val.id_card_no.length;
3601
+            var birth = "";
3602
+            if (thisLen == 15) {
3603
+                birth = "19" + val.id_card_no.substr(6, 6);
3604
+            } else {
3605
+                birth = val.id_card_no.substr(6, 8);
3606
+            }
3607
+            var birthtwo =
3608
+                birth.substr(0, 4) +
3609
+                "-" +
3610
+                birth.substr(4, 2) +
3611
+                "-" +
3612
+                birth.substr(6, 2);
3613
+
3614
+            var age = jsGetAge(birthtwo, "-");
3615
+            return age;
3616
+      },
3617
+  
3599 3618
     newAdviceGroupObject: function () {
3600 3619
       return Object.assign(
3601 3620
         {},

+ 47 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

@@ -1244,7 +1244,7 @@
1244 1244
                       <div>
1245 1245
                         性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
1246 1246
                       </div>
1247
-                      <div>年龄:{{ getoldAge() }}</div>
1247
+                      <div>年龄:{{ getAge(patientInfo) }}</div>
1248 1248
                       <div>透析机号:&nbsp;{{ getNumber() }}</div>
1249 1249
                     </div>
1250 1250
                   </td>
@@ -1621,33 +1621,53 @@ export default {
1621 1621
       },
1622 1622
     };
1623 1623
   },
1624
-  methods: {
1624
+  methods: {   
1625
+    getAge: function (val) {
1626
+            var thisLen = val.id_card_no.length;
1627
+            var birth = "";
1628
+            if (thisLen == 15) {
1629
+                birth = "19" + val.id_card_no.substr(6, 6);
1630
+            } else {
1631
+                birth = val.id_card_no.substr(6, 8);
1632
+            }
1633
+            var birthtwo =
1634
+                birth.substr(0, 4) +
1635
+                "-" +
1636
+                birth.substr(4, 2) +
1637
+                "-" +
1638
+                birth.substr(6, 2);
1639
+
1640
+            var age = jsGetAge(birthtwo, "-");
1641
+            return age;
1642
+      },
1643
+
1644
+
1625 1645
     // 获取当前年份,用于年龄计算
1626
-    getoldAge() {
1627
-      let date = new Date();
1628
-      let year = date.getFullYear();
1629
-      let year_d =
1630
-        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
1631
-      let year_m = this.xtdate.split("-")[1];
1632
-      let birth_m = this.patientInfo.birth.split("-")[1];
1633
-      let year_date = this.xtdate.split("-")[2];
1634
-      let birth_date = this.patientInfo.birth.split("-")[2];
1635
-      // console.log(year,'今年年月')
1636
-      // console.log(this.xtdate.split('-'),'病人就诊年月')
1637
-      console.log(this.patientInfo.birth, "病人生日");
1638
-      // console.log(year_d,'year_d')
1639
-      if (year_m < birth_m) {
1640
-        return year_d - 1;
1641
-      } else if (year_m == birth_m) {
1642
-        if (year_date < birth_date) {
1643
-          return year_d - 1;
1644
-        } else {
1645
-          return year_d;
1646
-        }
1647
-      } else {
1648
-        return year_d;
1649
-      }
1650
-    },
1646
+    // getoldAge() {
1647
+      // let date = new Date();
1648
+      // let year = date.getFullYear();
1649
+      // let year_d =
1650
+      //   this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
1651
+      // let year_m = this.xtdate.split("-")[1];
1652
+      // let birth_m = this.patientInfo.birth.split("-")[1];
1653
+      // let year_date = this.xtdate.split("-")[2];
1654
+      // let birth_date = this.patientInfo.birth.split("-")[2];
1655
+      // // console.log(year,'今年年月')
1656
+      // // console.log(this.xtdate.split('-'),'病人就诊年月')
1657
+      // console.log(this.patientInfo.birth, "病人生日");
1658
+      // // console.log(year_d,'year_d')
1659
+      // if (year_m < birth_m) {
1660
+      //   return year_d - 1;
1661
+      // } else if (year_m == birth_m) {
1662
+      //   if (year_date < birth_date) {
1663
+      //     return year_d - 1;
1664
+      //   } else {
1665
+      //     return year_d;
1666
+      //   }
1667
+      // } else {
1668
+      //   return year_d;
1669
+      // }
1670
+    // },
1651 1671
     getAdminUser(id) {
1652 1672
       if (id == 0) {
1653 1673
         return "";

+ 7 - 0
src/xt_pages/management/home.vue View File

@@ -4529,6 +4529,13 @@ export default {
4529 4529
         if (this.userform.user_total == ""){
4530 4530
           this.userform.user_total = 0
4531 4531
         }
4532
+
4533
+        if(this.userform.disinfection == ""){
4534
+          this.userform.disinfection  = 0
4535
+        }
4536
+        if(this.userform.disinfection_status == ""){
4537
+           this.userform.disinfection_status = 0
4538
+        }
4532 4539
         this.userform.user_total = parseInt(this.userform.user_total)
4533 4540
 
4534 4541
         console.log("user_form",this.userform)

+ 3 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue View File

@@ -63,8 +63,8 @@
63 63
         <div style="display:flex;justify-content: space-between;">
64 64
             <div style="position: absolute;top:190px;left:50px"></div>
65 65
             <div style="position: absolute;top:190px;left:130px"></div>
66
-            <div style="position: absolute;top:190px;left:180px"></div>
67
-            <div style="position: absolute;top:190px;left:260px"></div>
66
+            <div style="position: absolute;top:190px;left:180px">诊察费</div>
67
+            <div style="position: absolute;top:190px;left:260px">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
68 68
             <div style="position: absolute;top:190px;left:340px">材料费</div>
69 69
             <div style="position: absolute;top:190px;left:420px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
70 70
             <div style="position: absolute;top:190px;left:480px"></div>
@@ -182,7 +182,7 @@ export default {
182 182
                 console.log('res',res)
183 183
                 this.list = res.data.data
184 184
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
185
-                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
185
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal + this.list.zhenChaCostTotal
186 186
                 if(this.totalPrice == 0){
187 187
 
188 188
                   this.totalPrice = this.list.medfee_sumamt

+ 8 - 9
src/xt_pages/outpatientCharges/summary.vue View File

@@ -116,7 +116,7 @@
116 116
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
117 117
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
118 118
 
119
-          <!--          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
119
+<!--                    <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
120 120
 
121 121
 
122 122
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
@@ -124,13 +124,12 @@
124 124
           <!--          </el-button-->
125 125
           <!--          >-->
126 126
 
127
-                              <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>
128
-          <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
129
-          <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
130
-<!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
131
-<!--          <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
132
-
133
-          <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
127
+<!--           <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>-->
128
+          <!-- <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
129
+          <!-- <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
130
+          <!-- <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
131
+          <!-- <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
132
+          <!--  <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
134 133
 
135 134
 
136 135
         </div>
@@ -1215,7 +1214,7 @@ export default {
1215 1214
                 name: order.patient.name,
1216 1215
                 id_card_no: order.patient.id_card_no,
1217 1216
                 year: "2023",
1218
-                month: "03",
1217
+                month: "04",
1219 1218
                 code: data[b].code,
1220 1219
                 pric: data[b].total ,
1221 1220
                 item_name: data[b].name,

File diff suppressed because it is too large
+ 554 - 557
src/xt_pages/outpatientTool/components/detail.vue


+ 10 - 4
src/xt_pages/stock/detail/print.vue View File

@@ -51,10 +51,13 @@
51 51
               <td style="line-height: 50px">
52 52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53 53
                 <span v-if="type == 2">
54
-                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span>
54
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0">
55
+                    <!-- {{getStockCount(item.good_id) }} -->
56
+                    {{getMySelfCount(item.good_id) }}
57
+                  </span>
55 58
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
56 59
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{getWarehouseOut(item.good_id)}}</span>
57
-                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191">{{getStockCount(item.good_id) }}</span>
60
+                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0">{{getStockCount(item.good_id) }}</span>
58 61
                 </span>
59 62
 
60 63
                 <span v-if="type == 4"> {{ item.count }}</span>
@@ -75,8 +78,10 @@
75 78
               <td style="line-height:50px">
76 79
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
77 80
                 <span v-if="type == 2">
78
-                  <span v-if="org_id == 3907 || org_id ==9919">
79
-                     {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}}
81
+                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 0">
82
+                    <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
83
+                     {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
84
+                     
80 85
                   </span>
81 86
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
82 87
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
@@ -380,6 +385,7 @@
380 385
            var list = response.data.data.list
381 386
            console.log("新的",list)
382 387
            this.stockDatas = list
388
+           //自动出库数据
383 389
            var stockTotal = response.data.data.stockTotal
384 390
           this.stockTotal = stockTotal
385 391
 

+ 2 - 2
src/xt_pages/stock/detail/stockOutDetail.vue View File

@@ -834,7 +834,7 @@ export default {
834 834
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
835 835
         }
836 836
 
837
-        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671){
837
+        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 0){
838 838
 
839 839
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
840 840
         }
@@ -842,7 +842,7 @@ export default {
842 842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
843 843
           console.log("out_count232233232332",this.tableOut[i].out_count)
844 844
         }
845
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919){
845
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0){
846 846
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
847 847
         }
848 848
        }