74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||
|
|
<%String contextPath = request.getContextPath();%>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title></title>
|
||
|
|
<jsp:include page="../inc.jsp"></jsp:include>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var grid;
|
||
|
|
$(function() {
|
||
|
|
grid = $('#grid').treegrid({
|
||
|
|
title : '',
|
||
|
|
url : ext.contextPath + '/material/materialbom/getBOMDetailsTree.do?pid=${materialBOM.id}',
|
||
|
|
striped : true,
|
||
|
|
rownumbers: true,
|
||
|
|
collapsible:true,
|
||
|
|
showFooter:true,
|
||
|
|
idField : 'id',
|
||
|
|
treeField: 'materialcode',
|
||
|
|
columns : [ [
|
||
|
|
|
||
|
|
{width : '260', title : '物料代码', field : 'materialcode', halign:'center',halign:'center'},
|
||
|
|
|
||
|
|
{width : '220', title : '物料名称', field : 'materialname', halign:'center',halign:'center'},
|
||
|
|
{width : '125', title : '基本单位用量', field : 'unituse', halign:'center'},
|
||
|
|
{width : '80', title : '良率', field : 'yield', sortable : true, halign:'center',align:'left'},
|
||
|
|
{width : '50', title : '单位', field : 'unit', halign:'center',align:'center'}
|
||
|
|
] ],
|
||
|
|
onLoadError : function(arguments){
|
||
|
|
alert();
|
||
|
|
console.info(arguments);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="easyui-panel" title="BOM信息" style="padding:10px;"
|
||
|
|
data-options="tools:'#tt'">
|
||
|
|
<form method="post" class="form">
|
||
|
|
<input type="hidden" name="id" value="${materialBOM.id }"/>
|
||
|
|
<input type="hidden" id="num" name="num" value="${materialBOM.num }" />
|
||
|
|
<table class="table">
|
||
|
|
<tr>
|
||
|
|
<th>物料代码</th>
|
||
|
|
<td>${materialBOM.materialcode }</td>
|
||
|
|
<th>物料名称</th>
|
||
|
|
<td>${materialBOM.materialname }</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>规格型号</th>
|
||
|
|
<td>${materialBOM.materialmodel }</td>
|
||
|
|
<th>版本</th>
|
||
|
|
<td>${materialBOM.version }</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>备注</th>
|
||
|
|
<td colspan="3">
|
||
|
|
<input name="remark" class="easyui-textbox" value="${materialBOM.remark }" validtype="length[0,250]" invalidMessage="有效长度0-250"
|
||
|
|
data-options="multiline:true" style="width:100%;height:100px"/>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<br/>
|
||
|
|
<div class="easyui-panel" title="物料清单">
|
||
|
|
<div>
|
||
|
|
<table id="grid" data-options="border:false" class="easyui-treegrid"></table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|