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

86 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="division" id='support-shops'>
<div class="tableform">
<h4>是否需要系统记录特殊的下属地区规则?保留记录,<bt>下次新建该一级地区规则时,系统可自动带出</h4>
</div>
<div class="table-action">
<{button label="是" type="button" id='cancel-rule'}><{button label="否" type="button" id='copy-rule'}>
</div>
</div>
<script>
$('copy-rule').addEvent('click',function(e){
var _this=this;
$('deleteareaflag').set('value',0);
//alert($('deleteareaflag').value);
$('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{
$('rule_form').getParent('.dialog').retrieve('instance').close();
_this.getParent('.dialog').retrieve('instance').close();
}
}catch(e){}
}
});
$('rule_form').fireEvent('submit',e);
});
$('cancel-rule').addEvent('click',function(e){
var _this=this;
$('deleteareaflag').set('value',1);
$('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{
_this.getParent('.dialog').retrieve('instance').close();
}
}catch(e){}
}
});
$('rule_form').fireEvent('submit',e);
});
</script>