mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-05 14:45:33 +08:00
67 lines
2.2 KiB
HTML
67 lines
2.2 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.
|
|
-->
|
|
|
|
<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> |