mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-03 14:15:46 +08:00
66 lines
2.2 KiB
HTML
66 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.
|
|
-->
|
|
|
|
<script>
|
|
function getmemo(){
|
|
if($('memo_id').getSelected()){
|
|
$('memo').value = $('memo_id').getSelected().get('text');
|
|
}
|
|
}
|
|
</script>
|
|
<div class="tableform">
|
|
<form method="post" action="index.php?app=tgkpi&ctl=admin_pick&act=setCheckFail" id="tgkpi_memo">
|
|
<input name="delivery_id" type="hidden" value="<{$delivery_id}>" />
|
|
<input name="memo" id="memo" type="hidden" value="" />
|
|
<div class="division">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<th><{t}>失败原因:<{/t}></th>
|
|
<td>
|
|
<select id="memo_id" name="memo_id" onchange="getmemo();">
|
|
<{foreach from=$reasonInfos item=item}>
|
|
<option value="<{$item.reason_id}>"><{$item.reason_memo}></option>
|
|
<{/foreach}>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th> </th>
|
|
<td>
|
|
<button type="button" id="memo_save_btn">保存</button> <span id="status"></span>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
window.addEvent('domready', function(){
|
|
var form = $('tgkpi_memo');
|
|
var url = '<{$url}>';
|
|
$('memo_save_btn').addEvent('click',function(){
|
|
new Request({url:form.action,method:'post',data:form.toQueryString(),
|
|
onComplete:function(){
|
|
form.getParent('.dialog').retrieve('instance').close();
|
|
window.location = url;
|
|
}
|
|
}).send();
|
|
});
|
|
getmemo();
|
|
});
|
|
</script> |