mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
75 lines
2.6 KiB
HTML
75 lines
2.6 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">
|
|
<h4>下列区域为二级区域,以下三级区域将会自动建立规则 </h4>
|
|
<h4>标红色区域为已存在规则,如果确认,规则将会自动更新</h4>
|
|
|
|
<div class="division">
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="1" class="delivery-info">
|
|
<tbody>
|
|
<tr>
|
|
<td align='center'>二级区域</td>
|
|
<td align='center'>三级区域</td>
|
|
</tr>
|
|
|
|
|
|
|
|
<{foreach from=$region_list item=region_list}>
|
|
<tr><td width="40%"><{$region_list.region_name}></td><td align='left'>
|
|
|
|
<{foreach from=$region_list.area item=area name=area}><{if $area.flag==1}><font color='red'><{/if}><{$area.region_name}><{if $smarty.foreach.area.last!='1'}>,<{/if}> <{if $area.flag==1}></font><{/if}> <{/foreach}></td></tr>
|
|
|
|
|
|
|
|
<{/foreach}>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="table-action">
|
|
<{button label="确认" class="btn-primary" id="batch_area_confirm" }>
|
|
<{button label="取消" class="btn-primary" id="batch_area_cancel" }>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$('batch_area_confirm').addEvent('click', function(e){
|
|
var _this=this;
|
|
$('area_rule_form').store('target',{
|
|
onRequest:function(){
|
|
_this.disabled=true;
|
|
},
|
|
onComplete:function(jsontext){
|
|
try{
|
|
var json = Json.evaluate(jsontext);
|
|
if (typeof(json.error) != 'undefined'){
|
|
_this.disabled=false;
|
|
}else{
|
|
|
|
$('area_rule_form').getParent('.dialog').retrieve('instance').close();
|
|
_this.getParent('.dialog').retrieve('instance').close();
|
|
show_area_list();
|
|
|
|
}
|
|
}catch(e){}
|
|
}
|
|
});
|
|
$('area_rule_form').fireEvent('submit',e);
|
|
});
|
|
$('batch_area_cancel').addEvent('click', function(){
|
|
this.getParent('.dialog').retrieve('instance').close();
|
|
});
|
|
</script> |