Files
OMS/app/omevirtualwms/view/vopstockout.html
2025-12-28 23:13:25 +08:00

102 lines
3.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.
-->
<script>
<{if $data.count}>
var item_i = <{$data.count}>;
<{else}>
var item_i = 0;
<{/if}>
</script>
<div class="tableform">
<h3>唯品会JIT出库状态回传</h3>
<div class="division">
<form action="index.php?app=omevirtualwms&ctl=admin_wms&act=doSubmit" method="post" id="from-stockout" >
<input type="hidden" name='flag' value='vopstockout' />
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
<tbody>
<tr>
<th>出库单编号</th>
<td>
<{$data.bn}>
<input type="hidden" name="stockout_bn" value='<{$data.bn}>'>&nbsp;<input type="hidden" name="vopstockout_bn" value='<{$data.bn}>'></td>
</tr>
<tr>
<th>第三方仓储</th>
<td>
<input type="hidden" name="node_id" value='<{$data.node_id}>' /><{$data.wms_name}>
</tr>
<tr>
<th>出库仓库</th>
<td><input type="hidden" name="warehouse" value='<{$data.branch_bn}>'><{$data.name}></td>
</tr>
<tr>
<th>状态</th>
<td>
<select name="status" id="status">
<option value="">=请选择=</option>
<option value="CANCEL">强制取消</option>
</select>&nbsp;&nbsp;<span style="color:red;">* 只支持取消出库单操作!</span>
</td>
</tr>
<tr>
<th>备注</th>
<td><input type="text" name="remark" value="<{$data.demo}>"></td>
</tr>
<tr>
<th>操作时间</th>
<td><input type="text" name="operate_time" value="<{$data.time}>"></td>
</tr>
<tr>
<th>task</th>
<td><input type="text" name="task" value="<{$data.task}>"></td>
</tr>
</tbody>
</table>
<div class="tableform">
<div><span style="font-weight:bold;">出库商品明细:</span></div>
<div id="listArea" class="division">
<{if $data.items_count >= 1000}>
<font style="color:red">*由于数据量过大,列表暂不展示,如要执行大数据量回传操作,请使用导入功能!</font>
<{else}>
<{foreach from=$data.product item=data name=product}>
<div id="vopstock_<{$data.stockout_item_id}>" style="margin-bottom:3px;border:1px solid #ccc;">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<th>货品名称</th>
<td><{$data.product_name}></td>
<th>货品编号</th>
<td><{$data.bn}><input type="hidden" name="product['bn'][]" value="<{$data.bn}>"></td>
</tr>
<tr>
<th style="width:70px;">出库数量</th>
<td><input type="text" name="product['num'][]" value="<{$data.num}>"> </td>
<td>&nbsp;</td>
</tr>
</table>
</div>
<{/foreach}>
<{/if}>
</div>
</div>
<div class="table-action">
<{if $data.items_count < 3000}>
<button type="submit" name="submit" id="btn_vopstockout" class="btn" onclick="return stockout_check()"><span><span>提交</span></span></button>
<{/if}>
</div>
</form>
</div>
</div>
<script>
function stockout_check(){
if(!$('status').getValue()){
alert('请选择出库状态');
return false;
}
return true;
}
</script>