This commit is contained in:
1107302052
2022-03-18 00:34:45 +08:00
parent b49480ef7b
commit bdd3b9cc3b
3 changed files with 19 additions and 5 deletions

View File

@ -126,13 +126,12 @@
<sf #sf4 [schema]="schema4" [formData]="sf4data" [button]="'none'" [ui]="ui4">
<ng-template sf-template="freightPrice" let-i let-ui="ui">
<nz-input-group [nzAddOnAfter]="addOnAfterTemplate">
<nz-input-number [ngModel]="i.value" (ngModelChange)="i.setValue($event)" [nzMin]="1" style="width: 100%"></nz-input-number>
<nz-input-number [nzMax]="99999" [nzMin] ="0" nzPlaceHolder="请输入" type="number" [ngModel]="i.value"
(ngModelChange)="i.setValue($event)" [nzPrecision]="2" style="width: 100%;"></nz-input-number>
</nz-input-group>
<ng-template #addOnAfterTemplate>
<nz-select [ngModel]="sf4.value.freightType" (ngModelChange)="sf4.setValue('/freightType', $event)">
<nz-option nzLabel="元/吨" nzValue="1"></nz-option>
<nz-option nzLabel="元/方" nzValue="2"></nz-option>
<nz-option nzLabel="元/车" nzValue="3"></nz-option>
<nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of freightTypeOptions"> </nz-option>
</nz-select>
</ng-template>
</ng-template>