业绩明细指标金额改用万元 #518
@ -1496,7 +1496,7 @@
|
||||
</div>
|
||||
<div class="receipt-metric-dialog__head-side">
|
||||
<div class="receipt-metric-dialog__total">
|
||||
<span>当前筛选合计</span>
|
||||
<span>当前筛选合计(万元)</span>
|
||||
<strong data-receipt-metric-current-total>¥0.00</strong>
|
||||
</div>
|
||||
<button type="button" class="receipt-dialog-close" data-receipt-metric-close aria-label="关闭指标明细">×</button>
|
||||
@ -1555,7 +1555,7 @@
|
||||
<tr>
|
||||
<th scope="col">平台</th>
|
||||
<th scope="col">账单名称</th>
|
||||
<th scope="col" class="is-number">总金额</th>
|
||||
<th scope="col" class="is-number">总金额(万元)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody data-receipt-summary-rows></tbody>
|
||||
@ -1576,7 +1576,7 @@
|
||||
<th scope="col">平台</th>
|
||||
<th scope="col">店铺</th>
|
||||
<th scope="col">账单名称</th>
|
||||
<th scope="col" class="is-number">对应金额</th>
|
||||
<th scope="col" class="is-number">对应金额(万元)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody data-receipt-detail-rows></tbody>
|
||||
@ -2312,10 +2312,10 @@
|
||||
var summaryCount = 0;
|
||||
var detailCount = 0;
|
||||
|
||||
function yuan(value) {
|
||||
return '¥' + Number(value || 0).toLocaleString('zh-CN', {
|
||||
function wan(value) {
|
||||
return '¥' + (Number(value || 0) / 10000).toLocaleString('zh-CN', {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2
|
||||
maximumFractionDigits: 4
|
||||
});
|
||||
}
|
||||
|
||||
@ -2393,7 +2393,7 @@
|
||||
tr.appendChild(billItem);
|
||||
var amount = document.createElement('td');
|
||||
amount.className = 'is-number';
|
||||
amount.textContent = yuan(row.amount);
|
||||
amount.textContent = wan(row.amount);
|
||||
tr.appendChild(amount);
|
||||
summaryRowsEl.appendChild(tr);
|
||||
});
|
||||
@ -2410,7 +2410,7 @@
|
||||
});
|
||||
var amount = document.createElement('td');
|
||||
amount.className = 'is-number';
|
||||
amount.textContent = yuan(row.amount);
|
||||
amount.textContent = wan(row.amount);
|
||||
tr.appendChild(amount);
|
||||
detailRowsEl.appendChild(tr);
|
||||
});
|
||||
@ -2470,7 +2470,7 @@
|
||||
detailCount = rows.length;
|
||||
renderSummaryRows(summaryRows);
|
||||
renderDetailRows(rows);
|
||||
currentTotalEl.textContent = yuan(filteredTotal);
|
||||
currentTotalEl.textContent = wan(filteredTotal);
|
||||
updateFooterCount();
|
||||
summaryEmptyEl.hidden = summaryRows.length > 0;
|
||||
detailEmptyEl.hidden = rows.length > 0;
|
||||
|
||||
@ -108,6 +108,9 @@ class NavigationTest extends FeatureTestCase
|
||||
'data-column-key="unmatched_reason"',
|
||||
'data-column-key="planting_label"',
|
||||
], false)
|
||||
->assertSee('function wan(value)', false)
|
||||
->assertSee('(Number(value || 0) / 10000)', false)
|
||||
->assertSee('maximumFractionDigits: 4', false)
|
||||
->assertDontSeeText('查看完整字段与差额判定规则')
|
||||
->assertDontSee('receipt-method-guide', false)
|
||||
->assertDontSee('receipt-match-summary', false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user