Explorar o código

折扣正则限制0-100

1
mo %!s(int64=3) %!d(string=hai) anos
pai
achega
02aedd9079
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/categroyManager/modals/payInfo.vue

+ 1 - 0
src/views/categroyManager/modals/payInfo.vue

@@ -251,6 +251,7 @@
           label="折扣值"
           :rules="[
             { required: true, message: '请输入折扣值', trigger: 'blur' },
+            { pattern:/^(?:[1-9]?\d|100)$/, message: '请输入正确的则扣' }
           ]"
         >
           <el-input