Bladeren bron

新分支

28169 6 maanden geleden
bovenliggende
commit
c04583f0d3
1 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  1. 12 0
      src/xt_pages/dialysis/newDoctorAdvice.vue

+ 12 - 0
src/xt_pages/dialysis/newDoctorAdvice.vue Bestand weergeven

@@ -2380,7 +2380,19 @@ export default {
2380 2380
             this.manufacturerList = manufacturerList
2381 2381
             var adviceMonthList = response.data.data.adviceList
2382 2382
             var hisAdviceMonthList = response.data.data.hisAdviceList
2383
+        
2384
+            for(let i=0;i<hisAdviceMonthList.length;i++){
2385
+                hisAdviceMonthList[i].count_one = 0
2386
+               if(hisAdviceMonthList[i].prescribing_number_unit == hisAdviceMonthList[i].drug.max_unit){
2387
+                hisAdviceMonthList[i].prescribing_number = parseInt(hisAdviceMonthList[i].prescribing_number) * hisAdviceMonthList[i].drug.min_number
2388
+                hisAdviceMonthList[i].count_one =  parseInt(hisAdviceMonthList[i].prescribing_number) * hisAdviceMonthList[i].drug.min_number
2389
+               }
2390
+            }
2391
+
2392
+  
2383 2393
             if(config.is_open == 1){
2394
+
2395
+
2384 2396
                
2385 2397
               if(hisAdviceMonthList!=null && hisAdviceMonthList.length>0){
2386 2398
                 let dataInfo = {}