<!--请求数据前loading框==开始-->
<div ng-show="isAsk" class="maskBox" id="maskBox" ng-class="{'default-maskBox': isDefault, 'white-maskBox': isWhite}">
    <div class="proBox"></div>
</div>

<div class="modal fade" id="leijiTipModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog tip-dialog">
        <div class="modal-content tip-content">
            <div class="modal-header tip-header">
                <button type="button" class="close tip-close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title tip-title" id="myModalLabel">投票规则提示</h4>
            </div>
            <div class="modal-body">
                <p class="detail-tip">
                    1、通过
                    <strong>多个股东账户分别投票</strong>的，以
                    <strong>第一次有效投票结果为准</strong>；
                </p>
                <p class="detail-tip">2、可能存在因多开股东账户导致的参考可投票数与实际可投票数不符情况，
                    <strong>超过实际可投票数会造成投票无效</strong>，可登录中国证券登记结算官网（http://www.chinaclear.cn/）股东大会网络投票界面确认实际可投票数量。
                </p>
            </div>
            <div class="modal-footer text-center tip-footer">
                <button type="button" class="btn btn-info" data-dismiss="modal">我知道了</button>
            </div>
        </div>
    </div>
</div>

<!--请求数据前loading框==结束-->
<div class="left">
    <a ui-sref="votePage({stkcode: voteDetail[0].base_security_id})" class="back">&lt;&lt;&nbsp;返回</a>
</div>
<div class="container" id="voteTable" data-ng-init="load()">
    <form class="form-horizontal" id="form" name="fm" ng-submit="voteResult()">
        <!--非累积投票-->
        <div class="table-responsive tableResponsive" ng-class="{'default-table-scroll': isDefault, 'white-table-scroll': isWhite}" style="overflow: scroll;" ng-show="oVote" id="oVote">
            <table class="table table-bordered text-center" ng-class="{'default-table': isDefault, 'white-table': isWhite}">
                <thead class="tableHeader">
                    <tr class="text-left voteTitle">
                        <td colspan="4" class="bg-info bgInfo">非累积投票</td>
                    </tr>
                    <tr>
                        <th>议案编号</th>
                        <th>公司简称</th>
                        <th>议案名称</th>
                        <th>表决意见</th>
                    </tr>
                </thead>
                <tbody class="tableBody">
                    <tr class="voteCon" ng-repeat="ovoted in ovoteDetail">
                        <td ng-style="{'text-indent': ovoted.dealvid.indexOf('.00') > 0 ? '0' : '2em'}">
                            {{ovoted.voting_proposal_code}}
                        </td>
                        <td>{{ovoted | ab}}</td>
                        <td>{{ovoted.voting_prososal_desc}}</td>
                        <td>
                            <div class="chooseIdea" id="chooseIdea">
                                <div>
                                    <input ng-click="isDot(ovoted.voting_proposal_code)" type="radio" name="{{$index}}" id="agree{{$index}}" class="idea" ng-model="idea[$index]"
                                        value="1">
                                    <label for="agree{{$index}}" class="ideaText">同意</label>
                                </div>
                                <div>
                                    <input ng-click="isDot(ovoted.voting_proposal_code)" type="radio" name="{{$index}}" id="oppose{{$index}}" class="idea" ng-model="idea[$index]"
                                        value="2">
                                    <label for="oppose{{$index}}" class="ideaText">反对</label>
                                </div>
                                <div>
                                    <input ng-click="isDot(ovoted.voting_proposal_code)" type="radio" name="{{$index}}" id="abstention{{$index}}" class="idea" ng-model="idea[$index]"
                                        value="3">
                                    <label for="abstention{{$index}}" class="ideaText">弃权</label>
                                </div>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!--累积投票-->
        <div class="table-responsive tableResponsive" ng-class="{'default-table-scroll': isDefault, 'white-table-scroll': isWhite}" style="overflow: scroll;" ng-show="cVote" id="cVote">
            <table class="table table-bordered text-center" ng-class="{'default-table': isDefault, 'white-table': isWhite}">
                <thead class="tableHeader">
                    <tr class="text-left voteTitle">
                        <td colspan="4" class="bg-info bgInfo">
                            <span class="leji-txt">累积投票</span>
                            <img class="leji-tip" src="../stock/img/tip.png" alt="" ng-click="lejiTip()">
                        </td>
                    </tr>
                    <tr>
                        <th>议案编号</th>
                        <th>公司简称</th>
                        <th>议案名称</th>
                        <th>投票数</th>
                    </tr>
                </thead>
                <tbody class="tableBody">
                    <tr class="voteCon" ng-repeat="cvoted in cvoteDetail">
                        <td ng-style="{'text-indent': cvoted.voting_proposal_code.indexOf('.00') > 0 ? '0' : '2em'}">
                            {{cvoted.voting_proposal_code}}
                        </td>
                        <td>{{cvoted | ab}}</td>
                        <td>{{cvoted.voting_prososal_desc}}</td>
                        <td>
                            <!--以cvoted.vleijino进行双向绑定-->
                            <!-- <span ng-show="cvoted.vid | textShow" class="voteText">参考可投票数：
                                <span ng-model="cvoted.qty" class="votenumTotal">
                                    <input class="voteInputText" disabled type="text" ng-model="cvoted.remainVote">
                                </span>
                            </span> -->
                            <span ng-show="cvoted.voting_proposal_code | textShow" class="voteText">
                                <span class="numTxt">参考可投票数：</span>
                                <span ng-model="cvoted.qty" class="votenumTotal">
                                    <input class="voteInputText" disabled type="text" ng-model="cvoted.cankaoVote">
                                </span>
                            </span>
                            <span ng-show="cvoted.voting_proposal_code | textShow" class="total-votenum voteText">
                                <span class="numTxt">投票总数：</span>
                                <span ng-model="cvoted.qty" class="votenumTotal">
                                    <!-- <input class="voteInputText" disabled type="text" ng-model="cvoted.remainVote"> -->
                                    <input class="voteInputText" disabled type="text" ng-model="cvoted.voteSum">
                                </span>
                            </span>
                            <input type="text" id="voteNum" ng-change="getNum(cvoted.vid)" ng-model="cvoted.qty" value="{{cvoted.qty}}" ng-show="cvoted.voting_proposal_code | inputShow"
                                class="voteNum" onfocus="if(this.value == '0') this.value='';" onkeyup="value=value.replace(/^([^0-9]*)(?:0(?=[1-9]))?([1-9][0-9]*|0|)(([^0-9]*)([0-9]*))*$/,'$2')"
                                ng-disabled="errorMsg" min="0" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="bottom">
            <div class="resetBtn">
                <button type="button" class="btn" id="resetData" ng-click="reset()">重置</button>
            </div>
            <div class="submitBtn col-sm-offset-3">
                <button type="submit" id="submitData" class="btn" ng-disabled="isRepeat">提交</button>
            </div>
        </div>
    </form>
</div>
<!--提交数据前loading框==开始-->
<div ng-show="isSubmit" class="maskBox" id="maskBox1">
    <div class="progressBox">
        <div class="proboxTitle text-center">投票提交中......</div>
        <div class="progress">
            <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="{{valuenow}}" aria-valuemin="0"
                aria-valuemax="{{valuemax}}" ng-style="{width: (valuenow/valuemax)*100 + '%'}">
                {{valuenow +'/'+valuemax}}
            </div>
        </div>
    </div>
</div>
<!--提交数据前loading框==结束-->

<!--警告框-->
<prompt-dir></prompt-dir>

<!--提交模态框-->
<submit-modal></submit-modal>

<!-- 新增tip框 -->
<new-tip-modal></new-tip-modal>