Files
OMS/app/logistics/view/admin/confirmDeleteRule.html
2025-12-28 23:13:25 +08:00

75 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
Copyright © ShopeX http://www.shopex.cn. All rights reserved.
See LICENSE file for license details.
-->
<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',1);
//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',0);
$('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);
});
</script>