版本1.3.4
This commit is contained in:
@@ -8,14 +8,10 @@
|
||||
|
||||
</view>
|
||||
<view class="text-center margin-top icon-container">
|
||||
<view class="cu-avatar xl round text-sl" v-if="orderItem.sourceType===3"
|
||||
:style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-else-if="orderItem.sourceType===4||orderItem.sourceType===6"
|
||||
:style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-else-if="orderItem.sourceType===5"
|
||||
:style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-else
|
||||
:style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-if="orderItem.sourceType===3" :style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-else-if="orderItem.sourceType===4||orderItem.sourceType===6" :style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-else-if="orderItem.sourceType===5" :style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view>
|
||||
<view class="cu-avatar xl round text-sl" v-else :style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
</view>
|
||||
<view class="radius margin margin-top bg-white padding-top padding">
|
||||
<!-- sourceType 万金油3 老吕5 星油4/6 -->
|
||||
@@ -25,38 +21,52 @@
|
||||
<view class="margin padding">
|
||||
<view class="text-lg text-center" v-if="orderSource=='zy'">{{orderItem.istate|formatZyStr}}</view>
|
||||
<view class="text-lg text-center" v-else>{{istate|formatStr}}</view>
|
||||
<view class="number text-xl text-center oil-main-color">¥{{orderItem.realamount|numberFormat}}
|
||||
<view class="number text-xl text-center oil-main-color">¥{{displayMoney|numberFormat}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="margin-bottom-sm" @tap="copyId(orderItem.userName,'加油司机')">
|
||||
<view class="margin-bottom-sm" @tap="copyId(orderItem.driverID,'司机编号')">
|
||||
司机编号
|
||||
<text class="fr">{{orderItem.driverID}}<text :class="orderItem.driverID?'cuIcon-copy':''" class="flex-sub padding-left-sm text-right text-lg text-red">
|
||||
</text></text>
|
||||
</view>
|
||||
<view class="margin-bottom-sm">
|
||||
加油司机
|
||||
<text class="fr">{{orderItem.userName}}<text
|
||||
class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
</text></text>
|
||||
<view class="fr">
|
||||
<text>{{orderItem.userName|nameFilter}}</text> <text class="padding-left-sm">{{orderItem.carNo|plateFilter}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="margin-bottom-sm" @tap="copyId(orderItem.carNo,'司机车牌')">
|
||||
<!-- <view class="margin-bottom-sm" @tap="copyId(orderItem.carNo,'司机车牌')">
|
||||
司机车牌
|
||||
<text class="fr">{{orderItem.carNo}}<text
|
||||
class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
<text class="fr">{{orderItem.carNo?orderItem.carNo:'暂无'}}<text :class="orderItem.carNo?'cuIcon-copy':''" class="flex-sub padding-left-sm text-right text-lg text-red">
|
||||
</text></text>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="margin-bottom-sm">
|
||||
油枪油号
|
||||
<text class="fr">{{orderItem.bar}}号枪{{orderItem.oilName||orderItem.oilCode}}</text>
|
||||
</view>
|
||||
<view class="margin-bottom-sm">
|
||||
<!-- <view class="margin-bottom-sm">
|
||||
加油总金额
|
||||
<text
|
||||
class="fr">¥{{orderItem.amount?orderItem.amount:(orderItem.xoilDiscountAmount+orderItem.realamount)|numberFormat}}</text>
|
||||
</view> -->
|
||||
<view class="margin-bottom-sm">
|
||||
油机单价
|
||||
<text class="fr">¥{{orderItem.sitePrice||orderItem.price}} / 升</text>
|
||||
</view>
|
||||
<view class="margin-bottom-sm">
|
||||
加油升数
|
||||
<text class="fr">{{orderItem.vol|numberFormat}} 升</text>
|
||||
</view>
|
||||
<view class="margin-bottom-sm" v-if="orderItem.xoilDiscountAmount">
|
||||
<view class="margin-bottom-sm" v-if="orderSource=='mpxoil'">
|
||||
油机总价
|
||||
<text class="fr">¥{{displayMoney|numberFormat}}</text>
|
||||
</view>
|
||||
|
||||
<!-- <view class="margin-bottom-sm" v-if="orderItem.xoilDiscountAmount">
|
||||
星卡优惠
|
||||
<text class="fr">¥ {{(orderItem.xoilDiscountAmount)|numberFormat}}</text>
|
||||
</view>
|
||||
@@ -67,11 +77,11 @@
|
||||
<view class="margin-bottom-sm">
|
||||
优惠券
|
||||
<text class="fr">{{orderItem.coupon|couponFormat}}</text>
|
||||
</view>
|
||||
<view class="margin-bottom-sm">
|
||||
</view> -->
|
||||
<!-- <view class="margin-bottom-sm">
|
||||
实扣款
|
||||
<text class="fr oil-main-color">¥ {{orderItem.realamount|numberFormat}}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="radius bg-white margin padding ">
|
||||
|
||||
@@ -93,8 +103,7 @@
|
||||
<view class="radius bg-white margin margin-bottom-0 padding">
|
||||
<view class="margin-bottom-sm" @tap="copyId(orderItem.orderID,'订单号')">
|
||||
订单号
|
||||
<text class=" fr">{{orderItem.orderID}}<text
|
||||
class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
<text class=" fr">{{orderItem.orderID}}<text class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
</text></text>
|
||||
|
||||
</view>
|
||||
@@ -150,6 +159,14 @@
|
||||
this.clearStatus()
|
||||
},
|
||||
computed: {
|
||||
displayMoney(){
|
||||
if(this.orderSource=='mpxoil'){
|
||||
return this.orderItem.sitePrice*this.orderItem.vol
|
||||
}else{
|
||||
// return this.orderItem.price*this.orderItem.vol
|
||||
return this.orderItem.realamount
|
||||
}
|
||||
},
|
||||
istate() {
|
||||
let orderType = uni.getStorageSync('orderType')
|
||||
if (orderType == 1) {
|
||||
@@ -243,15 +260,18 @@
|
||||
})
|
||||
},
|
||||
copyId(id, name) {
|
||||
uni.setClipboardData({
|
||||
data: id,
|
||||
success: () => {
|
||||
uni.showToast({
|
||||
title: name + '已复制',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
if (id) {
|
||||
uni.setClipboardData({
|
||||
data: id,
|
||||
success: () => {
|
||||
uni.showToast({
|
||||
title: name + '已复制',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
getOrderDetail() {
|
||||
cloudSiteApi.getSiteOrderById(this.orderId).then(res => {
|
||||
@@ -263,6 +283,22 @@
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
nameFilter(value) {
|
||||
if (value) {
|
||||
var arr = value.split('')
|
||||
arr[1] = "*"
|
||||
return arr.join('')
|
||||
}
|
||||
},
|
||||
plateFilter(value) {
|
||||
if (value) {
|
||||
const numBegin = value.substring(0, 2);
|
||||
const numEnd = value.substring(5);
|
||||
return numBegin + '***' + numEnd;
|
||||
}else{
|
||||
return '暂无'
|
||||
}
|
||||
},
|
||||
formatZyStr(value) {
|
||||
switch (parseInt(value)) {
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user