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

64 lines
1.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.
-->
<div class="tableform">
<h4><{t}>盘点单详情:<{/t}></h4>
<div class="division">
<table cellpadding="0" cellspacing="0" class="gridlist" cellpadding="0">
<thead>
<tr>
<th>基础物料编码</th>
<th>基础物料名称</th>
<th>盘点结果</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<{foreach from=$rows item=item}>
<tr>
<td><{$item.bn}></td>
<td><{$item.name}></td>
<td><{$item.quantity}></td>
<td><{$item.memo}></td>
</tr>
<{/foreach}>
<{if $many == 'true'}>
<tr>
<td align="right" colspan="4"><{button type="button" label="查看更多" id="b1" }></td>
</tr>
<{/if}>
</tbody>
</table>
</div></div>
<script>
if ($('b1')){
$('b1').addEvent('click', function(e){
var url_ = "index.php?app=console&ctl=admin_inventory&act=view_item&inventory_id="+<{$inventory_id}>;
//window.open(url_);
var url='index.php?app=desktop&act=alertpages&goto='+encodeURIComponent(url_);
Ex_Loader('modedialog',function() {
new finderDialog(url,{params:{url:'',name:'product_id[]'},handle:this,width:1000,height:660,
onCallback:function(rs){
//if(!rs)return;
//rs=JSON.decode(rs);
//init(rs);
}
});
}.bind(this));
});
}
</script>