<!--请求数据前loading框==开始-->
<div ng-show="isAsk" class="maskBox" id="maskBox">
   <div class="proBox"></div>
</div>

<!--请求数据前loading框==结束-->
<div class="left">
   <a ui-sref="creVotepage({stkcode: voteDetail[0].companycode})" class="back">&lt;&lt;&nbsp;返回</a>
</div>
<div class="container" id="voteTable" data-ng-init="load()">
    <form class="form-horizontal" ng-submit="voteResult()" id="form">
        <!--非累积投票-->
        <div class="table-responsive" 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.vid}}
                        </td>
                        <td>{{ovoted.companyinfo}}</td>
                        <td>{{ovoted.vinfo}}</td>
                        <td>
                            <div class="chooseIdea" id="chooseIdea">
                                <div>
                                    <input ng-click="isDot(ovoted.vid)" 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.vid)" 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.vid)" 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" 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>
                        </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.vid.indexOf('.00') > 0 ? '0' : '2em'}">
                            {{cvoted.vid}}
                        </td>
                        <td>{{cvoted.companyinfo}}</td>
                        <td>{{cvoted.vinfo}}</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.vid | 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.vid | 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>
                            <!--如果数字前面为0，自动转化成整数，把零去了，如053->53 -->
                            <input type="text" ng-change="getNum(cvoted.vid)" ng-model="cvoted.qty" ng-show="cvoted.vid|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>