<ion-header>
    <ion-navbar>
        <ion-title></ion-title>
        <ion-buttons end>
            <button (click)="openHistory()" class="history">
                <span>审核记录</span>
            </button>
        </ion-buttons>
    </ion-navbar>
</ion-header>

<ion-content>
    <div>
        <ion-item>
            <ion-label class="item-left">法定代表人:</ion-label>
            <ion-label class="choose">
                {{detailObj.companyVO?.representativePerson || "-"}}
            </ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">住所:</ion-label>
            <ion-label class="choose">
                {{detailObj.representativePersonVO?.residence || "-"}}
            </ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">经费来源:</ion-label>
            <ion-label class="choose">
                {{detailObj.representativePersonVO?.fundingSources || "-"}}
            </ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">开办资金:</ion-label>
            <ion-label class="choose">
                {{detailObj.representativePersonVO?.startFunds || "-"}}
            </ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">举办单位:</ion-label>
            <ion-label class="choose">
                {{detailObj.representativePersonVO?.hostUnit || "-"}}
            </ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">有效期:</ion-label>
            <ion-label class="choose">
                {{detailObj.representativePersonVO?.effectiveTime || "-"}}
            </ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">宗旨和业务范围:</ion-label>
            <ion-label class="choose">
                {{detailObj.representativePersonVO?.businessRange || "-"}}
            </ion-label>
        </ion-item>
    </div>
    <div class="space"></div>
    <div class="flowDetail">
        <ion-item *ngIf="itemInfo.flow == '1'">
            <ion-label class="item-left">事业单位法人设立登记(备案)申请书</ion-label>
            <ion-label (click)="openDetail1()" class="choose">详情</ion-label>
        </ion-item>
        <ion-item *ngIf="itemInfo.flow == '1'">
            <ion-label class="item-left">事业单位法定代表人(负责人)履历表</ion-label>
            <ion-label (click)="openDetail2()" class="choose">详情</ion-label>
        </ion-item>
        <ion-item *ngIf="itemInfo.flow == '2'">
            <ion-label class="item-left">变更登记</ion-label>
            <ion-label (click)="openDetail3()" class="choose">详情</ion-label>
        </ion-item>
        <ion-item *ngIf="itemInfo.flow == '3'">
            <ion-label class="item-left">事业单位法人注销登记(备案)申请书</ion-label>
            <ion-label (click)="openDetail4()" class="choose">详情</ion-label>
        </ion-item>
        <ion-item *ngIf="itemInfo.flow == '4'">
            <ion-label class="item-left">事业单位法人证书补领申请书</ion-label>
            <ion-label (click)="openDetail5()" class="choose">详情</ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">附件材料</ion-label>
            <ion-label (click)="viewFile()" class="choose">详情</ion-label>
        </ion-item>
    </div>
    <div class="space"></div>
    <div class="handle" *ngIf="type != 'db'">
        <ion-item>
            <ion-label class="item-left">选择当前业务办理对应批文</ion-label>
            <ion-label (click)="openApproval()" class="choose">选择</ion-label>
        </ion-item>
        <ion-item>
            <ion-label class="item-left">受理意见</ion-label>
            <ion-select [(ngModel)]="submitObj.flag" interface="action-sheet" placeholder="选择受理意见" okText="确定"
                        cancelText="取消">
                <ion-option value="1">符合条件</ion-option>
                <ion-option value="0">不符合条件</ion-option>
            </ion-select>
        </ion-item>
        <ng-container *ngIf="itemInfo?.type == 2 && area.name =='市属' ">
            <div class="item-box">
                <div class="left">是否委托登记:</div>
                <div class="right">
                    <input [(ngModel)]="submitObj.flag" value="1" type="radio" name="register"/>是
                    <input [(ngModel)]="submitObj.flag" value="0" type="radio" name="register"/>否
                </div>
            </div>
            <ion-item>
                <ion-label class="item-left">委托登记类型</ion-label>
                <ion-select interface="action-sheet" placeholder="选择委托登记类型" okText="确定" cancelText="取消">
                    <ion-option value="11">银行</ion-option>
                    <ion-option value="12">国家税务局</ion-option>
                    <ion-option value="13">海关</ion-option>
                </ion-select>
            </ion-item>
        </ng-container>
        <div class="item-box">
            <div class="left">回复:</div>
            <div class="right">
                <ion-textarea [(ngModel)]="submitObj.opinion"></ion-textarea>
            </div>
        </div>
    </div>

    <button *ngIf="type != 'db'" class="submit-btn submit" (click)="sureSubmit()">确定</button>
</ion-content>
