瀏覽代碼

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

csx 2 年之前
父節點
當前提交
3f518a19b1
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/xt_pages/stock/drugs/components/drugOutDetail.vue

+ 10 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -441,7 +441,11 @@ export default {
441 441
                   total_price += order[i].total_price
442 442
                  }
443 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,7 +457,11 @@ export default {
453 457
                  }
454 458
                 
455 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 465
                    order[i].price = this.getPrice(order[i].drug_id)
458 466
                 }
459 467