From c06c05ca6582e41bb64526ba1e364cbb9748c05f Mon Sep 17 00:00:00 2001 From: youmengting <2080639302@qq.com> Date: Mon, 8 Apr 2024 12:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9B=E5=B7=9D=E4=B8=AD=E7=9F=B3=E6=B2=B9?= =?UTF-8?q?=E5=8D=A1=E5=88=B8=E5=88=97=E8=A1=A8=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=B1=BB=E5=9E=8B-=E4=B8=AD=E6=B2=B9?= =?UTF-8?q?=E4=BC=98=E9=80=94=E5=8D=A1=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../printer-list/printer-list.component.html | 19 +++++++++---------- src/app/pipes/api-coupon/sc-printer.pipe.ts | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/app/admin/coupon/printer-list/printer-list.component.html b/src/app/admin/coupon/printer-list/printer-list.component.html index bcc8a0d..76956a6 100644 --- a/src/app/admin/coupon/printer-list/printer-list.component.html +++ b/src/app/admin/coupon/printer-list/printer-list.component.html @@ -13,6 +13,7 @@ + @@ -32,14 +33,14 @@ 共计 {{total}} 条数据 - - 编码 - 名称 - 面额 - 库存 - 类型 - 有效天数 - + + 编码 + 名称 + 面额 + 库存 + 类型 + 有效天数 + @@ -49,8 +50,6 @@ {{ data.qty}} {{ data.bizType | scPrinter}} {{ data.validDate}} - - diff --git a/src/app/pipes/api-coupon/sc-printer.pipe.ts b/src/app/pipes/api-coupon/sc-printer.pipe.ts index bd45c31..a32b7a5 100644 --- a/src/app/pipes/api-coupon/sc-printer.pipe.ts +++ b/src/app/pipes/api-coupon/sc-printer.pipe.ts @@ -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: