edit
This commit is contained in:
@ -15,16 +15,8 @@
|
||||
<div nz-row nzGutter="8">
|
||||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
||||
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
||||
<sf
|
||||
#sf
|
||||
[schema]="schema"
|
||||
[ui]="ui"
|
||||
[mode]="'search'"
|
||||
[disabled]="!sf?.valid"
|
||||
[loading]="service.http.loading"
|
||||
(formSubmit)="st?.load(1)"
|
||||
(formReset)="resetSF()"
|
||||
></sf>
|
||||
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" [loading]="service.http.loading"
|
||||
(formSubmit)="st?.load(1)" (formReset)="resetSF()"></sf>
|
||||
</div>
|
||||
|
||||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
||||
@ -33,7 +25,8 @@
|
||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)">查询</button>
|
||||
<button nz-button nzType="primary">导出</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
@ -46,36 +39,28 @@
|
||||
</nz-card>
|
||||
|
||||
<nz-card class="content-box">
|
||||
<st
|
||||
#st
|
||||
[scroll]="{ x: '2000px' }"
|
||||
[data]="service.$api_networkTransporter_page"
|
||||
[columns]="columns"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[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"
|
||||
(change)="stChange($event)"
|
||||
>
|
||||
<ng-template st-row="electronicInvoiceAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="etcAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="electronicContractAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="bankName" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="virtualAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
|
||||
</ng-template>
|
||||
<st #st [scroll]="{ x: '2000px' }" [data]="service.$api_networkTransporter_page" [columns]="columns"
|
||||
[req]="{ params: reqParams }" [loading]="service.http.loading" (change)="stChange($event)">
|
||||
<ng-template st-row="electronicInvoiceAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="etcAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="electronicContractAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="bankName" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="virtualAccount" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="财务设置" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="财务设置" (nzOnOk)="handleOK()"
|
||||
(nzOnCancel)="handleCancel()">
|
||||
<ng-container *nzModalContent>
|
||||
<sf #sfFre [schema]="addSchema" [ui]="ui2" [formData]="formData" [compact]="false" [button]="'none'"> </sf>
|
||||
</ng-container>
|
||||
@ -85,12 +70,14 @@
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisibleTicket" [nzFooter]="nzModalFooterTiket" nzTitle="票务设置" (nzOnCancel)="handleCancelTicket()">
|
||||
<nz-modal [(nzVisible)]="isVisibleTicket" [nzFooter]="nzModalFooterTiket" nzTitle="票务设置"
|
||||
(nzOnCancel)="handleCancelTicket()">
|
||||
<ng-container *nzModalContent>
|
||||
<sf #sfTicket [schema]="ticketSchema" [ui]="ui3" [formData]="formDataTicket" [compact]="false" [button]="'none'"> </sf>
|
||||
<sf #sfTicket [schema]="ticketSchema" [ui]="ui3" [formData]="formDataTicket" [compact]="false" [button]="'none'">
|
||||
</sf>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterTiket>
|
||||
<button nz-button nzType="primary" (click)="handleCancelTicket()" [disabled]="">取消</button>
|
||||
<button nz-button nzType="default" (click)="handleOKTicket()">确 定</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
</nz-modal>
|
||||
Reference in New Issue
Block a user