mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
135 lines
3.5 KiB
HTML
135 lines
3.5 KiB
HTML
<!--
|
||
Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
See LICENSE file for license details.
|
||
-->
|
||
|
||
<{capture name="header"}>
|
||
<{css app="ome" src="ome.css"}>
|
||
<{css app="ome" src="style.css"}>
|
||
<{script src="coms/autocompleter.js" app="desktop"}>
|
||
<{script src="coms/pager.js" app="desktop"}>
|
||
<{/capture}>
|
||
<div class="division">
|
||
|
||
<h5>账单编码:<{$bills.bill_number}></h5>
|
||
<form method="post" action="index.php?app=console&ctl=admin_vopbill&act=doConfirm" id="frm">
|
||
<input type="hidden" name="bill_id" value="<{$bills.id}>" />
|
||
<table border="0" cellspacing="0" cellpadding="0" class="gridlist">
|
||
<thead>
|
||
<tr>
|
||
|
||
<th></th>
|
||
|
||
<th>采购结算数量</th>
|
||
|
||
<th>采购结算金额(含税)</th>
|
||
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<th>本期销售</th>
|
||
<td><{$details.CR_CUST.qty}></td>
|
||
|
||
<td><{$details.CR_CUST.amount}></td>
|
||
|
||
|
||
</tr>
|
||
<tr>
|
||
<th>本期客退</th>
|
||
<th><{$details.DR_CUST.qty}></th>
|
||
|
||
<th><{$details.DR_CUST.amount}></th>
|
||
|
||
|
||
</tr>
|
||
<tr>
|
||
<th>本期其他</th>
|
||
<th><{$details.OTHER.qty}></th>
|
||
|
||
<th><{$details.OTHER.amount}></th>
|
||
|
||
|
||
</tr>
|
||
<tr>
|
||
<th>活动折扣优惠</th>
|
||
|
||
<th></th>
|
||
<th><{$summary.sum_discount_amount}></th>
|
||
|
||
|
||
</tr>
|
||
<tr>
|
||
<th>【开票金额合计】</th>
|
||
|
||
<th><{$total_qty}></th>
|
||
<th><{$total_amount}></th>
|
||
|
||
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<th>合计金额(含扣点)</th>
|
||
|
||
<th></th>
|
||
<th><{$summary.sum_total_amount}></th>
|
||
|
||
|
||
</tr>
|
||
|
||
|
||
|
||
</tbody>
|
||
</table>
|
||
</form>
|
||
|
||
</div>
|
||
<div class="table-action">
|
||
<table width="100%" cellspacing="0" cellpadding="0">
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<{button type="button" id='submit_btn' label='保存' }>
|
||
<{button type="button" id='close_btn' label='关闭' }>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<script type="text/javascript">
|
||
(function(){
|
||
var _form = $('frm');//表单ID
|
||
var btn = $('submit_btn');//按钮ID
|
||
var finder = opener.finderGroup['<{$env.get.finder_id}>'];
|
||
$('close_btn').addEvent('click', function(){
|
||
if(finder){
|
||
setTimeout(finder.refresh(),30000);
|
||
}
|
||
setTimeout('window.close()',200);
|
||
});
|
||
_form.store('target',{
|
||
onRequest:function(){
|
||
btn.setAttribute('disabled', 'disabled');
|
||
},
|
||
onComplete:function(){
|
||
btn.removeAttribute('disabled');
|
||
},
|
||
onSuccess:function(response){
|
||
var hash_res_obj = JSON.decode(response);
|
||
if (hash_res_obj.success != undefined && hash_res_obj.success != ""){
|
||
if(finder){
|
||
setTimeout(finder.refresh(),30000);
|
||
}
|
||
setTimeout('window.close()',200);
|
||
}
|
||
}
|
||
});
|
||
|
||
btn.addEvent('click',function(){
|
||
_form.fireEvent('submit',{stop:$empty});
|
||
});
|
||
|
||
})();
|
||
</script> |