|
|
|
@ -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('<option value="">请先输入工具实例</option>'); |
|
|
|
$("#locationId").val(""); |
|
|
|
$("#expectedLife").val(""); |
|
|
|
$("#toolInstance").focus(); |
|
|
|
} |
|
|
|
|
|
|
|
|