Browse Source

新分支

28169 1 year ago
parent
commit
287dbbf0bf

+ 49 - 39
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

59
         <el-button size="small"  @click="exportList" type="primary">导出</el-button>
59
         <el-button size="small"  @click="exportList" type="primary">导出</el-button>
60
         <el-button size="small"  @click="toPrint" icon="el-icon-printer" type="primary">打印</el-button>
60
         <el-button size="small"  @click="toPrint" icon="el-icon-printer" type="primary">打印</el-button>
61
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
61
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
62
-        <!-- <el-button size="small" type="primary" @click="statisticsOne">导出2</el-button> -->
62
+        
63
       </div>
63
       </div>
64
     </div>
64
     </div>
65
   
65
   
120
             <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
120
             <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
121
             <span v-if="scope.row.mode_id == 31">HPD</span>
121
             <span v-if="scope.row.mode_id == 31">HPD</span>
122
             <span v-if="scope.row.mode_id == 32">HDP</span>
122
             <span v-if="scope.row.mode_id == 32">HDP</span>
123
+            <span v-if="scope.row.mode_id == 33">HFD</span>
124
+            <span v-if="scope.row.mode_id == 34">HDF100</span>
125
+            <span v-if="scope.row.mode_id == 35">HDF600</span>
126
+            <span v-if="scope.row.mode_id == 36">HDF800</span>
127
+            <span v-if="scope.row.mode_id == 37">HDF1000</span>
123
            </template>
128
            </template>
124
         </el-table-column>
129
         </el-table-column>
125
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
130
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
238
            </template>
243
            </template>
239
         </el-table-column>
244
         </el-table-column>
240
 
245
 
246
+        <el-table-column align="center" label="封管液" v-if="dialysisSett.blood_access==1">
247
+           <template slot-scope="scope">
248
+             <span v-if="getBloodAccessOption(scope.row.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
249
+           </template>
250
+        </el-table-column>
251
+
252
+        <el-table-column align="center" label="促红">
253
+           <template slot-scope="scope">
254
+              {{ scope.row.advice_spc }}
255
+           </template>
256
+        </el-table-column>
241
        <el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
257
        <el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
242
            <template slot-scope="scope">
258
            <template slot-scope="scope">
243
              <span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span> 
259
              <span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span> 
617
         
633
         
618
         var str = ""
634
         var str = ""
619
          if(this.partition_id==0){
635
          if(this.partition_id==0){
620
-            console.log("进阿里232332")
621
-            console.log("wowoowowow",this.zoneList.join(","))
622
             str = this.zoneList.join(",")
636
             str = this.zoneList.join(",")
623
          }
637
          }
624
 
638
 
640
       
654
       
641
               }
655
               }
642
               list.sort(this.compare('sort'))
656
               list.sort(this.compare('sort'))
657
+            
658
+
659
+              for(let i=0;i<list.length;i++){
660
+                list[i].advice_spc =""
661
+                 for(let j=0;j<list[i].advice.length;j++){
662
+                     if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
663
+                        list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
664
+                     }
665
+                 }
666
+              }
667
+              console.log("listwowowowowowo日本",this.list)
643
               this.list = list
668
               this.list = list
644
               this.total = response.data.data.total
669
               this.total = response.data.data.total
645
               this.dialysisSett = response.data.data.dialysisSett
670
               this.dialysisSett = response.data.data.dialysisSett
922
         })
947
         })
923
       },
948
       },
924
 
949
 
925
-      statisticsOne(){
926
-        console.log("this.list233333333333333333333",this.list)
927
-        import('@/vendor/Export2Excel').then(excel => { 
928
-        if(this.list!=null && this.list.length > 0){
929
-           for(let i=0;i<this.list.length;i++){
930
-             this.tableList[i].index = i+1
931
-             this.tableList[i].name = this.tableList[i].patient.name
932
-             this.tableList[i].mode_name = this.getModeName(this.tableList[i].mode_id)
933
-             this.tableList[i].anticoagulant_name = this.getAnticoagulantName(this.tableList[i].anticoagulant)
934
-             this.tableList[i].anticoagulant_shouji = this.tableList[i].dialysis_prescription.anticoagulant_shouji
935
-             this.tableList[i].anticoagulant_weichi = this.tableList[i].dialysis_prescription.anticoagulant_weichi
936
-             this.tableList[i].anticoagulant_zongliang = this.tableList[i].dialysis_prescription.anticoagulant_zongliang
937
-
938
-             if(this.tableList[i].assessment_befor_dislysis){
939
-
940
-             }
941
-             
942
-           }
943
-        }
944
-        const tHeader = ['序号','姓名','透析方式','抗凝剂','首剂','维持','总量','封管液','促红']
945
-        const filterVal = ['index', 'name','mode_name','anticoagulant_name','anticoagulant_shouji','anticoagulant_weichi','anticoagulant_zongliang']
946
-
947
-        const data = this.formatJson(filterVal, this.tableList)
948
-         excel.export_json_to_excel({
949
-           header: tHeader,
950
-           data,
951
-           filename: '透析参数统计'
952
-         })
953
-          this.downloadLoading = false
954
-        })  
955
-      },
950
+    
956
       getModeName(id){
951
       getModeName(id){
957
          var mode_name =""
952
          var mode_name =""
958
          if(id == 1){
953
          if(id == 1){
1051
          import('@/vendor/Export2Excel').then(excel => {
1046
          import('@/vendor/Export2Excel').then(excel => {
1052
       
1047
       
1053
          if(this.list!=null && this.list.length > 0){
1048
          if(this.list!=null && this.list.length > 0){
1054
-            // console.log("hhhahhah",this.list)
1049
+            console.log("hhhahhah",this.list)
1055
             for(let i=0;i<this.list.length;i++){
1050
             for(let i=0;i<this.list.length;i++){
1056
               this.list[i].index = i+1
1051
               this.list[i].index = i+1
1052
+              this.list[i].mode_name = this.getModeName(this.list[i].mode_id)
1057
               this.list[i].device_number_one =  this.list[i].device_number.zone.name + this.list[i].device_number.number
1053
               this.list[i].device_number_one =  this.list[i].device_number.zone.name + this.list[i].device_number.number
1058
               this.list[i].patient_name = this.list[i].patient.name
1054
               this.list[i].patient_name = this.list[i].patient.name
1059
               this.list[i].dialysis_no = this.list[i].patient.dialysis_no
1055
               this.list[i].dialysis_no = this.list[i].patient.dialysis_no
1066
               }
1062
               }
1067
               this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
1063
               this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
1068
              
1064
              
1069
-              this.list[i].anticoagulant_one = this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant) + "(" + this.list[i].dialysis_solution.anticoagulant_shouji?this.list[i].dialysis_solution.anticoagulant_shouji:"" +")" + "("+this.list[i].dialysis_solution.anticoagulant_weichi?this.list[i].dialysis_solution.anticoagulant_weichi:"" +")"+ +"("+this.list[i].dialysis_solution.anticoagulant_zongliang?this.list[i].dialysis_solution.anticoagulant_zongliang:""+")"
1070
-              if(this.list[i].anticoagulant_one == 0){
1071
-                this.list[i].anticoagulant_one = ""
1072
-              }
1065
+              
1066
+              this.list[i].anticoagulant_one=""
1067
+              this.list[i].anticoagulant_one = (this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant)) + "(" + (this.list[i].dialysis_solution.anticoagulant_shouji) +")" + "("+(this.list[i].dialysis_solution.anticoagulant_weichi) +")"+"("+(this.list[i].dialysis_solution.anticoagulant_zongliang)+")"
1068
+             
1073
               this.list[i].dialysis_time = this.list[i].dialysis_solution.dialysis_duration_hour?this.list[i].dialysis_solution.dialysis_duration_hour:"" + "时"+ this.list[i].dialysis_solution.dialysis_duration_minute?this.list[i].dialysis_solution.dialysis_duration_minute:"" + "分"
1069
               this.list[i].dialysis_time = this.list[i].dialysis_solution.dialysis_duration_hour?this.list[i].dialysis_solution.dialysis_duration_hour:"" + "时"+ this.list[i].dialysis_solution.dialysis_duration_minute?this.list[i].dialysis_solution.dialysis_duration_minute:"" + "分"
1074
               if(this.list[i].dialysis_time == 0){
1070
               if(this.list[i].dialysis_time == 0){
1075
                this.list[i].dialysis_time = ""
1071
                this.list[i].dialysis_time = ""
1088
               this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
1084
               this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
1089
               this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
1085
               this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
1090
               this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
1086
               this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
1087
+              this.list[i].count =0
1088
+              if(this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access).indexOf("导管")!=-1){
1089
+                this.list[i].count =1
1090
+              }
1091
             }
1091
             }
1092
          }
1092
          }
1093
 
1093
 
1105
            arr.push("姓名")
1105
            arr.push("姓名")
1106
            arrTwo.push("patient_name")
1106
            arrTwo.push("patient_name")
1107
          }
1107
          }
1108
+         arr.push("透析模式")
1109
+         arrTwo.push("mode_name")
1108
          if(this.dialysisSett.dialysis_no == 1){
1110
          if(this.dialysisSett.dialysis_no == 1){
1109
            arr.push("透析号")
1111
            arr.push("透析号")
1110
            arrTwo.push("dialysis_no")
1112
            arrTwo.push("dialysis_no")
1196
            arrTwo.push("blood_flow_volume")
1198
            arrTwo.push("blood_flow_volume")
1197
         }
1199
         }
1198
          
1200
          
1201
+        arr.push("封管液")
1202
+        arrTwo.push("count")
1203
+
1204
+        arr.push("促红")
1205
+        arrTwo.push("advice_spc")
1199
        
1206
        
1200
         const tHeader = arr
1207
         const tHeader = arr
1201
         const filterVal = arrTwo
1208
         const filterVal = arrTwo
1209
+        
1202
         const data = this.formatJson(filterVal, this.list)
1210
         const data = this.formatJson(filterVal, this.list)
1211
+        console.log("DATWOWOWOWO",data)
1212
+       
1203
          excel.export_json_to_excel({
1213
          excel.export_json_to_excel({
1204
            header: tHeader,
1214
            header: tHeader,
1205
            data,
1215
            data,

+ 25 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue View File

51
                 <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1">封管液</td>
51
                 <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1">封管液</td>
52
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
52
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
53
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
53
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
54
+                <td>封管液</td>
55
+                <td>促红</td>
54
               </tr>
56
               </tr>
55
               </thead>
57
               </thead>
56
               <tbody>
58
               <tbody>
90
                   <span v-if="item.mode_id == 30">血浆胆红素吸附+HP</span>
92
                   <span v-if="item.mode_id == 30">血浆胆红素吸附+HP</span>
91
                   <span v-if="item.mode_id == 31">HPD</span>
93
                   <span v-if="item.mode_id == 31">HPD</span>
92
                   <span v-if="item.mode_id == 32">HDP</span>
94
                   <span v-if="item.mode_id == 32">HDP</span>
95
+                  <span v-if="item.mode_id == 33">HFD</span>
96
+                  <span v-if="item.mode_id == 34">HDF100</span>
97
+                  <span v-if="item.mode_id == 35">HDF600</span>
98
+                  <span v-if="item.mode_id == 35">HDF800</span>
99
+                  <span v-if="item.mode_id == 35">HDF1000</span>
93
                  
100
                  
94
                 </td>
101
                 </td>
95
                 <td width="100" v-if="dialysisSett.dialysis_no==1">
102
                 <td width="100" v-if="dialysisSett.dialysis_no==1">
163
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">
170
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">
164
                    <span>{{item.dialysis_solution.blood_flow_volume?item.dialysis_solution.blood_flow_volume:""}}</span> 
171
                    <span>{{item.dialysis_solution.blood_flow_volume?item.dialysis_solution.blood_flow_volume:""}}</span> 
165
                 </td>
172
                 </td>
173
+                <td>
174
+                <td>
175
+                  <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
176
+                </td>
177
+                </td>
178
+                
179
+                <td>
180
+                  {{ item.advice_spc }}
181
+                </td>
166
                </tr>
182
                </tr>
167
               </tbody>
183
               </tbody>
168
             </table>
184
             </table>
247
       
263
       
248
               }
264
               }
249
               list.sort(this.compare('sort'))
265
               list.sort(this.compare('sort'))
266
+
267
+            for(let i=0;i<list.length;i++){
268
+              list[i].advice_spc =""
269
+                for(let j=0;j<list[i].advice.length;j++){
270
+                    if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
271
+                      list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
272
+                    }
273
+                }
274
+            }
250
             this.list = list
275
             this.list = list
251
             this.dialysisSett = response.data.data.dialysisSett
276
             this.dialysisSett = response.data.data.dialysisSett
252
             console.log("设置",this.dialysisSett)
277
             console.log("设置",this.dialysisSett)

+ 18 - 0
src/xt_pages/dialysis/details/index.vue View File

2788
       if(val == 32){
2788
       if(val == 32){
2789
         name ="HDP"
2789
         name ="HDP"
2790
       }
2790
       }
2791
+      if(val == 33){
2792
+        name ="HDP"
2793
+      }
2794
+      if(val == 33){
2795
+        name ="HFD"
2796
+      }
2797
+      if(val == 34){
2798
+        name ="HDF100"
2799
+      }
2800
+      if(val == 35){
2801
+        name ="HDF600"
2802
+      }
2803
+      if(val == 36){
2804
+        name ="HDF800"
2805
+      }
2806
+      if(val == 37){
2807
+        name ="HDF1000"
2808
+      }
2791
       return name
2809
       return name
2792
     },
2810
     },
2793
     getBloodAccess(id){
2811
     getBloodAccess(id){

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

4305
 
4305
 
4306
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
4306
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
4307
       
4307
       
4308
-        if(this.org_id!=0){
4308
+        if(this.org_id!=10510){
4309
             if(this.projects!=null && this.projects.length >0){
4309
             if(this.projects!=null && this.projects.length >0){
4310
              for(let i=0;i<this.projects.length;i++){
4310
              for(let i=0;i<this.projects.length;i++){
4311
               if(this.projects[i].type== 2){
4311
               if(this.projects[i].type== 2){