Commit 306e67ac by yyq1988

对接物资盘亏

parent cd95ae43
......@@ -241,21 +241,21 @@ $(document).ready(function() {
$('#materialLossTable').bootstrapTable('refresh');
}
function add(){
jp.go("${ctx}/warehouse/materialloss/materialLoss/form/add");
jp.openSaveDialog("新增物资盘亏","${ctx}/warehouse/materialloss/materialLoss/form/add",'1200','800');
}
function edit(id){
if(id == undefined){
id = getIdSelections();
}
jp.go("${ctx}/warehouse/materialloss/materialLoss/form/edit?id=" + id);
jp.openSaveDialog("编辑物资盘亏","${ctx}/warehouse/materialloss/materialLoss/form/edit?id=" + id,'1200','800');
}
function view(id){//没有权限时,不显示确定按钮
if(id == undefined){
id = getIdSelections();
}
jp.go("${ctx}/warehouse/materialloss/materialLoss/form/view?id=" + id);
jp.openViewDialog("查看物资盘亏","${ctx}/warehouse/materialloss/materialLoss/form/view?id=" + id,'1200','800');
}
......@@ -299,9 +299,15 @@ $(document).ready(function() {
<table class="ani table">
<thead>
<tr>
<th>盘亏表主表ID</th>
<th>物资台账明细ID</th>
<th>备注信息</th>
<th>物资名称</th>
<th>物资编号</th>
<th>类型</th>
<th>型号</th>
<th>单价</th>
<th>批次号</th>
<th>货架</th>
<th>仓库</th>
<th>备注</th>
</tr>
</thead>
<tbody id="materialLossChild-{{idx}}-1-List">
......@@ -313,10 +319,28 @@ $(document).ready(function() {
<script type="text/template" id="materialLossChild1Tpl">//<!--
<tr>
<td>
{{row.materialLoss.id}}
{{row.ledgerInfo.name}}
</td>
<td>
{{row.ledgerInfo.id}}
{{row.ledgerInfo.code}}
</td>
<td>
{{row.ledgerInfo.type.name}}
</td>
<td>
{{row.ledgerInfo.model}}
</td>
<td>
{{row.ledgerInfo.amount}}
</td>
<td>
{{row.ledgerInfo.batchNum}}
</td>
<td>
{{row.ledgerInfo.shelves.name}}
</td>
<td>
{{row.ledgerInfo.shelves.warehouse.name}}
</td>
<td>
{{row.remarks}}
......
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