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

70 lines
2.8 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="8" 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;">{store_bn}</td>' +
'<td style="text-align:left;padding-left:5px;">{material_bn}</td>' +
'<td style="text-align:left;padding-left:5px;">{reple_nums}</td>' +
'<td style="text-align:left;padding-left:5px;">{apply_nums}</td>' +
'<td style="text-align:left;padding-left:5px;">{sug_status}</td>' +
'<td style="text-align:left;padding-left:5px;">{sale_nums}</td>' +
'<td style="text-align:left;padding-left:5px;">{create_time}</td>' +
'</tr>';
var store=[],pag;
new Request({url:'index.php?app=console&ctl=admin_replenish_task&act=getSuggestItems&p[0]=<{$reTaskInfo.task_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>