Commit dab50110 authored by youjie's avatar youjie

修复bug

parent 5c78fd49
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment