Files
OMS/app/ome/view/admin/system/abnormal.html
2026-01-04 19:08:31 +08:00

82 lines
2.7 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.
-->
<{capture name="header"}>
<link href="../apps/ome/statics/ome.css" rel="stylesheet" type="text/css">
<{/capture}>
<div class="tableform">
<h43>订单异常类型</h4>
<div class="division">
<form method="post" action="index.php?app=ome&ctl=admin_setting&act=addabnormal" id="form-abnormal">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<th>名称:</th>
<td>
<input type="text" size="20" name="type[type_name]" value="<{$abnormal.type_name}>" vtype="required"/>
<{help}><{t}>订单的异常处理类型在系统中的中文标识名称<{/t}><{/help}>
</td>
</tr>
</tbody>
</table>
<{if $abnormal.type_id}>
<input type="hidden" name="type[type_id]" value="<{$abnormal.type_id}>">
<{/if}>
</form>
</div>
</div>
<{area inject=".mainFoot"}>
<div class="table-action">
<table width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><button class="btn btn-primary" id='submit_btn'><span><span><{t}>确定<{/t}></span></span></button></td>
</tr>
</tbody>
</table>
</div>
<{/area}>
<script>
(function(){
var _form = $('form-abnormal');//表单ID
var btn = $('submit_btn');//按钮ID
var finder = finderGroup['<{$env.get.finder_id}>'];
_form.store('target',{
onComplete:function(){
},
onSuccess:function(response){
var hash_res_obj = JSON.decode(response);
if (hash_res_obj.success != undefined && hash_res_obj.success != ""){
try{
var _dialogIns = btn.getParent('.dialog').retrieve('instance');
}catch(e){}
if(_dialogIns){
setTimeout(finder.refresh(),30000);
_dialogIns.close();
}
}
}
});
btn.addEvent('click',function(){
_form.fireEvent('submit',{stop:$empty});
});
})();
</script>