This commit is contained in:
2026-08-07 14:47:11 +08:00
parent e7cc0cf18b
commit 7ac173fac4
21 changed files with 1714 additions and 791 deletions
@@ -112,11 +112,11 @@ describe('InboundFeePanel', () => {
it('keeps the prototype-aligned detail order and renders long values with pending timestamps', async () => {
const longRuleCode = `RULE-${'LONG-'.repeat(20)}`
const longCarrierName = `船司${'超长名称'.repeat(20)}`
const longChannelCode = `CHANNEL-${'LONG-'.repeat(20)}`
vi.mocked(getLatestInboundFee).mockResolvedValue({
...snapshot,
ruleCode: longRuleCode,
carrierName: longCarrierName,
channelCode: longChannelCode,
confirmedAt: null,
sentAt: null,
})
@@ -138,10 +138,10 @@ describe('InboundFeePanel', () => {
])
expect(wrapper.findAll('.fee-detail-grid h4').map((node) => node.text())).toEqual([
'客户计费规则',
'船司 FBA 价格',
'渠道价格',
])
expect(content).toContain(longRuleCode)
expect(content).toContain(longCarrierName)
expect(content).toContain(longChannelCode)
const pendingTimelineItems = wrapper.findAll('.fee-timeline li.pending')
expect(pendingTimelineItems).toHaveLength(2)
expect(pendingTimelineItems.map((item) => item.find('strong').text())).toEqual(['—', '—'])
+2 -2
View File
@@ -320,10 +320,10 @@ defineExpose({ reload: loadFee })
</dl>
</section>
<section aria-labelledby="rate-title">
<div class="section-title"><div><h4 id="rate-title">船司 FBA 价格</h4><p>{{ snapshot.rateCode }} · V{{ snapshot.carrierRateVersion }}</p></div></div>
<div class="section-title"><div><h4 id="rate-title">渠道价格</h4><p>{{ snapshot.rateCode }} · V{{ snapshot.carrierRateVersion }}</p></div></div>
<dl>
<div><dt>起运仓</dt><dd>{{ snapshot.originWarehouseName }}</dd></div>
<div><dt>渠道 / 船司</dt><dd>{{ snapshot.channelCode }} / {{ snapshot.carrierName }}</dd></div>
<div><dt>渠道</dt><dd>{{ snapshot.channelCode }}</dd></div>
<div><dt>FBA 目的仓</dt><dd>{{ snapshot.destinationCode }}</dd></div>
<div><dt>价格有效期</dt><dd>{{ formatDateTime(snapshot.rateEffectiveFrom) }} 至 {{ formatDateTime(snapshot.rateEffectiveTo) }}</dd></div>
</dl>