|
@@ -41,14 +41,14 @@
|
|
|
bordered>
|
|
|
<template slot="productCode" slot-scope="text, record">
|
|
|
<span style="padding-right: 15px;">{{ text }}</span>
|
|
|
- <a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
|
|
|
+ <a-badge count="促" v-if="record.promotionFlag.indexOf('GIFT')>=0" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
|
|
|
<!-- <a-badge count="正" v-if="record.promotionFlag=='REGULAR'" :number-style="{ backgroundColor: '#108ee9', zoom:'80%' }"></a-badge> -->
|
|
|
- <a-badge count="特" v-if="record.promotionFlag=='DISCOUNT'" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge>
|
|
|
+ <a-badge count="特" v-if="record.promotionFlag.indexOf('DISCOUNT')>=0" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge>
|
|
|
</template>
|
|
|
<!-- 销售价 -->
|
|
|
<template slot="price" slot-scope="text, record">
|
|
|
{{ toThousands(text) }}
|
|
|
- <span v-if="record.promotionFlag=='GIFT'||record.promotionFlag=='DISCOUNT'" title="原价">({{ toThousands(record.origPrice) }})</span>
|
|
|
+ <span v-if="record.promotionFlag.indexOf('GIFT')>=0||record.promotionFlag.indexOf('DISCOUNT')>=0" title="原价">({{ toThousands(record.origPrice) }})</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-card>
|