|
@@ -58,7 +58,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
|
<a-form-item label="优惠(¥)" :label-col="{ span:6 }" :wrapper-col="{ span:12}">
|
|
|
- <span>{{ orderDetailData.couponAmount }} 元</span>
|
|
|
+ <span>{{ orderDetailData.orderCoupons ? orderDetailData.couponAmount : 0 }} 元</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -66,7 +66,6 @@
|
|
|
<a-col :span="8">
|
|
|
<a-form-item label="使用优惠券" :label-col="{ span:6 }" :wrapper-col="{ span:12}">
|
|
|
<span>{{ orderDetailData.orderCoupons ? orderDetailData.orderCoupons[0].couponTitle : '-' }}</span>
|
|
|
-
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
@@ -75,7 +74,8 @@
|
|
|
<div class="imgBox">
|
|
|
<div>
|
|
|
<img v-if="orderDetailData.beginImage" class="imgCar" :src="orderDetailData.beginImage" alt="" @click="isShowBeginImageModal=true">
|
|
|
- <div v-if="!orderDetailData.beginImage" class="imgCar">--</div>
|
|
|
+ <!-- <div v-else-if="orderDetailData.beginImage">{{ orderDetailData.beginImage }}</div> -->
|
|
|
+ <div v-else-if="!orderDetailData.beginImage" class="imgCar">--</div>
|
|
|
</div>
|
|
|
<div>洗车前</div>
|
|
|
</div>
|
|
@@ -86,7 +86,6 @@
|
|
|
</div>
|
|
|
<div>洗车后</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -169,12 +168,12 @@ export default {
|
|
|
id: newValue
|
|
|
}).then(res => {
|
|
|
// console.log(res, '------------')
|
|
|
+ this.orderDetailData = res.data
|
|
|
if (res.status == 200) {
|
|
|
setTimeout(() => {
|
|
|
res.data.orderStatus = this.$refs.orderStatus.getNameByCode(res.data.orderStatus)
|
|
|
}, 500)
|
|
|
}
|
|
|
- this.orderDetailData = res.data
|
|
|
})
|
|
|
}
|
|
|
},
|