Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 2 years ago
parent
commit
3f518a19b1
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/xt_pages/stock/drugs/components/drugOutDetail.vue

+ 10 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

441
                   total_price += order[i].total_price
441
                   total_price += order[i].total_price
442
                  }
442
                  }
443
                  if(order[i].count_unit == order[i].max_unit){
443
                  if(order[i].count_unit == order[i].max_unit){
444
-                   order[i].total_price += order[i].count * order[i].price * order[i].min_number
444
+                   if(order[i].is_sys == 0){
445
+                     order[i].total_price += order[i].count * order[i].price
446
+                   }else{
447
+                     order[i].total_price += order[i].count * order[i].price * order[i].min_number
448
+                   }
445
                  }
449
                  }
446
                 
450
                 
447
                }
451
                }
453
                  }
457
                  }
454
                 
458
                 
455
                 if(order[i].count_unit == order[i].max_unit){
459
                 if(order[i].count_unit == order[i].max_unit){
456
-                   order[i].total_price += order[i].count * this.getPrice(order[i].drug_id) * order[i].min_number
460
+                   if(order[i].is_sys == 0){
461
+                     order[i].total_price += order[i].count * this.getPrice(order[i].drug_id) 
462
+                   }else{
463
+                     order[i].total_price += order[i].count * this.getPrice(order[i].drug_id) * order[i].min_number
464
+                   }
457
                    order[i].price = this.getPrice(order[i].drug_id)
465
                    order[i].price = this.getPrice(order[i].drug_id)
458
                 }
466
                 }
459
                  
467