浏览代码

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

csx 3 年前
父节点
当前提交
720acba0a4
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/xt_pages/hospitalStation/components/deskPrescription.vue

+ 4 - 5
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

1635
                 total = total + this.month_prescriptions[i].addition[b].price * this.month_prescriptions[i].addition[b].count
1635
                 total = total + this.month_prescriptions[i].addition[b].price * this.month_prescriptions[i].addition[b].count
1636
               }
1636
               }
1637
             }
1637
             }
1638
-            total = Math.floor(total * 100) / 100
1639
           }
1638
           }
1640
         }
1639
         }
1641
-        return total
1640
+        return total.toFixed(2)
1642
 
1641
 
1643
       },
1642
       },
1644
       getCurTotal() {
1643
       getCurTotal() {
1653
           for (let a = 0; a < this.curPrescriptions.project.length; a++) {
1652
           for (let a = 0; a < this.curPrescriptions.project.length; a++) {
1654
             total = total + this.curPrescriptions.project[a].price * this.curPrescriptions.project[a].total
1653
             total = total + this.curPrescriptions.project[a].price * this.curPrescriptions.project[a].total
1655
           }
1654
           }
1656
-          return Math.floor(total * 100) / 100
1655
+          return total.toFixed(2)
1657
         }
1656
         }
1658
 
1657
 
1659
       },
1658
       },
1678
           }
1677
           }
1679
         }
1678
         }
1680
 
1679
 
1681
-        return Math.floor(total * 100) / 100
1680
+        return total.toFixed(2)
1682
       }, getMonthTotal() {
1681
       }, getMonthTotal() {
1683
         var total = 0
1682
         var total = 0
1684
         for (let i = 0; i < this.month_prescriptions.length; i++) {
1683
         for (let i = 0; i < this.month_prescriptions.length; i++) {
1700
           }
1699
           }
1701
         }
1700
         }
1702
 
1701
 
1703
-        return Math.floor(total * 100) / 100
1702
+        return total.toFixed(2)
1704
       },
1703
       },
1705
       createFilter(queryString) {
1704
       createFilter(queryString) {
1706
         return (restaurant) => {
1705
         return (restaurant) => {