Commit 30bb06a2 by anxiaohe

品名代码表单

parent 1e2d8635
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
function view(id){//查看 function view(id){//查看
jp.openViewDialog("查看品名代码",'${ctx}/warehouse/materialtype/materialType/form/view?id='+id, '800','600'); jp.openViewDialog("查看品名代码",'${ctx}/warehouse/materialtype/materialType/form/view?id='+id, '800','600');
} }
function addChild(id){//添加下级机构 function addChild(id, parentIds){//添加下级机构
jp.openSaveDialog("添加下级品名代码",'${ctx}/warehouse/materialtype/materialType/form/add?parent.id='+id, '800','600'); jp.openSaveDialog("添加下级品名代码",'${ctx}/warehouse/materialtype/materialType/form/add?parent.id='+id + "&parentIds=" + parentIds, '800','600');
} }
function refresh(){//刷新 function refresh(){//刷新
var index = jp.loading("正在加载,请稍等..."); var index = jp.loading("正在加载,请稍等...");
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<li><a onclick="return del(this, '{{d.row.id}}')"><i class="fa fa-trash"></i> 删除</a></li> <li><a onclick="return del(this, '{{d.row.id}}')"><i class="fa fa-trash"></i> 删除</a></li>
</shiro:hasPermission> </shiro:hasPermission>
<shiro:hasPermission name="warehouse:materialtype:materialType:add"> <shiro:hasPermission name="warehouse:materialtype:materialType:add">
<li><a onclick="addChild('{{d.row.id}}')"><i class="fa fa-plus"></i> 添加下级品名代码</a></li> <li><a onclick="addChild('{{d.row.id}}', '{{d.row.parentIds}}')"><i class="fa fa-plus"></i> 添加下级品名代码</a></li>
</shiro:hasPermission> </shiro:hasPermission>
</ul> </ul>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment