Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
68576dda
Commit
68576dda
authored
Feb 28, 2019
by
qiankunpingtai
Browse files
修改单据模块编辑时列表中删除的方法
parent
ee7b5ad5
Changes
1
Show whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/in_out.js
View file @
68576dda
...
@@ -1065,7 +1065,7 @@
...
@@ -1065,7 +1065,7 @@
iconCls:'icon-remove',
iconCls:'icon-remove',
handler:function()
handler:function()
{
{
removeit
();
//删除
batchDel
(); //删除
}
}
},
},
{
{
...
@@ -2839,7 +2839,7 @@
...
@@ -2839,7 +2839,7 @@
}
}
}
}
//删除
//删除
function
removeit
(){
function
batchDel
(){
/**
/**
* 重写一下删除的逻辑
* 重写一下删除的逻辑
* 获取所有选中行,直接从列表中移除
* 获取所有选中行,直接从列表中移除
...
@@ -2864,6 +2864,12 @@
...
@@ -2864,6 +2864,12 @@
});
});
}
}
}
}
function removeit(){
if (editIndex == undefined) { return }
$('#materialData').datagrid('cancelEdit', editIndex)
.datagrid('deleteRow', editIndex);
editIndex = undefined;
}
//撤销
//撤销
function reject() {
function reject() {
$('#materialData').datagrid('rejectChanges');
$('#materialData').datagrid('rejectChanges');
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment