|
@@ -179,7 +179,7 @@
|
|
|
<label class="form-label col-3 col-sm-3"><span class="c-red">*</span>签收产品:</label>
|
|
|
<div class="formControls col-8 col-sm-8 text-c" id="produceSelect">
|
|
|
<div>
|
|
|
- <input type="text" class="input-text" style="width: 716px;" id="selectProcuct" name="selectProcuct" placeholder="请输入产品名称搜索">
|
|
|
+ <input type="text" onchange="selectProduct();" class="input-text" style="width: 716px;" id="selectProcuct" name="selectProcuct" placeholder="请输入产品名称搜索">
|
|
|
</div>
|
|
|
|
|
|
<table class="table table-border table-bg table-bordered">
|
|
@@ -333,6 +333,31 @@
|
|
|
$("#objectsStateId").show();
|
|
|
}
|
|
|
|
|
|
+ //动态回显产品js state
|
|
|
+ function selectProduct(){
|
|
|
+ var productName = $("#selectProcuct").val();
|
|
|
+ alert(productName);
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ url: "${path}/admin/signclosed/select_product",
|
|
|
+ data:{'productName':productName},
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg('查询成功',{icon: 5,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg('查询失败,请刷新页面再试',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ layer.msg('添加错误',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ //动态回显产品js end
|
|
|
+
|
|
|
$(function(){
|
|
|
var province = listProvince(null,null);
|
|
|
var provinceHtml = '';
|
|
@@ -412,9 +437,6 @@
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
|
type: "POST",
|