Files
OMS/app/console/view/admin/vop/stockout_pack.html
2026-01-04 19:08:31 +08:00

68 lines
2.7 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<{capture name="header"}>
<link href="../apps/ome/statics/ome.css" rel="stylesheet" type="text/css">
<{script src="coms/autocompleter.js" app="desktop"}>
<{script src="coms/pager.js" app="desktop"}>
<{/capture}>
<div class="tableform">
<h4>装箱信息</h4>
<div class="division">
<table border="0" cellspacing="0" cellpadding="0" class="gridlist">
<thead>
<tr>
<th style='text-align:left;padding-left:5px;'>采购单号</th>
<th style='text-align:left;padding-left:5px;'>拣货单号</th>
<th style='text-align:left;padding-left:5px;'>箱号</th>
<th style='text-align:left;padding-left:5px;'>货号</th>
<th style='text-align:left;padding-left:5px;'>条形码</th>
<th style='text-align:left;padding-left:5px;'>货品名称</th>
<th style='text-align:left;padding-left:5px;'>装箱数量</th>
</tr>
</thead>
<tbody id="dataNode">
<tr>
<td colspan="7" style="text-align:center;"><div class="note" style="margin:0;"> 暂无装箱信息 </div></td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
var tpl = '<tr>'+
'<td style="text-align:left;padding-left:5px;">{po_bn}</td>'+
'<td style="text-align:left;padding-left:5px;">{pick_no}</td>'+
'<td style="text-align:left;padding-left:5px;">{box_no}</td>'+
'<td style="text-align:left;padding-left:5px;">{bn}</td>'+
'<td style="text-align:left;padding-left:5px;">{barcode}</td>'+
'<td style="text-align:left;padding-left:5px;">{product_name}</td>'+
'<td style="text-align:left;padding-left:5px;">{num}</td>'+
'</tr>';
var store=[],pag;
new Request({url:'index.php?app=console&ctl=admin_vopstockout&act=getBillItemBoxs&p[0]=<{$stockout_id}>',
onComplete:function(rs){
rs=JSON.decode(rs);
store.combine(rs);
createProduct(store);
}}).send();
function createProduct(data){
pag=new PageData(tpl,data,{'updateMain':$('dataNode'),'pageNum':20});
}
</script>