mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 21:25:33 +08:00
75 lines
1.8 KiB
HTML
75 lines
1.8 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.
|
||
-->
|
||
|
||
<script>
|
||
function edit_status()
|
||
{
|
||
new Request({
|
||
url:'index.php?app=finance&ctl=monthend&act=edit_status',
|
||
method:'post',
|
||
data:'monthly_id='+'<{$monthly_id}>',
|
||
onSuccess:function(response){
|
||
var hash_res_obj = JSON.decode(response);
|
||
Dialogclose();
|
||
window.finderGroup['<{$env.get._finder.finder_id}>'].refresh();
|
||
|
||
}
|
||
}).send();
|
||
}
|
||
|
||
var Dialogclose = function(){
|
||
var btn = $('doConf-form-submit');
|
||
var _dialogIns = btn.getParent('.dialog').retrieve('instance');
|
||
_dialogIns.close();
|
||
}
|
||
</script>
|
||
|
||
|
||
|
||
<{if $asc_status_msg}>
|
||
<script>alert('<{$asc_status_msg}>'); Dialogclose();</script>
|
||
<{elseif $book_status_msg}>
|
||
<script>alert('<{$book_status_msg}>'); Dialogclose();</script>
|
||
<{elseif $auto_falg == 'true'}>
|
||
<script>
|
||
if(window.confirm('<{$auto_falgmsg}>'))
|
||
{
|
||
edit_status();
|
||
}
|
||
else
|
||
{
|
||
Dialogclose();
|
||
}
|
||
</script>
|
||
<{else}>
|
||
<script>
|
||
if(window.confirm("关账后,该账期将不能再进行任何处理!"))
|
||
{
|
||
edit_status();
|
||
}
|
||
else
|
||
{
|
||
Dialogclose();
|
||
}
|
||
</script>
|
||
<{/if}>
|
||
|
||
<div class="table-action">
|
||
|
||
<input value="提交" type="submit" class='' name="submit" disabled="disabled" id="doConf-form-submit" />
|
||
</div>
|
||
|