Files
OMS/app/console/view/admin/inventory/view.html
2026-01-04 19:08:31 +08:00

88 lines
2.6 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.
-->
<{if ($flag == 'false')}>
<div class="tableform">
<h4><{t}>结果:<{/t}></h4>
<div class="division">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td align="center"><{$msg}></td>
</tr>
<tr>
<td align="center"><{button type="submit" label="确认" id="b223" }></td>
</tr>
</tbody>
</table>
</div></div>
<{else}>
<div class="tableform">
<h4><{t}>结果:<{/t}></h4>
<div class="division">
<form id="confirm123" action="index.php?app=console&ctl=admin_inventory_apply&act=finish_confirm" method="POST">
<input type="hidden" name="apply_id" value="<{$apply.inventory_apply_id}>" />
<input type="hidden" name="branch_bn" value="<{$branch}>" />
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td align="center">数据正确,请确认</td>
</tr>
<tr>
<td align="center"><{button type="submit" label="确认" id="b123" }></td>
</tr>
</tbody>
</table>
</form>
</div></div>
<{/if}>
<script>
var finder = opener.finderGroup['<{$finder_id}>'];
if ($('b223')){
$('b223').addEvent('click', function (e){
finder.refresh.delay(400, finder);
setTimeout("window.close();",400);
});
}
if ($('confirm123')){
$('confirm123').store('target', {
onRequest: function() {
if ($('b123')) {
$('b123').set('disabled', 'true');
$('b123').getElements('span')[1].set('text', '确认中');
}
},
onComplete: function(jsontext) {
var json = Json.evaluate(jsontext);
var finder = opener.finderGroup['<{$finder_id}>'];
if (typeof(json.error) == 'undefined') {
if (json.success == '成功:处理成功') {
try {
finder.refresh.delay(400, finder);
} catch(e) {}
setTimeout("window.close();",400);
}
}
if ($('b123')) {
$('b123').set('disabled', '');
$('b123').getElements('span')[1].set('text', '确认');
}
}
});
}
</script>