From 18c174490b5778a652c10a3b57509ff61e743dd4 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期五, 06 十一月 2026 15:32:30 +0800
Subject: [PATCH] 完善设备监测、安全管理及采购业务页面
---
src/views/erp/purchase/statistics/price.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/views/erp/purchase/statistics/price.vue b/src/views/erp/purchase/statistics/price.vue
index 7f9ac25..90d26d1 100644
--- a/src/views/erp/purchase/statistics/price.vue
+++ b/src/views/erp/purchase/statistics/price.vue
@@ -6,7 +6,7 @@
import { Page } from '@vben/common-ui';
-import { Tag } from 'ant-design-vue';
+import { Alert, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getPriceAnalysis } from '#/api/erp/purchase/statistics';
@@ -47,12 +47,17 @@
},
{
field: 'productBarCode',
- title: '浜у搧鏉$爜',
+ title: '鐗╂枡缂栫爜',
+ minWidth: 120,
+ },
+ {
+ field: 'totalQuantity',
+ title: '閲囪喘鏁伴噺',
minWidth: 120,
},
{
field: 'avgPrice',
- title: '骞冲潎浠锋牸',
+ title: '鍔犳潈骞冲潎浠锋牸',
minWidth: 120,
formatter: 'formatAmount2',
},
@@ -115,9 +120,11 @@
<template>
<Page auto-content-height>
+ <Alert class="mb-4" type="info" show-icon message="缁熻宸插鏍搁噰璐鍗曠殑鏈◣鍗曚环锛涘钩鍧囦环鏍兼寜鏁伴噺鍔犳潈锛屼环鏍煎彉鍖栫巼姣旇緝绛涢�夎寖鍥村唴鏈�杩戜袱绗旈噰璐环鏍笺��" />
<Grid table-title="閲囪喘浠锋牸鍒嗘瀽">
<template #priceChangeRate="{ row }">
- <Tag v-if="row.priceChangeRate > 0" color="red">
+ <Tag v-if="row.priceChangeRate == null">鏆傛棤瀵规瘮</Tag>
+ <Tag v-else-if="row.priceChangeRate > 0" color="red">
+{{ row.priceChangeRate }}%
</Tag>
<Tag v-else-if="row.priceChangeRate < 0" color="green">
@@ -127,4 +134,4 @@
</template>
</Grid>
</Page>
-</template>
\ No newline at end of file
+</template>
--
Gitblit v1.9.3