This commit is contained in:
Mrx
2026-06-06 22:22:50 +08:00
parent 2061b3e361
commit 47981086a5

View File

@@ -132,6 +132,13 @@
<span class="card-label">成本价</span>
<span class="card-value text-gray-600">¥{{ formatPrice(product.cost_price) }}</span>
</div>
<div class="card-row">
<span class="card-label">备注</span>
<el-tag v-if="product.remark" type="warning" size="small" class="max-w-[60%] truncate">
{{ product.remark }}
</el-tag>
<span v-else class="card-value text-gray-400">-</span>
</div>
</div>
<div class="card-footer">
<div class="action-buttons">
@@ -208,6 +215,13 @@
</template>
</el-table-column>
<el-table-column prop="remark" label="备注" min-width="150" show-overflow-tooltip>
<template #default="{ row }">
<el-tag v-if="row.remark" type="warning" size="small">{{ row.remark }}</el-tag>
<span v-else class="text-gray-400">-</span>
</template>
</el-table-column>
<el-table-column prop="is_enabled" label="启用状态" width="120">
<template #default="{ row }">
<el-tag :type="row.is_enabled ? 'success' : 'danger'" size="small">