From 1239ac9bd31be1ab1dc65ed8baa865ac45e15768 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Mon, 8 Sep 2025 17:31:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/supermarket/mallProduct/form.vue | 46 +++++++++++++++++++-- src/views/supermarket/mallProduct/index.vue | 10 ++--- 2 files changed, 47 insertions(+), 9 deletions(-) diff --git a/src/views/supermarket/mallProduct/form.vue b/src/views/supermarket/mallProduct/form.vue index dce031b..9d5d902 100644 --- a/src/views/supermarket/mallProduct/form.vue +++ b/src/views/supermarket/mallProduct/form.vue @@ -67,12 +67,14 @@ + 单位:元 + 单位:元 @@ -159,7 +161,7 @@ @@ -150,7 +150,7 @@ @@ -238,13 +238,13 @@ const { // 获取SKU最低价格 const getMinPrice = (skuList: any[]) => { if (!skuList || skuList.length === 0) return 0; - return Math.min(...skuList.map(sku => sku.price || 0)); + return (Math.min(...skuList.map(sku => (sku.price || 0) / 100))).toFixed(2); }; // 获取SKU最高价格 const getMaxPrice = (skuList: any[]) => { if (!skuList || skuList.length === 0) return 0; - return Math.max(...skuList.map(sku => sku.price || 0)); + return (Math.max(...skuList.map(sku => (sku.price || 0) / 100))).toFixed(2); }; // 获取SKU总库存