Files
OMS/app/logistics/view/admin/rule_branchsel.html
2026-01-04 19:08:31 +08:00

54 lines
2.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.
-->
<div id="rule-content">
<h2>第一步:选择仓库</h2>
<div class="tableform" >
<div class="division">
<table border="0" cellpadding="0" cellspacing="0" class="girdlist">
<tbody>
<tr>
<th><em class="c-red">*</em> 仓库:</th>
<td>
<{input type='object' id='branch_id' class='branch_id' name='branch_id' object='branch@ome' filter=array('is_deliv_branch'=>'true','check_permission'=>'false') filter_sql="b_type=1 or (b_type='2' and branch_id in (select branch_id from sdb_o2o_store where is_o2o=1))"}>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="table-action">
<{button type="button" label="下一步" id="rule-step1-btn" }>
</div>
</div>
<script type="text/javascript">
(function(){
$('rule-step1-btn').addEvent('click',function(){
var data = $('rule-content').toQueryString();
if (data == 'branch_id=') return MessageBox.error('请先选择仓库');
W.page('index.php?app=logistics&ctl=admin_rule&act=addRule&finder_id=<{$env.get.finder_id}>',{
method:'get',
data:data,
update:$('rule-content'),
clearUpdateMap:false
});
});
})();
</script>