From dab501108cd6bc8b78baf4e924a2be57814659e7 Mon Sep 17 00:00:00 2001 From: youjie <2310721242@qq.com> Date: Fri, 11 Apr 2025 17:01:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TravelTeam/travelTeamList.vue | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/TravelManager/TravelTeam/travelTeamList.vue b/src/components/TravelManager/TravelTeam/travelTeamList.vue index 5a5185731..17d25ccfc 100644 --- a/src/components/TravelManager/TravelTeam/travelTeamList.vue +++ b/src/components/TravelManager/TravelTeam/travelTeamList.vue @@ -406,7 +406,7 @@ }} </td> <td> - {{ item.VisaPrice | priceFormat2(item.VisaPrice) }}(-{{ + {{ item.VisaPrice }}(-{{ item.BackVisaPrice | priceFormat(item.BackVisaPrice) }}) </td> @@ -596,9 +596,29 @@ x1 = x1.replace(rgx, '$1' + ',' + '$2') } return x1 + x2 - } + }, + }, methods: { + priceFormat2(value) { + if (value == null) { + return this.$t('objFill.yibaohan'); + } + let nStr = value.toFixed(2) + nStr += ''; + let x = nStr.split('.'); + let x1 = x[0]; + let x2 = x.length > 1 ? '.' + x[1] : ''; + var rgx = /(\d+)(\d{3})/; + while (rgx.test(x1)) { + x1 = x1.replace(rgx, '$1' + ',' + '$2'); + } + let result = x1 + x2 + if (result === '0.00') { + result = this.$t('objFill.yibaohan') + } + return result; + }, //åˆ é™¤åŒ…æœºå›¢ DeleteTravelTeam(item) { var that = this; -- 2.18.1