浏览代码

采购单 详情 小数点精度问题

chenrui 4 年之前
父节点
当前提交
03d6ff09ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/purchasingManagement/purchaseOrder/detail.vue

+ 1 - 1
src/views/purchasingManagement/purchaseOrder/detail.vue

@@ -180,7 +180,7 @@ export default {
       const totalAmount = (this.detail && this.detail.totalAmount) ? this.detail.totalAmount : 0
       const totalAmount = (this.detail && this.detail.totalAmount) ? this.detail.totalAmount : 0
       const totalPutAmount = (this.detail && this.detail.totalPutAmount) ? this.detail.totalPutAmount : 0
       const totalPutAmount = (this.detail && this.detail.totalPutAmount) ? this.detail.totalPutAmount : 0
       const totalCancelAmount = (this.detail && this.detail.totalCancelAmount) ? this.detail.totalCancelAmount : 0
       const totalCancelAmount = (this.detail && this.detail.totalCancelAmount) ? this.detail.totalCancelAmount : 0
-      return Number(totalAmount) - Number(totalPutAmount) - Number(totalCancelAmount)
+      return (Number(totalAmount) * 100 - Number(totalPutAmount) * 100 - Number(totalCancelAmount) * 100) / 100
     }
     }
   },
   },
   methods: {
   methods: {