解决商品编辑时条码偶尔不能修改的bug

This commit is contained in:
季圣华
2020-12-11 21:30:31 +08:00
parent 35e745a704
commit c22f9262f5

View File

@@ -1076,6 +1076,11 @@
$("#materialExtendData").datagrid('loadData',res.data);
if(type === "add") {
$("#materialDlg #append").click(); //新增行
} else if(type === "edit") {
if(res.data.rows.length>0){
editIndex = 0;
$('#materialExtendData').datagrid('selectRow', 0).datagrid('beginEdit', 0);
}
}
}
},