| | |
| | | |
| | | vc.extends({ |
| | | propTypes: { |
| | | callBackComponent:vc.propTypes.string |
| | | callBackComponent:vc.propTypes.string, |
| | | callBackFunction:vc.propTypes.string |
| | | }, |
| | | data:{ |
| | | parkingSpaceInfo:{ |
| | | flowComponent:'viewSelectParkingSpace', |
| | | parkingSpaceFlag:'', |
| | | num:'', |
| | | typeCd:'', |
| | | area:'', |
| | | state:'', |
| | | stateName:'', |
| | | remark:'', |
| | | areaNum:'', |
| | | psId:'' |
| | | } |
| | | }, |
| | |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('viewSelectParkingSpace','chooseParkingSpace',function(_parkingSpace){ |
| | | vc.component.parkingSpaceInfo = _parkingSpace; |
| | | vc.emit($props.callBackComponent,'notify',_parkingSpace); |
| | | vc.copyObject(_parkingSpace, vc.component.parkingSpaceInfo); |
| | | vc.emit($props.callBackComponent,$props.callBackFunction,vc.component.parkingSpaceInfo); |
| | | vc.emit('hireParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo); |
| | | vc.emit('sellParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo); |
| | | }); |
| | | |
| | | }, |
| | |
| | | vc.emit('searchParkingSpace','openSearchParkingSpaceModel',{}); |
| | | }, |
| | | loadParkingSpaceData:function(){ |
| | | vc.component.parkingSpaceInfo.psId = vc.getParam("psId"); |
| | | vc.component.parkingSpaceInfo.name = vc.getParam("name"); |
| | | vc.component.parkingSpaceInfo.age = vc.getParam("age"); |
| | | vc.component.parkingSpaceInfo.sex = vc.getParam("sex"); |
| | | vc.component.parkingSpaceInfo.userName = vc.getParam("userName"); |
| | | vc.component.parkingSpaceInfo.link = vc.getParam("link"); |
| | | |
| | | vc.component.parkingSpaceInfo.psId = vc.getParam("psId"); |
| | | vc.component.parkingSpaceInfo.num = vc.getParam("num"); |
| | | vc.component.parkingSpaceInfo.area = vc.getParam("area"); |
| | | vc.component.parkingSpaceInfo.state = vc.getParam("state"); |
| | | vc.component.parkingSpaceInfo.areaNum = vc.getParam("areaNum"); |
| | | vc.component.parkingSpaceInfo.typeCd = vc.getParam("typeCd"); |
| | | if(vc.notNull(vc.getParam("psId"))){ |
| | | vc.component.parkingSpaceInfo.parkingSpaceFlag='ParkingSpace'; |
| | | vc.emit('hireParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo); |
| | | vc.emit('sellParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo); |
| | | } |
| | | if(vc.component.parkingSpaceInfo.psId != ''){ |
| | | vc.emit($props.callBackComponent,'notify',vc.component.parkingSpaceInfo); |
| | | } |