This commit is contained in:
caolc
2022-04-22 14:53:23 +08:00
parent 2b72b9be8c
commit 1f04fa9733
5 changed files with 60 additions and 29 deletions

View File

@@ -55,11 +55,11 @@
</view> -->
<view class="margin-bottom-sm">
油机单价
<text class="fr">{{orderItem.sitePrice|| orderItem.price | UnitPriceFormat}} / {{orderItem.oilProductType=='GAS'?'KG':'L'}}</text>
<text class="fr">{{orderItem.sitePrice|| orderItem.price | UnitPriceFormat}} / {{orderItem.oilProductType=='GAS'?'L':'L'}}</text>
</view>
<view class="margin-bottom-sm">
{{ orderItem.oilProductType=='GAS'?'加气重量':'加油升数' }}
<text class="fr">{{orderItem.volume|numberFormats}} {{orderItem.oilProductType=='GAS'?'KG':'L'}}</text>
{{ orderItem.oilProductType=='GAS'?'加气升数':'加油升数' }}
<text class="fr">{{orderItem.volume|numberFormats}} {{orderItem.oilProductType=='GAS'?'L':'L'}}</text>
</view>
<view class="margin-bottom-sm" v-if="orderSource=='mpxoil'">
油机总价
@@ -183,7 +183,7 @@
},
filters:{
company(e){
if(e) return e=='GAS'?'KG':'L';
if(e) return e=='GAS'?'L':'L';
},
},
computed: {
@@ -454,7 +454,8 @@
// if( _that.zeyiType == 1){
// return value
// }
let number = Number(value.toString().match(/^\d+(?:\.\d{0,2})?/))
// let number = Number(value.toString().match(/^\d+(?:\.\d{0,2})?/))
let number = Number(value).toFixed(2)
return number
} else {
return '0.00'