<page-header-wrapper [title]="'订单明细'" [logo]="logo">
    <ng-template #logo>
        <button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()">
            <i nz-icon nzType="left" nzTheme="outline"></i>
        </button>
    </ng-template>
</page-header-wrapper>

<nz-card class="statistics-box">
    <div nz-row nzGutter="8">
        <div nz-col [nzXl]="8" [nzLg]="8" [nzSm]="8" [nzXs]="8" se-container [labelWidth]="150" col="1">
            <se label="网络货运人">
                天津怡亚通物流科技有限公司
            </se>
            <se label="申请编号">
                VP2021012010
            </se>
            <se label="已开/全部订单数">
                50/100
            </se>
            <se label="已开/全部发票金额">
                5000.00/10000.00
            </se>
            <se label="网络货运人">
                2
            </se>
        </div>
        <div nz-col [nzXl]="8" [nzLg]="8" [nzSm]="8" [nzXs]="8" se-container [labelWidth]="100" col="1">
            <se label="购买方">
                茅台股份有限公司
            </se>
            <se label="纳税号">
                912301046656930913
            </se>
            <se label="地址">
                贵州省贵阳市
            </se>
            <se label="电话">
                075588393198
            </se>
            <se label="开户行">
                中国工商银行股份有限公司哈贵阳支行
            </se>
            <se label="银行账户">
                3500044119068126788
            </se>
        </div>
        <div nz-col [nzXl]="8" [nzLg]="8" [nzSm]="8" [nzXs]="8" se-container [labelWidth]="100" col="1">
            <se label="服务名称">
                运输服务费
            </se>
            <se label="销货清单">
                需要
            </se>
            <se label="其他要求">
                单位按吨
            </se>
            <se label="票面备注">
                <p style="margin-bottom: 0;margin-top: 5px;">起运地:广东省深圳市南山区</p>
                <p style="margin-bottom: 0;">目的地:湖北省武汉市青山区</p>
                <p style="margin-bottom: 0;">货物名称:钢材</p>
                <p style="margin-bottom: 0;">车型车牌:高栏车 粤B36889</p>
            </se>
        </div>
    </div>
</nz-card>

<nz-card class="search-box" nzBordered>
    <div nz-row nzGutter="8">
        <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
            <sf #sf [schema]="searchSchema"
                [ui]="{ '*': { spanLabelFixed: 90,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
                [button]="'none'"></sf>
        </div>
        <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand"
            class="text-right">
            <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
            <button nz-button (click)="resetSF()">重置</button>
            <button nz-button> 导出</button>
            <button nz-button nzType="link" (click)="expandToggle()">
                {{ !_$expand ? '展开' : '收起' }}
                <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
            </button>
        </div>
    </div>
</nz-card>

<nz-card class="content-box" nzBordered>
    <div class="d-flex align-items-center mb-md">
        <button nz-button (click)="openRequestedModal()">全部开票</button>
        <button nz-button (click)="openRequestedModal()">开票</button>
        <button nz-button (click)="removeOrder()">移除</button>
        <div class="ml-md">
            已选择
            <strong class="text-red">{{ selectedRows.length }}</strong> 条数据&nbsp;&nbsp; 开票金额总计 <strong
                class="text-red">{{
                totalCallNo }}</strong>
            <a *ngIf="totalCallNo > 0" (click)="st.clearCheck()" class="ml-lg">清空</a>
        </div>
    </div>

    <st #st [data]="service.$mock_url" [columns]="columns"
        [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
        [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
        [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
        [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '200px' }" (change)="stChange($event)"></st>
</nz-card>