分销
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
<text class="state-text" v-if="order.payStatus == 10">待支付</text>
|
||||
<text class="state-text" v-if="order.payStatus == 20 && order.receiptStatus == 10">待绑定</text>
|
||||
<text class="state-text" v-if="order.orderStatus == OrderStatusEnum.COMPLETED.value && order.receiptStatus == 20">已完成</text>
|
||||
<text class="state-text" v-if="order.receiptStatus == 21">退租中</text>
|
||||
<text class="state-text" v-if="order.receiptStatus == 30">已退租</text>
|
||||
<!-- <text>{{ order.stateText }}</text> -->
|
||||
</view>
|
||||
@@ -588,9 +589,11 @@
|
||||
<block 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="handleHireEquipment(order.orderId)"
|
||||
v-if="equipmentGoods.equipmentCategory != '10'">我要续费</view>
|
||||
v-if="equipmentGoods.equipmentCategory != '10' && !orderEnd">我要续费</view>
|
||||
<view class="btn-item" @click="handleRentingOut(order)"
|
||||
v-if="equipmentGoods.equipmentCategory != '10'">我要退租</view>
|
||||
v-if="equipmentGoods.equipmentCategory != '10' && order.receiptStatus != 21">我要退租</view>
|
||||
<view class="btn-item" @click="handleRentingOut(order)"
|
||||
v-if="equipmentGoods.equipmentCategory != '10' && order.receiptStatus == 21 && !orderEnd">取消退租</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
@@ -694,7 +697,8 @@
|
||||
orderPrice2: 0,
|
||||
priceTitle3: '电池保险',
|
||||
orderPrice3: 0,
|
||||
freeTitle: '续费金额'
|
||||
freeTitle: '续费金额',
|
||||
orderEnd: false, // 是否已完成分期
|
||||
}
|
||||
},
|
||||
|
||||
@@ -740,6 +744,7 @@
|
||||
if (result.data.equipment) {
|
||||
app.equipmentId = result.data.equipment.equipmentId
|
||||
}
|
||||
|
||||
// 项目显示
|
||||
app.priceTitle1 = null
|
||||
app.priceTitle2 = null
|
||||
@@ -804,6 +809,9 @@
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
app.renewOrderList = res.data;
|
||||
if(res.data.length >= app.equipmentGoods.periods){
|
||||
app.orderEnd = true
|
||||
}
|
||||
// 计算逾期
|
||||
res.data.map((d, index) => {
|
||||
const setTime = new Date(d.expirationTime);
|
||||
@@ -977,6 +985,8 @@
|
||||
batteryInsurance: order.batteryInsurance,
|
||||
orderSource: order.orderSource,
|
||||
orderSourceId: order.goodsId,
|
||||
equipmentId: order.equipmentId,
|
||||
dealerPhone:order.dealerPhone,
|
||||
comments: '续租订单' + order.orderNo
|
||||
}).then(res => {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user