Commit 59caffd0 by 张立顺

fix bug

1 parent 1abcee37
......@@ -107,7 +107,7 @@ export default {
// from输入框change事件
handleInputChangeFrom(value) {
this.userInputForm = value.replace(/[^0-9.]/g, '').replace(/^(199|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
this.userInputForm = value.replace(/[^0-9.]/g, '').replace(/^(199|1\d{2}|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2');
},
handleInputChangeFromChange() {
......@@ -122,7 +122,7 @@ export default {
// to输入框change事件
handleInputChangeTo(value) {
this.userInputTo = value.replace(/[^0-9.]/g, '').replace(/^(199|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
this.userInputTo = value.replace(/[^0-9.]/g, '').replace(/^(199|1\d{2}|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2');
},
handleInputChangeToChange() {
// 看一下this.userInputForm 是否有值,如果有应该比它大
......
......@@ -150,7 +150,7 @@
@keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<input-number-range v-else-if="specsInputVisible && spescEditForm.type == 3" :disabled="false"
:precision="num" :spescInputVal="spescInputVal" @confirm="handleInputConfirmMue"
@input="spescInputVal = spescInputVal.replace(/^(200|[1-9]?\d)(\.\d{0,4})?.*$/, '$1$2')"></input-number-range>
@input="spescInputVal = spescInputVal.replace(/^(199|1\d{2}|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')"></input-number-range>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item>
</el-form>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!