Files
OMS/app/ome/view/admin/stock/detail_stock.html
2025-12-28 23:13:25 +08:00

89 lines
2.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
Copyright © ShopeX http://www.shopex.cn. All rights reserved.
See LICENSE file for license details.
-->
<div class="division">
<h4>商品信息</h4>
<table width="100%" border="0" class="gridlist">
<thead>
<tr>
<th><t>基础物料编码</t></th>
<th><t>基础物料名称</t></th>
<th><t>库存</t></th>
</tr>
</thead>
<tbody>
<tr>
<td><{$pro_detail.bn}></td>
<td><{$pro_detail.name}></td>
<td><{$pro_detail.store|default:"0"}></td>
</tr>
</tbody>
</table>
<h4>仓库信息</h4>
<form name="form1" id="stock_form" action="index.php?<{$env.server.QUERY_STRING}>" method="post">
<table width="100%" border="0" class="gridlist">
<thead>
<tr>
<th>仓库名称</th>
<th>库存量</th>
<th>冻结库存</th>
<th>在途库存</th>
<th style="display:none">相关货位</th>
<th>安全库存</th>
<th>安全库存锁定</th>
<th>总仓单位平均成本</th>
</tr>
</thead>
<tbody>
<{foreach from=$pro_detail.branch_product key=key item=product}>
<tr>
<td><{$product.branch_name}></td>
<td><{ if (is_array($branch_ids) && in_array($product.branch_id,$branch_ids)) || !isset($branch_ids)}><{$product.store}><{else}>-<{/if}></td>
<td><{ if (is_array($branch_ids) && in_array($product.branch_id,$branch_ids)) || !isset($branch_ids)}><{$product.store_freeze}><{else}>-<{/if}></td>
<td><{ if (is_array($branch_ids) && in_array($product.branch_id,$branch_ids)) || !isset($branch_ids)}><{$product.arrive_store}><{else}>-<{/if}></td>
<td style="display:none"><{$product.store_position|default:'-'}></td>
<td>
<input type="hidden" name="branch_id[]" value="<{$product.branch_id}>" />
<input type="hidden" name="product_id[]" value="<{$product.product_id}>" />
<{ if (is_array($branch_ids) && in_array($product.branch_id,$branch_ids)) || !isset($branch_ids)}>
<input type="text" class="x-input" name="safe_store[]" size=8 value="<{$product.safe_store}>" autocomplete="off" />
<{else}>
<input type="hidden" class="x-input" name="safe_store[]" size=8 value="<{$product.safe_store}>" autocomplete="off" />
-
<{/if}>
</td>
<td>
<input type="checkbox" name="is_locked[<{$key}>]" value="1" id="is_locked" <{if $product.is_locked==1}>checked<{/if}> />
</td>
<td><{$product.entity_unit_cost}></td>
</tr>
<{/foreach}>
</tbody>
</table>
<div class="table-action"><{button type="submit" label=$___b2c="保存"|t:'b2c' id="btn_do_submit"}> <span class="status"></span></div>
<{$result}>
</form>
<!--<h4>货位信息</h4>
<table width="100%" border="0" class="gridlist">
<thead>
<tr>
<th>仓库</th>
<th>货位</th>
<th>库存量</th>
</tr>
</thead>
<tbody><{foreach from=$pro_detail.items item=items}>
<tr>
<td><{$items.name|default:"-"}></td>
<td><{$items.store_position|default:"-"}></td>
<td><{$items.store|default:"0"}></td>
</tr>
<{/foreach}>
</tbody>
</table>-->
</div>