|
@@ -96,6 +96,11 @@
|
|
|
<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>
|
|
|
</template>
|
|
|
+ <!-- 销售价 -->
|
|
|
+ <template slot="price" slot-scope="text, record">
|
|
|
+ {{ toThousands(text) }}
|
|
|
+ <span v-if="record.promotionFlag=='GIFT'" title="原价">({{ toThousands(record.origPrice) }})</span>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
</a-card>
|
|
|
</a-spin>
|
|
@@ -199,7 +204,7 @@ export default {
|
|
|
// { title: '本次下推金额', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
]
|
|
|
if (this.$hasPermissions('B_dispatchDetail_salesPrice')) { // 售价权限
|
|
|
- arr.splice(5, 0, { title: '销售价格', dataIndex: 'price', width: '8%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
+ arr.splice(5, 0, { title: '销售价格', dataIndex: 'price', width: '8%', align: 'right', scopedSlots: { customRender: 'price' }, })
|
|
|
arr.splice(9, 0, { title: '本次下推金额', dataIndex: 'totalAmount', width: '8%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
}
|
|
|
if (this.$hasPermissions('B_dispatchDetail_cityPrice')) { // 市级权限
|