Commit 02eebaad by yyq1988

对接盘盈入库功能

parent 805a2680
...@@ -44,14 +44,7 @@ ...@@ -44,14 +44,7 @@
// 获取当前节点 // 获取当前节点
var treeNode = e.node; var treeNode = e.node;
var id = treeNode.id == '0' ? '' :treeNode.id; var id = treeNode.id == '0' ? '' :treeNode.id;
if(treeNode.level == 0){//level=0 代表公司 $("#warehouseId").val(id);
$("#companyId").val(id);
$("#officeId").val("");
}else{
$("#companyId").val("");
$("#officeId").val(id);
}
$('#table').bootstrapTable('refresh'); $('#table').bootstrapTable('refresh');
}).on('loaded.jstree', function() { }).on('loaded.jstree', function() {
$("#jstree").jstree('open_all'); $("#jstree").jstree('open_all');
...@@ -177,8 +170,7 @@ ...@@ -177,8 +170,7 @@
<div id="collapseTwo" class="accordion-body"> <div id="collapseTwo" class="accordion-body">
<div class="accordion-inner"> <div class="accordion-inner">
<form id="searchForm" class="form form-horizontal well clearfix" > <form id="searchForm" class="form form-horizontal well clearfix" >
<input type="hidden" id="companyId" name="company.id"/> <input type="hidden" id="warehouseId" name="warehouse.id"/>
<input type="hidden" id="officeId" name="office.id"/>
<div class="col-sm-4"> <div class="col-sm-4">
<label class="label-item single-overflow pull-left" title="货架名称:">货架名称:</label> <label class="label-item single-overflow pull-left" title="货架名称:">货架名称:</label>
<input type="text" name="name" maxlength="100" class=" form-control"/> <input type="text" name="name" maxlength="100" class=" form-control"/>
......
...@@ -90,7 +90,7 @@ $(document).ready(function() { ...@@ -90,7 +90,7 @@ $(document).ready(function() {
} }
,{ ,{
field: 'number', field: 'number',
title: '盘盈入库单号', title: '单号',
sortable: true, sortable: true,
sortName: 'number' sortName: 'number'
,formatter:function(value, row , index){ ,formatter:function(value, row , index){
...@@ -110,10 +110,10 @@ $(document).ready(function() { ...@@ -110,10 +110,10 @@ $(document).ready(function() {
} }
,{ ,{
field: 'operator', field: 'operator.name',
title: '操作人', title: '操作人',
sortable: true, sortable: true,
sortName: 'operator' sortName: 'operator.name'
} }
,{ ,{
...@@ -122,6 +122,12 @@ $(document).ready(function() { ...@@ -122,6 +122,12 @@ $(document).ready(function() {
sortable: true, sortable: true,
sortName: 'time' sortName: 'time'
},{
field: 'sum',
title: '总价',
sortable: true,
sortName: 'sum'
} }
,{ ,{
field: 'remarks', field: 'remarks',
...@@ -241,21 +247,21 @@ $(document).ready(function() { ...@@ -241,21 +247,21 @@ $(document).ready(function() {
$('#profitWarehousingTable').bootstrapTable('refresh'); $('#profitWarehousingTable').bootstrapTable('refresh');
} }
function add(){ function add(){
jp.go("${ctx}/warehouse/profitwarehousing/profitWarehousing/form/add"); jp.openSaveDialog("新增盘盈入库单","${ctx}/warehouse/profitwarehousing/profitWarehousing/form/add",'1200','800');
} }
function edit(id){ function edit(id){
if(id == undefined){ if(id == undefined){
id = getIdSelections(); id = getIdSelections();
} }
jp.go("${ctx}/warehouse/profitwarehousing/profitWarehousing/form/edit?id=" + id); jp.openSaveDialog("编辑盘盈入库单","${ctx}/warehouse/profitwarehousing/profitWarehousing/form/edit?id=" + id,'1200','800');
} }
function view(id){//没有权限时,不显示确定按钮 function view(id){//没有权限时,不显示确定按钮
if(id == undefined){ if(id == undefined){
id = getIdSelections(); id = getIdSelections();
} }
jp.go("${ctx}/warehouse/profitwarehousing/profitWarehousing/form/view?id=" + id); jp.openViewDialog("查看盘盈入库单","${ctx}/warehouse/profitwarehousing/profitWarehousing/form/view?id=" + id,'1200','800');
} }
...@@ -299,12 +305,13 @@ $(document).ready(function() { ...@@ -299,12 +305,13 @@ $(document).ready(function() {
<table class="ani table"> <table class="ani table">
<thead> <thead>
<tr> <tr>
<th>盘盈入库主表ID</th>
<th>名称</th> <th>名称</th>
<th>类型</th> <th>类型</th>
<th>型号</th> <th>型号</th>
<th>货架ID</th> <th>仓库</th>
<th>备注信息</th> <th>货架</th>
<th>单价</th>
<th>备注</th>
</tr> </tr>
</thead> </thead>
<tbody id="profitWarehousingChild-{{idx}}-1-List"> <tbody id="profitWarehousingChild-{{idx}}-1-List">
...@@ -316,19 +323,22 @@ $(document).ready(function() { ...@@ -316,19 +323,22 @@ $(document).ready(function() {
<script type="text/template" id="profitWarehousingChild1Tpl">//<!-- <script type="text/template" id="profitWarehousingChild1Tpl">//<!--
<tr> <tr>
<td> <td>
{{row.profitWarehousing.id}}
</td>
<td>
{{row.name}} {{row.name}}
</td> </td>
<td> <td>
{{row.type}} {{row.type.name}}
</td> </td>
<td> <td>
{{row.marking}} {{row.marking}}
</td> </td>
<td> <td>
{{row.shelves.id}} {{row.shelves.name}}
</td>
<td>
{{row.warehouse.name}}
</td>
<td>
{{row.amount}}
</td> </td>
<td> <td>
{{row.remarks}} {{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