Browse Source

新分支

28169 1 year ago
parent
commit
b35cf37381

+ 31 - 1
src/xt_pages/device/airDisinfectTwo.vue View File

@@ -1575,7 +1575,37 @@
1575 1575
         })
1576 1576
         }, 
1577 1577
       AddCard(){
1578
-        this.dialogFormVisible =  true
1578
+        console.log("storeywowoowow",this.form.storey)
1579
+        if(this.form.storey!=""){
1580
+          console.log("进来2222")
1581
+          getAirDisinfectWayLongTime(this.form.department).then(response=>{
1582
+          if(response.data.state == 1){
1583
+            var list = response.data.data.list
1584
+           
1585
+           var first_total_time = 0
1586
+         
1587
+           var last_total_time = 0
1588
+           if(list!=null && list.length>0){
1589
+              for(let i=0;i<list.length;i++){
1590
+                first_total_time += parseFloat(list[i].first_total_time)
1591
+                last_total_time +=parseFloat(list[i].last_total_time)
1592
+              }
1593
+           
1594
+            this.form.first_total_time = ""
1595
+            this.form.first_total_time = first_total_time
1596
+            this.first_total_time = first_total_time
1597
+            this.form.last_total_time =""
1598
+            this.form.last_total_time = last_total_time
1599
+            this.last_total_time = last_total_time
1600
+            }
1601
+            this.dialogFormVisible = true
1602
+          }  
1603
+        })  
1604
+        }else{
1605
+          console.log("进来11111")
1606
+          this.dialogFormVisible =  true
1607
+        }
1608
+       
1579 1609
       },
1580 1610
       AddCardOne(){
1581 1611
         getAirDisinfectWayLongTime(this.form.department).then(response=>{

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue View File

@@ -328,7 +328,7 @@
328 328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
329 329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
330 330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
331
-                        <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
331
+                        <!-- <td width="60" style="height:20px;line-height:20px">温度<br />°C</td> -->
332 332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
333 333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334 334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
@@ -352,7 +352,7 @@
352 352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
353 353
 
354 354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
355
-                        <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td>
355
+                        <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td> -->
356 356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
357 357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358 358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue View File

@@ -2721,7 +2721,20 @@
2721 2721
                         <table class="table-box" style="margin-bottom: 20px">
2722 2722
                           <tbody>
2723 2723
                             <tr>
2724
-                              <!-- <td width="70">其他记录:</td> -->
2724
+                             <td width="100">输液量(ml):</td>
2725
+                              <td width="100">
2726
+                                <div class="under-line">
2727
+                                  &nbsp;{{record.assessment_after_dislysis.transfusion_volume? record.assessment_after_dislysis.transfusion_volume: ""}}
2728
+                                </div>
2729
+                              </td>
2730
+                              <td width=""></td>
2731
+                            </tr>
2732
+                          </tbody>
2733
+                        </table>
2734
+
2735
+                        <table class="table-box" style="margin-bottom: 20px">
2736
+                          <tbody>
2737
+                            <tr>
2725 2738
                               <td width="70">特殊记录:</td>
2726 2739
                               <td width="">
2727 2740
                                 <div

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -1187,7 +1187,7 @@ export default {
1187 1187
           data["after_urea"] = this.form.after_urea
1188 1188
           data["pip_coagulation"] = this.form.pip_coagulation
1189 1189
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1190
-          datap["transfusion_volume"] = this.form.transfusion_volume
1190
+          data["transfusion_volume"] = this.form.transfusion_volume
1191 1191
           console.log("Data",data)
1192 1192
           console.log("Paramsquery",data)
1193 1193
 

+ 58 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

@@ -1142,14 +1142,68 @@ export default {
1142 1142
           this.advices = tableAdvice;
1143 1143
         }
1144 1144
 
1145
-        var arr = [] 
1146
-        arr = this.unique(this.advices)
1145
+        // var arr = [] 
1146
+        // arr = this.unique(this.advices)
1147
+        // console.log("arriooowo",arr)
1148
+        // if(arr!=null && arr.length >0){
1149
+  
1150
+        //    for(let i=0;i<arr.length;i++){
1151
+        //       if(arr[i].advice_name!="" && arr[i].advice_name!=undefined){
1152
+        //         arr[i].prescription_id_no = 0
1153
+        //         arr[i].prescription_id_no = parseInt(arr[i].prescription_id)  + parseInt(arr[i].groupno)
1154
+        //       }else{
1155
+        //         arr[i].prescription_id_no = 0
1156
+        //       }
1157
+             
1158
+        //    }
1159
+        //    let dataInfo = {}
1160
+        //    arr.forEach((item, index) => {
1161
+        //       let { prescription_id_no } = item
1162
+        //       if (!dataInfo[prescription_id_no]) {
1163
+        //         dataInfo[prescription_id_no] = {
1164
+        //           prescription_id_no:item.prescription_id_no,
1165
+        //           advice_name:item.advice_name,
1166
+        //           start_time:item.start_time,
1167
+        //           single_dose:item.single_dose,
1168
+        //           single_dose_unit:item.unit,
1169
+        //           execution_time:item.execution_time,
1170
+        //           execution_staff:item.execution_staff, 
1171
+        //           advice_doctor:item.advice_doctor,
1172
+        //           checker:item.checker,
1173
+        //           check_time:item.check_time,
1174
+        //           delivery_way:item.delivery_way,
1175
+        //           frequency_type:item.frequency_type,
1176
+        //           prescribing_number:item.prescribing_number,
1177
+        //           prescribing_number_unit:item.prescribing_number_unit,
1178
+        //           single_dose:item.single_dose,
1179
+        //           single_dose_unit:item.single_dose_unit,
1180
+        //           child:[]
1181
+                 
1182
+        //         }
1183
+        //       }
1184
+        //     })
1185
+        //     let newArr = Object.values(dataInfo)
1186
+
1187
+        //     if(newArr!=null && newArr.length>0){
1188
+        //       for(let i=0;i<newArr.length;i++){
1189
+        //         for(let i=0;i<arr[i].length;i++){
1190
+        //            if(newArr[i].prescription_id_no == arr[i].prescription_id_no){
1191
+        //                newArr[i].child.push(arr[i])
1192
+        //            }
1193
+        //         }
1194
+        //       }
1195
+        //     }
1196
+        //     console.log("newARRWOOWOW",newArr)
1197
+
1198
+        // }
1199
+
1200
+
1147 1201
         this.advices = []
1148 1202
         this.advices= arr
1149
-        console.log("wowoowowowo",arr)
1203
+     
1150 1204
         console.log("advices-----------------",this.advices)
1151 1205
 
1152
- 
1206
+         
1153 1207
          
1154 1208
 
1155 1209
         // this.loading = false;

+ 14 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

@@ -1039,6 +1039,20 @@
1039 1039
                   </tbody>
1040 1040
                 </table>
1041 1041
 
1042
+                <table class="table-box">
1043
+                  <tbody>
1044
+                    <tr>
1045
+                        <td width="100">输液量(ml):</td>
1046
+                        <td width="140">
1047
+                          <div class="under-line">&nbsp;<span>{{ afterdialysis.transfusion_volume ? afterdialysis.transfusion_volume : '' }}</span></div>
1048
+                        </td>
1049
+                        
1050
+                        <td></td>
1051
+                    </tr>
1052
+                  </tbody>
1053
+                </table>
1054
+
1055
+
1042 1056
                 <table class="table-box" style="margin-bottom:20px;">
1043 1057
                   <tbody>
1044 1058
                     <tr>

+ 91 - 4
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue View File

@@ -69,7 +69,9 @@
69 69
         <div class="tableTitle">统计表</div>
70 70
         <div>
71 71
           <el-button type="primary" @click="exportList">按透析记录导出</el-button>
72
-          <el-button type="primary" @click="exportListOne">按排班导出</el-button>
72
+          <el-button type="primary" @click="exportListOne" v-if="org_id!=10558">按排班导出</el-button>
73
+
74
+          <el-button type="primary" @click="exportListTwo" v-if="org_id == 10558">按排班导出</el-button>
73 75
         </div>
74 76
        
75 77
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
@@ -147,6 +149,8 @@ export default {
147 149
       patient_id:0,
148 150
       modeIdCount:[],
149 151
       scheduleCount:[],
152
+      scheduleList:[],
153
+      org_id:0,
150 154
     };
151 155
   },
152 156
   methods: {
@@ -209,7 +213,40 @@ export default {
209 213
           console.log("modeidcount=====",modeIdCount)
210 214
 
211 215
         
212
-         
216
+          var scheduleList = response.data.data.scheduleList
217
+          console.log("scheduleList",scheduleList)
218
+
219
+
220
+          if(scheduleList.length!=null && scheduleList.length>0){
221
+              let dataInfo = {}
222
+              scheduleList.forEach((item, index) => {
223
+                let { patient_id } = item
224
+                if (!dataInfo[patient_id]) {
225
+                  dataInfo[patient_id] = {
226
+                    patient_id,
227
+                    name:item.name,
228
+                    id_card_no:item.id_card_no,
229
+                    dialysis_no:item.dialysis_no,
230
+                    total_dialysis:item.total_dialysis,
231
+                    user_sys_before_count:item.user_sys_before_count,
232
+                    mode_id: []
233
+                  }
234
+                }
235
+              })
236
+              let list = Object.values(dataInfo)
237
+              list.map(item => {
238
+              for (let i = 0; i < list.length; i++) {
239
+                if (item.patient_id === list[i].patient_id) {
240
+                  item.mode_id.push(list[i].mode_id)
241
+                }
242
+              }
243
+             })
244
+             
245
+             console.log("listowowowoowowowow",list)
246
+
247
+             this.scheduleList = []
248
+             this.scheduleList = list
249
+          }
213 250
 
214 251
           for(let i=0;i<modeIdCount.length;i++){
215 252
             if(modeIdCount[i].mode_id == 1){
@@ -438,7 +475,7 @@ export default {
438 475
               }
439 476
             }
440 477
           })
441
-        //  console.log("list---",list)
478
+        
442 479
           this.DialysisData = list
443 480
          }
444 481
       })
@@ -746,6 +783,55 @@ export default {
746 783
         })
747 784
       },
748 785
 
786
+
787
+      exportListTwo(){
788
+       for(let i=0;i<this.scheduleList.length;i++){
789
+         this.scheduleList[i].index = i+1
790
+         this.scheduleList[i].HD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD")
791
+         this.scheduleList[i].HDF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HDF")
792
+         this.scheduleList[i].HDHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD+HP")
793
+         this.scheduleList[i].HP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HP")
794
+         this.scheduleList[i].HF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HF")
795
+         this.scheduleList[i].SCUF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"SCUF")
796
+         this.scheduleList[i].IUF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"IUF")
797
+         this.scheduleList[i].HFHD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HFHD")
798
+         this.scheduleList[i].HFHDHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HFHD+HP")
799
+         this.scheduleList[i].HDFHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HDF+HP")
800
+         this.scheduleList[i].CRRT = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CRRT")
801
+         this.scheduleList[i].OTR = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"腹水回输")
802
+
803
+         this.scheduleList[i].IUFHD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"IUF+HD")
804
+         this.scheduleList[i].UF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"UF")
805
+         this.scheduleList[i].HDPlus = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD+")
806
+         this.scheduleList[i].IHDF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"I-HDF")
807
+         this.scheduleList[i].HDGT = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD高通")
808
+         this.scheduleList[i].CVVH = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CVVH")
809
+         this.scheduleList[i].CVVHD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CVVHD")
810
+         this.scheduleList[i].CVVHDF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CVVHDF")
811
+         this.scheduleList[i].PE = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"PE")
812
+         this.scheduleList[i].XUEHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"血浆胆红素吸附+HP")
813
+         this.scheduleList[i].HPD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HPD")
814
+         this.scheduleList[i].HDP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HDP")
815
+
816
+         this.scheduleList[i].age = this.getAge(this.scheduleList[i].id_card_no)
817
+         this.scheduleList[i].total_count = this.getScheduleDialysisCount(this.scheduleList[i].patient_id)
818
+       }
819
+       console.log("hhh2323323232",this.scheduleList)
820
+       import('@/vendor/Export2Excel').then(excel => {
821
+        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','总数']
822
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HDGT','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
823
+
824
+        const data = this.formatJson(filterVal, this.scheduleList)
825
+
826
+        excel.export_json_to_excel({
827
+           header: tHeader,
828
+           data,
829
+           filename: '透析详情'
830
+         })
831
+          this.downloadLoading = false
832
+        })
833
+      },
834
+
749 835
       formatJson(filterVal, jsonData) {
750 836
         return jsonData.map(v =>
751 837
           filterVal.map(j => {
@@ -793,6 +879,7 @@ export default {
793 879
 
794 880
   },
795 881
   created(){
882
+    this.org_id = this.$store.getters.xt_user.org.id
796 883
     var nowDate = new Date();
797 884
     var nowYear = nowDate.getFullYear();
798 885
     var nowMonth = nowDate.getMonth() + 1;
@@ -803,7 +890,7 @@ export default {
803 890
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
804 891
       "-" +
805 892
       (nowDay < 10 ? "0" + nowDay : nowDay);
806
-    nowDate.setMonth(nowDate.getMonth() - 3);
893
+    nowDate.setMonth(nowDate.getMonth() - 1);
807 894
     nowYear = nowDate.getFullYear();
808 895
     nowMonth = nowDate.getMonth() + 1;
809 896
     nowDay = nowDate.getDate();