Procházet zdrojové kódy

折扣正则限制0-100

1
mo před 3 roky
rodič
revize
02aedd9079
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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