mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-05 06:45:32 +08:00
56 lines
1.8 KiB
HTML
56 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.
|
|
-->
|
|
|
|
<form method="POST" action="index.php?app=finance&ctl=monthend_verification&act=save_memo&p[]=<{$monthly_id}>&p[]=<{$order_bn}>" id="bill-memo-form">
|
|
<div class="tableform">
|
|
<div class="division">
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tbody>
|
|
<tr>
|
|
<th>备注:</th>
|
|
<td>
|
|
<textarea name="memo"></textarea>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="table-action">
|
|
<{button type="submit" label="确定" class="btn-primary" }>
|
|
<{button label="关闭" class="btn-secondary" isCloseDialogBtn="true"}>
|
|
</div>
|
|
</form>
|
|
<script type="text/javascript">
|
|
$('bill-memo-form').store('target',{
|
|
onRequest:function(){
|
|
$E('#bill-memo-form .btn-primary').set('disabled', 'true');
|
|
|
|
},
|
|
onComplete:function(jsontext){
|
|
var json = Json.evaluate(jsontext);
|
|
if (typeof(json.error) != 'undefined'){
|
|
$E('#bill-memo-form .btn-primary').set('disabled', '');
|
|
}else{
|
|
$E('#bill-memo-form .btn-primary').set('disabled', 'true');
|
|
|
|
$('bill-memo-form').getParent('.dialog').retrieve('instance').close();
|
|
|
|
finderGroup['<{$env.get.finder_id}>'].refresh.delay(400,finderGroup['<{$env.get.finder_id}>']);
|
|
}
|
|
}
|
|
});
|
|
</script> |