浏览代码

合同支付,计算问题

maixinrong 5 年之前
父节点
当前提交
c8d8e0b6c1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/lib/pay_calc.js

+ 1 - 1
app/lib/pay_calc.js

@@ -17,7 +17,7 @@ class PayCalculate {
     constructor (ctx, stage, tenderInfo) {
         this.ctx = ctx;
         this.stage = stage;
-        this.percentReg = /((\d?)|((\d+)(\.\d+)))%/g;
+        this.percentReg = /((\d+)|((\d+)(\.\d+)))%/g;
         this.tenderInfo = tenderInfo;
         this.decimal = tenderInfo.decimal.pay ? tenderInfo.decimal.payTp : tenderInfo.decimal.tp;
         /* 以下变量在调用calculate方法后获得