|
@@ -74,6 +74,12 @@
|
|
|
:data="loadData"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
+ <!-- 产品编码 -->
|
|
|
+ <template slot="code" slot-scope="text, record">
|
|
|
+ <span>{{ record.dealerProductEntity.code }}</span>
|
|
|
+ <a-badge v-if="record.promotionFlag && record.promotionFlag=='GIFT'" count="促" :number-style="{ backgroundColor: '#52c41a', zoom:'86%',marginLeft:'8px' }"></a-badge>
|
|
|
+ <a-badge v-if="record.promotionFlag && record.promotionFlag=='DISCOUNT'" count="特" :number-style="{ backgroundColor: '#faad14', zoom:'86%',marginLeft:'8px' }"></a-badge>
|
|
|
+ </template>
|
|
|
<!-- 采购数量 -->
|
|
|
<template slot="origqty" slot-scope="text, record">
|
|
|
<div>{{ text }}</div>
|
|
@@ -83,6 +89,16 @@
|
|
|
<template slot="outOfStockNum" slot-scope="text, record">
|
|
|
<span>{{ record.outOfStockNum }}</span>
|
|
|
</template>
|
|
|
+ <!-- 采购单价 -->
|
|
|
+ <template slot="unitPrice" slot-scope="text, record">
|
|
|
+ <span v-if="record.promotionFlag && (record.promotionFlag=='GIFT' || record.promotionFlag=='DISCOUNT')">{{ record.discountedPrice||record.discountedPrice==0? toThousands(record.discountedPrice): '--' }}{{ record.origPrice ? '(' + toThousands(record.origPrice) + ')' : '' }}</span>
|
|
|
+ <span v-else>{{ toThousands(record.discountedPrice) }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 采购金额 -->
|
|
|
+ <template slot="amount" slot-scope="text, record">
|
|
|
+ <span v-if="record.promotionFlag && (record.promotionFlag=='GIFT' || record.promotionFlag=='DISCOUNT')">{{ record.discountedAmount||record.discountedAmount==0?toThousands(record.discountedAmount) : '--' }}{{ record.origPrice ? '(' + toThousands(record.origPrice) + ')' : '' }}</span>
|
|
|
+ <span v-else>{{ toThousands(record.discountedAmount) }}</span>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
@@ -107,12 +123,6 @@
|
|
|
:data="loadData"
|
|
|
:scroll="{ x: 1060 }"
|
|
|
bordered>
|
|
|
- <!-- 产品编码 -->
|
|
|
- <template slot="code" slot-scope="text, record">
|
|
|
- <span>{{ record.dealerProductEntity.code }}</span>
|
|
|
- <a-badge v-if="record.promotionFlag && record.promotionFlag=='GIFT'" count="促" :number-style="{ backgroundColor: '#52c41a', zoom:'86%',marginLeft:'8px' }"></a-badge>
|
|
|
- <a-badge v-if="record.promotionFlag && record.promotionFlag=='DISCOUNT'" count="特" :number-style="{ backgroundColor: '#faad14', zoom:'86%',marginLeft:'8px' }"></a-badge>
|
|
|
- </template>
|
|
|
<!-- 采购数量 -->
|
|
|
<template slot="origqty" slot-scope="text, record">
|
|
|
<div>{{ text }}</div>
|
|
@@ -122,16 +132,6 @@
|
|
|
<template slot="outOfStockNum" slot-scope="text, record">
|
|
|
<span>{{ record.outOfStockNum }}</span>
|
|
|
</template>
|
|
|
- <!-- 采购单价 -->
|
|
|
- <template slot="unitPrice" slot-scope="text, record">
|
|
|
- <span v-if="record.promotionFlag && (record.promotionFlag=='GIFT' || record.promotionFlag=='DISCOUNT')">{{ record.discountedPrice? toThousands(record.discountedPrice): '--' }}{{ record.origPrice ? '(' + toThousands(record.origPrice) + ')' : '' }}</span>
|
|
|
- <span v-else>{{ toThousands(record.discountedPrice) }}</span>
|
|
|
- </template>
|
|
|
- <!-- 采购金额 -->
|
|
|
- <template slot="amount" slot-scope="text, record">
|
|
|
- <span v-if="record.promotionFlag && (record.promotionFlag=='GIFT' || record.promotionFlag=='DISCOUNT')">{{ record.discountedAmount?toThousands(record.discountedAmount) : '--' }}{{ record.origPrice ? '(' + toThousands(record.origPrice) + ')' : '' }}</span>
|
|
|
- <span v-else>{{ toThousands(record.discountedAmount) }}</span>
|
|
|
- </template>
|
|
|
</s-table>
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|