28169 1 gadu atpakaļ
vecāks
revīzija
c84583d3c7

+ 12 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Parādīt failu

@@ -931,6 +931,8 @@
931 931
               Arr.push(a);
932 932
             }
933 933
 
934
+         
935
+
934 936
            for(let i=0;i<dialysisIrrigationArr.length;i++){
935 937
             if(objTwo[dialysisIrrigationArr[i]]){
936 938
               objTwo[dialysisIrrigationArr[i]] +=1
@@ -939,6 +941,16 @@
939 941
              }   
940 942
            }
941 943
 
944
+           for (let i in objTwo) {
945
+              let a = {};
946
+              a[i] = objTwo[i];
947
+              a.name = "灌流器"
948
+              a.count = objTwo[i]
949
+              a.specification_name = i
950
+              Arr.push(a);
951
+            }
952
+            console.log("newa",Arr)
953
+
942 954
            for (let i in objThree) {
943 955
               let a = {};
944 956
               a[i] = objThree[i];

+ 24 - 1
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue Parādīt failu

@@ -173,6 +173,7 @@
173 173
                 
174 174
                 <td>
175 175
                   <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
176
+                  <span v-else></span>
176 177
                 </td>
177 178
                 
178 179
                 
@@ -182,6 +183,9 @@
182 183
                </tr>
183 184
               </tbody>
184 185
             </table>
186
+            <span>低分子肝素:{{total_one}}</span>
187
+            <span>促红:{{ total_two }}</span>
188
+            <span>封管液:{{ total_three }}</span>
185 189
           </div>
186 190
         </div>
187 191
       </div>
@@ -231,6 +235,9 @@
231 235
         tableList:[],
232 236
         list:[],
233 237
         dialysisSett:{},
238
+        total_one:0,
239
+        total_two:0,
240
+        total_three:0
234 241
       }
235 242
     },
236 243
     components: {
@@ -248,7 +255,7 @@
248 255
          schedule_type:this.$route.query.schedule_type,
249 256
          partition_id:this.$route.query.partion_id,
250 257
          page:this.$route.query.page,
251
-         limit:this.$route.query.limit,
258
+         limit:500,
252 259
          ids:this.$route.query.ids,
253 260
        }
254 261
       console.log("params",params)
@@ -264,13 +271,29 @@
264 271
               }
265 272
               list.sort(this.compare('sort'))
266 273
 
274
+            var total_one =0
275
+            var total_two=0
276
+            var total_three =0  
277
+            console.log("listoowowowwoww",list)
267 278
             for(let i=0;i<list.length;i++){
268 279
               list[i].advice_spc =""
269 280
                 for(let j=0;j<list[i].advice.length;j++){
281
+                    total_two +=parseInt(list[i].advice[j].prescribing_number) 
270 282
                     if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
271 283
                       list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
272 284
                     }
273 285
                 }
286
+              this.total_two =total_two
287
+              if(list[i].dialysis_solution.anticoagulant == 3){
288
+                  total_one ++
289
+              }
290
+              this.total_one =total_one
291
+              
292
+              if(this.getBloodAccessOption(list[i].dialysis_solution.blood_access).indexOf('导管')!=-1){
293
+                   total_three++
294
+              }
295
+              this.total_three = total_three
296
+             
274 297
             }
275 298
             this.list = list
276 299
             this.dialysisSett = response.data.data.dialysisSett