|
@@ -181,10 +181,8 @@
|
|
|
</template>
|
|
|
<!-- 折扣 -->
|
|
|
<template slot="discountPrice" slot-scope="text, record">
|
|
|
- <div v-if="record.promotionFlag=='DISCOUNT'&&detailData">
|
|
|
- <span v-if="detailData.buyerLevel=='PROVINCE'">{{ ((record.provinceDiscount)*100).toFixed(2) }}%</span>
|
|
|
- <span v-if="detailData.buyerLevel=='CITY'">{{ ((record.cityDiscount)*100).toFixed(2) }}%</span>
|
|
|
- <span v-if="detailData.buyerLevel=='SPECIAL'">{{ ((record.specialDiscount)*100).toFixed(2) }}%</span>
|
|
|
+ <div v-if="record.promotionFlag=='DISCOUNT'">
|
|
|
+ <span>{{ ((record.price/record.origPrice)*100).toFixed(2) }}%</span>
|
|
|
</div>
|
|
|
<div v-else>--</div>
|
|
|
</template>
|