laiguoran 3 lat temu
rodzic
commit
2a425bc867
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/public/js/material_exponent.js

+ 1 - 1
app/public/js/material_exponent.js

@@ -504,7 +504,7 @@ $(document).ready(() => {
         $('#calc_zdy').on('blur', function () {
             let newValue = parseFloat($(this).val());
             // 判断输入位数,并自动四舍五入
-            newValue = ZhCalc.round(newValue, decimal.tp);
+            newValue = ZhCalc.round(newValue, materialDecimal.tp);
             $('#calc_zdy').val(newValue);
             if (isNaN(newValue)) {
                 toastr.error('请输入正确的金额');