星油云站更新
This commit is contained in:
@@ -1,58 +1,56 @@
|
||||
// 可供选择的订单
|
||||
// 开票列表
|
||||
<template>
|
||||
<view class="cu-item radius shadow margin-bottom ">
|
||||
<view class="cu-item showboxisngs radius shadow margin-bottom ">
|
||||
<view class="cu-avatar text-sl" :style="'background-image:url('+baseURL+'static/img/qr-icon.png)'"></view>
|
||||
<!-- <image class="pay-status" :src="baseURL+'static/img/oil-unfinished.png'" alt /> -->
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='3'" :style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='4'||item.sourceType==='6'" :style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='5'" :style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view>
|
||||
<!-- <view class="cu-avatar text-sl" v-if="item.createSource==='3'" :style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.createSource==='4'||item.createSource==='6'" :style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.createSource==='5'" :style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view> -->
|
||||
<view class="content">
|
||||
<view class=" solid-bottom padding-bottom-sm">
|
||||
<view class="flex-treble" @tap="copyId(item.orderID)">
|
||||
{{item.orderID}}<text class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
</text>
|
||||
<view class="flex-treble" @tap="copyId(item.orderSerialNumber)">
|
||||
{{item.orderSerialNumber}}<text class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-sub text-right cuIcon-right" @tap="toDetails(item.orderID)">
|
||||
<view class="flex-sub text-right cuIcon-right" @tap="toDetails(item.id)">
|
||||
</view>
|
||||
</view>
|
||||
<view class=" text-content text-df">
|
||||
<text class="lin-h-2">
|
||||
{{item.oilSiteName}}
|
||||
{{item.siteName}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="text-sm " @tap="toDetails(item.orderID)">
|
||||
<view class="text-sm " @tap="toDetails(item.id)">
|
||||
<view class="flex">
|
||||
<view class="details">
|
||||
<view class="top1 text-left">
|
||||
<image class="icon icon-desc " :src="baseURL+'static/img/oil-lf.png'" alt />
|
||||
|
||||
<text class="padding-left-xs padding-right-sm">
|
||||
{{item.oilName}}
|
||||
{{item.oilsCode}}
|
||||
</text>
|
||||
<text class=" text-lg text-bold text-red " v-if="item.vol">
|
||||
{{item.vol|numberFilter}} L</text>
|
||||
<text class=" text-lg text-bold text-red " v-if="item.volume">
|
||||
{{item.volume|numberFilter}} {{item.oilProductType=='GAS'?'KG':'L'}}</text>
|
||||
|
||||
</view>
|
||||
<view class="bottom text-left">
|
||||
<image class="icon icon-desc " :src="baseURL+'static/img/oil-time.png'" alt />
|
||||
|
||||
<text class="padding-left-xs">
|
||||
{{item.createDatetime.substring(0, 10)}}
|
||||
{{item.createTime}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="bottom text-left">
|
||||
<image class="icon icon-desc " :src="baseURL+'static/img/mini-car.png'" alt />
|
||||
|
||||
<text class="padding-left-xs">
|
||||
加油车牌: {{item.carNo|plateFilter}}
|
||||
加油车牌: {{item.plateNumber|plateFilter}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-top-sm flex justify-between" @tap="toDetails(item.orderID)">
|
||||
<view class="margin-top-sm flex justify-between" @tap="toDetails(item.id)">
|
||||
<view class="text-gray text-df">
|
||||
{{item.createDatetime.substring(0,19)}}
|
||||
{{item.createTime}}
|
||||
</view>
|
||||
<view>
|
||||
<text class="text-red text-lg text-bold total-money">¥{{amount|numberFilter}}</text>
|
||||
@@ -103,10 +101,12 @@
|
||||
},
|
||||
computed: {
|
||||
istate() {
|
||||
// console.log()
|
||||
// console.log(this.item)
|
||||
let orderType = uni.getStorageSync('orderType')
|
||||
if (orderType == 1) {
|
||||
console.log(this.item.istate)
|
||||
switch (parseInt(this.item.istate)) {
|
||||
// console.log(this.item.orderStatus)
|
||||
switch (parseInt(this.item.orderStatus)) {
|
||||
// 网页版 0:待支付, 1:已支付 ,-1:支付失败 ,-2:退款,
|
||||
//小程序 1:待支付, 1:已支付 ,-1:支付失败 ,2:已取消,3:已退款
|
||||
case 1:
|
||||
@@ -121,15 +121,17 @@
|
||||
return -2
|
||||
}
|
||||
} else {
|
||||
return this.item.istate
|
||||
return this.item.orderStatus
|
||||
}
|
||||
},
|
||||
amount(){
|
||||
let orderType = uni.getStorageSync('orderType')
|
||||
if (orderType == 1) {
|
||||
return this.item.sitePrice*this.item.vol
|
||||
let pyMoney = this.item.sitePriceAmount,
|
||||
realMoney = (Math.round(pyMoney * 100) / 100).toFixed(2)
|
||||
return realMoney
|
||||
}else{
|
||||
return this.item.realamount
|
||||
return this.item.sitePriceAmount
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -181,11 +183,15 @@
|
||||
}
|
||||
},
|
||||
numberFilter(value) {
|
||||
value = value - 1 + 1
|
||||
return value.toFixed(2)
|
||||
// let number = (Math.round(value * 100) / 100).toFixed(2)
|
||||
if(value){
|
||||
let number = (Math.round(value * 100) / 100).toFixed(2)
|
||||
return number
|
||||
}
|
||||
},
|
||||
formatStr(value) {
|
||||
let orderType = uni.getStorageSync('orderType')
|
||||
console.log(value)
|
||||
switch (parseInt(value)) {
|
||||
// 0:待支付, 1:已支付 ,-1:支付失败 ,-2:退款,
|
||||
case 1:
|
||||
@@ -206,6 +212,9 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.showboxisngs{
|
||||
padding-left: 30rpx !important;
|
||||
}
|
||||
.lin-h-2 {
|
||||
line-height: 2.6rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user