feat: 横向对比增加单买成本列(第一列)
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 12s
Test / e2e-test (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 23:20:52 +00:00
parent da00436701
commit a8bbe77c0e

View File

@@ -77,12 +77,14 @@
<thead> <thead>
<tr> <tr>
<th class="th-name">配方名</th> <th class="th-name">配方名</th>
<th class="th-kit">单买</th>
<th v-for="ka in kitAnalysis" :key="ka.id" class="th-kit">{{ ka.name }}</th> <th v-for="ka in kitAnalysis" :key="ka.id" class="th-kit">{{ ka.name }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="row in crossComparison" :key="row.id"> <tr v-for="row in crossComparison" :key="row.id">
<td class="td-name">{{ row.name }}</td> <td class="td-name">{{ row.name }}</td>
<td class="td-cost original">{{ fmtPrice(row.originalCost) }}</td>
<td v-for="ka in kitAnalysis" :key="ka.id" :class="row.costs[ka.id] != null ? 'td-kit-available' : 'td-kit-na'"> <td v-for="ka in kitAnalysis" :key="ka.id" :class="row.costs[ka.id] != null ? 'td-kit-available' : 'td-kit-na'">
<template v-if="row.costs[ka.id] != null">{{ fmtPrice(row.costs[ka.id]) }}</template> <template v-if="row.costs[ka.id] != null">{{ fmtPrice(row.costs[ka.id]) }}</template>
<template v-else><span class="na"></span></template> <template v-else><span class="na"></span></template>