|
@@ -32,6 +32,11 @@
|
|
<a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
|
|
<a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', 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=='DISCOUNT'" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 销售价 -->
|
|
|
|
+ <template slot="price" slot-scope="text, record">
|
|
|
|
+ {{ toThousands(text) }}
|
|
|
|
+ <span v-if="record.promotionFlag=='GIFT'||record.promotionFlag=='DISCOUNT'" title="原价">({{ toThousands(record.origPrice) }})</span>
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
<div class="btn-cont" style="padding:20px 20px 0;text-align: center;">
|
|
<div class="btn-cont" style="padding:20px 20px 0;text-align: center;">
|
|
<!-- <a-button @click="isShow=false">关闭</a-button> -->
|
|
<!-- <a-button @click="isShow=false">关闭</a-button> -->
|
|
@@ -122,7 +127,7 @@ export default {
|
|
]
|
|
]
|
|
|
|
|
|
if (this.$hasPermissions('B_salesDetail_salesPrice')) { // 售价权限
|
|
if (this.$hasPermissions('B_salesDetail_salesPrice')) { // 售价权限
|
|
- arr.splice(6, 0, { title: '销售价', dataIndex: 'price', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
|
|
|
+ arr.splice(6, 0, { title: '销售价', dataIndex: 'price', width: '8%', align: 'right', scopedSlots: { customRender: 'price' } })
|
|
arr.splice(7, 0, { title: '销售金额', dataIndex: 'salesAmount', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
arr.splice(7, 0, { title: '销售金额', dataIndex: 'salesAmount', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
arr.splice(8, 0, { title: '缺货金额', dataIndex: 'totalAmount', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
arr.splice(8, 0, { title: '缺货金额', dataIndex: 'totalAmount', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
}
|
|
}
|