<div id="mask-loading" class="mask-loading" ng-if="loading" style="background-color: rgba(0, 0, 0, 0.17);">
    <div class="loading">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
</div>
<div>
    <div class="row"
         style="font-size: 1.3em;border-bottom:1px solid #CCCCCC;font-weight: bold;margin-bottom:10px;padding-top:10px;">
        <div class="col-md-6" style="text-align: left;cursor:pointer;"><a ng-click="goBack()"> << 完成返回</a></div>
        <div class="col-md-6" style="text-align: right;padding-bottom:10px;">搜索结果</div>
    </div>
    <h3 ng-show="specialCardInfo== null&&searchInput!=null">没有找到与 "{{searchInput}}" 相关的信息。</h3>
    <h3 ng-show="searchInput==null">请在快速搜索框中填写身份证号/受理号，查询相关信息。</h3>
    <div style="width: auto">
        <div ng-if="specialCardInfo[0].isGroup==0">

            <div class="panel panel-default" ng-if="specialCardInfo[1]!=null">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[1].cycleSheetInfo}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>编号</th>
                                <th>地市</th>
                                <th>制证类型</th>
                                <th>日期</th>
                                <th>工序</th>
                                <th>操作时间</th>
                                <th>机器号</th>
                                <th>制证车间</th>
                                <th>质检</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[1].info[9]}}</td>
                                    <td>{{specialCardInfo[1].info[14]}}</td>
                                    <td>{{specialCardInfo[1].info[6]}}</td>
                                    <td>{{specialCardInfo[1].info[1]|myDateFilter}}</td>
                                    <td>{{specialCardInfo[1].info[7]}}</td>
                                    <td>{{specialCardInfo[1].info[4]}}</td>
                                    <td>{{specialCardInfo[1].info[16]}}</td>
                                    <td ng-if="specialCardInfo[1].info[2]=='p1'">平一</td>
                                    <td ng-if="specialCardInfo[1].info[2]=='p2'">平二</td>
                                    <td>{{specialCardInfo[1].info[15]}}</td>
                                    <td ng-if="specialCardInfo[1].info[12]!=null">{{specialCardInfo[1].info[12] |
                                        myDateFilter}}
                                    </td>
                                    <td ng-if="specialCardInfo[1].info[13]!=null">{{specialCardInfo[1].info[12] |
                                        myDateFilter}}
                                    </td>
                                    <td ng-if="specialCardInfo[1].info[12]==null"></td>
                                    <td ng-if="specialCardInfo[1].info[13]==null"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <div class="panel panel-default">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[0].database}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>地市</th>
                                <th ng-show="specialCardInfo[0].oldGroupNo!=null">受理号</th>
                                <th>姓名</th>
                                <th ng-show="specialCardInfo[0].makeName!=null">制证类型</th>
                                <th>身份证号</th>
                                <th>性别</th>
                                <th>出生日期</th>
                                <th>签发机关</th>
                                <th>起始有效期</th>
                                <th>终止有效期</th>
                                <th>证件状态</th>
                                <th>上报受理单位</th>
                                <th>证件状态</th>

                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].sbdw}}</td>
                                    <td ng-show="specialCardInfo[0].oldGroupNo!=null">
                                        {{specialCardInfo[0].oldGroupNo}}
                                    </td>
                                    <td>{{specialCardInfo[0].name}}</td>
                                    <td ng-show="specialCardInfo[0].makeType!=null">{{specialCardInfo[0].makeName}}</td>
                                    <td>{{specialCardInfo[0].IDcard}}</td>
                                    <td>{{specialCardInfo[0].xb}}</td>
                                    <td>{{specialCardInfo[0].csrq | myDateFilter}}</td>
                                    <td>{{specialCardInfo[0].jfjg}}</td>
                                    <td>{{specialCardInfo[0].yxqqsrq}}</td>
                                    <td>{{specialCardInfo[0].yxqjzrq}}</td>
                                    <td>{{specialCardInfo[0].state}}</td>
                                    <td>{{specialCardInfo[0].sbdw}}</td>
                                    <td ng-if="specialCardInfo[0].type==0">废证</td>
                                    <td ng-if="specialCardInfo[0].type==1">快证</td>
                                    <td ng-if="specialCardInfo[0].type==2">余证</td>
                                    <td ng-if="specialCardInfo[0].type==3">退证</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>

                        <div class="col-lg-12">
                            <div style="float: right;width: auto">
                                <button ng-if="(specialCardInfo[0].type==99||specialCardInfo[0].type ==0||specialCardInfo[0].type ==2||specialCardInfo[0].type ==4 )&& loginData.state==1"
                                        class="btn btn-primary" id="addBtn"
                                        ng-click="createCycleSheet(specialCardInfo[0].state,specialCardInfo[0].oldGroupNo,specialCardInfo[0].type,specialCardInfo[0].cityCode,specialCardInfo[0].createDate,specialCardInfo[0].makeType)">
                                    添加特证
                                </button>

                                <button ng-if="(specialCardInfo[0].type ==1||specialCardInfo[0].type ==3) && loginData.state==1"
                                        disabled class="btn btn-primary">添加特证
                                </button>

                                <button ng-if="(specialCardInfo[0].type==99||specialCardInfo[0].type ==0||specialCardInfo[0].type ==2||specialCardInfo[0].type ==1|| specialCardInfo[0].type ==4) && loginData.state==1"
                                        class="btn btn-danger" id="returnBtn"
                                        ng-click="returnCard(specialCardInfo[0].oldGroupNo)">退证
                                </button>
                                <button ng-if="specialCardInfo[0].type ==3 && loginData.state==1" disabled
                                        class="btn btn-danger">退证
                                </button>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="panel panel-default" ng-if="specialCardInfo[1].info[11]==1">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        异常信息
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            {{specialCardInfo[1].info[10]}}
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div ng-if="specialCardInfo[0].isGroup==1">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[0].library}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>组号</th>
                                <th>证件类型</th>
                                <th>地域</th>
                                <th>循环单生成时间</th>
                                <th>工序</th>
                                <th>转入制证库时间</th>
                                <th>打印卸载时间</th>
                                <th>电写入时间</th>
                                <th>电质检时间</th>
                                <th>生产车间</th>
                                <th>机器号</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].groupNo}}</td>
                                    <td>{{specialCardInfo[0].info[5]}}</td>
                                    <td>{{specialCardInfo[0].info[5]}}</td>
                                    <td>{{specialCardInfo[0].info[3]}}</td>
                                    <td>{{specialCardInfo[0].info[6]}}</td>
                                    <td>{{specialCardInfo[0].info[7]}}</td>
                                    <td>{{specialCardInfo[0].info[8]}}</td>
                                    <td>{{specialCardInfo[0].info[9]}}</td>
                                    <td>{{specialCardInfo[0].info[10]}}</td>
                                    <td ng-if="specialCardInfo[0].info[12]=='p1'">平一车间</td>
                                    <td ng-if="specialCardInfo[0].info[12]=='p2'">平二车间</td>
                                    <td ng-if="specialCardInfo[0].info[12]==null">未分配</td>
                                    <td>{{specialCardInfo[0].info[11]}}</td>
                                    <td>{{specialCardInfo[0].info[16]| limitTo:8}}</td>
                                    <td>{{specialCardInfo[0].info[17]| limitTo:8}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
            <div class="panel panel-default" ng-if="specialCardInfo[0].info[15]==1">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        异常信息
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            {{specialCardInfo[0].info[14]}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div ng-if="specialCardInfo[0].isGroup==3">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[0].library}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>组号</th>
                                <th>原文件名</th>
                                <th>证件类型</th>
                                <th>循环单生成时间</th>
                                <th>循环单所处工序</th>
                                <th>装库时间</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].groupNo}}</td>
                                    <td>{{specialCardInfo[0].info[12]}}</td>
                                    <td>{{specialCardInfo[0].info[5]}}</td>
                                    <td>{{specialCardInfo[0].info[4]}}</td>
                                    <td>{{specialCardInfo[0].info[6]}}</td>
                                    <td>{{specialCardInfo[0].info[7]}}</td>
                                    <td>{{specialCardInfo[0].info[16]| limitTo:8}}</td>
                                    <td>{{specialCardInfo[0].info[17]| limitTo:8}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
            <div class="panel panel-default" ng-if="specialCardInfo[0].info[15]==1">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        异常信息
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            {{specialCardInfo[0].info[14]}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div ng-if="specialCardInfo[0].isGroup==4">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[0].library}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>循环单流水号</th>
                                <th>组号</th>
                                <th>制证类型</th>
                                <th>时间</th>
                                <th>工序</th>
                                <th>打印机器</th>
                                <th>制证车间</th>
                                <th>质检人</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                <th>异常</th>
                                <th ng-if="specialCardInfo[0].info[12]==1">异常信息</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].info[1]}}</td>
                                    <td>{{specialCardInfo[0].groupNo}}</td>
                                    <td>{{specialCardInfo[0].info[5]}}</td>
                                    <td>{{specialCardInfo[0].info[3]}}</td>
                                    <td>{{specialCardInfo[0].info[6]}}</td>
                                    <td>{{specialCardInfo[0].info[8]}}</td>
                                    <td ng-if="specialCardInfo[0].info[9]=='p1'">平一车间</td>
                                    <td ng-if="specialCardInfo[0].info[9]=='p2'">平二车间</td>
                                    <td ng-if="specialCardInfo[0].info[9]==null">未分配</td>
                                    <td>{{specialCardInfo[0].info[10]}}</td>
                                    <td>{{specialCardInfo[0].info[13] | limitTo:8}}</td>
                                    <td>{{specialCardInfo[0].info[14] | limitTo:8}}</td>
                                    <td ng-if="specialCardInfo[0].info[12]==0">无</td>
                                    <td ng-if="specialCardInfo[0].info[12]==1" style="color:red;">异常</td>
                                    <td ng-if="specialCardInfo[0].info[12]==1">{{specialCardInfo[0].info[11]}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
            <div class="panel panel-default" ng-if="specialCardInfo[0].info[15]==1">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        异常信息
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            {{specialCardInfo[0].info[14]}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div ng-if="specialCardInfo[0].isGroup==5">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[0].library}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>组号</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].groupNo}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div ng-if="specialCardInfo[0].isGroup==6">
            <div class="panel panel-default" ng-if="specialCardInfo[0]!=null">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {{specialCardInfo[0].cycleSheetInfo}}
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>编号</th>
                                <th>地市</th>
                                <th>制证类型</th>
                                <th>日期</th>
                                <!--<th>最后修改日期</th>-->
                                <th>工序</th>
                                <th>操作时间</th>
                                <th>机器号</th>
                                <th>制证车间</th>
                                <th>质检</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].info[9]}}</td>
                                    <td>{{specialCardInfo[0].info[14]}}</td>
                                    <td>{{specialCardInfo[0].info[6]}}</td>
                                    <td>{{specialCardInfo[0].info[1]|myDateFilter}}</td>
                                    <td>{{specialCardInfo[0].info[7]}}</td>
                                    <td>{{specialCardInfo[0].info[4]}}</td>
                                    <td>{{specialCardInfo[0].info[16]}}</td>
                                    <td ng-if="specialCardInfo[0].info[2]=='p1'">平一</td>
                                    <td ng-if="specialCardInfo[0].info[2]=='p2'">平二</td>
                                    <td>{{specialCardInfo[0].info[15]}}</td>
                                    <td ng-if="specialCardInfo[0].info[12]!=null">{{specialCardInfo[1].info[12] |
                                        myDateFilter}}
                                    </td>
                                    <td ng-if="specialCardInfo[0].info[13]!=null">{{specialCardInfo[1].info[12] |
                                        myDateFilter}}
                                    </td>
                                    <td ng-if="specialCardInfo[0].info[12]==null"></td>
                                    <td ng-if="specialCardInfo[0].info[13]==null"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div ng-if="specialCardInfo[0].isGroup==8">
            <!--循环单-->
            <div class="panel panel-default" ng-if="specialCardInfo[0].cyclesheet.length>0">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        循环单
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0 15px 0 15px;">
                            <table class="table">
                                <thead>
                                <th>循环单流水号</th>
                                <th>组号</th>
                                <th>地市</th>
                                <th>制证类型</th>
                                <th>创建日期</th>
                                <th>工序</th>
                                <th>最后修改时间</th>
                                <th>机器号</th>
                                <th>制证车间</th>
                                <th>预定位接收时间</th>
                                <th>质检人</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                <th>异常</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].cyclesheet[0]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[1]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[2]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[3]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[4]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[5]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[6]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[7]}}</td>
                                    <td ng-if="specialCardInfo[0].cyclesheet[8]=='p1'||specialCardInfo[0].cyclesheet[8]=='p3'">
                                        平一
                                    </td>
                                    <td ng-if="specialCardInfo[0].cyclesheet[8]=='p2'||specialCardInfo[0].cyclesheet[8]=='p4'">
                                        平二
                                    </td>
                                    <td>{{specialCardInfo[0].cyclesheet[9]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[10]}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[11] | limitTo:8}}</td>
                                    <td>{{specialCardInfo[0].cyclesheet[12] | limitTo:8}}</td>
                                    <td ng-if="specialCardInfo[0].cyclesheet[14]==0">无</td>
                                    <td ng-if="specialCardInfo[0].cyclesheet[14]==1">
                                        {{specialCardInfo[0].cyclesheet[13]}}
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <!--制证库-->
            <div class="panel panel-default" ng-if="specialCardInfo[0].prod.length>0">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        制证库
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>组号</th>
                                <th>卸载数量</th>
                                <th>卸载日期</th>
                                <th>电写入数量</th>
                                <th>电写入日期</th>
                                <th>质检数量</th>
                                <th>质检日期</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].prod[0]}}</td>
                                    <td>{{specialCardInfo[0].prod[1]}}</td>
                                    <td>{{specialCardInfo[0].prod[2]}}</td>
                                    <td>{{specialCardInfo[0].prod[3]}}</td>
                                    <td>{{specialCardInfo[0].prod[4]}}</td>
                                    <td>{{specialCardInfo[0].prod[5]}}</td>
                                    <td>{{specialCardInfo[0].prod[6]}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>

                    </div>
                </div>
            </div>

            <!--受理库-->
            <div class="panel panel-default" ng-if="specialCardInfo[0].accu.length>0">

                <div class="panel-heading">
                    <h3 class="panel-title">
                        受理库
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0px 15px 0px 15px;">
                            <table class="table">
                                <thead>
                                <th>组号</th>
                                <th>装库日期</th>
                                <th>组号状态</th>
                                <th>合格数</th>
                                <th>不合格数</th>
                                <th>核验日期</th>
                                <th>核验人</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].accu[0]}}</td>
                                    <td>{{specialCardInfo[0].accu[1]}}</td>
                                    <td>{{specialCardInfo[0].accu[2]}}</td>
                                    <td>{{specialCardInfo[0].accu[3]}}</td>
                                    <td>{{specialCardInfo[0].accu[4]}}</td>
                                    <td>{{specialCardInfo[0].accu[5]}}</td>
                                    <td>{{specialCardInfo[0].accu[6]}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div ng-if="specialCardInfo[0].isGroup==11">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        循环单
                    </h3>
                </div>
                <div class="panel-body" style="width: auto">
                    <div class="container" style="width: auto">
                        <div style="float: left;padding:0 15px 0 15px;">
                            <table class="table">
                                <thead>
                                <th>循环单流水号</th>
                                <th>组号</th>
                                <th>证件数量</th>
                                <th>地市</th>
                                <th>制证类型</th>
                                <th>创建日期</th>
                                <th>最后修改日期</th>
                                <th>最后工序</th>
                                <th>机器号</th>
                                <th>制证车间</th>
                                <th>预定位接收时间</th>
                                <th>质检人</th>
                                <th>出库时间</th>
                                <th>入库时间</th>
                                <th>异常</th>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{specialCardInfo[0].cycleSheetID}}</td>
                                    <td>{{specialCardInfo[0].groupNum}}</td>
                                    <td>{{specialCardInfo[0].count}}</td>
                                    <td>{{specialCardInfo[0].cityName}}</td>
                                    <td>{{specialCardInfo[0].makeTypeName}}</td>
                                    <td>{{specialCardInfo[0].createDate}}</td>
                                    <td>{{specialCardInfo[0].lastDate}}</td>
                                    <td>{{specialCardInfo[0].lastProcessName}}</td>
                                    <td>{{specialCardInfo[0].machine}}</td>
                                    <td ng-if="specialCardInfo[0].workShop=='p1'||specialCardInfo[0].workShop=='p3'">
                                        平一
                                    </td>
                                    <td ng-if="specialCardInfo[0].workShop=='p2'||specialCardInfo[0].workShop=='p4'">
                                        平二
                                    </td>
                                    <td>{{specialCardInfo[0].permanentPositionDate}}</td>
                                    <td>{{specialCardInfo[0].qualityinspection}}</td>
                                    <td>{{specialCardInfo[0].outbound}}</td>
                                    <td>{{specialCardInfo[0].putInStorage}}</td>
                                    <td ng-if="specialCardInfo[0].abnormal==0">无</td>
                                    <td ng-if="specialCardInfo[0].abnormal==1">{{specialCardInfo[0].note}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>