From a807027c02b82e1e928ea115b1599ce33f852e96 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Fri, 14 Jul 2023 16:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A9=E7=9B=8A=E5=B1=95=E7=A4=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=85=B3=E4=BA=8E=E5=B9=B4=E5=BA=A6=E7=BA=A2=E5=88=A9?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=BB=A5=E5=8F=8A=E7=B4=AF=E8=AE=A1=E7=BA=A2?= =?UTF-8?q?=E5=88=A9=E5=B1=95=E7=A4=BA=E5=9B=9B=E8=88=8D=E4=BA=94=E5=85=A5?= =?UTF-8?q?=E5=B1=95=E7=A4=BA2=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/proposal/ProposalInfo.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue index adcd1178c..2d34a5e42 100644 --- a/src/views/ebiz/proposal/ProposalInfo.vue +++ b/src/views/ebiz/proposal/ProposalInfo.vue @@ -199,7 +199,11 @@
{{ moneyItem.contentLabel }}
-
+
+ {{ moneyItem.value | numFormat2 }}{{ moneyItem.content | productRateUnit }} +
+
{{ moneyItem.value | numFormatNo }}{{ moneyItem.content | productRateUnit }}
@@ -395,6 +399,13 @@ export default { numFormat(str) { return str.replace(/\.00/, '') }, + numFormat2(str) { + if (str) { + return Number(str.replace(/,/g, '')).toFixed(2) + } else { + return '-' + } + }, numFormatNo(str) { if (str) { return Number(str.replace(/,/g, '')).toFixed(0)