mirror of
https://gitee.com/ShopeX/OMS
synced 2026-05-05 14:25:44 +08:00
92 lines
3.4 KiB
HTML
92 lines
3.4 KiB
HTML
<!--
|
||
Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
See LICENSE file for license details.
|
||
-->
|
||
|
||
<h3><{t}>您将对以下记录进行记账操作<{/t}></h3><span style="color:#FF0000" id="note"></span>
|
||
<div class="tableform">
|
||
<div class="division">
|
||
|
||
<form id='actual_form' method='post' action='index.php?app=logisticsaccounts&ctl=admin_actual&act=batch_accounted'>
|
||
<table border="0" cellpadding="0" cellspacing="0" class="girdlist">
|
||
<tbody>
|
||
<tr >
|
||
<th ><t>账单金额:</t></th>
|
||
<td align="right" width="100"><{$summary_actual.total_delivery_cost_actual|cur}></td>
|
||
<th ><t>包裹总数:</t></th>
|
||
<td ><{$summary_actual.count}></td>
|
||
</tr>
|
||
<tr >
|
||
<th><t>系统预估费用:</t></th>
|
||
<td align="right"><{$summary_actual.total_delivery_cost_expect|cur}></td>
|
||
<th><t>包裹总数:</t></th>
|
||
<td><{$summary_actual.count}></td>
|
||
</tr>
|
||
<tr >
|
||
<th><t>差值:</t></th>
|
||
<td align="right">¥<{math equation=x-y x=$summary_actual.total_delivery_cost_actual y=$summary_actual.total_delivery_cost_expect format="%.2f"}></td>
|
||
<th><t>包裹总数</t></th>
|
||
<td><{$summary_actual.difference_package}></td>
|
||
</tr>
|
||
<tr >
|
||
<th><t>请输入实际记账总金额:</t></th>
|
||
<td colspan="3">
|
||
<{input type="text" id="adjust_money" name="adjust_money" vtype="required&&number" value=$summary_actual.total_delivery_cost_actual}>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<input type='hidden' id='aid' name='task_id' value='<{$task_id}>'>
|
||
<input type="hidden" name="aid" value='<{$aiddata}>'>
|
||
<input type='hidden' name='oper' value='sub_accounted'>
|
||
<div id="cc" class="noprint table-action">
|
||
<{button type="button" class="btn" id="actual-save-btn" label="确定"}> <{button type="button" class="btn" id="actual-confirm-btn" label="取消" onclick="javascript:this.getParent('.dialog').retrieve('instance').close();"}></div>
|
||
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
(function(){
|
||
$('actual-save-btn').addEvent('click',function(e){
|
||
var _this=this;
|
||
var form=this.getParent('form');
|
||
var adjust_money = $('adjust_money').value;
|
||
|
||
if(adjust_money==''){
|
||
return MessageBox.error('实际记账金额不可为空!');
|
||
}
|
||
var querystring = $('actual_form').toQueryString();
|
||
new Request({url:'index.php?app=logisticsaccounts&ctl=admin_actual&act=batch_accounted',
|
||
data:querystring,
|
||
onRequest:function(){
|
||
$('note').set('html','请求执行中,请稍等!');
|
||
$('actual-save-btn').set('disabled','disabled');
|
||
$('actual-confirm-btn').set('disabled','disabled');
|
||
},
|
||
onComplete:function(rs){
|
||
rs=JSON.decode(rs);
|
||
if (typeof(rs.error) != 'undefined'){
|
||
|
||
return MessageBox.error(rs.error);
|
||
}else{
|
||
|
||
_this.getParent('.dialog').retrieve('instance').close();
|
||
window.finderGroup['<{$env.get.finder_id}>'].refresh(true);
|
||
|
||
|
||
}
|
||
}}).send();
|
||
|
||
$('actual-confirm-btn').addEvent('click',function(e){
|
||
this.getParent('.dialog').retrieve('instance').close();
|
||
});
|
||
});
|
||
|
||
|
||
|
||
|
||
})();
|
||
|
||
|
||
</script> |