Files
OMS/app/finance/view/monthed/reset_uncharge.html
2026-01-04 19:08:31 +08:00

83 lines
2.3 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.
-->
<style>
.shop-name{
color:red;font-weight:bold;
}
.rules{
margin-bottom: 5px;
}
.rules select{
margin-right: 5px;
}
.rule_tr{
margin: 10px 0;
}
</style>
<div class="tableform">
<h3>更改账期</h3>
<div class="division">
<form method="post" action="index.php?app=finance&ctl=monthend_uncharge&act=doSet" id="form-rule">
<input type="hidden" name="ar_id" value="<{$ar_id}>">
<input type="hidden" name="monthly_id" value="<{$monthly_id}>">
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="rule-section">
<tbody>
<tr>
<th>选择账期</th>
<td>
<select name="monthly_id" vtype="required">
<{foreach from=$monthly_report item=val}>
<option value="<{$val.monthly_id}>" ><{$val.monthly_date}></option>
<{/foreach}>
</select>
</td>
</tr>
</table>
<div class="table-action"> <{button label="提交" type="submit" name="submit" id="btn-rule"}> &nbsp;&nbsp; <{button label="关闭" onclick="javascript:void(window.close());" class="btn-secondary" type="button"}></div>
</form>
</div>
</div>
<script>
$('form-rule').store('target',{
onRequest:function(){
$('btn-rule').set('disabled', 'true');
},
onComplete:function(jsontext){
var json = Json.evaluate(jsontext);
if (typeof(json.error) != 'undefined'){
$('btn-rule').set('disabled', '');
}else{
$('btn-rule').set('disabled', 'true');
opener.finderGroup['<{$env.get.finder_id}>'].refresh.delay(400,opener.finderGroup['<{$env.get.finder_id}>']);
window.close();
}
}
});
</script>