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总库存