Files
OMS/app/openapi/view/admin/export.html
2026-01-04 17:22:44 +08:00

99 lines
3.5 KiB
HTML

<!--
Copyright 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"}>
<{css app="ome" src="ome.css"}>
<{css app="ome" src="style.css"}>
<{script src="coms/autocompleter.js" app="desktop"}>
<{script src="coms/pager.js" app="desktop"}>
<{/capture}>
<div class="tableform">
<div class="division">
<form method="post" action="index.php?app=openapi&ctl=admin_export&act=save" id="frm">
<table border="0" cellspacing="0" cellpadding="0" >
<tbody>
<tr>
<th>名称:</th>
<td><{input type='text' vtype='required' name='name'}></td>
</tr>
<tr>
<th>类型:</th>
<td><{input type='text' vtype='required' name='property'}></td>
</tr>
<tr>
<th>报表时间:</th>
<td><{input type='time' vtype='required' name='bill_time'}></td>
</tr>
<tr>
<th>开始时间:</th>
<td><{input type='time' vtype='required' name='start_time'}></td>
</tr>
<tr>
<th>结束时间:</th>
<td><{input type='time' vtype='required' name='end_time'}></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<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>
<script type="text/javascript">
(function(){
var _form = $('frm');//表单ID
var btn = $('submit_btn');//按钮ID
var finder = opener.finderGroup['<{$env.get.finder_id}>'];
$('close_btn').addEvent('click', function(){
if(finder){
setTimeout(finder.refresh(),30000);
}
setTimeout('window.close()',200);
});
_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 != ""){
if(finder){
setTimeout(finder.refresh(),30000);
}
setTimeout('window.close()',200);
}
}
});
btn.addEvent('click',function(){
_form.fireEvent('submit',{stop:$empty});
});
})();
</script>