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