解决商品编辑时条码偶尔不能修改的bug
This commit is contained in:
@@ -1076,6 +1076,11 @@
|
|||||||
$("#materialExtendData").datagrid('loadData',res.data);
|
$("#materialExtendData").datagrid('loadData',res.data);
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#materialDlg #append").click(); //新增行
|
$("#materialDlg #append").click(); //新增行
|
||||||
|
} else if(type === "edit") {
|
||||||
|
if(res.data.rows.length>0){
|
||||||
|
editIndex = 0;
|
||||||
|
$('#materialExtendData').datagrid('selectRow', 0).datagrid('beginEdit', 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user