@@ -13,14 +13,16 @@
< text class = "order-time" > { { item . merchantName } } < / text >
< / view >
< view class = "item-top-right" >
< text class = "state-text" v-if = "item.order Status == 4 0" > 已完成 < / text >
< text class = "state-text" v-else-if = "item.pay Status == 1 0" > 待支付 < / text >
< text class = "state-text"
v-else -if = "item.pa yStatus == 20 && item.receiptStatus == 10 " > 待绑定 < / text >
< text class = "state-text"
v-else-if = "item.orderStatus == 30 && item.receiptStatus == 20 " > 进行中 < / text >
< text class = "state-text" v-else-if = "item.receiptStatus == 21" > 进行中 < / text >
< text class = "state-text" v-if = "item.pay Status == 1 0" > 待支付 < / text >
< text class = "state-text" v-else-if = "item.order Status == 4 0" > 已完成 < / text >
< view v-if = "item.orderStatus == 30 && item.payStatus == 20" >
< text class = "state-text" v-if = "item.deliver yStatus == DeliveryStatusEnum.DELIVERED.value " > 待绑定 < / text >
< text class = "state-text" v-else-if = "item.deliveryStatus == DeliveryStatusEnum.NOT_DELIVERED.value" > 待收货 < / text >
< ! - - < text class = "state-text" v-else-if = "item.receiptStatus == 21 " > 进行中 < / text > - - >
< text class = "state-text" v-else > 已绑定 < / text >
< / view >
< text class = "state-text" v-if = "item.payStatus == 20 && item.receiptStatus == 21" > 进行中 < / text >
< / view >
< / view >
< ! - - 商品列表 - - >
@@ -46,8 +48,7 @@
< text class = "twoline-hide"
v-if = "item.orderStatus == 30" > 到期时间 : {{ item.expirationTime }} < / text >
< text class = "twoline-hide" v-else > 下单时间 : {{ item.payTime }} < / text >
< text class = "twoline-hide"
v-if = "item.orderStatus == 30" > 设备编号 : {{ item.equipment.equipmentCode }} < / text >
< text class = "twoline-hide" > 设备编号 : { { item . equipment . equipmentCode ? item . equipment . equipmentCode : '' } } < / text >
< text class = "twoline-hide" > 设备名称 : { { item . equipmentGoods . goodsName } } < / text >
< text class = "twoline-hide" > 设备型号 : { { item . equipmentGoods . batteryModel } } < / text >
< text class = "twoline-hide yuqi-text" v-if = "item.payStatus == 10 && item.expirationDay < 0" > 逾期状态 :
@@ -55,11 +56,6 @@
< text class = "twoline-hide yuqi-text"
v-if = "item.payStatus == 10 && item.expirationDay < 7 && item.expirationDay > 0" > 逾期状态 : 即将过期 < / text >
< / view >
< view class = "goods-props clearfix" >
<!-- < view class = "goods-props-item" >
< text > props . value . name < / text >
< / view > -- >
< / view >
< / view >
< ! - - 交易信息 - - >
<!-- < view class = "goods-trade" >
@@ -89,12 +85,8 @@
< / block >
< ! - - 已支付进行中的订单 - - >
< block v-if = "item.orderStatus != OrderStatusEnum.APPLY_CANCEL.value" >
< ! - - < block v-if = "item.payStatus == PayStatusEnum.SUCCESS.value && item.deliveryStatus == DeliveryStatusEnum.NOT_DELIVERED.value" >
< view class = "btn-item" @click ="onCancel(item.orderId)" > 申请取消 < / view >
< / block > - - >
< ! - - 订单核销码 - - >
< block v-if = "item.payStatus == PayStatusEnum.SUCCESS.value && item.deliveryType == DeliveryTypeEnum.EXTRACT.value
&& item.deliveryStatus == DeliveryStatusEnum.NOT_DELIVERED.value">
< block v-if = "item.payStatus == PayStatusEnum.SUCCESS.value && item.deliveryType == DeliveryTypeEnum.EXTRACT.value && item.deliveryStatus == DeliveryStatusEnum.NOT_DELIVERED.value" >
< view class = "btn-item active" @click ="onExtractQRCode(item.orderId)" >
< text class = "iconfont icon-qr-extract" > < / text >
< text class = "m-l-10" > 核销码 < / text >
@@ -108,20 +100,22 @@
< view class = "btn-item active" @click ="onPay(item.orderId)" > 去支付 < / view >
< / block >
< ! - - 确认收货 - - >
< block
v-if="item.payStatus == PayStatusEnum.SUCCESS.value && item.deliveryStatus == DeliveryStatusEnum.NOT_DELIVERED.value && item.receiptStatus == ReceiptStatusEnum.NOT_RECEIVED.valu e">
<view class="btn-item active"
< block v-if = "item.payStatus == PayStatusEnum.SUCCESS.value && item.deliveryStatus == DeliveryStatusEnum.NOT_DELIVERED.value" >
< ! - - < view class = "btn-item activ e"
v-if = "(item.orderSourceData && JSON.parse(item.orderSourceData).length == 5) || item.equipmentGoods.equipmentCategory == '10'"
@click="onBind(item)">绑定设备</view>
< view class= "btn-item active" v-else @click="onReceipt(item.orderId)">确认收货</view>
@click ="onBind(item)"> 绑定设备 < / view > - - >
< view class= "btn-item active" @click ="onReceipt(item.orderId)"> 确认收货 < / view >
< / block >
< block v-if = "item.orderStatus == 30 && item.payStatus == PayStatusEnum.SUCCESS.value && item.deliveryStatus == DeliveryStatusEnum.DELIVERED.value" >
< view class = "btn-item active" @click ="onBind(item)" > 绑定设备 < / view >
< / block >
< ! - - 订单评价 - - >
< block v-if = "item.orderStatus == OrderStatusEnum.COMPLETED.value && item.isComment == 0" >
< view class= "btn-item" v-if= "item.equipmentGoods.equipmentCategory == '40'"
< view class= "btn-item" v-if= "item.equipmentGoods.equipmentCategory == '40' && item.deliveryStatus == DeliveryStatusEnum.ACCEPT.value"
@click ="handleChangeEquipment(item.orderId,item.equipment.equipmentId)" > 换电 < / view >
< ! - - < view class = "btn-item" v-if = "item.equipmentGoods.equipmentCategory == '锂电池租赁' || item.equipmentGoods.equipmentCategory == '电动车租赁'" @click="handleTargetDetail(item.orderId)" > 续费 < / view > - - >
<view class="btn-item" @click="handleTargetDetail(item.orderId)">详情</view>
< / block >
< view class = "btn-item" @click ="handleTargetDetail(item.orderId)" > 详情 < / view >
< block
v-if = "item.orderStatus == OrderStatusEnum.COMPLETED.value && item.isComment == 0 && item.receiptStatus != 30" >
< view class = "btn-item" @click ="handleTargetDetail(item.orderId)"
@@ -198,9 +192,9 @@
addOrder ,
getOrderPayByOrderId
} from '@/websoft/api/order.js'
import {
/* import {
bindEquipment
} from '@/websoft/api/equipment.js'
} from '@/websoft/api/equipment.js' */
import {
uploadFile
} from '@/websoft/api/upload.js'
@@ -548,7 +542,7 @@
equipment ,
bindValue
} = this
bindEquipment({
EquipmentApi . bindEquipment( {
equipmentCode : bindValue ,
orderId : equipment . orderId
} ) . then ( result => {
@@ -744,8 +738,8 @@
font - size : 26 rpx ;
vertical - align : bottom ;
text - align : right ;
height : 5 0rpx ;
padding - top : 2 0rpx ;
height : 8 0rpx ;
padding - top : 6 0rpx ;
margin - bottom : 30 rpx ;
. unit {