diff --git a/src/main/resources/static/js/pdaOther/toolPurchaseIn.js b/src/main/resources/static/js/pdaOther/toolPurchaseIn.js index 61ae0e0..25ea74f 100644 --- a/src/main/resources/static/js/pdaOther/toolPurchaseIn.js +++ b/src/main/resources/static/js/pdaOther/toolPurchaseIn.js @@ -80,11 +80,6 @@ $("#toolInstance").on("blur", function () { loadSiteList(); }); -// 预计使用寿命只允许输入数字 -$("#expectedLife").on("input", function () { - this.value = this.value.replace(/[^0-9]/g, ""); -}); - /** * 根据工具实例查询工厂站点列表 */ @@ -138,18 +133,10 @@ function confirmIn() { return false; } - var expectedLife = $("#expectedLife").val(); - if (!expectedLife || expectedLife.trim() === "") { - layer.msg("请输入预计使用寿命!"); - $("#expectedLife").focus(); - return false; - } - var params = [{ toolInstanceID: toolInstance.trim(), site: site.trim(), - locationID: locationId.trim(), - expectedLife: parseFloat(expectedLife.trim()) + locationID: locationId.trim() }]; requestPost("/pdaOrder/batchSaveToolPurchaseIn", params, function (data) { @@ -165,7 +152,6 @@ function clearForm() { $("#toolInstance").val(""); $("#siteSel").html(''); $("#locationId").val(""); - $("#expectedLife").val(""); $("#toolInstance").focus(); } diff --git a/src/main/resources/templates/pdaOther/toolPurchaseIn.ftl b/src/main/resources/templates/pdaOther/toolPurchaseIn.ftl index 45a889b..4703412 100644 --- a/src/main/resources/templates/pdaOther/toolPurchaseIn.ftl +++ b/src/main/resources/templates/pdaOther/toolPurchaseIn.ftl @@ -102,15 +102,6 @@
- -
- -
-
- -
-
-