diff --git a/ruoyi-admin/src/main/resources/templates/layout/product-list.html b/ruoyi-admin/src/main/resources/templates/layout/product-list.html index 70d8db36..b9d5d11a 100644 --- a/ruoyi-admin/src/main/resources/templates/layout/product-list.html +++ b/ruoyi-admin/src/main/resources/templates/layout/product-list.html @@ -387,7 +387,7 @@ $('.productTable .price-formmat').change('input', function () { let val = $(this).val() let num = $(this).parent().parent().find('.quantity').val() - $(this).parent().parent().find('.price').val(val.toFixed(2)) + $(this).parent().parent().find('.price').val(Number(val).toFixed(2)) let allPriceNumber = val * num // if (getFlag()) { // allPriceNumber *= FOLD_ON_FOLD