<div nz-row class="breadcrumbs">
    <div nz-col nzSpan="16">
        <nz-breadcrumb class="padding-8-0">
            <nz-breadcrumb-item>
                首页
            </nz-breadcrumb-item>
            <nz-breadcrumb-item>
                <a>信息化项目</a>
            </nz-breadcrumb-item>
            <nz-breadcrumb-item>
                合同管理
            </nz-breadcrumb-item>
        </nz-breadcrumb>
    </div>
    <div nz-col nzSpan="8" class="text-right">
        <button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
        <smart-full-screen></smart-full-screen>
    </div>
</div>
<div nz-row [nzGutter]="4" class="search-form">
    <div nz-col nzSpan="3">
        <button (click)="handleOpenModal()"
                nz-button nzType="default"><i class="anticon anticon-plus-circle-o"></i>新增合同管理
        </button>
    </div>
    <div nz-col nzSpan="4">
        <input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.projectName"
               placeholder="项目名称">
    </div>
    <div nz-col nzSpan="4">
        <input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.projectNumber"
               placeholder="项目编号">
    </div>
    <div nz-col nzSpan="4">
        <button (click)="search()"
                nz-button nzType="default"><i class="anticon anticon-search"></i>搜索
        </button>
    </div>
</div>
<nz-table #nzTable [nzData]="page.list" [nzLoading]="page.isLoading" [nzFrontPagination]="false"
          [nzTotal]="page.totalNum"
          [nzPageIndex]="page.pageNum" [nzPageSize]="page.pageCount" (nzPageIndexChange)="change($event)">
    <thead>
    <tr>
        <th>合同编号</th>
        <th>合同名称</th>
        <th>合同类型</th>
        <th>合同状态</th>
        <th>合同金额</th>
        <th>关联项目</th>
        <th>承建方（乙方）</th>
        <th>乙方责任人</th>
        <th>签订日期</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of nzTable.data">
        <td>{{data.contractNo}}</td>
        <td>{{data.contractName}}</td>
        <td>{{data.contarctType}}</td>
        <td>{{data.contractStatus}}</td>
        <td>{{data.contractAmount}}</td>
        <td>关联项目</td>
        <td>{{data.partyb}}</td>
        <td>{{data.partybPrincipal}}</td>
        <td>{{data.createTime | date:'yyyy-MM-dd'}}</td>
        <td class="handle main-color">
            <span (click)="handleEdit(data)">编辑</span>
            <span (click)="handleDelete(data)">删除</span>
        </td>
    </tr>
    </tbody>
</nz-table>
