Files
OMS/app/omevirtualwms/view/stockout.html
chenping 61783b7d01 1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数

3. 【优化】盘点申请单确认

4. 【修复】采购退货单模拟出库失败问题

5. 【新增】订单金额客户实付与结算金额

6. 【优化】仓库发货统计报表物料名称显示

7. 【优化】自有仓储虚拟发货逻辑

8. 【修复】基础物料分类管理问题
2026-04-01 11:59:17 +08:00

142 lines
5.0 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.
-->
<script>
<{if $data.count}>
var item_i = <{$data.count}>;
<{else}>
var item_i = 0;
<{/if}>
</script>
<div class="tableform">
<h3>出库状态回传</h3>
<div class="division">
<form action="index.php?app=omevirtualwms&ctl=admin_wms&act=doSubmit&p[0]=<{$type_id}>" method="post" id="from-stockout" >
<input type="hidden" name='flag' value='stockout' />
<{if $i_type}><input type="hidden" name="i_type" value="<{$i_type}>"><{/if}>
<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}>'></td>
</tr>
<tr>
<th>第三方仓储</th>
<td>
<input type="hidden" name="node_id" value='<{$data.node_id}>' />
<!-- <select name="node_id">
<{foreach from=$wms item=wms}>
<option value="<{$wms.node_id}>"><{$wms.wms_name}></option>
<{/foreach}>
</select>
</td>!--><{$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">
<option value="FAILED">接单失败</option>
<option value="ACCEPT">已接单</option>
<option value="PARTIN">部分出库</option>
<option value="FINISH" selected >全部出库</option>
<option value="CANCEL">取消</option>
<option value="CLOSE">关闭</option>
</select>
</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 >= 3000}>
<font style="color:red">*由于数据量过大,列表暂不展示,如要执行大数据量回传操作,请使用导入功能!</font>
<{else}>
<{foreach from=$data.product item=data name=product}>
<div id="stockin_<{$smarty.foreach.product.iteration}>" 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[<{$smarty.foreach.product.iteration}>][]" value="<{$data.bn}>"></td>
</tr>
<tr>
<th style="width:70px;">出库数量</th>
<td><input type="text" name="product[<{$smarty.foreach.product.iteration}>][]" value="<{math equation="x - y" x=$data.num y=$data.out_num}>"> </td>
<td><span onclick="delStockin('stockin_<{$smarty.foreach.product.iteration}>');" style="cursor:pointer;color:red;margin-left:100px;">X</span></td>
</tr>
<tr>
<th style="width:70px;">唯一码</th>
<td><input type="text" name="product[<{$smarty.foreach.product.iteration}>][]" value="" >*多个用 , 间隔</td>
<th style="width:70px;"></th>
<td></td>
</tr>
</table>
</div>
<{/foreach}>
<{/if}>
</div>
</div>
<div class="table-action">
<{if $data.items_count < 3000}>
<{button label="提交" type="submit" name="submit" id="btn-reship"}>
<{/if}>
</div>
</form>
</div>
</div>
<script>
function addStockout(){
var i = ++item_i;
var content='\
<div id="stockout_'+i+'" style="margin-bottom:3px;border:1px solid #ccc;">\
<table width="100%" cellspacing="0" cellpadding="0" border="0">\
<tr><th>货品编号'+i+'</th>\
<td><input type="text" name="product['+i+'][]"></td>\
<th style="width:70px;">出库数量'+i+'</th> \
<td><input type="text" name="product['+i+'][]"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span onclick="delStockout(\'stockout_'+i+'\');" style="cursor:pointer;color:red;">X</span></td> \
</tr>\
<table>\
</div>\
';
$E('#listArea').adopt(new Element('div').set('html',content).getFirst());
}
delStockout=function(o){
$(o).remove();
}
</script>