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 @@ @@ -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