| | |
| | | <el-table-column label="规格型号" prop="specification" /> |
| | | <el-table-column label="供应商名称" prop="supplierName" /> |
| | | <el-table-column label="原价格" prop="oldPrice" width="120"> |
| | | <template #default="{ row }">¥{{ row.oldPrice.toFixed(2) }}</template> |
| | | <template #default="{ row }">¥{{ row.oldPrice.toFixed(3) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="新价格" prop="newPrice" width="120"> |
| | | <template #default="{ row }">¥{{ row.newPrice.toFixed(2) }}</template> |
| | | <template #default="{ row }">¥{{ row.newPrice.toFixed(3) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="调价幅度" prop="priceChange" width="120"> |
| | | <template #default="{ row }"> |
| | | <span :style="{ color: row.priceChange >= 0 ? '#f56c6c' : '#67c23a' }"> |
| | | {{ row.priceChange >= 0 ? '+' : '' }}{{ row.priceChange.toFixed(2) }}% |
| | | {{ row.priceChange >= 0 ? '+' : '' }}{{ row.priceChange.toFixed(3) }}% |
| | | </span> |
| | | </template> |
| | | </el-table-column> |