更新商品录入信息[主线]
This commit is contained in:
@@ -1095,10 +1095,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//保存信息
|
//保存信息
|
||||||
$("#saveMaterial").unbind().bind({
|
$("#saveMaterial").off("click").on("click",function() {
|
||||||
click:function()
|
if(!$('#Name').val()){
|
||||||
{
|
$.messager.alert('提示','品名不能为空!','warning');
|
||||||
if(!$('#materialFM').form('validate')){
|
return;
|
||||||
|
}
|
||||||
|
if(!$('#Model').val()){
|
||||||
|
$.messager.alert('提示','型号不能为空!','warning');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(checkIsExist()){
|
if(checkIsExist()){
|
||||||
@@ -1191,7 +1194,6 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var mId=0,mName="";
|
var mId=0,mName="";
|
||||||
@@ -1473,11 +1475,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
//导入excel表格
|
//导入excel表格
|
||||||
$("#saveimport").unbind().bind({
|
$("#saveimport").off("click").on("click",function() {
|
||||||
click:function()
|
if($("#materialFile").val().length == 0) {
|
||||||
{
|
|
||||||
if($("#materialFile").val().length == 0)
|
|
||||||
{
|
|
||||||
$.messager.alert('提示','请选择文件!','info');
|
$.messager.alert('提示','请选择文件!','info');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1493,7 +1492,6 @@
|
|||||||
var opts = $("#tableData").datagrid('options');
|
var opts = $("#tableData").datagrid('options');
|
||||||
showMaterialDetails(opts.pageNumber,opts.pageSize);
|
showMaterialDetails(opts.pageNumber,opts.pageSize);
|
||||||
},3300);
|
},3300);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user