From 3a0e7de9fd918932c02948c010807814a71a9b68 Mon Sep 17 00:00:00 2001 From: zhuangdashia Date: Mon, 1 Sep 2025 14:42:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E8=AE=A1=E4=BB=B7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=87=91=E9=A2=9D=E5=8A=A0.00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/business/category/index.vue | 11 ++++++++--- .../category/modules/subcategory-operate-drawer.vue | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cds-fontend-2025.V1/src/views/business/category/index.vue b/cds-fontend-2025.V1/src/views/business/category/index.vue index bf8c85b..10e73c7 100644 --- a/cds-fontend-2025.V1/src/views/business/category/index.vue +++ b/cds-fontend-2025.V1/src/views/business/category/index.vue @@ -134,13 +134,18 @@ const { const suffixMap = { 'BIZ030': ' * 交易金额', 'BIZ031': ' * 交易金额', - 'default': ' 元/条' + 'default': '元/条' }; - + let formattedValue; + if(row.typeId !== 'BIZ030' && row.typeId !== 'BIZ031' ){ + formattedValue = parseFloat(row.pricingRule).toFixed(2); + }else{ + formattedValue = row.pricingRule; + } const suffix = suffixMap[row.typeId] || suffixMap.default; return ( - {`${row.pricingRule}${suffix}`} + {`${formattedValue}${suffix}`} ); } diff --git a/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue b/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue index aab53c4..cfba69a 100644 --- a/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue +++ b/cds-fontend-2025.V1/src/views/business/category/modules/subcategory-operate-drawer.vue @@ -149,7 +149,7 @@ watch(visible, () => { :rows="3" placeholder="请输入计价规则说明" > -