| | |
| | | //}, |
| | | |
| | | // 处理数字输入的方法,限制只能输入数字和小数点 |
| | | handleNumberInput3(value) { |
| | | this.formData.kwbg = value.replace(/[^\d.]/g, '') // 1. 去除非数字和小数点 |
| | | .replace(/(\..*)\./g, '$1') // 2. 禁止多个小数点 |
| | | .replace(/^\./g, ''); // 3. 禁止小数点开头 |
| | | }, |
| | | //handleNumberInput3(value) { |
| | | // this.formData.kwbg = value.replace(/[^\d.]/g, '') // 1. 去除非数字和小数点 |
| | | // .replace(/(\..*)\./g, '$1') // 2. 禁止多个小数点 |
| | | // .replace(/^\./g, ''); // 3. 禁止小数点开头 |
| | | //}, |
| | | } |
| | | }) |
| | |
| | | label="库位变更" |
| | | clearable |
| | | placeholder="请输入变更库位" |
| | | @input="handleNumberInput3" |
| | | <%-- @input="handleNumberInput3"--%> |
| | | :right-icon-size="19" |
| | | v-focus.noKeyboard |
| | | ></van-field> |
| | |
| | | |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <%-- JavaScript资源引入 --%> |
| | | <script src="Js/Kwbg.js?<%=121119 %>"></script> <%-- 引入BarBG.js文件,带版本参数防止缓存 --%> |
| | | <script src="Js/Kwbg.js?<%=121120 %>"></script> <%-- 引入BarBG.js文件,带版本参数防止缓存 --%> |
| | | </asp:Content> |