Bläddra i källkod

修改物业费用收费明细显示问题

wuxw 7 år sedan
förälder
incheckning
2cc6a0ac38

+ 1 - 1
Api/src/main/java/com/java110/api/listener/fee/QueryFeeDetailListener.java

@@ -69,7 +69,7 @@ public class QueryFeeDetailListener extends AbstractServiceApiDataFlowListener {
      */
     private void validateFeeConfigData(JSONObject reqJson) {
         Assert.jsonObjectHaveKey(reqJson, "communityId", "请求中未包含communityId信息");
-        Assert.jsonObjectHaveKey(reqJson, "feeTypeCd", "请求中未包含feeTypeCd信息");
+        Assert.jsonObjectHaveKey(reqJson, "feeId", "请求中未包含feeId信息");
 
 
     }

+ 1 - 1
WebService/src/main/java/com/java110/web/smo/impl/FeeServiceSMOImpl.java

@@ -190,7 +190,7 @@ public class FeeServiceSMOImpl extends BaseComponentSMO implements IFeeServiceSM
 
         JSONObject paramIn = JSONObject.parseObject(pd.getReqData());
         Assert.hasLength(paramIn.getString("communityId"), "小区ID不能为空");
-        Assert.hasLength(paramIn.getString("feeId"), "房屋ID不能为空");
+        Assert.hasLength(paramIn.getString("feeId"), "费用ID不能为空");
     }
 
     /**

+ 1 - 0
WebService/src/main/resources/components/property-fee/propertyFee.js

@@ -18,6 +18,7 @@
         },
         _initEvent:function(){
             vc.on('propertyFee','listFeeDetail',function(_param){
+                  vc.component.feeDetailInfo.feeId = _param.feeId;
                   vc.component.listFeeDetail();
             });
 

+ 11 - 5
WebService/src/main/resources/components/property-pay/propertyPay.js

@@ -10,14 +10,19 @@
                 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 = 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;
                 },
                 deep:true
             }
@@ -32,7 +37,7 @@
                 $('#propertyPayModel').modal('show');
                 vc.component.propertyPayInfo.feeId = _params.feeId;
                 vc.component.propertyPayInfo.builtUpArea = _params.builtUpArea;
-                vc.component.addRoomInfo.communityId = vc.getCurrentCommunity().communityId;
+                vc.component.propertyPayInfo.communityId = vc.getCurrentCommunity().communityId;
             });
         },
         methods:{
@@ -128,7 +133,8 @@
                                              builtUpArea:'',
                                              feeId:'',
                                              squarePrice:'',
-                                             additionalAmount:''
+                                             additionalAmount:'',
+                                             communityId:''
                                          };
                 vc.component.loadPropertyConfigFee();