mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 19:05:34 +08:00
77 lines
2.4 KiB
HTML
77 lines
2.4 KiB
HTML
<!--
|
||
Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
See LICENSE file for license details.
|
||
-->
|
||
|
||
<div class="tableform">
|
||
<div class="division">
|
||
<form method="post" action="index.php?app=wmsmgr&ctl=admin_wms&act=setNodeId" id="frm">
|
||
<table border="0" cellspacing="0" cellpadding="0" >
|
||
<{input type=hidden name=channel_id value=$channel_id}>
|
||
<tbody>
|
||
<tr>
|
||
<th>node_id:</th>
|
||
<td><{input type=text name=node_id}></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<{area inject=".mainFoot"}>
|
||
<div class="table-action">
|
||
<table width="100%" cellspacing="0" cellpadding="0">
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<{button type="button" id='submit_btn' label='保存' }>
|
||
<{button type="button" id='close_btn' label='关闭' }>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<{/area}>
|
||
<script type="text/javascript">
|
||
(function(){
|
||
var _form = $('frm');//表单ID
|
||
var btn = $('submit_btn');//按钮ID
|
||
var finder = finderGroup['<{$env.get.finder_id}>'];
|
||
$('close_btn').addEvent('click', function(){
|
||
try{
|
||
var _dialogIns = this.getParent('.dialog').retrieve('instance');
|
||
}catch(e){}
|
||
|
||
if(_dialogIns){
|
||
setTimeout(finder.refresh(),30000);
|
||
_dialogIns.close();
|
||
}
|
||
});
|
||
_form.store('target',{
|
||
onRequest:function(){
|
||
btn.setAttribute('disabled', 'disabled');
|
||
},
|
||
onComplete:function(){
|
||
btn.removeAttribute('disabled');
|
||
},
|
||
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> |