初始版本
This commit is contained in:
96
application/views/report/account-pay-detail-new.php
Executable file
96
application/views/report/account-pay-detail-new.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
#grid tr{cursor:pointer;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li>
|
||||
<label>供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<div class="no-query"></div>
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">应付账款明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/accountPayDetailNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
97
application/views/report/account-proceeds-detail-new.php
Executable file
97
application/views/report/account-proceeds-detail-new.php
Executable file
@@ -0,0 +1,97 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li>
|
||||
<label>客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<div class="no-query"></div>
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">应收账款明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/accountProceedsDetailNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
220
application/views/report/bankBalance-detail.php
Executable file
220
application/views/report/bankBalance-detail.php
Executable file
@@ -0,0 +1,220 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.filter-list li.chk-list{height: 20px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100% !important;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-05-01',
|
||||
endDate: '2015-05-14'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">结算账户:</label>
|
||||
<span class="mod-choose-input" id="filter-settlementAccount"><input type="text" class
|
||||
="ui-input" id="settlementAccountAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>现金银行报表</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>账户编号</td>
|
||||
<td>账户名称</td>
|
||||
<td>日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类型</td>
|
||||
<td>收入</td>
|
||||
<td>支出</td>
|
||||
<td>账户余额</td>
|
||||
<td>往来单位</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum0 = 0;
|
||||
$sum1 = 0;
|
||||
$sum2 = 0;
|
||||
$sum3 = 0;
|
||||
$sum4 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td><?php echo $row['number']?></td>
|
||||
<td><?php echo $row['name']?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list2 as $arr1=>$row1){
|
||||
if ($row1['accId']==$row['id']) {
|
||||
$sum1 += $a1 = $row1['payment']>0 ? abs($row1['payment']) : 0;
|
||||
$sum2 += $a2 = $row1['payment']<0 ? abs($row1['payment']) : 0;
|
||||
$a3 = $row['amount']+$sum1-$sum2;
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
|
||||
<td><?php echo $row1['number']?></td>
|
||||
<td><?php echo $row1['name']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td class="R"><?php echo $a1?></td>
|
||||
<td class="R"><?php echo $a2?></td>
|
||||
<td class="R"><?php echo $a3?></td>
|
||||
<td><?php echo $row1['contact']?></td>
|
||||
</tr>
|
||||
<?php }}
|
||||
$sum = $row['amount']+$sum1-$sum2;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td> </td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>小计</td>
|
||||
<td class="R"><?php echo $sum1?></td>
|
||||
<td class="R"><?php echo $sum2?></td>
|
||||
<td class="R"><?php echo $sum?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum3 += $sum1;
|
||||
$sum4 += $sum2;
|
||||
$sum0 += $sum;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $sum3?></td>
|
||||
<td class="R B"><?php echo $sum4?></td>
|
||||
<td class="R B"><?php echo $sum0?></td>
|
||||
<td class="R B"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/cashBankJournal.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
88
application/views/report/bankBalance-exporter.php
Executable file
88
application/views/report/bankBalance-exporter.php
Executable file
@@ -0,0 +1,88 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="9"><h3>现金银行报表<h3></td></tr>
|
||||
<tr><td colspan="9">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>账户编号</th>
|
||||
<th>账户名称</th>
|
||||
<th>日期</th>
|
||||
<th>单据编号</th>
|
||||
<th>业务类型</th>
|
||||
<th>收入</th>
|
||||
<th>支出</th>
|
||||
<th>账户余额</th>
|
||||
<th>往来单位</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum0 = $sum1 = $sum2 = $sum3 = $sum4 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td><?php echo $row['accountNumber']?></td>
|
||||
<td><?php echo $row['accountName']?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list2 as $arr1=>$row1){
|
||||
if ($row1['accId']==$row['id']) {
|
||||
$sum1 += $a1 = $row1['payment']>0 ? abs($row1['payment']) : 0;
|
||||
$sum2 += $a2 = $row1['payment']<0 ? abs($row1['payment']) : 0;
|
||||
$a3 = $row['amount']+$sum1-$sum2;
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
|
||||
<td><?php echo $row1['accountNumber']?></td>
|
||||
<td><?php echo $row1['accountName']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td class="R"><?php echo str_money($a1,2)?></td>
|
||||
<td class="R"><?php echo str_money($a2,2)?></td>
|
||||
<td class="R"><?php echo str_money($a3,2)?></td>
|
||||
<td><?php echo $row1['contactName']?></td>
|
||||
</tr>
|
||||
<?php }}
|
||||
$sum = $row['amount'] + $sum1 - $sum2;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td> </td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>小计</td>
|
||||
<td class="R"><?php echo str_money($sum1,2)?></td>
|
||||
<td class="R"><?php echo str_money($sum2,2)?></td>
|
||||
<td class="R"><?php echo str_money($sum,2)?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum3 += $sum1;
|
||||
$sum4 += $sum2;
|
||||
$sum0 += $sum;
|
||||
$sum1 = $sum2 = 0; //初始化
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum0,2)?></td>
|
||||
<td class="R B"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
95
application/views/report/cash-bank-journal-new.php
Executable file
95
application/views/report/cash-bank-journal-new.php
Executable file
@@ -0,0 +1,95 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li>
|
||||
<label>结算账户:</label>
|
||||
<span class="mod-choose-input" id="filter-settlementAccount"><input type="text" class="ui-input" id="settlementAccountAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<div class="no-query"></div>
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">现金银行报表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/cashBankJournalNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
83
application/views/report/contact-debt-new.php
Executable file
83
application/views/report/contact-debt-new.php
Executable file
@@ -0,0 +1,83 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style>
|
||||
#matchCon{width:300px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input" value="请输入客户、供应商或编号查询">
|
||||
<input type="checkbox" id="customer" class="vm" />
|
||||
<label for="customer" class="f14 vm">客户</label>
|
||||
<input type="checkbox" id="supplier" class="vm" />
|
||||
<label for="supplier" class="f14 vm">供应商</label>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn ui-btn-refresh" id="refresh" title="刷新"><b></b></a> --></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">往来单位欠款表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
seajs.use("dist/contactDebtNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
202
application/views/report/contactDebt-detail.php
Executable file
202
application/views/report/contactDebt-detail.php
Executable file
@@ -0,0 +1,202 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
#filter-menu .calGrossProfit-wrap{width:85px;}
|
||||
#matchCon { width: 280px; margin-right:10px; }
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100% !important;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input" value="请输入客户、供应商或编号查询">
|
||||
<input type="checkbox" id="customer" class="vm" />
|
||||
<label for="customer" class="f14 vm">客户</label>
|
||||
<input type="checkbox" id="supplier" class="vm" />
|
||||
<label for="supplier" class="f14 vm">供应商</label>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn ui-btn-refresh" id="refresh"
|
||||
title="刷新"><b></b></a> --></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#"
|
||||
class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
|
||||
<!-- <div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001-1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
|
||||
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">排序规则:</label>
|
||||
<input id="salesQty" type="radio" value="0" name="sort-rule" /><label for="salesQty"
|
||||
class="vm">按销售数量</label>
|
||||
<input id="salesIncome" type="radio" value="1" name="sort-rule" /><label for="salesIncome"
|
||||
class="vm">按销售收入</label>
|
||||
</li>
|
||||
<li class="chk-list" id="profit-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="1" name="profit" />
|
||||
计算毛利</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
--> </div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>往来单位欠款表</td></tr>
|
||||
</table>
|
||||
<table width="1128px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>行号</td>
|
||||
<td>往来单位编号</td>
|
||||
<td>名称</td>
|
||||
<td>往来单位性质</td>
|
||||
<td>应收款余额</td>
|
||||
<td>应付款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
$amount1 = 0;
|
||||
$amount2 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $i?></td>
|
||||
<td><?php echo $row['number']?></td>
|
||||
<td><?php echo $row['name']?></td>
|
||||
<td><?php echo $row['billType']=='SALE' ? '客户' : '供应商'?></td>
|
||||
<td class="R"><?php echo $row['billType']=='SALE' ? $row['amount'] : ''?></td>
|
||||
<td class="R"><?php echo $row['billType']=='SALE' ? '' : $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$amount1 += $row['billType']=='SALE' ? $row['amount'] : 0;
|
||||
$amount2 += $row['billType']=='SALE' ? 0 : $row['amount'];
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $amount1?></td>
|
||||
<td class="R B"><?php echo $amount2?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/contact-debt.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
41
application/views/report/contactDebt-exporter.php
Executable file
41
application/views/report/contactDebt-exporter.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="6"><h3>往来单位欠款表<h3></td></tr>
|
||||
|
||||
</table>
|
||||
<table width="1000px" class="list" border="1">
|
||||
|
||||
<tr>
|
||||
<th width="80">行号</th>
|
||||
<th width="120">往来单位编号</th>
|
||||
<th width="250">往来单位名称</th>
|
||||
<th width="120">往来单位性质</th>
|
||||
<th width="100">应收款余额</th>
|
||||
<th width="100">应付款余额</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$i = 1;
|
||||
$sum1 = $sum2 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
$sum1 += $amount1 = $row['type']==-10 ? $row['amount'] : 0;
|
||||
$sum2 += $amount2 = $row['type']==10 ? $row['amount'] : 0;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $i?></td>
|
||||
<td><?php echo $row['number']?></td>
|
||||
<td><?php echo $row['name']?></td>
|
||||
<td><?php echo $row['type']==10 ? '供应商' : '客户'?></td>
|
||||
<td class="R"><?php echo str_money($amount1,2)?></td>
|
||||
<td class="R"><?php echo str_money($amount2,2)?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum2,2)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
239
application/views/report/customerBalance-detail.php
Executable file
239
application/views/report/customerBalance-detail.php
Executable file
@@ -0,0 +1,239 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.filter-list li.chk-list{height: 20px;}
|
||||
.ul-inline li .trigger{padding:0;}
|
||||
.mod-report .search-wrap .s-inner {padding-bottom:15px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;width: 100%;overflow: hidden;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100%!important;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-16'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li><strong class="tit mrb fl dn">查询条件</strong></li>
|
||||
<li>
|
||||
<label>销货单位:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
<li id="match">
|
||||
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name
|
||||
="match">是否显示商品明细</label>
|
||||
</li>
|
||||
<li>
|
||||
<a id="refresh" class="ui-btn ui-btn fl mrb">查询</a> <span class="txt fl" id="cur-search-tip"
|
||||
></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($customerId<1) {?>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>客户对账单</td></tr>
|
||||
<tr><td id='customerText'>客户:</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>单据日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类别</td>
|
||||
|
||||
<td>销售金额</td>
|
||||
<td>整单折扣额</td>
|
||||
<td>应收金额</td>
|
||||
<td>实际收款金额</td>
|
||||
<td>应收款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if ($customerId>0) {?>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>客户对账单</td></tr>
|
||||
<tr><td id='customerText'>客户:</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>单据日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类别</td>
|
||||
|
||||
<td>销售金额</td>
|
||||
<td>整单折扣额</td>
|
||||
<td>应收金额</td>
|
||||
<td>实际收款金额</td>
|
||||
<td>应收款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo count($list1)>0 ? $list1['arrears'] : ''?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = 0;
|
||||
$sum0 = count($list1)>0 ? $list1['arrears'] : 0;
|
||||
foreach($list2 as $arr=>$row){
|
||||
$sum1 += $row['totalAmount'];
|
||||
$sum2 += $row['disAmount'];
|
||||
$sum3 += $row['amount'];
|
||||
$sum4 += $row['rpAmount'];
|
||||
$sum5 += $row['arrears'];
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['id']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td class="R"><?php echo $row['totalAmount']?></td>
|
||||
<td class="R"><?php echo $row['disAmount']?></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
<td class="R"><?php echo $row['rpAmount']?></td>
|
||||
<td class="R"><?php echo $row['arrears']?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $sum1?></td>
|
||||
<td class="R B"><?php echo $sum2?></td>
|
||||
<td class="R B"><?php echo $sum3?></td>
|
||||
<td class="R B"><?php echo $sum4?></td>
|
||||
<td class="R B"><?php echo $sum0 + $sum5?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/customersReconciliation.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
126
application/views/report/customerBalance-exporter.php
Executable file
126
application/views/report/customerBalance-exporter.php
Executable file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = 0;
|
||||
$arrears = count($list1)>0 ? $list1['amount'] : 0;
|
||||
?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' colspan="<?php echo $showDetail == "true" ? 14 : 8?>" align="center"><h3>客户对账单<h3></td></tr>
|
||||
<tr><td colspan="<?php echo $showDetail == "true" ? 14 : 8?>"><?php echo $customerName?></td></tr>
|
||||
<tr><td colspan="<?php echo $showDetail == "true" ? 14 : 8?>">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>单据日期</th>
|
||||
<th>单据编号</th>
|
||||
<th>业务类别</th>
|
||||
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<?php }?>
|
||||
<th>销售金额</th>
|
||||
<th>整单折扣额</th>
|
||||
<th>应收金额</th>
|
||||
<th>实际收款金额</th>
|
||||
<th>应收款余额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<?php }?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo str_money($arrears,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
foreach($list2 as $arr=>$row){
|
||||
$sum1 += $row['arrears'];
|
||||
$sum2 += $row['amount']; //应收金额
|
||||
$sum3 += $row['totalAmount']; //销售金额
|
||||
$sum4 += $row['rpAmount']; //实际收款金额
|
||||
$sum5 += $row['disAmount']; //折扣率
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<?php }?>
|
||||
<td class="R"><?php echo str_money($row['totalAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($row['disAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($row['amount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($row['rpAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if ($showDetail == "true") {
|
||||
if ($row['billType']=='SALE') {
|
||||
$postData = unserialize($row['postData']);
|
||||
foreach ($postData['entries'] as $arr1=>$row1) {
|
||||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<td class="R"><?php echo $row1['invNumber']?></td>
|
||||
<td class="R"><?php echo $row1['invName']?></td>
|
||||
<td class="R"><?php echo $row1['invSpec']?></td>
|
||||
<td class="R"><?php echo $row1['mainUnit']?></td>
|
||||
<td class="R"><?php echo str_money(abs($row1['qty']),$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row1['price'],$this->systems['qtyPlaces'])?></td>
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php }}}?>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<?php }?>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum5,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum2,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($arrears + $sum1,2)?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
102
application/views/report/customers-reconciliation-new.php
Executable file
102
application/views/report/customers-reconciliation-new.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>销货单位:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
</li>
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li id="match">
|
||||
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name="match">是否显示商品明细</label>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<!-- grid begin -->
|
||||
<div class="ui-print" style="overflow: hidden; ">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">客户对账单</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
<!-- grid end -->
|
||||
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/customersReconciliationNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
91
application/views/report/deliverDetail-exporter.php
Executable file
91
application/views/report/deliverDetail-exporter.php
Executable file
@@ -0,0 +1,91 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr>
|
||||
<td colspan="12" class='H' align="center"><h3>商品收发明细表<h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="12">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>日期</th>
|
||||
<th>单据号</th>
|
||||
<th>业务类型</th>
|
||||
<th>往来单位</th>
|
||||
<th>仓库</th>
|
||||
<th>入库</th>
|
||||
<th>出库</th>
|
||||
<th>结存</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R">期初余额</td>
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
|
||||
</tr>
|
||||
<?php foreach($list2 as $arr1=>$row1) {
|
||||
if ($row['id']==$row1['invId']) {
|
||||
$inqty = $row1['qty']>0 ? abs($row1['qty']) : ''; //入库
|
||||
$outqty = $row1['qty']<0 ? abs($row1['qty']) : ''; //出库
|
||||
$sum1 += $inqty; //入库数量累加
|
||||
$sum2 += $outqty; //出库数量累加
|
||||
$totalqtys = $row['qty'] + $sum1 - $sum2; //结存
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row1['invNumber']?></td>
|
||||
<td><?php echo $row1['invName']?></td>
|
||||
<td><?php echo $row1['invSpec']?></td>
|
||||
<td><?php echo $row1['mainUnit']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td><?php echo $row1['contactName']?></td>
|
||||
<td class="R"><?php echo $row1['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($inqty,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($outqty,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($totalqtys,$this->systems['qtyPlaces'])?></td>
|
||||
|
||||
</tr>
|
||||
<?php }}
|
||||
$sum3 += $sum1; //合计入库数量
|
||||
$sum4 += $sum2; //合计出库数量
|
||||
$sum5 += $totalqtys; //合计出库数量
|
||||
$totalqtys = $sum1 = $sum2 = 0; //初始化
|
||||
?>
|
||||
<?php }?>
|
||||
<tr>
|
||||
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"><?php echo str_money($sum3,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo str_money($sum5,$this->systems['qtyPlaces'])?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
120
application/views/report/deliverSummary-exporter.php
Executable file
120
application/views/report/deliverSummary-exporter.php
Executable file
@@ -0,0 +1,120 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' colspan="20" align="center"><h3>商品收发汇总表<h3></td></tr>
|
||||
<tr><td colspan="20">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
|
||||
<tr>
|
||||
<th width="216" rowspan="2">商品编号</th>
|
||||
<th width="216" rowspan="2">商品名称</th>
|
||||
<th width="216" rowspan="2">规格型号</th>
|
||||
<th width="114" rowspan="2">单位</th>
|
||||
<th width="24" rowspan="2">仓库</th>
|
||||
<th>期初</th>
|
||||
<th>调拨入库</th>
|
||||
<th>普通采购</th>
|
||||
<th>销售退回</th>
|
||||
<th>盘盈</th>
|
||||
<th>其他入库</th>
|
||||
<th>成本调整</th>
|
||||
<th>入库合计</th>
|
||||
<th>调拨出库</th>
|
||||
<th>采购退回</th>
|
||||
<th>普通销售</th>
|
||||
<th>盘亏</th>
|
||||
<th>其他出库</th>
|
||||
<th>出库合计</th>
|
||||
<th>结存</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php for ($i=0;$i<15;$i++) {?>
|
||||
<td align="center">数量</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
for ($i=0;$i<15;$i++) {
|
||||
$sum['qty_'.$i] = 0;
|
||||
|
||||
$sum['qty'.$i] = 0;
|
||||
|
||||
}
|
||||
$qty7 = $qty_7 = $qty13 = $qty_13 = 0;
|
||||
|
||||
foreach($list as $arr=>$row){
|
||||
//期初数量
|
||||
$qty_0 = $row['qty0'];
|
||||
|
||||
|
||||
//结存数量
|
||||
$qty_14 = $row['qty14']; //结存数量
|
||||
|
||||
|
||||
|
||||
$sum['qty14'] += str_money($qty_14,$this->systems['qtyPlaces']);
|
||||
|
||||
|
||||
for ($i=1;$i<7;$i++) {
|
||||
if ($i==1) { //调拨 成本另计算
|
||||
$qty_7 += abs($row['qty1']);
|
||||
|
||||
} else {
|
||||
$qty_7 += abs($row['qty'.$i]);
|
||||
|
||||
}
|
||||
}
|
||||
for ($i=8;$i<13;$i++) {
|
||||
if ($i==10 || $i==11 || $i==12 || $i==8) { //销售、盘亏、其他出库 成本另计算
|
||||
$qty_13 += abs($row['qty'.$i]);
|
||||
|
||||
} else {
|
||||
$qty_13 += abs($row['qty'.$i]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
for ($i=0; $i<15; $i++) {
|
||||
if ($i==0) {
|
||||
$sum['qty0'] += $sum['qty_'.$i] = $qty_0; //期初数量
|
||||
|
||||
} elseif($i==7) {
|
||||
$sum['qty7'] += $sum['qty_'.$i] = $qty_7; //入库合计
|
||||
|
||||
} elseif($i==13) {
|
||||
$sum['qty13'] += $sum['qty_'.$i] = $qty_13; //出库合计
|
||||
|
||||
} elseif($i==14) {
|
||||
$sum['qty_'.$i] = $qty_14; //结存合计
|
||||
|
||||
} else {
|
||||
if ($i==10 || $i==11 || $i==12 || $i==1 || $i==8) { //销售、盘亏、其他出库、入库调拨、出库调拨 成本另计算
|
||||
$sum['qty'.$i] += $sum['qty_'.$i] = abs($row['qty'.$i]);
|
||||
|
||||
} else {
|
||||
$sum['qty'.$i] += $sum['qty_'.$i] = abs($row['qty'.$i]);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
$qty_7 = $qty_13 = 0; //停止累加 初始化值
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<?php for ($i=0;$i<15;$i++) {?>
|
||||
<td><?php echo str_money($sum['qty_'.$i],$this->systems['qtyPlaces'])?> </td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td colspan="5">合计:</td>
|
||||
<?php for ($i=0;$i<15;$i++) {?>
|
||||
<td><?php echo str_money($sum['qty'.$i],$this->systems['qtyPlaces'])?></td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</table>
|
||||
220
application/views/report/fundBalance-detail.php
Executable file
220
application/views/report/fundBalance-detail.php
Executable file
@@ -0,0 +1,220 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.filter-list li.chk-list{height: 20px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100% !important;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-16'
|
||||
};
|
||||
/*$(function(){
|
||||
$('.list').width($(window).width() - 74);
|
||||
});
|
||||
$(window).resize(function(){
|
||||
$('.list').width($(window).width() - 74);
|
||||
});*/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>应收账款明细表</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>客户</td>
|
||||
<td>单据日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类型</td>
|
||||
<td>增加应收款</td>
|
||||
|
||||
|
||||
<td>支付应收款</td>
|
||||
|
||||
<td>应收款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$sum0 = 0;
|
||||
$sum1 = 0;
|
||||
$sum2 = 0;
|
||||
$sum3 = 0;
|
||||
$sum4 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td><?php echo $row['contact']?></td>
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list2 as $arr1=>$row1){
|
||||
if ($row1['buId']==$row['id']) {
|
||||
$sum1 += $a1 = $row1['billType']=='SALE'?($row1['payment']>0?abs($row1['payment']):-abs($row1['payment'])):0;
|
||||
$sum2 += $a2 = $row1['billType']=='RECEIPT'?abs($row1['payment']):0;
|
||||
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
|
||||
<td><?php echo $row1['contactNo'].' '.$row1['contactName']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td class="R"><?php echo $a1?></td>
|
||||
<td class="R"><?php echo $a2?></td>
|
||||
<td class="R"><?php echo $row['amount']+$sum1-$sum2?></td>
|
||||
</tr>
|
||||
<?php }}
|
||||
$sum = $row['amount']+$sum1-$sum2;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>小计</td>
|
||||
<td></td>
|
||||
<td class="R"><?php echo $sum1?></td>
|
||||
<td class="R"><?php echo $sum2?></td>
|
||||
<td class="R"><?php echo $sum?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum3 += $sum1;
|
||||
$sum4 += $sum2;
|
||||
$sum0 += $sum;
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $sum3?></td>
|
||||
<td class="R B"><?php echo $sum4?></td>
|
||||
<td class="R B"><?php echo $sum0?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/accountProceedsDetail.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
216
application/views/report/fundBalance-detailSupplier.php
Executable file
216
application/views/report/fundBalance-detailSupplier.php
Executable file
@@ -0,0 +1,216 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.filter-list li.chk-list{height: 20px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100% !important;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-16'
|
||||
};
|
||||
/*$(function(){
|
||||
$('.list').width($(window).width() - 74);
|
||||
});
|
||||
$(window).resize(function(){
|
||||
$('.list').width($(window).width() - 74);
|
||||
});*/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>应付账款明细表</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>供应商</td>
|
||||
<td>单据日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类型</td>
|
||||
<td>增加应付款</td>
|
||||
<td>支付应付款</td>
|
||||
<td>应付款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum0 = 0;
|
||||
$sum1 = 0;
|
||||
$sum2 = 0;
|
||||
$sum3 = 0;
|
||||
$sum4 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td><?php echo $row['contact']?></td>
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list2 as $arr1=>$row1){
|
||||
if ($row1['buId']==$row['id']) {
|
||||
$sum1 += $a1 = $row1['billType']=='PUR'?($row1['payment']>0?-$row1['payment']:abs($row1['payment'])):0;
|
||||
$sum2 += $a2 = $row1['billType']=='PAYMENT'?abs($row1['payment']):0;
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
|
||||
<td><?php echo $row1['contactNo'].' '.$row1['contactName']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td class="R"><?php echo $a1?></td>
|
||||
<td class="R"><?php echo $a2?></td>
|
||||
<td class="R"><?php echo $row['amount'] + $sum1 - $sum2?></td>
|
||||
</tr>
|
||||
<?php }}
|
||||
$sum = $row['amount'] + $sum1 - $sum2;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>小计</td>
|
||||
<td></td>
|
||||
<td class="R"><?php echo $sum1?></td>
|
||||
<td class="R"><?php echo $sum2?></td>
|
||||
<td class="R"><?php echo $sum?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum3 += $sum1;
|
||||
$sum4 += $sum2;
|
||||
$sum0 += $sum;
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $sum3?></td>
|
||||
<td class="R B"><?php echo $sum4?></td>
|
||||
<td class="R B"><?php echo $sum0?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/accountPayDetail.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
79
application/views/report/fundBalance-exporter.php
Executable file
79
application/views/report/fundBalance-exporter.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="7"><h3>应收账款明细表<h3></td></tr>
|
||||
<tr><td colspan="7">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>客户</th>
|
||||
<th>单据日期</th>
|
||||
<th>单据编号</th>
|
||||
<th>业务类别</th>
|
||||
<th>增加应付款</th>
|
||||
<th>增加预付款</th>
|
||||
<th>应付款余额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum0 = $sum1 = $sum2 = $sum3 = $sum4 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td><?php echo $row['name']?></td>
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list2 as $arr1=>$row1){
|
||||
if ($row['id']==$row1['buId']) {
|
||||
$sum1 += $a1 = $row1['billType']=='SALE' ? $row1['arrears'] : 0;
|
||||
$sum2 += $a2 = $row1['billType']=='RECEIPT' ? abs($row1['arrears']) : 0;
|
||||
$a3 = $row['amount'] + $sum1 - $sum2;
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $row1['contactName']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td class="R"><?php echo str_money($a1,2)?></td>
|
||||
<td class="R"><?php echo str_money($a2,2)?></td>
|
||||
<td class="R"><?php echo str_money($a3,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php }}
|
||||
$sum = $row['amount'] + $sum1 - $sum2;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td> </td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>小计</td>
|
||||
<td class="R"><?php echo str_money($sum1,2)?></td>
|
||||
<td class="R"><?php echo str_money($sum2,2)?></td>
|
||||
<td class="R"><?php echo str_money($sum,2)?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum3 += $sum1;
|
||||
$sum4 += $sum2;
|
||||
$sum0 += $sum;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum0,2)?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
81
application/views/report/fundBalance-exporterSupplier.php
Executable file
81
application/views/report/fundBalance-exporterSupplier.php
Executable file
@@ -0,0 +1,81 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="7"><h3>应付账款明细表<h3></td></tr>
|
||||
<tr><td colspan="7">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>供应商</th>
|
||||
<th>单据日期</th>
|
||||
<th>单据编号</th>
|
||||
<th>业务类别</th>
|
||||
|
||||
<th>增加应付款</th>
|
||||
<th>增加预付款</th>
|
||||
<th>应付款余额</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum0 = $sum1 = $sum2 = $sum3 = $sum4 = 0;
|
||||
foreach($list1 as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td><?php echo $row['name']?></td>
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list2 as $arr1=>$row1){
|
||||
if ($row['id']==$row1['buId']) {
|
||||
$sum1 += $a1 = $row1['billType']=='PUR' ? $row1['arrears'] : 0;
|
||||
$sum2 += $a2 = $row1['billType']=='PAYMENT' ? abs($row1['arrears']) : 0;
|
||||
$a3 = $row['amount'] + $sum1 - $sum2;
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $row1['contactName']?></td>
|
||||
<td><?php echo $row1['billDate']?></td>
|
||||
<td><?php echo $row1['billNo']?></td>
|
||||
<td><?php echo $row1['transTypeName']?></td>
|
||||
<td class="R"><?php echo str_money($a1,2)?></td>
|
||||
<td class="R"><?php echo str_money($a2,2)?></td>
|
||||
<td class="R"><?php echo str_money($a3,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php }}
|
||||
$sum = $row['amount'] + $sum1 - $sum2;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="">
|
||||
<td> </td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>小计</td>
|
||||
<td class="R"><?php echo str_money($sum1,2)?></td>
|
||||
<td class="R"><?php echo str_money($sum2,2)?></td>
|
||||
<td class="R"><?php echo str_money($sum,2)?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum3 += $sum1;
|
||||
$sum4 += $sum2;
|
||||
$sum0 += $sum;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum0,2)?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
111
application/views/report/goods-balance.php
Executable file
111
application/views/report/goods-balance.php
Executable file
@@ -0,0 +1,111 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable
|
||||
=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style type='text/css'>
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.grid-subtitle{height: 18px;}
|
||||
#goodsAuto{width:200px;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-input-dis dn" name="filter-fromDate" id="filter-fromDate"
|
||||
readonly disabled/>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate"
|
||||
/>
|
||||
</li>
|
||||
<li>
|
||||
<label>仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"
|
||||
/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>类别:</label>
|
||||
<input type="text" value="" class="ui-input" name="filterCat" id="filterCat" />
|
||||
</li>
|
||||
<li>
|
||||
<label>商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"
|
||||
/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li class="chk-list" id="chk-wrap">
|
||||
<label class="chk"><input type="checkbox" value="showSku" name="showSku" />显示辅助属性</label>
|
||||
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="refresh">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="r"><!-- <a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a> --><a href
|
||||
="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
<!-- grid begin -->
|
||||
<div class="ui-print" style="display: none;">
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">商品库存余额表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- grid end -->
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/goodsBalance");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
104
application/views/report/goods-flow-detail.php
Executable file
104
application/views/report/goods-flow-detail.php
Executable file
@@ -0,0 +1,104 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
#goodsAuto{width:200px;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id
|
||||
="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
<li>
|
||||
<label>仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"
|
||||
/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"
|
||||
/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="r"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<!-- grid begin -->
|
||||
<div class="ui-print" style="overflow: hidden; ">
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">商品收发明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
<!-- grid end -->
|
||||
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/goodsFlowDetail");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
95
application/views/report/goods-flow-summary.php
Executable file
95
application/views/report/goods-flow-summary.php
Executable file
@@ -0,0 +1,95 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style type='text/css'>
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
#goodsAuto{width:200px;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li>
|
||||
<label>仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="refresh">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="r"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
<!-- grid begin -->
|
||||
<div class="ui-print" style="display: none;">
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">商品收发汇总表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- grid end -->
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/goodsFlowSummary");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
72
application/views/report/invBalance_exporter.php
Executable file
72
application/views/report/invBalance_exporter.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="<?php echo 6 + count($storage)*2?>"><h3>商品库存余额表<h3></td></tr>
|
||||
<tr><td colspan="<?php echo 6 + count($storage)*2?>">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<tr>
|
||||
<th width="216" rowspan="2">商品编号</th>
|
||||
<th width="216" rowspan="2">商品名称</th>
|
||||
<th width="216" rowspan="2">规格型号</th>
|
||||
<th width="114" rowspan="2">单位</th>
|
||||
<th colspan="2">所有仓库</th>
|
||||
<?php
|
||||
$i = 2;
|
||||
$qty_1 = $cost_1 = $cost1 = 0;
|
||||
foreach($storage as $arr=>$row) {
|
||||
$qty['qty'.$i] = $qty['cost'.$i] = 0;
|
||||
?>
|
||||
<th width="50" colspan="2"><?php echo $row['name']?></th>
|
||||
<?php $i++;}?>
|
||||
</tr>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td align="center">数量</td>
|
||||
<td align="center">成本</td>
|
||||
<?php foreach($storage as $arr=>$row){?>
|
||||
<td align="center">数量</td>
|
||||
<td align="center">成本</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
|
||||
<?php foreach($list as $arr=>$row) {
|
||||
$i = 2;
|
||||
foreach($storage as $arr1=>$row1) {
|
||||
$price = isset($profit['inprice'][$row['invId']][$row1['id']]) ? $profit['inprice'][$row['invId']][$row1['id']] : 0; //单位成本
|
||||
$cost1 += $row['qty'.$i] * $price;
|
||||
$i++;
|
||||
}
|
||||
$qty_1 += $row['qty'];
|
||||
$cost_1 += $cost1;
|
||||
?>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td align="center"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?> </td>
|
||||
<td align="center"><?php echo str_money($cost1,2)?> </td>
|
||||
<?php
|
||||
$i = 2;
|
||||
foreach($storage as $arr1=>$row1){
|
||||
$price = isset($profit['inprice'][$row['invId']][$row1['id']]) ? $profit['inprice'][$row['invId']][$row1['id']] : 0; //单位成本
|
||||
$qty['qty'.$i] += $row['qty'.$i];
|
||||
$qty['cost'.$i] += $row['qty'.$i] * $price;
|
||||
?>
|
||||
<td align="center"><?php echo str_money($row['qty'.$i],$this->systems['qtyPlaces'])?></td>
|
||||
<td align="center"><?php echo str_money($row['qty'.$i]*$price,2)?></td>
|
||||
<?php $i++;}?>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td colspan="4" align="right">合计:</td>
|
||||
<td align="center"><?php echo str_money($qty_1,$this->systems['qtyPlaces'])?> </td>
|
||||
<td align="center"><?php echo str_money($cost_1,2)?> </td>
|
||||
<?php
|
||||
$i = 2;
|
||||
foreach($storage as $arr1=>$row1){?>
|
||||
<td align="center"><?php echo str_money($qty['qty'.$i],$this->systems['qtyPlaces'])?></td>
|
||||
<td align="center"><?php echo str_money($qty['cost'.$i],2)?></td>
|
||||
<?php $i++;}?>
|
||||
</tr>
|
||||
</table>
|
||||
48
application/views/report/oriDetail_export.php
Executable file
48
application/views/report/oriDetail_export.php
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="8"><h3>其他收入支出明细表<h3></td></tr>
|
||||
<tr><td colspan="8">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>日期</th>
|
||||
<th>单据编号</th>
|
||||
<th>收支类别</th>
|
||||
<th>收支项目</th>
|
||||
<th>收入</th>
|
||||
<th>支出</th>
|
||||
<th>往来单位</th>
|
||||
<th>摘要</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$payment1 = $payment2 = $amountIn = $amountOut = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
if ($row['transType']==153401) {
|
||||
$payment1 += $amountIn = $row['payment']; //收入
|
||||
} else {
|
||||
$payment2 += $amountOut = abs($row['payment']); //支出
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td class="R"><?php echo $row['categoryName']?></td>
|
||||
<td class="R"><?php echo $amountIn?></td>
|
||||
<td class="R"><?php echo $amountOut?></td>
|
||||
<td class="R"><?php echo $row['contactName']?></td>
|
||||
<td class="R"><?php echo $row['remark']?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td colspan="4" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($payment1,2)?></td>
|
||||
<td class="R B"><?php echo str_money($payment2,2)?></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
96
application/views/report/other-income-expense-detail.php
Executable file
96
application/views/report/other-income-expense-detail.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li><div id="incomeExpenseType"></div></li>
|
||||
<li><div id="incomeName" class="dn"></div></li>
|
||||
<li><div id="expenseName" class="dn"></div></li>
|
||||
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<div class="no-query"></div>
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">其它收支明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/otherIncomeExpenseDetail");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
105
application/views/report/pu-detail-new.php
Executable file
105
application/views/report/pu-detail-new.php
Executable file
@@ -0,0 +1,105 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style>
|
||||
.ui-icon-ellipsis{right:5px;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">商品采购明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
seajs.use("dist/puDetailNew");
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
123
application/views/report/pu-order-tracking.php
Executable file
123
application/views/report/pu-order-tracking.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>/statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>/statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>/statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>/statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>/statics/css/report.css" />
|
||||
<style type="text/css">
|
||||
#filter-menu .con{ width:355px; }
|
||||
#filter-menu label.tit{ width:80px; }
|
||||
/*.ui-jqgrid tr.jqgrow td {
|
||||
white-space: normal !important;
|
||||
}
|
||||
*/
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">订单日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" maxlength="10" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" maxlength="10" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">预计交货日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDeliveryDate"
|
||||
id="filter-fromDeliveryDate" maxlength="10" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDeliveryDate"
|
||||
id="filter-toDeliveryDate" maxlength="10" />
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li id="status-wrap">
|
||||
<label class="tit">状态:</label>
|
||||
<label class="chk"><input type="checkbox" value="0" name="status" />未入库</label>
|
||||
<label class="chk"><input type="checkbox" value="1" name="status" />部分入库</label>
|
||||
<label class="chk"><input type="checkbox" value="2" name="status" />已入库</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">采购订单跟踪表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
seajs.use("dist/puOrderTracking");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
108
application/views/report/pu-summary-new.php
Executable file
108
application/views/report/pu-summary-new.php
Executable file
@@ -0,0 +1,108 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style>
|
||||
.ui-icon-ellipsis{right:5px;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li class="chk-list" id="chk-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="showSku" name="showSku" />
|
||||
显示辅助属性</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">采购汇总表(按商品)</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
seajs.use("dist/puSummaryNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
104
application/views/report/pu-summary-supply-new.php
Executable file
104
application/views/report/pu-summary-supply-new.php
Executable file
@@ -0,0 +1,104 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style>
|
||||
.ui-icon-ellipsis{right:5px;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">采购汇总表(按供应商)</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
seajs.use("dist/puSummarySupplyNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
216
application/views/report/puDetail-detail.php
Executable file
216
application/views/report/puDetail-detail.php
Executable file
@@ -0,0 +1,216 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.filter-list li.chk-list{height: 20px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100%;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-15'
|
||||
};
|
||||
/*$(function(){
|
||||
var SYSTEM = parent.SYSTEM;
|
||||
alert(SYSTEM.rights.SAREPORTDETAIL_COST);
|
||||
$('#lhtest').html("vvv");
|
||||
if(SYSTEM.rights.SAREPORTDETAIL_COST || SYSTEM.isAdmin){
|
||||
$('#lhtest').show();
|
||||
} else {
|
||||
$('#lhtest').hide();
|
||||
};
|
||||
});
|
||||
$(function(){
|
||||
$('.list').width($(window).width() - 74);
|
||||
});
|
||||
$(window).resize(function(){
|
||||
$('.list').width($(window).width() - 74);
|
||||
});*/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
|
||||
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>商品采购明细表</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>采购日期</td>
|
||||
<td>采购单据号</td>
|
||||
<td>业务类别</td>
|
||||
<td>供应商</td>
|
||||
<td>商品编号</td>
|
||||
<td>商品名称</td>
|
||||
<td>规格型号</td>
|
||||
<td>单位</td>
|
||||
<td>仓库</td>
|
||||
<td>数量</td>
|
||||
<td>单价</td>
|
||||
<td>采购金额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$qty = 0;
|
||||
$price = 0;
|
||||
$amount = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td><?php echo $row['contactName']?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo $row['qty']?></td>
|
||||
<td class="R"><?php echo $row['price']?></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$qty += $row['qty'];
|
||||
$price += $row['price'];
|
||||
$amount += $row['amount'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="9" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $qty?></td>
|
||||
<td class="R B"><?php echo $price?></td>
|
||||
<td class="R B"><?php echo $amount?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/puDetail.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
56
application/views/report/puDetail-detailExporter.php
Executable file
56
application/views/report/puDetail-detailExporter.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="12"><h3>商品采购明细表<h3></td></tr>
|
||||
<tr><td colspan="12">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>采购日期</th>
|
||||
<th>采购单据号</th>
|
||||
<th>业务类别</th>
|
||||
<th>供应商</th>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>仓库</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<th>采购金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td><?php echo $row['contactName']?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['amount'],2)?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum1 += $row['qty'];
|
||||
$sum2 += $row['price'];
|
||||
$sum3 += $row['amount'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="9" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
199
application/views/report/puDetail-inv.php
Executable file
199
application/views/report/puDetail-inv.php
Executable file
@@ -0,0 +1,199 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>/statics/css/report.css" />
|
||||
<style>
|
||||
#filter-menu .calGrossProfit-wrap{width:85px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100%;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-15'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
|
||||
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li class="chk-list" id="chk-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="showSku" name="showSku" />
|
||||
显示辅助属性</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>采购汇总表(按商品)</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1128px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>商品编号</td>
|
||||
<td width="150px">商品名称</td>
|
||||
<td>规格型号</td>
|
||||
<td>单位</td>
|
||||
<td>仓库</td>
|
||||
<td>数量</td>
|
||||
<td>单价</td>
|
||||
<td>采购金额</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$qty = 0;
|
||||
$price = 0;
|
||||
$amount = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-invNo="<?php echo $row['invNumber']?>" data-locationNo="<?php echo $row['locationNo']?>" data-type="inv">
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo $row['qty']?></td>
|
||||
<td class="R"><?php echo $row['price']?></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$qty += $row['qty'];
|
||||
$price += $row['price'];
|
||||
$amount += $row['amount'];
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $qty?></td>
|
||||
<td class="R B"><?php echo $price?></td>
|
||||
<td class="R B"><?php echo $amount?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/pu-summary.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
58
application/views/report/puDetail-invExporter.php
Executable file
58
application/views/report/puDetail-invExporter.php
Executable file
@@ -0,0 +1,58 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<table width="1128px" class="list" >
|
||||
<tr><td class='H' align="center" colspan="8"><h3>采购汇总表(按商品)<h3></td></tr>
|
||||
<tr><td colspan="8">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1128px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>商品编号</th>
|
||||
<th width="150px">商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>仓库</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<th>采购金额</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($row['sumqty'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['sumamount'],2)?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum1 += $row['sumqty'];
|
||||
$sum2 += $row['price'];
|
||||
$sum3 += $row['sumamount'];
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
199
application/views/report/puDetail-supply.php
Executable file
199
application/views/report/puDetail-supply.php
Executable file
@@ -0,0 +1,199 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
#filter-menu .calGrossProfit-wrap{width:85px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100%;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-05-01',
|
||||
endDate: '2015-05-16'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
|
||||
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>采购汇总表(按供应商)</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1200px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="150">供应商</td>
|
||||
<td>商品编号</td>
|
||||
<td width="150">商品名称</td>
|
||||
<td>规格型号</td>
|
||||
<td>单位</td>
|
||||
<td>仓库</td>
|
||||
<td>数量</td>
|
||||
|
||||
<td>单价</td>
|
||||
<td>采购金额</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$qty = 0;
|
||||
$price = 0;
|
||||
$amount = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-buNo="<?php echo $row['contactNo']?>" data-locationNo="<?php echo $row['locationNo']?>" data-invNo="<?php echo $row['invNumber']?>" data-type="supply"
|
||||
>
|
||||
<td><?php echo $row['contactNo'];?> <?php echo $row['contactName'];?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo $row['qty']?></td>
|
||||
<td class="R"><?php echo $row['price']?></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$qty += $row['qty'];
|
||||
$price += $row['price'];
|
||||
$amount += $row['amount'];
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="6" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $qty?></td>
|
||||
<td class="R B"><?php echo $price?></td>
|
||||
<td class="R B"><?php echo $amount?></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/pu-summary-supply.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
51
application/views/report/puDetail-supplyExporter.php
Executable file
51
application/views/report/puDetail-supplyExporter.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1200px" class="list">
|
||||
<tr><td class='H' align="center" colspan="9"><h3>采购汇总表(按供应商)<h3></td></tr>
|
||||
<tr><td colspan="9">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1200px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="150">供应商</th>
|
||||
<th>商品编号</th>
|
||||
<th width="150">商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>仓库</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<th>采购金额</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['contactNo'];?> <?php echo $row['contactName'];?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['amount'],2)?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum1 += $row['qty'];
|
||||
$sum2 += $row['price'];
|
||||
$sum3 += $row['amount'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="6" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
103
application/views/report/sales-detail.php
Executable file
103
application/views/report/sales-detail.php
Executable file
@@ -0,0 +1,103 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" maxlength="10" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" maxlength="10" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">销售人员:</label>
|
||||
<span class="mod-choose-input" id="filter-saler"><input type="text" class="ui-input" id="salerAuto"><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<!--<li class="chk-list dn" id="profit-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="1" name="profit" />
|
||||
计算毛利</label>
|
||||
</li>-->
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">商品销售明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
seajs.use("dist/salesDetail");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
128
application/views/report/sales-order-tracking.php
Executable file
128
application/views/report/sales-order-tracking.php
Executable file
@@ -0,0 +1,128 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable
|
||||
=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>/statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>/statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>/statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>/statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>/statics/css/report.css" />
|
||||
<style type="text/css">
|
||||
#filter-menu .con{ width:355px; }
|
||||
#filter-menu label.tit{ width:80px; }
|
||||
/*.ui-jqgrid tr.jqgrow td {
|
||||
white-space: normal !important;
|
||||
}
|
||||
*/
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">订单日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" maxlength="10" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" maxlength="10" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">预计交货日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDeliveryDate"
|
||||
id="filter-fromDeliveryDate" maxlength="10" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDeliveryDate"
|
||||
id="filter-toDeliveryDate" maxlength="10" />
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li id="status-wrap">
|
||||
<label class="tit">状态:</label>
|
||||
<label class="chk"><input type="checkbox" value="0" name="status" />未出库</label>
|
||||
<label class="chk"><input type="checkbox" value="1" name="status" />部分出库</label>
|
||||
<label class="chk"><input type="checkbox" value="2" name="status" />已出库</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">销售人员:</label>
|
||||
<span class="mod-choose-input" id="filter-saler"><input type="text" class="ui-input"
|
||||
id="salerAuto"><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">销售订单跟踪表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
seajs.use("dist/salesOrderTracking");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
146
application/views/report/sales-profit.php
Executable file
146
application/views/report/sales-profit.php
Executable file
@@ -0,0 +1,146 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
#goodsAuto{width:200px;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
th.ui-th-column div{
|
||||
white-space:normal !important;
|
||||
height:auto !important;
|
||||
padding:0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id
|
||||
="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">销售人员:</label>
|
||||
<span class="mod-choose-input" id="filter-saler"><input type="text" class="ui-input" id="salerAuto"><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="r"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">销售利润表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr>
|
||||
<td class='H'>销售汇总表(按商品)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>日期:至</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="1128px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>商品编号</td>
|
||||
<td width="150px">商品名称</td>
|
||||
<td>规格型号</td>
|
||||
<td>单位</td>
|
||||
<td>仓库</td>
|
||||
<td>数量</td>
|
||||
<td>单价</td>
|
||||
<td>销售收入</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<script>
|
||||
seajs.use("dist/salesProfit");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
108
application/views/report/sales-summary-customer-new.php
Executable file
108
application/views/report/sales-summary-customer-new.php
Executable file
@@ -0,0 +1,108 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style>
|
||||
.ui-icon-ellipsis{right:5px;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li class="chk-list dn" id="profit-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="profit" name="profit" />
|
||||
计算毛利</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">销售汇总表(按客户)</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
seajs.use("dist/salesSummaryCustomerNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
151
application/views/report/sales-summary.php
Executable file
151
application/views/report/sales-summary.php
Executable file
@@ -0,0 +1,151 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
//console.log(e);
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style>
|
||||
.ui-icon-ellipsis{right:5px;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" maxlength="10" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" maxlength="10" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li class="chk-list dn" id="profit-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="profit" name="profit" />
|
||||
计算毛利</label>
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="showSku" name="showSku" />
|
||||
显示辅助属性</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">销售汇总表(按商品)</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr>
|
||||
<td class='H'>销售汇总表(按商品)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>日期:至</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="1128px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>商品编号</td>
|
||||
<td width="150px">商品名称</td>
|
||||
<td>规格型号</td>
|
||||
<td>单位</td>
|
||||
<td>仓库</td>
|
||||
<td>数量</td>
|
||||
<td>单价</td>
|
||||
<td>销售收入</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
<td class="R B"></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<script>
|
||||
seajs.use("dist/salesSummary");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
207
application/views/report/salesDetail-customer.php
Executable file
207
application/views/report/salesDetail-customer.php
Executable file
@@ -0,0 +1,207 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
#filter-menu .calGrossProfit-wrap{width:85px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100%;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-15'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">客户:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
|
||||
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<label class="tit">排序规则:</label>
|
||||
<input id="salesQty" type="radio" value="0" name="sort-rule" /><label for="salesQty"
|
||||
class="vm">按销售数量</label>
|
||||
<input id="salesIncome" type="radio" value="1" name="sort-rule" /><label for="salesIncome"
|
||||
class="vm">按销售收入</label>
|
||||
</li> -->
|
||||
<li class="chk-list dn" id="profit-wrap">
|
||||
<label class="chk">
|
||||
<input type="checkbox" value="1" name="profit" />
|
||||
计算毛利</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>销售汇总表(按客户)</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1200px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="150">客户</td>
|
||||
<td>商品编号</td>
|
||||
<td width="150">商品名称</td>
|
||||
<td>规格型号</td>
|
||||
<td>单位</td>
|
||||
<td>仓库</td>
|
||||
<td>数量</td>
|
||||
|
||||
<td>单价</td>
|
||||
<td>销售收入</td>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$qty = 0;
|
||||
$price = 0;
|
||||
$amount = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
?>
|
||||
<tr class="link" data-buNo="<?php echo $row['contactNo']?>" data-locationNo="<?php echo $row['locationNo']?>" data-invNo="<?php echo $row['invNumber']?>" data-type="customer">
|
||||
<td><?php echo $row['contactName']?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo $row['transType']==150601 ? (float)abs($row['qty']) : -$row['qty']?></td>
|
||||
<td class="R"><?php echo $row['price']?></td>
|
||||
<td class="R"><?php echo $row['transType']==150601 ? (float)abs($row['amount']) : -$row['amount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$qty += $row['transType']==150601 ? (float)abs($row['qty']) : -$row['qty'];
|
||||
$price += $row['price'];
|
||||
$amount += $row['transType']==150601 ? (float)abs($row['amount']) : -$row['amount'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="6" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $qty?></td>
|
||||
<td class="R B"><?php echo $price?></td>
|
||||
<td class="R B"><?php echo $amount?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/sales-summary-customer.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
77
application/views/report/salesDetail-customerExporter.php
Executable file
77
application/views/report/salesDetail-customerExporter.php
Executable file
@@ -0,0 +1,77 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="<?php echo $profit==1 ?'13':'9'?>"><h3>销售汇总表(按客户)<h3></td></tr>
|
||||
<tr><td colspan="<?php echo $profit==1 ?'13':'9'?>">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="150">客户</th>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>仓库</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<th>销售收入</th>
|
||||
<?php if ($profit==1) {?>
|
||||
<th>单位成本</th>
|
||||
<th>销售成本</th>
|
||||
<th>销售毛利</th>
|
||||
<th>毛利率</th>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = $sum7 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
$sum1 += $qty = $row['sumqty']>0 ? -abs($row['sumqty']) : abs($row['sumqty']);
|
||||
$sum3 += $amount = $row['sumamount'];
|
||||
$unitPrice = $qty!=0 ? $amount/$qty : 0;
|
||||
if ($profit==1) {
|
||||
$sum4 += $unitcost = isset($info['inprice'][$row['invId']][$row['locationId']]) ? $info['inprice'][$row['invId']][$row['locationId']] : 0;
|
||||
$sum5 += $cost = $unitcost * $qty;
|
||||
$sum6 += $saleProfit = $amount - $cost;
|
||||
$sum7 += $salepPofitRate = ($saleProfit/$amount)*100;
|
||||
}
|
||||
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['contactName']?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($qty,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($unitPrice,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($amount,2)?></td>
|
||||
<?php if ($profit==1) {?>
|
||||
<td class="R"><?php echo str_money($unitcost,2)?></td>
|
||||
<td class="R"><?php echo str_money($cost,2)?></td>
|
||||
<td class="R"><?php echo str_money($saleProfit,2)?></td>
|
||||
<td class="R"><?php echo round($salepPofitRate,2)?>%</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="6" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<?php if ($profit==1) {?>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum5,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum6,2)?></td>
|
||||
<td class="R B"><?php echo round($sum7,2)?>%</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
60
application/views/report/salesDetail-detailExporter.php
Executable file
60
application/views/report/salesDetail-detailExporter.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<tr><td class='H' align="center" colspan="14"><h3>商品销售明细表<h3></td></tr>
|
||||
<tr><td colspan="14">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>销售日期</th>
|
||||
<th>销售单据号</th>
|
||||
<th>业务类别</th>
|
||||
<th>销售人员</th>
|
||||
<th>客户</th>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>仓库</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<th>销售收入</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
$sum1 += $qty = $row['qty']>0 ? -abs($row['qty']) : abs($row['qty']);
|
||||
$sum3 += $amount = $row['amount'];
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td><?php echo $row['salesName']?></td>
|
||||
<td><?php echo $row['contactName']?></td>
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($qty,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($amount,2)?></td>
|
||||
<td class="R"><?php echo $row['description']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="10" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
72
application/views/report/salesDetail_invExporter.php
Executable file
72
application/views/report/salesDetail_invExporter.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="<?php echo $profit==1 ?'12':'8'?>"><h3>销售汇总表(按商品)<h3></td></tr>
|
||||
<tr><td colspan="<?php echo $profit==1 ?'12':'8'?>">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>仓库</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<th>销售收入</th>
|
||||
<?php if ($profit==1) {?>
|
||||
<th>单位成本</th>
|
||||
<th>销售成本</th>
|
||||
<th>销售毛利</th>
|
||||
<th>毛利率</th>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = $sum7 = 0;
|
||||
foreach($list as $arr=>$row){
|
||||
$sum1 += $qty = $row['sumqty']>0 ? -abs($row['sumqty']) : abs($row['sumqty']);
|
||||
$sum3 += $amount = $row['sumamount'];
|
||||
$unitPrice = $qty!=0 ? $amount/$qty : 0;
|
||||
if ($profit==1) {
|
||||
$sum4 += $unitcost = isset($info['inprice'][$row['invId']][$row['locationId']]) ? $info['inprice'][$row['invId']][$row['locationId']] : 0;
|
||||
$sum5 += $cost = $unitcost * $qty;
|
||||
$sum6 += $saleProfit = $amount - $cost;
|
||||
$sum7 += $salepPofitRate = ($saleProfit/$amount)*100;
|
||||
}
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['invNumber']?></td>
|
||||
<td><?php echo $row['invName']?></td>
|
||||
<td><?php echo $row['invSpec']?></td>
|
||||
<td><?php echo $row['mainUnit']?></td>
|
||||
<td><?php echo $row['locationName']?></td>
|
||||
<td class="R"><?php echo str_money($qty,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($unitPrice,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($amount,2)?></td>
|
||||
<?php if ($profit==1) {?>
|
||||
<td class="R"><?php echo str_money($unitcost,2)?></td>
|
||||
<td class="R"><?php echo str_money($cost,2)?></td>
|
||||
<td class="R"><?php echo str_money($saleProfit,2)?></td>
|
||||
<td class="R"><?php echo round($salepPofitRate,2)?>%</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<?php if ($profit==1) {?>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum5,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum6,2)?></td>
|
||||
<td class="R B"><?php echo round($sum7,2)?>%</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
116
application/views/report/salesProfit_invExporter.php
Executable file
116
application/views/report/salesProfit_invExporter.php
Executable file
@@ -0,0 +1,116 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' align="center" colspan="17"><h3>销售利润表<h3></td></tr>
|
||||
<tr><td colspan="<?php echo $profit==1 ?'12':'8'?>">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>单据日期</th>
|
||||
<th>客户</th>
|
||||
<th>销售人员</th>
|
||||
<th>单据编号</th>
|
||||
<th>业务类型</th>
|
||||
<th>数量</th>
|
||||
<th>销售收入</th>
|
||||
<th>销售成本</th>
|
||||
<th>销售毛利<br/>(销售收入-销售成本)</th>
|
||||
<th>毛利率</th>
|
||||
<th>优惠金额</th>
|
||||
<th>销售净利润<br/>(销售毛利-优惠金额)</th>
|
||||
<th>净利润率</th>
|
||||
<th>优惠后金额</th>
|
||||
<th>应收金额</th>
|
||||
<th>已收款金额</th>
|
||||
<th>整单备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = $sum7 = $sum8 = $sum9 = $sum10 = $sum11 = 0;
|
||||
foreach ($list as $arr=>$row) {
|
||||
$totalAmount = (float)$row['totalAmount'];
|
||||
$amount = (float)$row['amount'];
|
||||
$v[$arr]['salesNo'] = $row['salesNo'];
|
||||
$v[$arr]['contactNo'] = $row['contactNo'];
|
||||
$v[$arr]['billDate'] = $row['billDate'];//单据日期
|
||||
$v[$arr]['salesName'] = $row['salesName'];//销售人员
|
||||
$v[$arr]['contactName'] = $row['contactName'];//客户
|
||||
$v[$arr]['billNo'] = $row['billNo'];//单据编号
|
||||
$v[$arr]['transTypeName'] = $row['transTypeName'];//业务类型
|
||||
$v[$arr]['totalQty'] = (float)$row['totalQty'];//数量
|
||||
$v[$arr]['disAmount'] = (float)$row['disAmount'];//优惠金额
|
||||
$v[$arr]['amount'] = (float)$row['amount'];//优惠后金额
|
||||
$v[$arr]['totalAmount'] = (float)$row['totalAmount'];//销售收入
|
||||
//$v[$arr]['totalCost'] = (float)$row['totalCost'];//销售成本
|
||||
$v[$arr]['ysAmount'] = (float)$row['amount'];//应收金额
|
||||
$v[$arr]['rpAmount'] = (float)$row['rpAmount'];//已收款金额
|
||||
$v[$arr]['description'] = $row['description'];//整单备注
|
||||
|
||||
$details = $this->data_model->get_invoice_info(' a.iid ='.$row['id']);
|
||||
|
||||
$sum = 0;
|
||||
foreach ($details as $key=>$detail) {
|
||||
$qty = $detail['qty']>0 ? -abs($detail['qty']):abs($detail['qty']);
|
||||
$unitcost = isset($info['inprice'][$detail['invId']][$detail['locationId']]) ? $info['inprice'][$detail['invId']][$detail['locationId']] : 0; //单位成本
|
||||
$sum += $cost = $unitcost * $qty;
|
||||
}
|
||||
$v[$arr]['totalCost'] = round($sum,2);//销售成本
|
||||
$v[$arr]['saleProfit'] = round($totalAmount - $sum,2);//销售毛利=销售收入-销售成本
|
||||
$salepPofitRate = $totalAmount>0? ($v[$arr]['saleProfit']/$totalAmount)*100 :0;
|
||||
$v[$arr]['salepPofitRate'] = round($salepPofitRate,2).'%';//毛利率
|
||||
$v[$arr]['pureProfit'] = $v[$arr]['saleProfit'] - $v[$arr]['disAmount'];//销售净利润=销售毛利-优惠金额
|
||||
$pureProfitRate = $amount>0? ($v[$arr]['pureProfit']/$amount)*100 :0;
|
||||
$v[$arr]['pureProfitRate'] = round($pureProfitRate,2).'%';//净利润率
|
||||
|
||||
$sum1 += $v[$arr]['totalQty'];
|
||||
$sum2 += $v[$arr]['disAmount'];
|
||||
$sum3 += $v[$arr]['amount'];
|
||||
$sum4 += $v[$arr]['totalAmount'];
|
||||
$sum5 += $v[$arr]['ysAmount'];
|
||||
$sum6 += $v[$arr]['rpAmount'];
|
||||
$sum7 += $v[$arr]['totalCost'];
|
||||
$sum8 += $v[$arr]['saleProfit'];
|
||||
$sum9 += $salepPofitRate;
|
||||
$sum10 += $v[$arr]['pureProfit'];
|
||||
$sum11 += $pureProfitRate;
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['contactName']?></td>
|
||||
<td><?php echo $row['salesName']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td class="R"><?php echo str_money($row['totalQty'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row['totalAmount'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($sum,2)?></td>
|
||||
<td class="R"><?php echo str_money($totalAmount - $sum,2)?></td>
|
||||
<td class="R"><?php echo round($salepPofitRate,2)?>%</td>
|
||||
<td class="R"><?php echo str_money($row['disAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($v[$arr]['saleProfit'] - $v[$arr]['disAmount'],2)?></td>
|
||||
<td class="R"><?php echo round($pureProfitRate,2)?>%</td>
|
||||
<td class="R"><?php echo str_money($v[$arr]['amount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($v[$arr]['ysAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($v[$arr]['rpAmount'],2)?></td>
|
||||
<td><?php echo $row['description']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R B"><?php echo str_money($sum7,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum8,2)?></td>
|
||||
<td class="R B"><?php echo round($sum9,2)?>%</td>
|
||||
<td class="R B"><?php echo str_money($sum2,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum10,2)?></td>
|
||||
<td class="R B"><?php echo round($sum11,2)?>%</td>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum5,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum6,2)?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
236
application/views/report/supplierBalance-detail.php
Executable file
236
application/views/report/supplierBalance-detail.php
Executable file
@@ -0,0 +1,236 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.filter-list li.chk-list{height: 20px;}
|
||||
.ul-inline li .trigger{padding:0;}
|
||||
.mod-report .search-wrap .s-inner {padding-bottom:15px;}
|
||||
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
|
||||
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
|
||||
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
|
||||
);background: #f5f5f5;}
|
||||
.mod-report .search-wrap .s-inner{padding: 18px;}
|
||||
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
|
||||
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
|
||||
: 30px;}
|
||||
|
||||
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
|
||||
;height: 0;}
|
||||
.mod-report .grid-wrap{*zoom: 1;}
|
||||
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
|
||||
:0 1px 3px rgba(0,0,0,0.2);}
|
||||
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
|
||||
.mod-report .grid-wrap .R{text-align: right;}
|
||||
.mod-report .grid-wrap .B{font-weight: bold;}
|
||||
.mod-report .grid-wrap table{border-collapse:collapse;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
|
||||
.mod-report .grid-wrap table.list{border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
|
||||
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
|
||||
.link{ cursor:pointer; }
|
||||
.tr-hover{ background:#f8ff94;}
|
||||
|
||||
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
|
||||
thead{word-break: keep-all;white-space:nowrap;}
|
||||
|
||||
@media print{
|
||||
body{background: #fff;}
|
||||
.mod-report{padding: 0;}
|
||||
.mod-report .search-wrap{display: none;}
|
||||
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
|
||||
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
|
||||
.mod-report .grid-wrap table.list{width:100% !important;}
|
||||
.mod-report .grid-wrap table.list td{padding: 1px;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var defParams = {
|
||||
beginDate: '2015-04-01',
|
||||
endDate: '2015-04-16'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li><strong class="tit mrb fl dn">查询条件</strong></li>
|
||||
<li>
|
||||
<label>购货单位:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
<li id="match">
|
||||
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name
|
||||
="match">是否显示商品明细</label>
|
||||
</li>
|
||||
<li>
|
||||
<a id="refresh" class="ui-btn ui-btn fl mrb">查询</a> <span class="txt fl" id="cur-search-tip"
|
||||
></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($supplierId<1) {?>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>供应商对账单</td></tr>
|
||||
<tr><td id='customerText'>供应商:</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>单据日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类别</td>
|
||||
|
||||
<td>采购金额</td>
|
||||
<td>整单折扣额</td>
|
||||
<td>应付金额</td>
|
||||
<td>实际付款金额</td>
|
||||
<td>应付款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
<td class="R B">0.00</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($supplierId>0) {?>
|
||||
<div class="grid-wrap">
|
||||
<div class="grid">
|
||||
<table width=100% class="caption">
|
||||
<tr><td class='H'>供应商对账单</td></tr>
|
||||
<tr><td id='customerText'>供应商:</td></tr>
|
||||
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>单据日期</td>
|
||||
<td>单据编号</td>
|
||||
<td>业务类别</td>
|
||||
|
||||
<td>采购金额</td>
|
||||
<td>整单折扣额</td>
|
||||
<td>应付金额</td>
|
||||
<td>实际付款金额</td>
|
||||
<td>应付款余额</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo count($list1)>0 ? $list1['arrears'] : ''?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = 0;
|
||||
$sum0 = count($list1)>0 ? $list1['arrears'] : 0;
|
||||
foreach($list2 as $arr=>$row){
|
||||
$sum1 += $row['totalAmount'];
|
||||
$sum2 += $row['disAmount'];
|
||||
$sum3 += $row['amount'];
|
||||
$sum4 += $row['rpAmount'];
|
||||
$sum5 += $row['arrears'];
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['id']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<td class="R"><?php echo $row['totalAmount']?></td>
|
||||
<td class="R"><?php echo $row['disAmount']?></td>
|
||||
<td class="R"><?php echo $row['amount']?></td>
|
||||
<td class="R"><?php echo $row['rpAmount']?></td>
|
||||
<td class="R"><?php echo $row['arrears']?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<td class="R B"><?php echo $sum1?></td>
|
||||
<td class="R B"><?php echo $sum2?></td>
|
||||
<td class="R B"><?php echo $sum3?></td>
|
||||
<td class="R B"><?php echo $sum4?></td>
|
||||
<td class="R B"><?php echo $sum0 + $sum5?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/suppliersReconciliation.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
127
application/views/report/supplierBalance-exporter.php
Executable file
127
application/views/report/supplierBalance-exporter.php
Executable file
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = 0;
|
||||
$arrears = count($list1)>0 ? $list1['amount'] : 0;
|
||||
?>
|
||||
<table width="1440px" class="list">
|
||||
<tr><td class='H' colspan="<?php echo $showDetail == "true" ? 14 : 8?>" align="center"><h3>供应商对账单<h3></td></tr>
|
||||
<tr><td id='customerText' colspan="<?php echo $showDetail == "true" ? 14 : 8?>"><?php echo $supplierName?></td></tr>
|
||||
<tr><td colspan="<?php echo $showDetail == "true" ? 14 : 8?>">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
|
||||
</table>
|
||||
<table width="1440px" class="list" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>单据日期</th>
|
||||
<th>单据编号</th>
|
||||
<th>业务类别</th>
|
||||
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<th>商品编号</th>
|
||||
<th>商品名称</th>
|
||||
<th>规格型号</th>
|
||||
<th>单位</th>
|
||||
<th>数量</th>
|
||||
<th>单价</th>
|
||||
<?php }?>
|
||||
<th>采购金额</th>
|
||||
<th>整单折扣额</th>
|
||||
<th>应付金额</th>
|
||||
<th>实际付款金额</th>
|
||||
<th>应付款余额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="link" data-id="0" data-type="BAL">
|
||||
<td></td>
|
||||
<td>期初余额</td>
|
||||
<td></td>
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<?php }?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo str_money($arrears,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
foreach($list2 as $arr=>$row){
|
||||
$sum1 += $row['arrears'];
|
||||
$sum2 += $row['amount']; //应收金额
|
||||
$sum3 += $row['totalAmount']; //销售金额
|
||||
$sum4 += $row['rpAmount']; //实际收款金额
|
||||
$sum5 += $row['disAmount']; //折扣率
|
||||
?>
|
||||
<tr class="link" data-id="<?php echo $row['id']?>" data-type="<?php echo $row['billType']?>">
|
||||
<td><?php echo $row['billDate']?></td>
|
||||
<td><?php echo $row['billNo']?></td>
|
||||
<td><?php echo $row['transTypeName']?></td>
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<?php }?>
|
||||
<td class="R"><?php echo str_money($row['totalAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($row['disAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($row['amount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($row['rpAmount'],2)?></td>
|
||||
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if ($showDetail == "true") {
|
||||
if ($row['billType']=='PUR') {
|
||||
$postData = unserialize($row['postData']);
|
||||
foreach ($postData['entries'] as $arr1=>$row1) {
|
||||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<td class="R"><?php echo $row1['invNumber']?></td>
|
||||
<td class="R"><?php echo $row1['invName']?></td>
|
||||
<td class="R"><?php echo $row1['invSpec']?></td>
|
||||
<td class="R"><?php echo $row1['mainUnit']?></td>
|
||||
<td class="R"><?php echo str_money($row1['qty'],$this->systems['qtyPlaces'])?></td>
|
||||
<td class="R"><?php echo str_money($row1['price'],$this->systems['qtyPlaces'])?></td>
|
||||
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
|
||||
</tr>
|
||||
|
||||
<?php }}}?>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="R B">合计:</td>
|
||||
<?php if ($showDetail == "true") {?>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<td class="R"></td>
|
||||
<?php }?>
|
||||
<td class="R B"><?php echo str_money($sum3,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum5,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum2,2)?></td>
|
||||
<td class="R B"><?php echo str_money($sum4,2)?></td>
|
||||
<td class="R B"><?php echo str_money($arrears + $sum1,2)?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
102
application/views/report/suppliers-reconciliation-new.php
Executable file
102
application/views/report/suppliers-reconciliation-new.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
|
||||
<style type="text/css">
|
||||
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
|
||||
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
|
||||
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
|
||||
.ui-icon-ellipsis{ right:3px; }
|
||||
.ul-inline li{position:relative;}
|
||||
.no-query {
|
||||
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
|
||||
border: 1px solid #ddd;
|
||||
height: 402px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
#chk-wrap{line-height: 30px;}
|
||||
.frozen-sdiv{ display: none;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline fix">
|
||||
<li>
|
||||
<label>购货单位:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
</li>
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
|
||||
</li>
|
||||
<li id="match">
|
||||
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name="match">是否显示商品明细</label>
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
|
||||
<!-- grid begin -->
|
||||
<div class="ui-print" style="overflow: hidden; ">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">供应商对账单</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
<!-- grid end -->
|
||||
|
||||
</div>
|
||||
<script>
|
||||
seajs.use("dist/suppliersReconciliationNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
114
application/views/report/复件 pu-detail-new.php
Executable file
114
application/views/report/复件 pu-detail-new.php
Executable file
@@ -0,0 +1,114 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable
|
||||
=no">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>在线进销存</title>
|
||||
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
|
||||
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
|
||||
|
||||
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
|
||||
<style>
|
||||
.ui-icon-ellipsis{right:5px;}
|
||||
#grid tr{cursor:pointer;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mod-report">
|
||||
<div class="search-wrap" id="report-search">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
|
||||
>请选择查询条件</strong><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
|
||||
id="filter-fromDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
|
||||
id="filter-toDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit">供应商:</label>
|
||||
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
|
||||
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
<li style="height:60px; ">
|
||||
<label class="tit">商品:</label>
|
||||
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
|
||||
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001,或直接输入编码段如1001--1009
|
||||
查询)</p>
|
||||
</li>
|
||||
<li>
|
||||
<label class="tit">仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
|
||||
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class
|
||||
="ui-btn fl" id="btn-export">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui-print">
|
||||
<div class="grid-wrap" id="grid-wrap">
|
||||
<div class="grid-title">商品采购明细表</div>
|
||||
<div class="grid-subtitle"></div>
|
||||
<table id="grid"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-query"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
seajs.use("dist/puDetailNew");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user