浏览代码

修改华侨医院bug

csx 6 年前
父节点
当前提交
45feced266

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue 查看文件

694
                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
694
                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
695
                        置换液后/前稀释 总量:
695
                        置换液后/前稀释 总量:
696
                       <div class="under_line" style="width: 100px;">{{
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
                       </div>
698
                       </div>
699
                       L
699
                       L
700
                     </div>
700
                     </div>
701
                     <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
701
                     <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
702
                       &emsp;置换液前稀释 总量:
702
                       &emsp;置换液前稀释 总量:
703
                       <div class="under_line" style="width: 100px;">
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
                       </div>
705
                       </div>
706
                       L
706
                       L
707
                     </div>
707
                     </div>
708
                     <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
708
                     <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
709
                       &emsp;置换液后稀释 总量:
709
                       &emsp;置换液后稀释 总量:
710
                       <div class="under_line" style="width: 100px;">
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
                       </div>
712
                       </div>
713
                       L
713
                       L
714
                     </div>
714
                     </div>

+ 17 - 1
src/xt_pages/stock/detail/stockInDetail.vue 查看文件

100
           </el-table-column>
100
           </el-table-column>
101
           <el-table-column label="总价" align="center">
101
           <el-table-column label="总价" align="center">
102
             <template slot-scope="scope">
102
             <template slot-scope="scope">
103
-              {{scope.row.price * scope.row.warehousing_count}}
103
+              {{getTotal(scope.row.price,scope.row.warehousing_count)}}
104
+
104
             </template>
105
             </template>
105
           </el-table-column>
106
           </el-table-column>
106
 
107
 
429
           })
430
           })
430
         }).catch(() => {
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 查看文件

104
           </el-table-column>
104
           </el-table-column>
105
           <el-table-column label="总价" align="center">
105
           <el-table-column label="总价" align="center">
106
             <template slot-scope="scope">
106
             <template slot-scope="scope">
107
-              {{scope.row.price *  scope.row.count}}
107
+              {{getTotal(scope.row.price,scope.row.count)}}
108
+
108
             </template>
109
             </template>
109
           </el-table-column>
110
           </el-table-column>
110
 
111
 
433
           })
434
           })
434
         }).catch(() => {
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
   }