1
This commit is contained in:
@@ -374,7 +374,7 @@
|
||||
>{{ row.distributionMark }}</span>
|
||||
<span class="card-summary-sep"> · </span>
|
||||
</template>
|
||||
<span class="card-summary-meta">{{ fullModelNumber(row) || '—' }} · 付{{ toYuan(row.paymentAmount) }} · 返{{ toYuan(row.rebateAmount) }}</span>
|
||||
<span class="card-summary-meta">{{ fullModelNumber(row) || '—' }} · 付{{ toYuan(row.paymentAmount) }} · 返{{ toYuan(row.rebateAmount) }} · 成本{{ formatListCost(row) || '—' }}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -489,6 +489,10 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-row field-row--pricing">
|
||||
<span class="field-label">成本价</span>
|
||||
<span class="field-value">{{ formatListCost(row) || '—' }}</span>
|
||||
</div>
|
||||
<div class="field-row field-row--pricing">
|
||||
<span class="field-label">额外成本</span>
|
||||
<div class="field-value field-value--pricing-control">
|
||||
@@ -768,6 +772,11 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="成本价" min-width="100" align="right" class-name="jd-col-money">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatListCost(scope.row) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="售价渠道" prop="sellingPriceType" min-width="120" align="center" class-name="jd-col-channel">
|
||||
<template slot-scope="scope">
|
||||
<div class="jd-cell-stretch">
|
||||
@@ -2403,6 +2412,14 @@ export default {
|
||||
if (Number.isNaN(num)) return n
|
||||
return num.toFixed(2)
|
||||
},
|
||||
/** 列表成本价 = 下单付款 − 后返金额(不含额外成本) */
|
||||
formatListCost(row) {
|
||||
if (!row || row.paymentAmount == null || row.paymentAmount === '') return ''
|
||||
const pay = Number(row.paymentAmount)
|
||||
const reb = row.rebateAmount != null && row.rebateAmount !== '' ? Number(row.rebateAmount) : 0
|
||||
if (Number.isNaN(pay) || Number.isNaN(reb)) return ''
|
||||
return (pay - reb).toFixed(2)
|
||||
},
|
||||
/** 录单 Excel:成本 = 下单付款 − 后返 + 额外成本(与后台自动利润口径一致) */
|
||||
formatExcelCost(row) {
|
||||
if (!row) return ''
|
||||
|
||||
Reference in New Issue
Block a user