Commit dab50110 authored by youjie's avatar youjie

修复bug

parent 5c78fd49
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
}} }}
</td> </td>
<td> <td>
{{ item.VisaPrice | priceFormat2(item.VisaPrice) }}(-{{ {{ item.VisaPrice }}(-{{
item.BackVisaPrice | priceFormat(item.BackVisaPrice) item.BackVisaPrice | priceFormat(item.BackVisaPrice)
}}) }})
</td> </td>
...@@ -596,9 +596,29 @@ ...@@ -596,9 +596,29 @@
x1 = x1.replace(rgx, '$1' + ',' + '$2') x1 = x1.replace(rgx, '$1' + ',' + '$2')
} }
return x1 + x2 return x1 + x2
} },
}, },
methods: { 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) { DeleteTravelTeam(item) {
var that = this; 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