wuxw лет назад: 7
Родитель
Сommit
cebc50ae82
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      WebService/src/main/resources/components/property-pay/propertyPay.js

+ 4 - 6
WebService/src/main/resources/components/property-pay/propertyPay.js

@@ -17,12 +17,10 @@
         watch:{
         watch:{
             "propertyPayInfo.cycles":{//深度监听,可监听到对象、数组的变化
             "propertyPayInfo.cycles":{//深度监听,可监听到对象、数组的变化
                 handler(val, oldVal){
                 handler(val, oldVal){
-                    vc.component.propertyPayInfo.receivableAmount = vc.component.propertyPayInfo.builtUpArea
-                                                                    * vc.component.propertyPayInfo.squarePrice
-                                                                    + vc.component.propertyPayInfo.additionalAmount;
-                    vc.component.propertyPayInfo.receivedAmount = vc.component.propertyPayInfo.builtUpArea
-                                                                  * vc.component.propertyPayInfo.squarePrice
-                                                                  + vc.component.propertyPayInfo.additionalAmount;
+                    vc.component.propertyPayInfo.receivableAmount = (parseFloat(vc.component.propertyPayInfo.builtUpArea)
+                                                                    * parseFloat(vc.component.propertyPayInfo.squarePrice)
+                                                                    + parseFloat(vc.component.propertyPayInfo.additionalAmount)) * parseFloat(val);
+                    vc.component.propertyPayInfo.receivedAmount = vc.component.propertyPayInfo.receivableAmount;
                 },
                 },
                 deep:true
                 deep:true
             }
             }