diff --git a/src/project/fd/AppPointsReview/detail.vue b/src/project/fd/AppPointsReview/detail.vue
index 222f77ad..4d67d036 100644
--- a/src/project/fd/AppPointsReview/detail.vue
+++ b/src/project/fd/AppPointsReview/detail.vue
@@ -21,7 +21,8 @@
积分值
-
+
+
{{info.applyIntegral}}
@@ -177,6 +178,11 @@ export default {
submit() {
if(this.flag) return
+ if (!/^([1-9]\d*|0)(\.\d{1,2})?$/g.test(this.info.applyIntegral)) {
+ this.info.applyIntegral = Number(this.info.applyIntegral).toFixed(2)
+ return this.$u.toast('积分值最多只保留两位小数点')
+ }
+
if (!this.info.content) {
return this.$u.toast('请输入详细描述')
}
diff --git a/src/project/fd/AppPointsReview/integralAdd.vue b/src/project/fd/AppPointsReview/integralAdd.vue
index 4fb287f6..9c4e7d89 100644
--- a/src/project/fd/AppPointsReview/integralAdd.vue
+++ b/src/project/fd/AppPointsReview/integralAdd.vue
@@ -25,7 +25,8 @@
@@ -125,6 +126,10 @@ export default {
if (!this.form.applyItemId) {
return this.$u.toast('请选择事件类型')
}
+ if (!/^([1-9]\d*|0)(\.\d{1,2})?$/g.test(this.form.applyIntegral)) {
+ this.form.applyIntegral = Number(this.form.applyIntegral).toFixed(2)
+ return this.$u.toast('积分值最多只保留两位小数点')
+ }
if (!this.form.content) {
return this.$u.toast('请输入详细描述')