Ver Fonte

1. 限制不能输入小数

MONSTER-ygh há 1 ano atrás
pai
commit
b2d350dcdf

+ 1 - 1
src/views/tourism/membershipManagement/electronicMembership/formBox/setIntegralForm.vue

@@ -28,7 +28,7 @@
             </el-radio-group>
             </el-form-item>
             <el-form-item label="变动量" prop="num">
-              <el-input-number v-model="form.num" controls-position="right" :min="0" placeholder="请输入变动量"></el-input-number>
+              <el-input-number v-model="form.num" controls-position="right" :precision="0" :min="0" placeholder="请输入变动量"></el-input-number>
             </el-form-item>
             <el-form-item label="变动原因说明" prop="remark">
               <el-input style="width: 350px;" type="textarea" v-model="form.remark" placeholder="请输入变动原因说明" maxlength="200" show-word-limit />

+ 1 - 1
src/views/tourism/membershipManagement/electronicMembership/formBox/setStoredValue.vue

@@ -34,7 +34,7 @@
             </el-radio-group>
             </el-form-item>
             <el-form-item label="变动量" prop="num">
-              <el-input-number v-model="form.num" controls-position="right" :min="0"  placeholder="请输入变动量"></el-input-number>
+              <el-input-number v-model="form.num" controls-position="right" :precision="0" :min="0"  placeholder="请输入变动量"></el-input-number>
             </el-form-item>
             <el-form-item label="变动原因说明" prop="remark">
               <el-input style="width: 350px;" type="textarea" v-model="form.remark" placeholder="请输入变动原因说明" maxlength="200" show-word-limit />