wuxw
2019-11-21 59ce81c19b75e3e6cdc6a3a65d49ec11e27b0a06
WebService/src/main/resources/components/parkingSpacePackage/view-select-parkingSpace/viewSelectParkingSpace.js
@@ -5,14 +5,17 @@
    vc.extends({
        propTypes: {
            callBackComponent:vc.propTypes.string
            callBackComponent:vc.propTypes.string,
            callBackFunction:vc.propTypes.string
        },
        data:{
            parkingSpaceInfo:{
                flowComponent:'viewSelectParkingSpace',
                num:'',
                typeCd:'',
                area:'',
                state:'',
                stateName:'',
                remark:'',
                psId:''
            }
@@ -23,8 +26,10 @@
        },
        _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);
            });
        },