Files
OMS/app/ome/view/admin/system/sync_reason.html
2025-12-28 23:13:25 +08:00

66 lines
2.0 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.
-->
<form action="index.php?app=ome&ctl=admin_setting&act=doSyncResaon&finder_id=<{$finder_id}>" method="post" id="form">
<div class="tableform">
<div class="division">
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
<tbody>
<input type='hidden' id='finder_id' name='finder_id' value='<{$finder_id}>'>
<tr>
<th><h4>WMS第三方仓储:</h4></th>
<td>
<select name="node_id" id="node_id">
<{foreach from=$storage item=itemVal key=itemKey}>
<option value="<{$itemVal.node_id}>"><{$itemVal.node_name}></option>
<{/foreach}>
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
<{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> &nbsp; &nbsp;
<{button label="关闭" class="btn-secondary" isCloseDialogBtn="true"}></td>
</tr>
</tbody>
</table>
</div>
<{/area}>
<script>
(function(){
var _form = $('form');//表单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){
finder.refresh();
_dialogIns.close();
}
}
}
});
btn.addEvent('click',function(){
_form.fireEvent('submit',{stop:$empty});
});
})();
</script>