wuxw
2019-06-02 cebc50ae8295dd24e2fd5ba0d4d236459a5190a3
WebService/src/main/resources/components/property-pay/propertyPay.js
@@ -10,14 +10,17 @@
                feeId:'',
                builtUpArea:'',
                squarePrice:'',
                additionalAmount:''
                additionalAmount:'',
                communityId:''
            }
        },
        watch:{
            "propertyPayInfo.cycles":{//深度监听,可监听到对象、数组的变化
                handler(val, oldVal){
                    vc.component.propertyPayInfo.receivableAmount = builtUpArea* squarePrice + additionalAmount;
                    vc.component.propertyPayInfo.receivedAmount = builtUpArea* squarePrice + 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
            }
@@ -31,7 +34,8 @@
                $('#propertyPayModel').modal('show');
                vc.component.propertyPayInfo.feeId = _params.feeId;
                vc.component.addRoomInfo.communityId = vc.getCurrentCommunity().communityId;
                vc.component.propertyPayInfo.builtUpArea = _params.builtUpArea;
                vc.component.propertyPayInfo.communityId = vc.getCurrentCommunity().communityId;
            });
        },
        methods:{
@@ -127,7 +131,8 @@
                                             builtUpArea:'',
                                             feeId:'',
                                             squarePrice:'',
                                             additionalAmount:''
                                             additionalAmount:'',
                                             communityId:''
                                         };
                vc.component.loadPropertyConfigFee();