| | |
| | | (function(vc,vm){ |
| | | |
| | | vc.extends({ |
| | | propTypes: { |
| | | emitReloadFee:vc.propTypes.string |
| | | }, |
| | | data:{ |
| | | propertyPayInfo:{ |
| | | cycles:'', |
| | |
| | | receivedAmount:'0.00', |
| | | remark:'', |
| | | feeId:'', |
| | | feeTypeCd:'', |
| | | builtUpArea:'', |
| | | squarePrice:'', |
| | | additionalAmount:'', |
| | |
| | | watch:{ |
| | | "propertyPayInfo.cycles":{//深度监听,可监听到对象、数组的变化 |
| | | handler(val, oldVal){ |
| | | vc.component.propertyPayInfo.receivableAmount = (parseFloat(vc.component.propertyPayInfo.builtUpArea) |
| | | vc.component.propertyPayInfo.receivableAmount = ((parseFloat(vc.component.propertyPayInfo.builtUpArea) |
| | | * parseFloat(vc.component.propertyPayInfo.squarePrice) |
| | | + parseFloat(vc.component.propertyPayInfo.additionalAmount)) * parseFloat(val); |
| | | + parseFloat(vc.component.propertyPayInfo.additionalAmount)) * parseFloat(val)).toFixed(2); |
| | | vc.component.propertyPayInfo.receivedAmount = vc.component.propertyPayInfo.receivableAmount; |
| | | }, |
| | | deep:true |
| | |
| | | |
| | | $('#propertyPayModel').modal('show'); |
| | | vc.component.propertyPayInfo.feeId = _params.feeId; |
| | | vc.component.propertyPayInfo.feeTypeCd = _params.feeTypeCd; |
| | | vc.component.propertyPayInfo.builtUpArea = _params.builtUpArea; |
| | | vc.component.propertyPayInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | |
| | | vc.component.loadPropertyConfigFee(); |
| | | }); |
| | | }, |
| | | methods:{ |
| | |
| | | if(res.status == 200){ |
| | | //关闭model |
| | | $('#propertyPayModel').modal('hide'); |
| | | vc.emit('propertyFee','listFeeDetail',propertyPayInfo); |
| | | vc.emit('propertyFee','listFeeDetail',vc.component.propertyPayInfo); |
| | | vc.emit($props.emitReloadFee,'reloadFee',vc.component.propertyPayInfo); |
| | | return ; |
| | | } |
| | | vc.message(json); |
| | | }, |
| | | function(errInfo,error){ |
| | | console.log('请求失败处理'); |
| | | |
| | | vc.message(errInfo); |
| | | }); |
| | | }, |
| | |
| | | remark:'', |
| | | builtUpArea:'', |
| | | feeId:'', |
| | | feeTypeCd:'', |
| | | squarePrice:'', |
| | | additionalAmount:'', |
| | | communityId:'' |
| | | }; |
| | | vc.component.loadPropertyConfigFee(); |
| | | |
| | | |
| | | }, |
| | | //加载配置数据 |
| | |
| | | var param = { |
| | | params:{ |
| | | communityId:vc.getCurrentCommunity().communityId, |
| | | configId:'' |
| | | feeTypeCd: vc.component.propertyPayInfo.feeTypeCd, |
| | | configId:'', |
| | | } |
| | | }; |
| | | vc.http.get( |