linwenxin пре 9 месеци
родитељ
комит
191ea09b9d

+ 8 - 5
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/hs_productColumns.js

@@ -425,12 +425,15 @@ export default {
       }
       }
       this.orderInfo.orderProducts.splice(index, 1, {
       this.orderInfo.orderProducts.splice(index, 1, {
         ...row,
         ...row,
-        estimatePrice: estimatePrice,
-        serviceAmount: serviceAmount
+        estimatePrice: Number(estimatePrice.toFixed(2)),
+        serviceAmount: Number(serviceAmount.toFixed(2))
       })
       })
-      this.orderInfo.serviceAmount = this.orderInfo.orderProducts
-        .map(item => item.serviceAmount || 0)
-        .reduce((a, b) => a + b, 0)
+      this.orderInfo.serviceAmount = Number(
+        this.orderInfo.orderProducts
+          .map(item => item.serviceAmount || 0)
+          .reduce((a, b) => a + b, 0)
+          .toFixed(2)
+      )
     },
     },
     getVfyKey_hs(index, bool = true) {
     getVfyKey_hs(index, bool = true) {
       return [
       return [