7-3 修复管理员成本金额显示为0

- cost_amount字段不在items响应中,改用quantity*cost_price计算

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wsb1224 2026-07-03 21:17:44 +08:00
parent ae8ddd5486
commit 57221bef12

View File

@ -334,7 +334,7 @@
<td>{{ item.unit || '-' }}</td>
<td>{{ computeTotalDemand(item) || item.quantity }}</td>
<td>¥{{ Number(item.cost_price || 0).toFixed(2) }}</td>
<td class="money">¥{{ Number(item.cost_amount || 0).toFixed(2) }}</td>
<td class="money">¥{{ (Number(item.quantity || 0) * Number(item.cost_price || 0)).toFixed(2) }}</td>
</tr>
</tbody>
<tbody v-else>