四川中石油卡券列表:增加搜索类型-中油优途卡券

ymt-dev
游梦婷 7 months ago
parent fc19b1bab9
commit c06c05ca65
  1. 19
      src/app/admin/coupon/printer-list/printer-list.component.html
  2. 2
      src/app/pipes/api-coupon/sc-printer.pipe.ts

@ -13,6 +13,7 @@
<nz-select nzShowSearch nzAllowClear formControlName="type"> <nz-select nzShowSearch nzAllowClear formControlName="type">
<nz-option nzLabel="四川中石油" [nzValue]=1></nz-option> <nz-option nzLabel="四川中石油" [nzValue]=1></nz-option>
<nz-option nzLabel="贵州中石油" [nzValue]=2></nz-option> <nz-option nzLabel="贵州中石油" [nzValue]=2></nz-option>
<nz-option nzLabel="中油优途卡券" [nzValue]=4></nz-option>
</nz-select> </nz-select>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
@ -32,14 +33,14 @@
<span>共计 {{total}} 条数据</span> <span>共计 {{total}} 条数据</span>
<nz-table #basicTable [nzData]="requestData"> <nz-table #basicTable [nzData]="requestData">
<thead> <thead>
<tr> <tr>
<th>编码</th> <th>编码</th>
<th>名称</th> <th>名称</th>
<th>面额</th> <th>面额</th>
<th>库存</th> <th>库存</th>
<th>类型</th> <th>类型</th>
<th>有效天数</th> <th>有效天数</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let data of basicTable.data"> <tr *ngFor="let data of basicTable.data">
@ -49,8 +50,6 @@
<td>{{ data.qty}}</td> <td>{{ data.qty}}</td>
<td>{{ data.bizType | scPrinter}}</td> <td>{{ data.bizType | scPrinter}}</td>
<td>{{ data.validDate}}</td> <td>{{ data.validDate}}</td>
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>

@ -6,7 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core';
export class ScPrinterPipe implements PipeTransform { export class ScPrinterPipe implements PipeTransform {
transform(value: number): unknown { transform(value: number): unknown {
switch (value) { switch (Number(value)) {
case 4001: case 4001:
return '油品券'; return '油品券';
case 4002: case 4002:

Loading…
Cancel
Save