mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-30 21:15:34 +08:00
63 lines
2.3 KiB
HTML
63 lines
2.3 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">
|
|
<h3>在线盘点</h3>
|
|
<div class="division">
|
|
<h5>请选择盘点仓库</h5>
|
|
<form action="index.php?app=purchase&ctl=admin_inventory&act=toInventory" method="POST">
|
|
<div class="gray_form">
|
|
<ul class="branch_list">
|
|
<{if (!$branch_list)}>
|
|
<li><label for="1">无仓库信息</label></li>
|
|
<{else}>
|
|
<{foreach from=$branch_list index=index item=item}>
|
|
|
|
<li><label for="branch_id_<{$item.branch_id}>"><input type="radio" name="branch_id" id="branch_id_<{$item.branch_id}>" value="<{$item.branch_id}>"> <{$item.name}></label></li>
|
|
|
|
<{/foreach}>
|
|
<{/if}>
|
|
</ul>
|
|
<!-- <div align="right"><a href="javascript:void(0);" id="btn_more">点击展开更多>></a></div> -->
|
|
</div>
|
|
<div class="division" align="center"><{button type="submit" class="btn-primary" label="确 定"}></div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
(function(){
|
|
function getList(k,v){
|
|
return '<label for="branch_id_'+k+'"><input type="radio" name="branch_id" id="branch_id_'+k+'" value="'+k+'"> '+v+'</label>';
|
|
}
|
|
/*$('btn_more').addEvent("click",function(){
|
|
new Request({url:'index.php?app=purchase&ctl=admin_inventory&act=branch_more',
|
|
onRequest:function(){
|
|
this.addClass('loading');
|
|
}.bind(this),
|
|
onSuccess:function(json){//[{id:1,name:"上海仓库"}]
|
|
this.getParent().destroy();
|
|
var fdoc=document.createDocumentFragment();
|
|
json.each(function(item,i){
|
|
fdoc.appendChild(new Element('li',getList(item.id,item.name)));
|
|
});
|
|
$E('.branch_list').appendChild(fdoc);
|
|
}.bind(this)
|
|
}).get();
|
|
});*/
|
|
})()
|
|
</script>
|