Browse Source

合同支付,前端检查起扣、限额%计算兼容小数

MaiXinRong 2 years ago
parent
commit
d346885ad5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/stage_pay.js

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

@@ -51,7 +51,7 @@ $(document).ready(() => {
     const payCalc = (function (b) {
         class PayCalc {
             constructor (bases) {
-                this.percentReg = /[0-9]+%/g;
+                this.percentReg = /((\d+)|((\d+)(\.\d+)))%/g;
                 this.bases = bases;
                 this.bases.sort(function (a, b) {
                     return a.sort - b.sort;