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

<!--请求数据前loading框==结束-->
<div class="back-div">
    <a ui-sref="votePage({stkcode: voteDetail[0].stkcode})" class="back" ng-if="ifFillIput">&lt;&lt;&nbsp;返回</a>
    <a ui-sref="votePage" class="back" ng-if="!ifFillIput">&lt;&lt;&nbsp;返回</a>
    <span style="margin-left: 20px;">证券代码：</span>
    <span>{{voteDetail[0].stkcode}}&nbsp;&nbsp;{{voteDetail[0].companyinfo}}</span>
    <span style="margin-left: 20px;">股票余额：</span>
    <span class="numTxt">{{stkbal}}</span>
</div>
<div class="container" id="voteTable" data-ng-init="load()">
    <form class="form-horizontal" id="form" name="fm" ng-submit="voteResult()">
        <!--非累积投票-->
        <div ng-show="oVote">
            <p class="vote-title">非累积投票</p>
            <div class="table-responsive tableResponsive" ng-class="{'default-table-scroll': isDefault, 'white-table-scroll': isWhite}" style="overflow: scroll;" id="oVote">
                <table class="table table-bordered text-center" ng-class="{'default-table': isDefault, 'white-table': isWhite}">
                    <thead class="tableHeader">
                        <tr>
                            <th width="90">议案编号</th>
                            <th width="90">公司简称</th>
                            <th width="17%">议案名称</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.vid}}
                            </td>
                            <td>{{ovoted.companyinfo}}</td>
                            <td>{{ovoted.vinfo}}</td>
                            <td>
                                <div class="total-votenum-div" ng-show="ovoted.vid | textShow"></div>
                                <div ng-show="inputShowP(ovoted.vid, ovoteDetail)">
                                    <span class="voteText">
                                        <span>赞成：</span>
                                        <input type="text" id="voteNum" ng-model="ovoted.ZCqty" value="{{ovoted.ZCqty}}" class="voteNum" onfocus="if(this.value == '0') this.value='';" oninput="value=value == '' ? '' : parseInt(value.replace(/[^\d]/g,''))" min="0" />
                                    </span>
                                    <span class="voteText">
                                        <span>反对：</span>
                                        <input type="text" id="voteNum" ng-model="ovoted.FDqty" value="{{ovoted.FDqty}}" class="voteNum" onfocus="if(this.value == '0') this.value='';" oninput="value=value == '' ? '' : parseInt(value.replace(/[^\d]/g,''))" min="0" />
                                    </span>
                                    <span class="voteText">
                                        <span>弃权：</span>
                                        <input type="text" id="voteNum" ng-model="ovoted.QQqty" value="{{ovoted.QQqty}}" class="voteNum" onfocus="if(this.value == '0') this.value='';" oninput="value=value == '' ? '' : parseInt(value.replace(/[^\d]/g,''))" min="0" />
                                    </span>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!--累积投票-->
        <div ng-show="cVote">
            <p class="vote-title">累积投票</p>
            <div class="table-responsive tableResponsive" ng-class="{'default-table-scroll': isDefault, 'white-table-scroll': isWhite}" style="overflow: scroll;" id="cVote">
                <table class="table table-bordered text-center" ng-class="{'default-table': isDefault, 'white-table': isWhite}">
                    <thead class="tableHeader">
                        <tr>
                            <th width="90">议案编号</th>
                            <th width="90">公司简称</th>
                            <th width="17%">议案名称</th>
                            <th>投票数</th>
                        </tr>
                    </thead>
                    <tbody class="tableBody">
                        <tr class="voteCon" ng-repeat="cvoted in cvoteDetail">
                            <td ng-style="{'text-indent': cvoted.vid.indexOf('.00') > 0 ? '0' : '2em'}">
                                {{cvoted.vid}}
                            </td>
                            <td>{{cvoted.companyinfo}}</td>
                            <td>{{cvoted.vinfo}}</td>
                            <td>
                                <div class="total-votenum-div" ng-show="cvoted.vid | textShow">
                                    <span class="voteText">
                                        <span>累积投票乘数：</span>
                                        <span class="numTxt">{{cvoted.vleijino ? cvoted.vleijino : '--'}}</span>
                                    </span>
                                </div>
                                <div ng-show="cvoted.vid | inputShowL">
                                    <span class="voteText">
                                        <span>赞成：</span>
                                        <input type="text" id="voteNum" ng-model="cvoted.ZCqty" value="{{cvoted.ZCqty}}" class="voteNum" onfocus="if(this.value == '0') this.value='';" oninput="value=value == '' ? '' : parseInt(value.replace(/[^\d]/g,''))" min="0" />
                                    </span>
                                    <span class="voteText">
                                        <span>反对：</span>
                                        <input type="text" id="voteNum" ng-model="cvoted.FDqty" value="{{cvoted.FDqty}}" class="voteNum" onfocus="if(this.value == '0') this.value='';" oninput="value=value == '' ? '' : parseInt(value.replace(/[^\d]/g,''))" min="0" />
                                    </span>
                                    <span class="voteText">
                                        <span>弃权：</span>
                                        <input type="text" id="voteNum" ng-model="cvoted.QQqty" value="{{cvoted.QQqty}}" class="voteNum" onfocus="if(this.value == '0') this.value='';" oninput="value=value == '' ? '' : parseInt(value.replace(/[^\d]/g,''))" min="0" />
                                    </span>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </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>

<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>

<!-- 提示框 -->
<tip-dir></tip-dir>

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