28169 1 ano atrás
pai
commit
c84583d3c7

+ 12 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Ver arquivo

931
               Arr.push(a);
931
               Arr.push(a);
932
             }
932
             }
933
 
933
 
934
+         
935
+
934
            for(let i=0;i<dialysisIrrigationArr.length;i++){
936
            for(let i=0;i<dialysisIrrigationArr.length;i++){
935
             if(objTwo[dialysisIrrigationArr[i]]){
937
             if(objTwo[dialysisIrrigationArr[i]]){
936
               objTwo[dialysisIrrigationArr[i]] +=1
938
               objTwo[dialysisIrrigationArr[i]] +=1
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
            for (let i in objThree) {
954
            for (let i in objThree) {
943
               let a = {};
955
               let a = {};
944
               a[i] = objThree[i];
956
               a[i] = objThree[i];

+ 24 - 1
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue Ver arquivo

173
                 
173
                 
174
                 <td>
174
                 <td>
175
                   <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
175
                   <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
176
+                  <span v-else></span>
176
                 </td>
177
                 </td>
177
                 
178
                 
178
                 
179
                 
182
                </tr>
183
                </tr>
183
               </tbody>
184
               </tbody>
184
             </table>
185
             </table>
186
+            <span>低分子肝素:{{total_one}}</span>
187
+            <span>促红:{{ total_two }}</span>
188
+            <span>封管液:{{ total_three }}</span>
185
           </div>
189
           </div>
186
         </div>
190
         </div>
187
       </div>
191
       </div>
231
         tableList:[],
235
         tableList:[],
232
         list:[],
236
         list:[],
233
         dialysisSett:{},
237
         dialysisSett:{},
238
+        total_one:0,
239
+        total_two:0,
240
+        total_three:0
234
       }
241
       }
235
     },
242
     },
236
     components: {
243
     components: {
248
          schedule_type:this.$route.query.schedule_type,
255
          schedule_type:this.$route.query.schedule_type,
249
          partition_id:this.$route.query.partion_id,
256
          partition_id:this.$route.query.partion_id,
250
          page:this.$route.query.page,
257
          page:this.$route.query.page,
251
-         limit:this.$route.query.limit,
258
+         limit:500,
252
          ids:this.$route.query.ids,
259
          ids:this.$route.query.ids,
253
        }
260
        }
254
       console.log("params",params)
261
       console.log("params",params)
264
               }
271
               }
265
               list.sort(this.compare('sort'))
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
             for(let i=0;i<list.length;i++){
278
             for(let i=0;i<list.length;i++){
268
               list[i].advice_spc =""
279
               list[i].advice_spc =""
269
                 for(let j=0;j<list[i].advice.length;j++){
280
                 for(let j=0;j<list[i].advice.length;j++){
281
+                    total_two +=parseInt(list[i].advice[j].prescribing_number) 
270
                     if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
282
                     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)+","
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
             this.list = list
298
             this.list = list
276
             this.dialysisSett = response.data.data.dialysisSett
299
             this.dialysisSett = response.data.data.dialysisSett