From 98cb0e1c8ed7591919ef1ea61fa061e7f50073b1 Mon Sep 17 00:00:00 2001
From: 2256907009 <2256907009@qq.com>
Date: Thu, 8 Jan 2026 11:05:00 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81?=
=?UTF-8?q?=E4=BB=B7=E6=A0=BC=E5=8D=95=E5=85=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/ProductList.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/product/ProductList.vue b/src/views/product/ProductList.vue
index d33eecd..5f853c9 100644
--- a/src/views/product/ProductList.vue
+++ b/src/views/product/ProductList.vue
@@ -171,8 +171,8 @@
-
-
+
+
@@ -326,7 +326,7 @@
- ¥{{ row.price }}
+ ¥{{ (row.price / 100).toFixed(2) }}
@@ -593,7 +593,7 @@ const handleEdit = (row) => {
good_group_id: row.goodGroupId,
inventory_control: row.inventoryControl,
inventory: row.inventory,
- price: row.price,
+ price: row.price / 100, // 分转元
pay_num: row.payNum,
expire_time: row.expireTime,
recommend: row.recommend,
@@ -687,7 +687,7 @@ const submitForm = () => {
good_group_id: Number(productForm.good_group_id), // 确保是数字类型
cover_id: productForm.cover_id || 0,
inventory: productForm.inventory || 0,
- price: productForm.price/100 || 0,
+ price: Math.round(productForm.price * 100) || 0, // 元转分
pay_num: productForm.pay_num || 1,
expire_time: productForm.expire_time || 0,
recommend_rebate: productForm.recommend_rebate || 0