1
This commit is contained in:
@@ -492,7 +492,7 @@
|
|||||||
v-if="order.orderStatus == OrderStatusEnum.COMPLETED.value && order.isComment == 0 && order.receiptStatus != 30">
|
v-if="order.orderStatus == OrderStatusEnum.COMPLETED.value && order.isComment == 0 && order.receiptStatus != 30">
|
||||||
<view class="btn-item" @click="handleTargetEquipment(order.equipmentId)">查看电池</view>
|
<view class="btn-item" @click="handleTargetEquipment(order.equipmentId)">查看电池</view>
|
||||||
<view class="btn-item" @click="handleHireEquipment(order.orderId)"
|
<view class="btn-item" @click="handleHireEquipment(order.orderId)"
|
||||||
v-if="equipmentGoods.equipmentCategory != '10' && !orderEnd">我要续费</view>
|
v-if="equipmentGoods.equipmentCategory != '10' && !orderEnd && order.orderId >= 28804">我要续费</view>
|
||||||
<view class="btn-item" @click="handleRentingOut(order)"
|
<view class="btn-item" @click="handleRentingOut(order)"
|
||||||
v-if="equipmentGoods.equipmentCategory != '10' && order.receiptStatus != 21">我要退租</view>
|
v-if="equipmentGoods.equipmentCategory != '10' && order.receiptStatus != 21">我要退租</view>
|
||||||
<view class="btn-item" @click="handleRentingOut(order)"
|
<view class="btn-item" @click="handleRentingOut(order)"
|
||||||
@@ -683,15 +683,15 @@
|
|||||||
app.orderPrice = order.equipmentGoods.batteryRent
|
app.orderPrice = order.equipmentGoods.batteryRent
|
||||||
}
|
}
|
||||||
// 计算逾期
|
// 计算逾期
|
||||||
if (order.expirationTime) {
|
// if (order.expirationTime) {
|
||||||
const setTime = new Date(order.expirationTime);
|
// const setTime = new Date(order.expirationTime);
|
||||||
const nowTime = new Date();
|
// const nowTime = new Date();
|
||||||
const restSec = setTime.getTime() - nowTime.getTime();
|
// const restSec = setTime.getTime() - nowTime.getTime();
|
||||||
// 剩余天数
|
// // 剩余天数
|
||||||
const day = parseInt(restSec / (60 * 60 * 24 * 1000));
|
// const day = parseInt(restSec / (60 * 60 * 24 * 1000));
|
||||||
console.log("逾期天数: ", Math.abs(day));
|
// console.log("逾期天数: ", Math.abs(day));
|
||||||
order.expirationDay = day
|
// order.expirationDay = day
|
||||||
}
|
// }
|
||||||
// 读取历史续费订单
|
// 读取历史续费订单
|
||||||
app.getRenewOrder()
|
app.getRenewOrder()
|
||||||
app.isLoading = false
|
app.isLoading = false
|
||||||
@@ -720,14 +720,14 @@
|
|||||||
app.orderEnd = true
|
app.orderEnd = true
|
||||||
}
|
}
|
||||||
// 计算逾期
|
// 计算逾期
|
||||||
res.data.map((d, index) => {
|
// res.data.map((d, index) => {
|
||||||
const setTime = new Date(d.expirationTime);
|
// const setTime = new Date(d.expirationTime);
|
||||||
const nowTime = new Date(d.payTime);
|
// const nowTime = new Date(d.payTime);
|
||||||
const restSec = setTime.getTime() - nowTime.getTime();
|
// const restSec = setTime.getTime() - nowTime.getTime();
|
||||||
// 剩余天数
|
// // 剩余天数
|
||||||
const day = parseInt(restSec / (60 * 60 * 24 * 1000));
|
// const day = parseInt(restSec / (60 * 60 * 24 * 1000));
|
||||||
app.renewOrderList[index].expirationDay = day
|
// app.renewOrderList[index].expirationDay = day
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
<block
|
<block
|
||||||
v-if="item.orderStatus == OrderStatusEnum.COMPLETED.value && item.isComment == 0 && item.receiptStatus != 30">
|
v-if="item.orderStatus == OrderStatusEnum.COMPLETED.value && item.isComment == 0 && item.receiptStatus != 30">
|
||||||
<view class="btn-item" @click="handleTargetDetail(item.orderId)"
|
<view class="btn-item" @click="handleTargetDetail(item.orderId)"
|
||||||
v-if="item.equipmentGoods.equipmentCategory != '10' && !orderEnd">我要续费 </view>
|
v-if="item.equipmentGoods.equipmentCategory != '10' && !orderEnd && item.orderId >= 28804">我要续费 </view>
|
||||||
|
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user