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

56 lines
1.8 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.
-->
<div class="tableform">
<div id="add-errorinfo" class="error" style="display:none;"></div>
<form id="add-form" method="post" action="index.php?app=ome&ctl=admin_reship&act=doaddmemo">
<div class="division">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<th><em class="c-red">*</em> 备注</th>
<td><textarea name='memo' vtype="required"></textarea></td>
</tr>
</tbody>
</table>
</div>
<input type="hidden" name="reship_id" value="<{$reship_id}>">
</form>
</div>
<{area inject=".mainFoot"}>
<div class="table-action">
<{button label="确定" class="btn-primary" id="add-submit"}>
<{button label="取消" class="btn-secondary" isCloseDialogBtn="true" }>
</div>
<{/area}>
<script type="text/javascript">
(function(){
$('add-submit').addEvent('click',function(){
$('add-form').fireEvent('submit',{stop:function(){}});
})
$('add-form').store('target', {
onRequest:function(){
$E('#add-submit').disabled = true
$E('#add-submit span span').setText('提交中...')
$('add-errorinfo').hide()
},
onComplete:function(resp){
$E('#add-submit').disabled = false
$E('#add-submit span span').setText('确定')
resp = JSON.decode(resp);
if (resp.error){
return $('add-errorinfo').setText(resp.error).show();
}
$('add-form').getParent('.dialog').retrieve('instance').close();
}
})
})()
</script>