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

ymt-dev
游梦婷 7 months ago
parent fc19b1bab9
commit c06c05ca65
  1. 3
      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-option nzLabel="四川中石油" [nzValue]=1></nz-option>
<nz-option nzLabel="贵州中石油" [nzValue]=2></nz-option>
<nz-option nzLabel="中油优途卡券" [nzValue]=4></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
@ -49,8 +50,6 @@
<td>{{ data.qty}}</td>
<td>{{ data.bizType | scPrinter}}</td>
<td>{{ data.validDate}}</td>
</tr>
</tbody>
</nz-table>

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

Loading…
Cancel
Save