瀏覽代碼

修复计算就问题

wolyshaw 4 年之前
父節點
當前提交
f4207ce739

文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/chunk-4b8ff925.47e39ccd.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.8806cd9d.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-4b8ff925.5c010cbd.js


+ 2 - 1
src/views/teamBuild/modals/change-voice.vue

@@ -262,6 +262,7 @@ export default {
     editSpread() {
       const data = this.item
       const payed = (data.originalAccessoriesPrice || 0) + (data.originalCourseFee || 0) + (data.originalMusicalPrice || 0)
+      console.log(payed, data.changeMusicalPrice, data.changeAccessoriesPrice, data.changeCourseFee, {...data})
       return (data.changeMusicalPrice || 0) + (data.changeAccessoriesPrice || 0) + (data.changeCourseFee || 0) - payed
     },
     spread() {
@@ -370,7 +371,7 @@ export default {
       if (isNaN(_num)) {
         _num = 0
       }
-      return Math.floor(_num * 100) / 100
+      return parseFloat(_num.toFixed(2))
     },
     onCreateQRCode () {
       setTimeout(() => {

部分文件因文件數量過多而無法顯示