Kaynağa Gözat

修改华侨医院bug

csx 6 yıl önce
ebeveyn
işleme
45feced266

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Dosyayı Görüntüle

@@ -694,21 +694,21 @@
694 694
                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
695 695
                        置换液后/前稀释 总量:
696 696
                       <div class="under_line" style="width: 100px;">{{
697
-                        record.prescription?record.prescription.displace_liqui_value:'/'}}
697
+                        record.prescription&&record.prescription.displace_liqui_value?record.prescription.displace_liqui_value:'/'}}
698 698
                       </div>
699 699
                       L
700 700
                     </div>
701 701
                     <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
702 702
                       &emsp;置换液前稀释 总量:
703 703
                       <div class="under_line" style="width: 100px;">
704
-                        {{record.prescription?record.prescription.displace_liqui_value:'/'}}
704
+                        {{record.prescription&&record.prescription.displace_liqui_value?record.prescription.displace_liqui_value:'/'}}
705 705
                       </div>
706 706
                       L
707 707
                     </div>
708 708
                     <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
709 709
                       &emsp;置换液后稀释 总量:
710 710
                       <div class="under_line" style="width: 100px;">
711
-                        {{ record.prescription?record.prescription.displace_liqui_value:'/'}}
711
+                        {{ record.prescription&&record.prescription.displace_liqui_value?record.prescription.displace_liqui_value:'/'}}
712 712
                       </div>
713 713
                       L
714 714
                     </div>

+ 17 - 1
src/xt_pages/stock/detail/stockInDetail.vue Dosyayı Görüntüle

@@ -100,7 +100,8 @@
100 100
           </el-table-column>
101 101
           <el-table-column label="总价" align="center">
102 102
             <template slot-scope="scope">
103
-              {{scope.row.price * scope.row.warehousing_count}}
103
+              {{getTotal(scope.row.price,scope.row.warehousing_count)}}
104
+
104 105
             </template>
105 106
           </el-table-column>
106 107
 
@@ -429,6 +430,21 @@
429 430
           })
430 431
         }).catch(() => {
431 432
         })
433
+      },getTotal:function(price, total) {
434
+        var m = 0,r1,r2;
435
+        var s1 = price.toString();
436
+        var s2 = total.toString();
437
+        try{
438
+          m += s1.split('.')[1].length
439
+        }catch(e){
440
+
441
+        }
442
+        try{}catch(e){
443
+          m += s2.split('.')[1].length
444
+        }
445
+        r1 = Number(price.toString().replace(".",""));
446
+        r2 = Number(total.toString().replace(".",""));
447
+        return r1 * r2 / Math.pow(10,m);
432 448
       }
433 449
     }
434 450
   }

+ 18 - 1
src/xt_pages/stock/detail/stockOutDetail.vue Dosyayı Görüntüle

@@ -104,7 +104,8 @@
104 104
           </el-table-column>
105 105
           <el-table-column label="总价" align="center">
106 106
             <template slot-scope="scope">
107
-              {{scope.row.price *  scope.row.count}}
107
+              {{getTotal(scope.row.price,scope.row.count)}}
108
+
108 109
             </template>
109 110
           </el-table-column>
110 111
 
@@ -433,6 +434,22 @@
433 434
           })
434 435
         }).catch(() => {
435 436
         })
437
+      },
438
+      getTotal:function(price, total) {
439
+        var m = 0,r1,r2;
440
+        var s1 = price.toString();
441
+        var s2 = total.toString();
442
+        try{
443
+          m += s1.split('.')[1].length
444
+        }catch(e){
445
+
446
+        }
447
+        try{}catch(e){
448
+          m += s2.split('.')[1].length
449
+        }
450
+        r1 = Number(price.toString().replace(".",""));
451
+        r2 = Number(total.toString().replace(".",""));
452
+        return r1 * r2 / Math.pow(10,m);
436 453
       }
437 454
     }
438 455
   }