初始版本

This commit is contained in:
2026-04-19 01:39:41 +08:00
commit 2b4d3e9880
1272 changed files with 389959 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="11"><h3>成本调整单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">业务类别</th>
<th width="60" align="center">金额</th>
<th width="60" align="center">制单人</th>
<th width="100" align="center">单据备注</th>
<th width="200" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="80" align="center">调整金额</th>
<th width="60" align="center">仓库</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['transTypeName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $amount?></td>
<td ></td>
<td ></td>
</tr>
<?php $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,84 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="15"><h3>其它入库单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">业务类别</th>
<th width="120" align="center">供应商</th>
<th width="60" align="center">金额</th>
<th width="60" align="center">制单人</th>
<th width="60" >审核人</th>
<th width="100" align="center">单据备注</th>
<th width="100" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="60" align="center">数量</th>
<th width="80" align="center">入库单价</th>
<th width="80" align="center">入库金额</th>
<th width="60" align="center">仓库</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$qty = $amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['transTypeName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['checkName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$qty += abs($row1['qty']);
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $qty?></td>
<td ></td>
<td ><?php echo $amount?></td>
<td ></td>
<td ></td>
</tr>
<?php $qty = $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,90 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="15"><h3>其它出库单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">业务类别</th>
<th width="120" align="center">客户</th>
<th width="60" align="center">金额</th>
<th width="60" align="center">制单人</th>
<th width="60" >审核人</th>
<th width="100" align="center">单据备注</th>
<th width="100" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="60" align="center">数量</th>
<th width="80" align="center">出库单位成本</th>
<th width="80" align="center">出库成本</th>
<th width="60" align="center">仓库</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$qty = $amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['transTypeName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['checkName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$qty += abs($row1['qty']);
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $qty?></td>
<td ></td>
<td ><?php echo $amount?></td>
<td ></td>
<td ></td>
</tr>
<?php $qty = $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,33 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table class="table" width="1500" border="1">
<tr>
<td colspan="9" align="center"><H3>盘点表</H3></td>
</tr>
<tr>
<th width="120" align="center">仓库</th>
<th width="180" >商品类别</th>
<th width="100" align="center">商品编号</th>
<th width="100" align="center">商品名称</th>
<th width="100" align="center">属性编号</th>
<th width="100" align="center">属性名称</th>
<th width="120" align="center">规格型号</th>
<th width="100" align="center">系统库存</th>
<th width="100" align="center">盘点库存</th>
</tr>
<?php
$i = 1;
foreach($list as $arr=>$row) {
?>
<tr target="id">
<td ><?php echo $locationId > 0 ? $row['locationName'] : '所有仓库';?></td>
<td ><?php echo $row['categoryName']?></td>
<td ><?php echo $row['invNumber']?></td>
<td ><?php echo $row['invName']?></td>
<td ><?php echo ''?></td>
<td ><?php echo ''?></td>
<td ><?php echo $row['invSpec']?></td>
<td ><?php echo $row['qty']?></td>
<td > </td>
</tr>
<?php $i++;}?>
</table>

View File

@@ -0,0 +1,81 @@
<?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 href="<?php echo base_url()?>statics/css/green/bills.css?ver=20150522" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd>
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-06-01">
</dd>
<dd id="identifier" style="float:right; margin-right:10px; ">
<label>单据编号:</label>
<span id="number"><?php echo str_no('CBTZ')?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/adjustment.js?ver=20150522"></script>
</body>
</html>

View File

@@ -0,0 +1,102 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
<style>
#bottomField{line-height:30px;}
#bottomField label{width: 75px;display: inline-block;}
.con-footer{padding:10px 0 0 0;}
.grid-wrap h5{ padding:10px 0; }
#tempName{ width: 160px;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct35">
<a id="chooseTemp" class="ui-btn">选择模板</a>
<a id="saveTemp" class="ui-btn">存为模板</a>
<dd class="pct30 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-05-05">
</dd>
<dd id="identifier" class="pct35 tr">
<label>单据编号:</label>
<span id="number"><?php echo str_no('CXD')?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<h5><label class="r"><input type="checkbox" checked="checked" value="1" class="vm" id="isAuto"> 自动分摊</label>组合件:</h5>
<table id="fixedGrid">
</table>
<h5>子件:</h5>
<table id="grid">
</table>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label>拆卸费用:</label>
<input type="text" id="amount" class="ui-input" data-ref="discount">
</li>
</ul>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto_0" name="goods_0" autocomplete="off">
<input type="text" class="textbox storageAuto_0" name="storage_0" autocomplete="off">
<input type="text" class="textbox unitAuto_0" name="unit_0" autocomplete="off">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/disassemble.js?ver=20150427"></script>
</body>
</html>

View File

@@ -0,0 +1,104 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150522" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct30">
<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>
<dd class="pct25 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-06-08">
</dd>
<dd id="identifier" class="pct25 tc">
<label>单据编号:</label>
<span id="number"><?php echo str_no('QTRK')?></span></dd>
<dd class="fr pct20 tr">
<label>业务类别:</label>
<span class="ui-combo-wrap" id="transType">
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
<i class="trigger"></i></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox batchAuto" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/otherWarehouse.js?ver=20150522"></script>
</body>
</html>

View File

@@ -0,0 +1,105 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150522" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct30">
<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>
<dd class="pct25 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-06-08">
</dd>
<dd id="identifier" class="pct25 tc">
<label>单据编号:</label>
<span id="number"><?php echo str_no('QTCK')?></span></dd>
<dd class="fr pct20 tr">
<label>业务类别:</label>
<span class="ui-combo-wrap" id="transType">
<input type="text" name="" class="input-txt" autocomplete="off" value="">
<i class="trigger"></i></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox batchAuto" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/otherOutbound.js?ver=20151022"></script>
</body>
</html>

View File

@@ -0,0 +1,114 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
<style>
.grid-wrap h5{ padding:10px 0; }
#tempName{ width: 160px; ]}
</style>
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct35">
<a id="chooseTemp" class="ui-btn">选择模板</a>
<a id="saveTemp" class="ui-btn">存为模板</a>
<dd class="pct30 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-11-05">
</dd>
<dd id="identifier" class="pct35 tr">
<label>单据编号:</label>
<span id="number"><?php echo str_no('ZZD')?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<h5>组合件:</h5>
<table id="fixedGrid">
</table>
<h5>子件:</h5>
<table id="grid">
</table>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label>组装费用:</label>
<input type="text" id="amount" class="ui-input" data-ref="discount">
</li>
</ul>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto_0" name="goods_0" autocomplete="off">
<input type="text" class="textbox storageAuto_0" name="storage_0" autocomplete="off">
<input type="text" class="textbox unitAuto_0" name="unit_0" autocomplete="off">
<input type="text" class="textbox batchAuto_0" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto_0" name="date" autocomplete="off">
<input type="text" class="textbox skuAuto_0" name="price" autocomplete="off">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox batchAuto" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
<input type="text" class="textbox skuAuto" name="price" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/assemble.js?ver=201510141132"></script>
</body>
</html>

View File

@@ -0,0 +1,66 @@
<?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>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或客户名或备注">
</li>
<li>
<label>日期</label>
<input type="text" id="beginDate" value="2015-04-29" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-05-05" class="ui-input ui-datepicker-input">
</li>
<li>
<label>仓库</label>
<span id="storageA"></span>
</li>
<li><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="add">新增</a><a class="ui-btn" id="export" target
="_blank">导出</a></div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/adjustmentList.js?ver=20150427"></script>
</body>
</html>

View File

@@ -0,0 +1,63 @@
<?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>
<style>
.ui-jqgrid tr.jqgrow td{ height: 24px;padding: 3px 2px; }
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-29" class="ui-input ui-datepicker-input">
<span>-</span>
<input type="text" id="endDate" value="2015-05-05" class="ui-input ui-datepicker-input">
</li>
<li><!-- <a class="mrb more" id="moreCon">(高级搜索)</a> --><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="add">新增</a><a class="ui-btn mrb" id="print" target="_blank" href="javascript:void(0);">打印</a><a class="ui-btn" id="export" target="_blank">导出</a></div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/disassembleList.js?ver=20150427"></script>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<?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>
<style>
#reAudit,#audit{display:none;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或供应商或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-10" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-16" class="ui-input ui-datepicker-input">
</li>
<li><a class="mrb more" id="moreCon">(高级搜索)</a><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="add">新增</a> <a class="ui-btn" id="export" target="_blank">导出</a
></div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/otherWarehouseList.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<?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>
<style>
#reAudit,#audit{display:none;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或客户名或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-10" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-16" class="ui-input ui-datepicker-input">
</li>
<li><a class="mrb more" id="moreCon">(高级搜索)</a><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="add">新增</a> <a class="ui-btn" id="export" target="_blank">导出</a></div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/otherOutboundList.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,63 @@
<?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>
<style>
.ui-jqgrid tr.jqgrow td{ height: 24px;padding: 3px 2px; }
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-10-30" class="ui-input ui-datepicker-input">
<span>-</span>
<input type="text" id="endDate" value="2015-11-05" class="ui-input ui-datepicker-input">
</li>
<li><!-- <a class="mrb more" id="moreCon">(高级搜索)</a> --><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="add">新增</a><a class="ui-btn mrb" id="print" target="_blank" href="javascript:void(0);">打印</a><a class="ui-btn" id="export" target="_blank">导出</a></div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/assembleList.js?ver=201510141132"></script>
</body>
</html>

View File

@@ -0,0 +1,107 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>成本调整单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style></style>
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="1100" align="center">
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:24px; font-weight:normal;height:20px;"></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:20px; font-weight:normal;"><?php echo $system['companyName']?></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:20px; font-weight:normal;">成本调整单</td>
</tr>
</table>
<table width="1300" align="center">
<tr height="15" align="left">
<td width="250" style="font-family:'宋体'; font-size:18px;">单据日期:<?php echo $billDate?></td>
<td width="190" style="font-family:'宋体'; font-size:18px;"></td>
<td width="150" style="font-family:'宋体'; font-size:18px;"></td>
<td width="100" style="font-family:'宋体'; font-size:18px;"></td>
<td width="280" style="font-family:'宋体'; font-size:18px;">单据编号:<?php echo $billNo?></td>
</tr>
</table>
<table width="1100" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:18px;height:15px;" align="center">序号</td>
<td width="400" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:18px;height:15px;" align="center">商品</td>
<td width="150" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:18px;height:15px;" align="center">单位</td>
<td width="150" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:18px;height:15px;" align="center">调整金额</td>
<td width="200" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:18px;height:15px;" align="center">仓库</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;" align="center"><?php echo $row['i']?></td>
<td width="400" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;"><?php echo $row['goods'];?></td>
<td width="150" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;" align="center"><?php echo $row['invSpec']?></td>
<td width="150" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;" align="center"><?php echo abs($row['amount'])?></td>
<td width="200" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;" align="center"><?php echo $row['locationName']?></td>
</tr>
<?php }
$i++;
}
?>
<?php if ($t==$countpage) {?>
<tr style="height:20px">
<td colspan="3" align="right" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;">合计:</td>
<td width="150" align="center" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;"><?php echo $totalAmount;?></td>
<td width="200" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:16px;"></td>
</tr>
<?php }?>
</table>
<table width="1300" align="center">
<tr height="15" align="left">
<td align="left" width="960" style="font-family:'宋体'; font-size:18px;height:15px;">备注: <?php echo $description?></td>
<td width="0" style="font-family:'宋体'; font-size:18px;height:15px;"></td>
<td width="0" style="font-family:'宋体'; font-size:18px;height:15px;"></td>
<td width="0" style="font-family:'宋体'; font-size:18px;height:15px;"></td>
<td width="0" style="font-family:'宋体'; font-size:18px;height:15px;"></td>
</tr>
</table>
<table width="1300" align="center">
<tr height="15" align="left">
<td align="left" width="250" style="font-family:'宋体'; font-size:18px;">制单人:<?php echo $userName?> </td>
<td width="250" style="font-family:'宋体'; font-size:18px;"></td>
<td width="250" style="font-family:'宋体'; font-size:18px;"></td>
<td width="100" style="font-family:'宋体'; font-size:18px;"></td>
<td width="100" style="font-family:'宋体'; font-size:18px;"></td>
</tr>
</table>
<?php }?>
</body>
</html>

View File

@@ -0,0 +1,101 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $transTypeName?>单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr>
<td style="height:50px;"></td>
</tr>
<tr>
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:bold;"><?php echo $system['companyName']?></td>
</tr>
<tr>
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:bold;height:25px;">其他入库单</td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left" style="font-family:'宋体'; font-size:12px;">
<td width="220" >供应商:<?php echo $contactNo.' '.$contactName?> </td>
<td width="130" >单据日期:<?php echo $billDate?></td>
<td width="200" >单据编号:<?php echo $billNo?></td>
<td width="70" >币别RMB</td>
<td width="150" >业务类型:<?php echo $transTypeName?></td>
</tr>
</table>
<table width="800" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="border:solid #000000;border-width:0 1px 0px 0;padding:1px; font-family:'宋体'; font-size:14px;height:15px;">
<td width="30" align="center">序号</td>
<td width="250" align="center">商品</td>
<td width="60" align="center">单位</td>
<td width="60" align="center">数量</td>
<td width="80" align="center">入库单价</td>
<td width="80" align="center">入库金额</td>
<td width="150" align="center">仓库</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="border:solid #000000;height:15px;font-family:'宋体'; font-size:12px;vertical-align:bottom;">
<td width="30" align="center"><?php echo $row['i']?></td>
<td width="250"><?php echo $row['goods']?></td>
<td width="60" align="center"><?php echo $row['invSpec']?></td>
<td width="60" align="right"><?php echo str_money(abs($row['qty']),$system['qtyPlaces'])?></td>
<td width="80" align="right"><?php echo abs($row['price'])?></td>
<td width="80" align="right"><?php echo str_money(abs($row['amount']),2)?></td>
<td width="150"><?php echo $row['locationName']?></td>
</tr>
<?php }
$i++;
}
?>
<?php if ($t==$countpage) {?>
<tr style="border:solid #000000;border-width:0 1px 0px 0;height:15px;font-family:'宋体'; font-size:12px;">
<td colspan="3" width="340" align="right" >合计:</td>
<td width="60" align="right"><?php echo str_money($totalQty,$system['qtyPlaces'])?></td>
<td width="80" ></td>
<td width="80" align="right"><?php echo str_money($totalAmount,2)?></td>
<td width="150"></td>
</tr>
<?php }?>
</table>
<?php if ($t==$countpage) {?>
<table width="800" align="center">
<tr align="left">
<td align="left" width="780" style="font-family:'宋体'; font-size:12px;height:25px;">备注: <?php echo $description?></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left" style="font-family:'宋体'; font-size:12px;">
<td align="left" width="250" style="font-family:'宋体'; font-size:12px;">制单人:<?php echo $userName?> </td>
<td width="250" >收货人签字____________</td>
<td width="250" ></td>
<td width="100" ></td>
<td width="100" ></td>
</tr>
</table>
<?php }?>
<?php }?>
</body>
</html>

View File

@@ -0,0 +1,102 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $transTypeName?>单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr>
<td style="height:50px;"></td>
</tr>
<tr>
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:bold;"><?php echo $system['companyName']?></td>
</tr>
<tr>
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:bold;height:25px;">其他出库单</td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left" style="font-family:'宋体'; font-size:12px;">
<td width="220" >客户:<?php echo $contactNo.' '.$contactName?> </td>
<td width="130" >单据日期:<?php echo $billDate?></td>
<td width="200" >单据编号:<?php echo $billNo?></td>
<td width="70" >币别RMB</td>
<td width="150" >业务类型:<?php echo $transTypeName?></td>
</tr>
</table>
<table width="800" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="border:solid #000000;border-width:0 1px 0px 0;padding:1px; font-family:'宋体'; font-size:14px;height:15px;">
<td width="30" align="center">序号</td>
<td width="250" align="center">商品</td>
<td width="60" align="center">单位</td>
<td width="60" align="center">数量</td>
<td width="80" align="center">出库单位成本</td>
<td width="80" align="center">出库成本</td>
<td width="150" align="center">仓库</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="border:solid #000000;height:15px;font-family:'宋体'; font-size:12px;vertical-align:bottom;">
<td width="30" align="center"><?php echo $row['i']?></td>
<td width="250"><?php echo $row['goods']?></td>
<td width="60" align="center"><?php echo $row['invSpec']?></td>
<td width="60" align="center"><?php echo str_money(abs($row['qty']),$system['qtyPlaces'])?></td>
<td width="80" align="center"><?php echo abs($row['price'])?></td>
<td width="80" align="center"><?php echo str_money(abs($row['amount']),2)?></td>
<td width="150" align="center"><?php echo $row['locationName']?></td>
</tr>
<?php }
$i++;
}
?>
<?php if ($t==$countpage) {?>
<tr style="border:solid #000000;border-width:0 1px 0px 0;height:15px;font-family:'宋体'; font-size:12px;">
<td colspan="3" width="340" align="right" >合计:</td>
<td width="60" align="right"><?php echo str_money($totalQty,$system['qtyPlaces'])?></td>
<td width="80" ></td>
<td width="80" align="right"><?php echo str_money($totalAmount,2)?></td>
<td width="150"></td>
</tr>
<?php }?>
</table>
<?php if ($t==$countpage) {?>
<table width="800" align="center">
<tr align="left">
<td align="left" width="780" style="font-family:'宋体'; font-size:12px;height:25px;">备注: <?php echo $description?></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left" style="font-family:'宋体'; font-size:12px;">
<td align="left" width="250" style="font-family:'宋体'; font-size:12px;">制单人:<?php echo $userName?> </td>
<td width="250" >发货人签字____________</td>
<td width="250" >收货人签字____________</td>
<td width="100" ></td>
<td width="100" ></td>
</tr>
</table>
<?php }?>
<?php }?>
</body>
</html>

View File

@@ -0,0 +1,109 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="22"><H3>购货记录<H3></td></tr>
</table>
<table width="1500px" class="list" border="1">
<thead>
<tr>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">业务类别</th>
<th width="120" align="center">供应商</th>
<th width="80" align="center">购货金额</th>
<th width="80" align="center">折扣率(%)</th>
<th width="80" align="center">折扣额</th>
<th width="80" align="center">折后金额</th>
<th width="80" align="center">本次付款</th>
<th width="80" align="center">本次欠款</th>
<th width="60" align="center">已付款</th>
<th width="60" align="center">付款状态</th>
<th width="60" align="center">制单人</th>
<th width="60" >审核人</th>
<th width="100" align="center">单据备注</th>
<th width="200" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="60" align="center">数量</th>
<th width="80" align="center">购货单价</th>
<th width="80" align="center">折扣率(%)</th>
<th width="60" align="center">折扣额</th>
<th width="60" align="center">金额</th>
<th width="60" align="center">仓库</th>
<th width="100" align="center">备注</th>
<th width="100" align="center">源单号</th>
</tr>
</thead>
<tbody>
<?php
$n = $i = 1;
$qty = $amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['transTypeName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['totalAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['disRate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['disAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['rpAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['arrears']?></td>
<td rowspan="<?php echo $n?>" ><?php echo abs($row['hasCheck'])?></td>
<td rowspan="<?php echo $n?>" ><?php echo abs($row['hasCheck']) <= 0 ? '未付款' : (abs($row['hasCheck'])>=abs($row['amount'])? '全部付款' : '部分付款')?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['checkName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$qty += abs($row1['qty']);
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo $row1['discountRate']?></td>
<td ><?php echo $row1['deduction']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
<td ></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo $row1['discountRate']?></td>
<td ><?php echo $row1['deduction']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
<td ></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $qty?></td>
<td ></td>
<td ></td>
<td ></td>
<td ><?php echo $amount?></td>
<td ></td>
<td ></td>
<td ></td>
</tr>
<?php $qty = $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,195 @@
<?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();
}
});
$(function() {
$("#Contract").click(function (){
$.dialog({
content: "url:../settings/Contract",
data: {
title: '附件上传',
id: "<?php echo $billNo?>",
callback: function() {}
},
title: '附件上传',
width: 775,
height: 470,
max: !1,
min: !1,
cache: !1,
lock: !0
})
});
$("#Contract1").click(function (){
$.dialog({
content: "url:../settings/Contract",
data: {
title: '附件上传',
id: "<?php echo $billNo?>",
callback: function() {}
},
title: '附件上传',
width: 775,
height: 470,
max: !1,
min: !1,
cache: !1,
lock: !0
})
})
});
</script>
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=201505122" rel="stylesheet" type="text/css">
<style>
#barCodeInsert{margin-left: 10px;font-weight: 100;font-size: 12px;color: #fff;background-color: #B1B1B1;padding: 0 5px;border-radius: 2px;line-height: 19px;height: 20px;display: inline-block;}
#barCodeInsert.active{background-color: #23B317;}
</style>
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct30">
<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>
<dd class="pct25 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-08-27">
</dd>
<dd id="identifier" class="pct25 tc">
<label>单据编号:</label>
<span id="number"><?php echo $billNo?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label>优惠率:</label>
<input type="text" id="discountRate" class="ui-input" data-ref="deduction">%
</li>
<li>
<label>优惠金额:</label>
<input type="text" id="deduction" class="ui-input" data-ref="payment">
</li>
<li>
<label>优惠后金额:</label>
<input type="text" id="discount" class="ui-input ui-input-dis" data-ref="discountRate" disabled>
</li>
<li>
<label id="paymentTxt">本次付款:</label>
<input type="text" id="payment" class="ui-input">&emsp;
</li>
<li id="accountWrap" class="dn">
<label>结算账户:</label>
<span class="ui-combo-wrap" id="account" style="padding:0;">
<input type="text" class="input-txt" autocomplete="off">
<i class="trigger"></i></span><a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
</li>
<li>
<label>本次欠款:</label>
<input type="text" id="arrears" class="ui-input ui-input-dis" disabled>
</li>
<li>
<label>采购合同:</label>
<input type="text" class="ui-input ui-input-dis" disabled>
<?php
if ($this->common_model->checkpurviews(203)){
?>
<a id="Contract" class="ui-btn">上传</a>
<?php
}
if ($this->common_model->checkpurviews(204)){
?>
<a id="Contract1" class="ui-btn">查看</a>
<?php
}
?>
</li>
<li class="dn">
<label>累计欠款:</label>
<input type="text" id="totalArrears" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>审核人:</label>
<span id="checkName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox batchAuto" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
<input type="text" class="textbox priceAuto" name="price" autocomplete="off">
<input type="text" class="textbox skuAuto" name="price" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/purchase.js?ver=201510241557"></script>
</body>
</html>

View File

@@ -0,0 +1,101 @@
<?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>
<style>
#matchCon { width: 280px; }
#print{margin-left:10px;}
a.ui-btn{margin-left:10px;}
#reAudit,#audit{display:none;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入单据号或供应商或序列号或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-09" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-15" class="ui-input ui-datepicker-input">
</li>
<li><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr">
<a class="ui-btn ui-btn-sp" id="add">新增</a>
<a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a>
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a>
<!-- <a class="ui-btn" id="import" target="_blank" href="javascript:void(0);">导入</a><a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a> -->
<!--<div class="ui-btn-menu">
<a class="ui-btn menu-btn mrb" style="width: 40px;padding-right: 7px;" href="#" id="import" target="_blank" href="javascript:void(0);">导入<b></b></a>
<div class="con more-operate-con" style="margin-left: 0px;font-size: 14px;width: 54px;padding: 3px;">
<ul class="more-operate cf" style="border-style:dashed; border-width:1px; border-color:#ccc;">
<li style="padding-left: 8px;"><a href="#" id="export" target="_blank" href="javascript:void(0);">导出</a></li>
</ul>
</div>
</div>-->
<div class="ui-btn-menu">
<a href="#" class="ui-btn" id="btn-batchDel">删除</a>
</div>
<!-- <a class="ui-btn dn" id="audit">审核</a><a class="ui-btn" id="reAudit">反审核</a> -->
<div class="ui-btn-menu">
<a class="ui-btn menu-btn mrb" style="width: 40px;padding-right: 14px;" href="#" id="audit">审核<b></b></a>
<div class="con more-operate-con" style="margin-left: 0px;font-size: 14px;width: 55px;padding: 6px;">
<ul class="more-operate cf" style="border-style:dashed; border-width:1px; border-color:#ccc;">
<li><a href="#" id="reAudit">反审核</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- <div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a><a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a><a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a> </div>
</div>-->
<!-- <div class="mod-toolbar-top cf">
<div class="fl"><strong class="tit">仓库</strong></div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="search">新增</a><a class="ui-btn" id="export">导出</a></div>
</div>-->
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/purchaseList.js?ver=2017071102"></script>
</body>
</html>

View File

@@ -0,0 +1,151 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $transType==150501 ? '购货单' :'购货退货单'?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style></style>
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:50px;"></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;"><?php echo $system['companyName']?></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:25px;"><?php echo $transType==150501 ? '购货单' :'购货退货单'?></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left" >
<td width="250" style="font-family:'宋体'; font-size:14px;height:20px;">供应商:<?php echo $contactNo.' '.$contactName?> </td>
<td width="10" ></td>
<td width="150" >单据日期:<?php echo $billDate?></td>
<td width="250" >单据编号:<?php echo $billNo?></td>
<td width="60" >币别RMB</td>
</tr>
</table>
<table width="800" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">序号</td>
<td width="220" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">商品</td>
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">单位</td>
<td width="40" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">数量</td>
<td width="80" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">购货单价</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">折扣率(%)</td>
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">折扣额</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">购货金额</td>
<td width="80" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">仓库</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;" align="center"><?php echo $row['i']?></td>
<td width="220" ><?php echo $row['goods'];?></td>
<td width="30" align="center"><?php echo $row['mainUnit']?></td>
<td width="40" align="right"><?php echo $row['qty']?></td>
<td width="60" align="right"><?php echo $row['price']?></td>
<td width="60" align="right"><?php echo $row['discountRate']?></td>
<td width="50" align="right"><?php echo $row['deduction']?></td>
<td width="60" align="right"><?php echo $row['amount']?></td>
<td width="80"><?php echo $row['locationName']?></td>
</tr>
<?php
$s = $row['i'];
}
$i++;
}
?>
<?php
//补全
if ($t==$countpage) {
for ($m=$s+1;$m<=$t*$num;$m++) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;" align="center"><?php echo $m?></td>
<td width="220" ></td>
<td width="30" align="center"></td>
<td width="40" align="center"></td>
<td width="60" align="center"></td>
<td width="60" align="center"></td>
<td width="50" align="center"></td>
<td width="60" align="center"></td>
<td width="80" align="center"></td>
</tr>
<?php }}?>
<?php if ($t==$countpage) {?>
<tr style="height:20px">
<td colspan="3" align="right" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">合计:</td>
<td width="30" align="right" ><?php echo str_money(abs($totalQty),$system['qtyPlaces'])?></td>
<td width="40" align="center"></td>
<td width="60" align="center"></td>
<td width="50" align="center"></td>
<td width="60" align="right" ><?php echo str_money(abs($totalAmount),2)?></td>
<td width="80" align="center"></td>
</tr>
<tr target="id">
<td colspan="9" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;">合计 金额大写: <?php echo str_num2rmb(abs($totalAmount))?> </td>
</tr>
<?php }?>
</table>
<table width="800" align="center">
<tr height="25" align="left">
<td align="left" width="200" style="font-family:'宋体'; font-size:14px;height:25px;">折扣额:<?php echo str_money(abs($disAmount),2)?></td>
<td width="200" style="font-family:'宋体'; font-size:14px;height:25px;">折扣后金额:<?php echo str_money(abs($amount),2)?></td>
<td width="200" style="font-family:'宋体'; font-size:14px;height:25px;"><?php echo $transType==150501 ? '本次付款:' :'本次退款:'?><?php echo str_money(abs($rpAmount),2)?></td>
<td width="200" style="font-family:'宋体'; font-size:14px;height:25px;">本次欠款:<?php echo str_money(abs($arrears),2)?></td>
<td width="50" style="font-family:'宋体'; font-size:14px;height:25px;"></td>
</tr>
</table>
<table width="800" align="center">
<tr height="25" align="left">
<td align="left" width="960" style="font-family:'宋体'; font-size:14px;height:25px;">备注: <?php echo $description?></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
</tr>
</table>
<table width="800" align="center">
<tr height="25" align="left">
<td align="left" width="250" style="font-family:'宋体'; font-size:14px;height:25px;">制单人:<?php echo $userName?> </td>
<td width="250" style="font-family:'宋体'; font-size:14px;height:25px;">收货人签字____________</td>
<td width="250" style="font-family:'宋体'; font-size:14px;height:25px;">供应商签字____________</td>
<td width="100" ></td>
<td width="100" ></td>
</tr>
</table>
<?php echo $t==$countpage?'':'<br><br>';}?>
</body>
</html>

View File

@@ -0,0 +1,112 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="22"><h3>销货记录</h3></td></tr>
</table>
<table width="1500px" class="list" border="1">
<thead>
<tr>
<th width="120" align="center">单据编号</th>
<th width="120" align="center">业务类别</th>
<th width="120" align="center">客户</th>
<th width="60" align="center">销售金额</th>
<th width="60" align="center">折扣率(%)</th>
<th width="60" align="center">折扣额</th>
<th width="60" align="center">折后金额</th>
<th width="60" align="center">本次收款</th>
<th width="60" align="center">本次欠款</th>
<th width="60" align="center">已收款</th>
<th width="60" align="center">收款状态</th>
<th width="60" align="center">制单人</th>
<th width="60" >审核人</th>
<th width="100" align="center">单据备注</th>
<th width="100" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="60" align="center">数量</th>
<th width="60" align="center">销售单价</th>
<th width="60" align="center">折扣率(%)</th>
<th width="60" align="center">折扣额</th>
<th width="60" align="center">金额</th>
<th width="60" align="center">仓库</th>
<th width="100" align="center">备注</th>
<th width="100" align="center">源单号</th>
</tr>
</thead>
<tbody>
<?php
$i = $n = 1;
$qty = $amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['transTypeName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['totalAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['disRate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['disAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['rpAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['arrears']?></td>
<td rowspan="<?php echo $n?>" ><?php echo abs($row['hasCheck'])?></td>
<td rowspan="<?php echo $n?>" ><?php echo abs($row['hasCheck']) <= 0 ? '未收款' : (abs($row['hasCheck'])>=abs($row['amount'])? '全部收款' : '部分收款')?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['checkName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$qty += abs($row1['qty']);
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo $row1['discountRate']?></td>
<td ><?php echo $row1['deduction']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
<td ></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo $row1['discountRate']?></td>
<td ><?php echo $row1['deduction']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
<td ></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $qty?></td>
<td ></td>
<td ></td>
<td ></td>
<td ><?php echo $amount?></td>
<td ></td>
<td ></td>
<td ></td>
</tr>
<?php $qty = $amount = 0;$n = 1;}?>
</tbody>
</table>

View 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();
}
});
$(function() {
$("#Contract").click(function (){
$.dialog({
content: "url:../settings/Contract",
data: {
title: '附件上传',
id: "<?php echo $billNo?>",
callback: function() {}
},
title: '附件上传',
width: 775,
height: 470,
max: !1,
min: !1,
cache: !1,
lock: !0
})
});
$("#Contract1").click(function (){
$.dialog({
content: "url:../settings/Contract",
data: {
title: '附件上传',
id: "<?php echo $billNo?>",
callback: function() {}
},
title: '附件上传',
width: 775,
height: 470,
max: !1,
min: !1,
cache: !1,
lock: !0
})
})
});
</script>
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150522" rel="stylesheet" type="text/css">
<style>
#barCodeInsert{margin-left: 10px;font-weight: 100;font-size: 12px;color: #fff;background-color: #B1B1B1;padding: 0 5px;border-radius: 2px;line-height: 19px;height: 20px;display: inline-block;}
#barCodeInsert.active{background-color: #23B317;}
</style>
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct25">
<label>客&nbsp;&nbsp;&nbsp;&nbsp;户:</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>
<dd id="identifier" class="pct20 tc">
<label>销售人员:</label>
<span class="ui-combo-wrap" id="sales">
<input type="text" class="input-txt" autocomplete="off">
<i class="trigger"></i></span>
</dd>
<dd class="pct20 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-06-08">
</dd>
<dd id="identifier" class="pct20 tc">
<label>单据编号:</label>
<span id="number"><?php echo $billNo;?></span></dd>
<!-- <dd id="classes" class="pct15 tr">
<label class="radio">
<input type="radio" name="classes" value="150601">
销货</label>
<label class="radio">
<input type="radio" name="classes" value="150602">
退货</label>
</dd> -->
</dl>
<!-- add by michen 20170724 begin -->
<dl class="cf">
<dd class="pct20">
<label>联系人:</label>
<span class="ui-combo-wrap" id="linkMan">
<input type="text" name="" class="input-txt" autocomplete="off" value="">
<i class="trigger"></i>
</span>
</dd>
<dd class="pct25 tc">
<label>地址:</label>
<span id="linkAddress">
<input type="text" class="ui-input" value="" style="width:250px">
</span>
</dd>
<dd class="pct20 tc">
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电话:</label>
<span id="linkPhone">
<input type="text" class="ui-input" value="">
</span>
</dd>
</dl>
<!-- add by michen 20170724 end -->
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label>优惠率:</label>
<input type="text" id="discountRate" class="ui-input" data-ref="deduction">%
</li>
<li>
<label>优惠金额:</label>
<input type="text" id="deduction" class="ui-input" data-ref="payment">
</li>
<li>
<label>优惠后金额:</label>
<input type="text" id="discount" class="ui-input ui-input-dis" data-ref="discountRate" disabled>
</li>
<li>
<label>客户承担费用:</label>
<input type="text" id="customerFree" class="ui-input" data-ref="customerFree">
</li>
<li>
<label id="paymentTxt">本次收款:</label>
<input type="text" id="payment" class="ui-input">&emsp;
</li>
<li id="accountWrap" class="dn">
<label>结算账户:</label>
<span class="ui-combo-wrap" id="account" style="padding:0;">
<input type="text" class="input-txt" autocomplete="off">
<i class="trigger"></i></span><a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
</li>
<li>
<label>本次欠款:</label>
<input type="text" id="arrears" class="ui-input ui-input-dis" disabled>
</li>
<li>
<label>销售附件:</label>
<!-- <input type="text" class="ui-input ui-input-dis" disabled> -->
<?php
if ($this->common_model->checkpurviews(203)){
?>
<a id="Contract" class="ui-btn">上传</a>
<?php
}
if ($this->common_model->checkpurviews(204)){
?>
<a id="Contract1" class="ui-btn">查看</a>
<?php
}
?>
</li>
<li class="dn">
<label>累计欠款:</label>
<input type="text" id="totalArrears" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>审核人:</label>
<span id="checkName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox batchAuto" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
<input type="text" class="textbox priceAuto" name="price" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/sales.js?ver=2017082001"></script>
</body>
</html>

View File

@@ -0,0 +1,76 @@
<?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>
<style>
#matchCon { width: 220px; }
#print{margin-left:10px;}
a.ui-btn{margin-left:10px;}
#reAudit,#audit{display:none;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入单据号或客户名或序列号或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-10" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-16" class="ui-input ui-datepicker-input">
</li>
<li><a class="mrb more" id="moreCon">(高级搜索)</a><a class="ui-btn" id="search">查询</a><!--<a class
="ui-btn ui-btn-refresh" id="refresh" title="刷新"><b></b></a>--></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a><a class="ui-btn" id="print" target="_blank"
href="javascript:void(0);">打印</a><!-- a class="ui-btn" id="import" target="_blank" href="javascript
:void(0);">导入</a--><a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a><a
class="ui-btn dn" id="audit">审核</a><a class="ui-btn" id="reAudit">反审核</a></div>
</div>
<!-- <div class="mod-toolbar-top cf">
<div class="fl"><strong class="tit">仓库</strong></div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="search">新增</a><a class="ui-btn" id="export">
导出</a></div>
</div>-->
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/salesList.js?ver=2017071102"></script>
</body>
</html>

View File

@@ -0,0 +1,159 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $transType==150601 ? '销货单' :'销货退货单'?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style></style>
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:50px;"></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;"><?php echo $system['companyName']?></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:25px;"><?php echo $transType==150601 ? '销货单' :'销货退货单'?></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td width="220" style="font-family:'宋体'; font-size:12px;height:20px;">客户:<?php echo $contactNo.' '.$contactName?> </td>
<td width="120" style="font-family:'宋体'; font-size:12px;height:20px;">销售人员:<?php echo $salesName?></td>
<td width="120" style="font-family:'宋体'; font-size:12px;height:20px;">单据日期:<?php echo $billDate?></td>
<td width="140" style="font-family:'宋体'; font-size:12px;height:20px;">单据编号:<?php echo $billNo?></td>
</tr>
<tr height="15" align="left">
<td width="120" style="font-family:'宋体'; font-size:12px;height:20px;">联系人:<?php echo $udf01?> </td>
<td width="220" style="font-family:'宋体'; font-size:12px;height:20px;">地址:<?php echo $udf03?></td>
<td width="120" style="font-family:'宋体'; font-size:12px;height:20px;">电话:<?php echo $udf02?></td>
<td width="140" style="font-family:'宋体'; font-size:12px;height:20px;">币别RMB</td>
</tr>
</table>
<table width="900" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">序号</td>
<td width="160" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">商品</td>
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">单位</td>
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">数量</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">销售单价</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">折扣率(%)</td>
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">折扣额</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">销售金额</td>
<td width="80" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">仓库</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">备注</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td width="30" align="center"><?php echo $row['i']?></td>
<td width="160" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;"><?php echo $row['goods'];?></td>
<td width="30" align="center" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;"><?php echo $row['mainUnit']?></td>
<td width="30" align="right"><?php echo str_money(abs($row['qty']),$system['qtyPlaces'])?></td>
<td width="60" align="right"><?php echo abs($row['price'])?></td>
<td width="60" align="right"><?php echo $row['discountRate']?></td>
<td width="50" align="right"><?php echo $row['deduction']?></td>
<td width="60" align="right"><?php echo str_money(abs($row['amount']),2)?></td>
<td width="80"><?php echo $row['locationName']?></td>
<td width="60"><?php echo $row['description']?></td>
</tr>
<?php
$s = $row['i'];
}
$i++;
}
?>
<?php
//补全
if ($t==$countpage) {
for ($m=$s+1;$m<=$t*$num;$m++) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td width="30" align="center" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;"><?php echo $m?></td>
<td width="160"></td>
<td width="30"></td>
<td width="30"></td>
<td width="60"></td>
<td width="60"></td>
<td width="50"></td>
<td width="60"></td>
<td width="80"></td>
<td width="60"></td>
</tr>
<?php }}?>
<?php if ($t==$countpage) {?>
<tr style="height:20px">
<td colspan="3" align="right" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">合计:</td>
<td width="30" align="right"><?php echo str_money(abs($totalQty),$system['qtyPlaces'])?></td>
<td width="60" align="center"></td>
<td width="60" align="center"></td>
<td width="60" align="center"></td>
<td width="60" align="right"><?php echo str_money(abs($totalAmount),2)?></td>
<td width="80" align="center"></td>
<td width="60" align="center"></td>
</tr>
<tr target="id">
<td colspan="10" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:12px;height:15px;">合计 金额大写: <?php echo str_num2rmb(abs($totalAmount))?> </td>
</tr>
<?php }?>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="200" style="font-family:'宋体'; font-size:12px;height:25px;">折扣额:<?php echo str_money(abs($disAmount),2)?></td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;">折扣后金额:<?php echo str_money(abs($amount),2)?></td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;"><?php echo $transType==150601 ? '本次收款:' :'本次退款:'?> <?php echo str_money(abs($rpAmount),2)?></td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;">本次欠款:<?php echo str_money(abs($arrears),2)?></td>
<td width="50" ></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="700" style="font-family:'宋体'; font-size:12px;height:25px;">备注: <?php echo $description?></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="200" style="font-family:'宋体'; font-size:12px;height:25px;">制单人:<?php echo $userName?> </td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;">发货人签字____________</td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;">客户签字____________</td>
<td width="150"></td>
<td width="50" ></td>
</tr>
</table>
<?php echo $t==$countpage?'':'<br><br><br>';}?>
</body>
</html>

View File

@@ -0,0 +1,108 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="21"><h3>销货订单记录</h3></td></tr>
</table>
<table width="1500px" class="list" border="1">
<thead>
<tr>
<th width="120" align="center">订单日期</th>
<th width="120" align="center">订单编号</th>
<th width="120" align="center">业务类别</th>
<th width="80" align="center">销售人员</th>
<th width="120" align="center">客户</th>
<th width="60" align="center">销售金额</th>
<th width="60" align="center">订单状态</th>
<th width="60" align="center">交货日期</th>
<th width="60" align="center">制单人</th>
<th width="60" >审核人</th>
<th width="100" align="center">订单备注</th>
<th width="100" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="60" align="center">数量</th>
<th width="60" align="center">销售单价</th>
<th width="60" align="center">折扣率(%)</th>
<th width="60" align="center">折扣额</th>
<th width="60" align="center">金额</th>
<th width="60" align="center">仓库</th>
<th width="100" align="center">备注</th>
<th width="100" align="center">源单号</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$qty = $amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['transTypeName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['salesName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['totalAmount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo intval($row['billStatus'])==2 ? '全部出库' :'未出库'?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['deliveryDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['checkName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$qty += abs($row1['qty']);
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo $row1['discountRate']?></td>
<td ><?php echo $row1['deduction']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
<td ></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo abs($row1['qty'])?></td>
<td ><?php echo $row1['price']?></td>
<td ><?php echo $row1['discountRate']?></td>
<td ><?php echo $row1['deduction']?></td>
<td ><?php echo abs($row1['amount'])?></td>
<td ><?php echo $row1['locationName']?></td>
<td ><?php echo $row1['description']?></td>
<td ></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $qty?></td>
<td ></td>
<td ></td>
<td ></td>
<td ><?php echo $amount?></td>
<td ></td>
<td ></td>
<td ></td>
</tr>
<?php $qty = $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,154 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=201511241412" rel="stylesheet" type="text/css">
<style>
#barCodeInsert{margin-left: 10px;font-weight: 100;font-size: 12px;color: #fff;background-color: #B1B1B1;padding: 0 5px;border-radius: 2px;line-height: 19px;height: 20px;display: inline-block;}
#barCodeInsert.active{background-color: #23B317;}
</style>
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd class="pct25">
<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>
<dd id="identifier" class="pct20 tc" style="display:none">
<label>销售人员:</label>
<span class="ui-combo-wrap" id="sales">
<input type="text" class="input-txt" autocomplete="off">
<i class="trigger"></i></span>
</dd>
<dd class="pct20 tc" >
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-10-31">
</dd>
<dd class="pct20 tc" >
<label>交货日期:</label>
<input type="text" id="deliveryDate" class="ui-input ui-datepicker-input" value="">
</dd>
<dd id="classes" class="pct15 tr">
<label class="radio">
<input type="radio" name="classes" value="150601">
订货</label>
<label class="radio">
<input type="radio" name="classes" value="150602">
退货</label>
</dd>
</dl>
<p id="identifier" class="cf tr" style="margin: 10px 0 0 0; "><label>单据编号:</label><span id="number"><?php echo str_no('XSDD');?></span></p>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label>优惠率:</label>
<input type="text" id="discountRate" class="ui-input" data-ref="deduction">%
</li>
<li>
<label>优惠金额:</label>
<input type="text" id="deduction" class="ui-input" data-ref="payment">
</li>
<li>
<label>优惠后金额:</label>
<input type="text" id="discount" class="ui-input ui-input-dis" data-ref="discountRate" disabled>
</li>
</ul>
<ul class="dn">
<li>
<label id="paymentTxt">本次收款:</label>
<input type="text" id="payment" class="ui-input">&emsp;
</li>
<li id="accountWrap" class="dn">
<label>结算账户:</label>
<span class="ui-combo-wrap" id="account" style="padding:0;">
<input type="text" class="input-txt" autocomplete="off">
<i class="trigger"></i></span><a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
</li>
<li>
<label>本次欠款:</label>
<input type="text" id="arrears" class="ui-input ui-input-dis" disabled>
</li>
<li>
<label>累计欠款:</label>
<input type="text" id="totalArrears" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>审核人:</label>
<span id="checkName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox priceAuto" name="price" autocomplete="off">
<input type="text" class="textbox skuAuto" name="price" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/salesOrder.js?ver=201510141132"></script>
</body>
</html>

View File

@@ -0,0 +1,74 @@
<?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>
<style>
#matchCon { width: 220px; }
#print{margin-left:10px;}
a.ui-btn{margin-left:10px;}
#reAudit,#audit{display:none;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入单据号或客户名或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-07-21" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-07-27" class="ui-input ui-datepicker-input">
</li>
<li><a class="mrb more" id="moreCon">(高级搜索)</a><a class="ui-btn" id="search">查询</a><!--<a class="ui-btn ui-btn-refresh" id="refresh" title="刷新"><b></b></a>--></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
<a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a>
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a>
<a class="ui-btn dn" id="audit">审核</a><a class="ui-btn" id="reAudit">反审核</a></div>
</div>
<!-- <div class="mod-toolbar-top cf">
<div class="fl"><strong class="tit">仓库</strong></div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="search">新增</a><a class="ui-btn" id="export">导出</a></div>
</div>-->
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/salesOrderList.js?ver=201507241412"></script>
</body>
</html>

View File

@@ -0,0 +1,139 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $transType==150601 ? '销货订单' :'销货退货订单'?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style></style>
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:50px;"></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;"><?php echo $system['companyName']?></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:25px;"><?php echo $transType==150601 ? '销货订单' :'销货退货订单'?></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td width="220" style="font-family:'宋体'; font-size:12px;height:20px;">客户:<?php echo $contactNo.' '.$contactName?> </td>
<td width="120" style="font-family:'宋体'; font-size:12px;height:20px;">销售人员:<?php echo $salesName?></td>
<td width="120" style="font-family:'宋体'; font-size:12px;height:20px;">单据日期:<?php echo $billDate?></td>
<td width="180" style="font-family:'宋体'; font-size:12px;height:20px;">单据编号:<?php echo $billNo?></td>
<td width="50" style="font-family:'宋体'; font-size:12px;height:20px;">币别RMB</td>
</tr>
</table>
<table width="900" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">序号</td>
<td width="220" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">商品</td>
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">单位</td>
<td width="40" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">数量</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">销售单价</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">折扣率(%)</td>
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">折扣额</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">销售金额</td>
<td width="80" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">仓库</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td width="30" align="center"><?php echo $row['i']?></td>
<td width="220" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;"><?php echo $row['goods'];?></td>
<td width="30" align="center" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;"><?php echo $row['invSpec']?></td>
<td width="40" align="right"><?php echo str_money(abs($row['qty']),$system['qtyPlaces'])?></td>
<td width="60" align="right"><?php echo abs($row['price'])?></td>
<td width="60" align="right"><?php echo $row['discountRate']?></td>
<td width="50" align="right"><?php echo $row['deduction']?></td>
<td width="60" align="right"><?php echo str_money(abs($row['amount']),2)?></td>
<td width="80"><?php echo $row['locationName']?></td>
</tr>
<?php
$s = $row['i'];
}
$i++;
}
?>
<?php
//补全
if ($t==$countpage) {
for ($m=$s+1;$m<=$t*$num;$m++) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td width="30" align="center" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;"><?php echo $m?></td>
<td width="220"></td>
<td width="30"></td>
<td width="40"></td>
<td width="60"></td>
<td width="60"></td>
<td width="50"></td>
<td width="60"></td>
<td width="80"></td>
</tr>
<?php }}?>
<?php if ($t==$countpage) {?>
<tr style="height:20px">
<td colspan="3" align="right" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">合计:</td>
<td width="60" align="right"><?php echo str_money(abs($totalQty),$system['qtyPlaces'])?></td>
<td width="60" align="center"></td>
<td width="60" align="center"></td>
<td width="60" align="center"></td>
<td width="60" align="right"><?php echo str_money(abs($totalAmount),2)?></td>
<td width="80" align="center"></td>
</tr>
<tr target="id">
<td colspan="9" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:12px;height:15px;">合计 金额大写: <?php echo str_num2rmb(abs($totalAmount))?> </td>
</tr>
<?php }?>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="700" style="font-family:'宋体'; font-size:12px;height:25px;">备注: <?php echo $description?></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
<td width="0" ></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="200" style="font-family:'宋体'; font-size:12px;height:25px;">制单人:<?php echo $userName?> </td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;">发货人签字____________</td>
<td width="150" style="font-family:'宋体'; font-size:12px;height:25px;">客户签字____________</td>
<td width="150"></td>
<td width="50" ></td>
</tr>
</table>
<?php echo $t==$countpage?'':'<br><br><br>';}?>
</body>
</html>

View File

@@ -0,0 +1,72 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="10"><h3>调拨记录</h3></td></tr>
</table>
<table width="1500px" class="list" border="1">
<thead>
<tr>
<th width="80" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="60" align="center">制单人</th>
<th width="100" align="center">单据备注</th>
<th width="150" align="center">商品</th>
<th width="60" align="center">单位</th>
<th width="60" align="center">数量</th>
<th width="80" align="center">调出仓库</th>
<th width="80" align="center">调入仓库</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$n = $i = 1;
$qty = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['userName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$qty += abs($row1['qty']);
if ($i==1) {
?>
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo $row1['qty']?></td>
<td ><?php echo $row1['outLocationName']?></td>
<td ><?php echo $row1['inLocationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $row1['invNumber'].' '.$row1['invName'].' '.$row1['invSpec']?></td>
<td ><?php echo $row1['mainUnit']?></td>
<td ><?php echo $row1['qty']?></td>
<td ><?php echo $row1['outLocationName']?></td>
<td ><?php echo $row1['inLocationName']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ></td>
<td ><?php echo $qty?></td>
<td ></td>
<td ></td>
<td ></td>
</tr>
<?php $qty = 0; $n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,100 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150522" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills cf">
<div class="con-header">
<dl class="cf">
<dd>
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-10-26">
</dd>
<dd id="identifier" style="float:right; margin-right: 10px;">
<label>单据编号:</label>
<span id="number"><?php echo str_no('DB')?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul class="c999 cf">
<li>
<label>制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>审核人:</label>
<span id="checkName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label>最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
<input type="text" class="textbox inStorage" name="storageB" autocomplete="off">
<input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
<input type="text" class="textbox batchAuto" name="batch" autocomplete="off">
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
<input type="text" class="textbox skuAuto" name="price" autocomplete="off">
</div>
<div id="storageBox" class="shadow target_box dn">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/transfers.js?ver=201510141132"></script>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<?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>
<style>
.ui-jqgrid tr.jqgrow td{ height: 24px;padding: 3px 2px; }
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或客户名或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-10" class="ui-input ui-datepicker-input">
<span>-</span>
<input type="text" id="endDate" value="2015-04-16" class="ui-input ui-datepicker-input">
</li>
<li><a class="mrb more" id="moreCon">(高级搜索)</a><a class="ui-btn mrb" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="add">新增</a><a class="ui-btn mrb" id="print" target="_blank">打印</a><a class="ui-btn mrb" id="export" target="_blank">导出</a> </div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/transfersList.js?ver=20150430"></script>
</body>
</html>

View File

@@ -0,0 +1,106 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>调拨单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style></style>
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:50px;"></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;"><?php echo $system['companyName']?></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:25px;">调拨单</td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td width="150" style="font-family:'宋体'; font-size:14px;">单据日期:<?php echo $billDate?> </td>
<td width="100" style="font-family:'宋体'; font-size:14px;"></td>
<td width="100" style="font-family:'宋体'; font-size:14px;"></td>
<td width="150" style="font-family:'宋体'; font-size:14px;"></td>
<td width="250" style="font-family:'宋体'; font-size:14px;">单据编号:<?php echo $billNo?></td>
</tr>
</table>
<table width="800" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="height:20px">
<td width="30" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">序号</td>
<td width="280" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">商品</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">单位</td>
<td width="60" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">数量</td>
<td width="130" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">调出仓库</td>
<td width="130" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">调入仓库</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:12px;font-family:'宋体'; font-size:12px;">
<td align="center"><?php echo $row['i']?></td>
<td width="280" ><?php echo $row['goods'];?></td>
<td width="60" align="center"><?php echo $row['mainUnit']?></td>
<td width="60" align="right"><?php echo str_money(abs($row['qty']),$system['qtyPlaces'])?></td>
<td width="130" align="left"><?php echo $row['outLocationName']?></td>
<td width="130" align="left"><?php echo $row['inLocationName']?></td>
</tr>
<?php
}
$i++;
}
?>
<?php if ($t==$countpage) {?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td colspan="3" width="340" align="right">合计:</td>
<td width="60" align="right"><?php echo str_money(abs($totalQty),$system['qtyPlaces'])?></td>
<td width="130" align="center"></td>
<td width="130" align="center"></td>
</tr>
<?php }?>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="780" style="font-family:'宋体'; font-size:14px;height:15px;">备注: <?php echo $description?></td>
<td width="0" style="font-family:'宋体'; font-size:14px;height:25px;"></td>
<td width="0" style="font-family:'宋体'; font-size:14px;height:25px;"></td>
<td width="0" style="font-family:'宋体'; font-size:14px;height:25px;"></td>
<td width="0" style="font-family:'宋体'; font-size:14px;height:25px;"></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left">
<td align="left" width="250" style="font-family:'宋体'; font-size:14px;">制单人:<?php echo $userName?> </td>
<td width="250" style="font-family:'宋体'; font-size:14px;">发货人签字____________</td>
<td width="250" style="font-family:'宋体'; font-size:14px;">收货人签字____________</td>
<td width="100" style="font-family:'宋体'; font-size:14px;"></td>
<td width="100" style="font-family:'宋体'; font-size:14px;"></td>
</tr>
</table>
<?php }?>
</body>
</html>

View File

@@ -0,0 +1,62 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="8"><h3>其他支出单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">供应商</th>
<th width="60" align="center">结算账户</th>
<th width="60" align="center">付款金额</th>
<th width="200" align="center">支出类别</th>
<th width="60" align="center">金额</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['accountNumber'].' '.$row['accountName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $category[$row1['categoryId']]?></td>
<td ><?php echo $row1['amount']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $category[$row1['categoryId']]?></td>
<td ><?php echo $row1['amount']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ><?php echo $amount?></td>
<td ></td>
</tr>
<?php $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,64 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="8"><h3>其他收入单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">客户名称</th>
<th width="60" align="center">结算账户</th>
<th width="60" align="center">收款金额</th>
<th width="200" align="center">收入类型</th>
<th width="60" align="center">金额</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$amount = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['accountNumber'].' '.$row['accountName']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<?php
$i = 1;
foreach($postData['entries'] as $arr1=>$row1) {
$amount += abs($row1['amount']);
if ($i==1) {
?>
<td ><?php echo $category[$row1['categoryId']]?></td>
<td ><?php echo $row1['amount']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $category[$row1['categoryId']]?></td>
<td ><?php echo $row1['amount']?></td>
<td ><?php echo $row1['description']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ><?php echo $amount?></td>
<td ></td>
</tr>
<?php $amount = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,108 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
<style>
#bottomField{line-height:30px;}
#bottomField label{width: 75px;display: inline-block;}
.con-footer{padding:10px 0 0 0;}
.con-footer .pl0 {padding-left: 0;}
</style>
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills">
<div class="con-header">
<dl class="cf">
<dd class="pct30">
<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>
<dd class="pct25 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-08-25">
</dd>
<dd id="identifier" class="pct25 tc">
<label>单据编号:</label>
<span id="number"><?php echo str_no('QTZC')?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<ul id="amountArea" class="cf">
<li id="accountWrap" class="dn pl0">
<label>结算账户:</label>
<span class="ui-combo-wrap" id="account" style="padding:0;">
<input type="text" class="input-txt" autocomplete="off"><i class="trigger"></i>
</span>
<a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
</li>
<li>
<label>付款金额:</label>
<input type="text" id="amount" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label class="dn">制单人:</label>
<span id="userName"></span>
</li>
<!-- <li>
<label>审核人:</label>
<span id="checkName"></span>
</li> -->
<!-- <li>
<label class="dn">最后修改时间:</label>
<span id="modifyTime"></span>
</li> -->
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox categoryAuto" name="category" autocomplete="off">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/other-expense.js?ver=201508241556"></script>
</body>
</html>

View File

@@ -0,0 +1,65 @@
<?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>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或供应商名或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-05-04" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-05-10" class="ui-input ui-datepicker-input">
</li>
<li><a class="ui-btn" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
<a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a>
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a>
</div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/other-expense-list.js?ver=20151027"></script>
</body>
</html>

View File

@@ -0,0 +1,106 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150827" rel="stylesheet" type="text/css">
<style>
#bottomField{line-height:30px;}
#bottomField label{width: 75px;display: inline-block;}
.con-footer{padding:10px 0 0 0;}
.con-footer .pl0 {padding-left: 0;}
</style>
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills">
<div class="con-header">
<dl class="cf">
<dd class="pct30">
<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>
<dd class="pct25 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-08-25">
</dd>
<dd id="identifier" class="pct25 tc">
<label>单据编号:</label>
<span id="number"><?php echo str_no('QTSR');?></span></dd>
</dl>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
<div class="con-footer cf">
<ul id="amountArea" class="cf">
<li id="accountWrap" class="dn pl0">
<label>结算账户:</label>
<span class="ui-combo-wrap" id="account" style="padding:0;">
<input type="text" class="input-txt" autocomplete="off"><i class="trigger"></i>
</span>
<a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
</li>
<li>
<label>收款金额:</label>
<input type="text" id="amount" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label class="dn">制单人:</label>
<span id="userName"></span>
</li>
<!-- <li>
<label>审核人:</label>
<span id="checkName"></span>
</li> -->
<!-- <li>
<label class="dn">最后修改时间:</label>
<span id="modifyTime"></span>
</li> -->
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox categoryAuto" name="category" autocomplete="off">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/other-income.js?ver=201508241556"></script>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<?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>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或客户名或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-05-04" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-05-10" class="ui-input ui-datepicker-input">
</li>
<li><a class="ui-btn" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
<a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a>
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/other-income-list.js?ver=20151027"></script>
</body>
</html>

View File

@@ -0,0 +1,112 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $transType==153402 ? '其他支出单' :'其他收入单'?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style></style>
</head>
<body>
<?php for($t=1; $t<=$countpage; $t++){?>
<table width="800" align="center">
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:50px;"></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;"><?php echo $system['companyName']?></td>
</tr>
<tr height="15px">
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:25px;"><?php echo $transType==153402 ? '其他支出单' :'其他收入单'?></td>
</tr>
</table>
<table width="800" align="center">
<tr height="15" align="left" >
<td width="250" style="font-family:'宋体'; font-size:14px;height:20px;">供应商:<?php echo $contactNo.' '.$contactName?> </td>
<td width="10" ></td>
<td width="200" >单据日期:<?php echo $billDate?></td>
<td width="230" >单据编号:<?php echo $billNo?></td>
<td width="30" ></td>
</tr>
</table>
<table width="800" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
<tr style="height:20px">
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">序号</td>
<td width="250" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center"><?php echo $transType==153402 ? '支出类别' :'收入类别'?></td>
<td width="150" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">金额</td>
<td width="250" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">备注</td>
</tr>
<?php
$i = ($t-1)*$num + 1;
foreach($list as $arr=>$row) {
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
?>
<tr style="height:20px">
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;" align="center"><?php echo $row['i']?></td>
<td width="250"><?php echo $row['categoryName'];?></td>
<td width="150" align="right"><?php echo str_money($row['amount'],2)?></td>
<td width="250" align="left"><?php echo $row['description']?></td>
</tr>
<?php
$s = $row['i'];
}
$i++;
}
?>
<?php
//补全
if ($t==$countpage) {
for ($m=$s+1;$m<=$t*$num;$m++) {
?>
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;" align="center"><?php echo $m?></td>
<td width="250" ></td>
<td width="150" align="center"></td>
<td width="250" align="center"></td>
</tr>
<?php }}?>
<?php if ($t==$countpage) {?>
<tr style="height:20px">
<td colspan="2" align="right" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">合计:</td>
<td width="150" align="right" ><?php echo str_money(abs($totalAmount),2)?></td>
<td width="250" align="center"></td>
</tr>
<tr target="id">
<td colspan="4" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;">合计 金额大写: <?php echo str_num2rmb(abs($totalAmount))?> </td>
</tr>
<?php }?>
</table>
<table width="800" align="center">
<tr height="25" align="left">
<td align="left" width="250" style="font-family:'宋体'; font-size:14px;height:25px;">结算账户: <?php echo $accountName?></td>
<td width="250" style="font-family:'宋体'; font-size:14px;height:25px;"><?php echo $transType==153402 ? '付款金额' :'收款金额'?>: <?php echo str_money(abs($totalAmount),2)?></td>
<td width="250" style="font-family:'宋体'; font-size:14px;height:25px;">制单人:<?php echo $userName?></td>
<td width="100" ></td>
<td width="100" ></td>
</tr>
</table>
<?php echo $t==$countpage?'':'<br><br>';}?>
</body>
</html>

View File

@@ -0,0 +1,77 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="10"><h3>付款单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">购货单位</th>
<th width="60" align="center">付款金额</th>
<th width="100" align="center">备注</th>
<th width="200" align="center">结算账户</th>
<th width="60" align="center">付款金额</th>
<th width="80" align="center">结算方式</th>
<th width="60" align="center">结算号</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$payment = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['accounts']) ? count($postData['accounts'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['accounts'] as $arr1=>$row1) {
$payment += abs($row1['payment']);
if ($i==1) {
?>
<td ><?php echo $account[$row1['accId']]?></td>
<td ><?php echo $row1['payment']?></td>
<td ><?php echo $category[$row1['wayId']]?></td>
<td ><?php echo $row1['settlement']?></td>
<td ><?php echo $row1['remark']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $account[$row1['accId']]?></td>
<td ><?php echo $row1['payment']?></td>
<td ><?php echo $category[$row1['wayId']]?></td>
<td ><?php echo $row1['settlement']?></td>
<td ><?php echo $row1['remark']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ><?php echo $payment?></td>
<td ></td>
<td ></td>
<td ></td>
</tr>
<?php $payment = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,132 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills">
<div class="con-header">
<dl class="cf">
<dd class="pct40">
<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>
<dd class="pct30 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-10-27">
</dd>
<dd id="identifier" class="fl pct30 tr">
<label>单据编号:</label>
<span id="number"><?php echo str_no('FKD')?></span></dd>
</dl>
</div>
<div class="grid-wrap mb10" id="acGridWrap">
<table id="accountGrid">
</table>
</div>
<div id="standardVersion" class="dn">
<div class="tr" style="margin:0 -10px 10px 0; "><a class="ui-btn" id="selectSource">选择源单</a></div>
<div class="grid-wrap" id="billGridWrap">
<table id="grid">
</table>
</div>
<!-- <div class="con-footer cf">
<label id="paymentTxt">整单折扣:</label>
<input type="text" id="discount" class="ui-input">&emsp;
<span>
<label>本次预付款:</label>
<input type="text" id="payment" class="ui-input ui-input-dis" disabled>
</span>
</div> -->
</div>
<!-- <div class="con-footer cf pt">
<div class="mb10">
<div class="label-wrap">
<label>备注:</label>
</div>
<div class="ctn-wrap">
<input type="text" id="note" class="ui-input" data-ref="discount" style="width:100%; margin:0 -6px; ">
</div>
</div>
</div> -->
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label id="paymentTxt">整单折扣:</label>
<input type="text" id="discount" class="ui-input">&emsp;
</li>
<li id="accountWrap">
<label>本次预付款:</label>
<input type="text" id="payment" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label class="dn">制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>审核人:</label>
<span id="checkName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label class="dn">最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox accountAuto" name="account" autocomplete="off">
<input type="text" class="textbox paymentAuto" name="payment" autocomplete="off">
<input type="text" class="textbox billAuto" name="goods" autocomplete="off">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/payment.js?ver=201510141132"></script>
</body>
</html>

View File

@@ -0,0 +1,66 @@
<?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>
<style>
#matchCon { width: 280px; }
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入单据号或供应商或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-17" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-23" class="ui-input ui-datepicker-input">
</li>
<li><a class="ui-btn" id="search">查询</a></li>
</ul>
</div>
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a>
</div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/paymentList.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,66 @@
<?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>
<style>
#matchCon { width: 120px; }
</style>
</head>
<body>
<div class="container" style="margin:20px;">
<div class="mod-search m0 cf">
<div class="fl">
<ul class="ul-inline">
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-17" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-23" class="ui-input ui-datepicker-input">
</li>
<li>
<label>源单编号:</label>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入源单编号">
</li>
<li><a class="ui-btn" id="search">查询</a><!--<a class="ui-btn ui-btn-refresh" id="refresh" title
="刷新"><b></b></a>--></li>
</ul>
</div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/selectSource.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,68 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1500px" class="list">
<tr><td class='H' align="center" colspan="10"><h3>收款单记录</h3></td></tr>
</table>
<table class="table" width="1500" border="1">
<thead>
<tr>
<th width="100" align="center">单据日期</th>
<th width="150" align="center">单据编号</th>
<th width="120" align="center">销货单位</th>
<th width="60" align="center">收款金额</th>
<th width="100" align="center">备注</th>
<th width="200" align="center">结算账户</th>
<th width="60" align="center">收款金额</th>
<th width="80" align="center">结算方式</th>
<th width="60" align="center">结算号</th>
<th width="100" align="center">备注</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$n = 1;
$payment = 0;
foreach($list as $arr=>$row) {
$postData = unserialize($row['postData']);
$n = isset($postData['accounts']) ? count($postData['accounts'])+1 : 1;
?>
<tr target="id">
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
<?php
$i = 1;
foreach($postData['accounts'] as $arr1=>$row1) {
$payment += abs($row1['payment']);
if ($i==1) {
?>
<td ><?php echo $account[$row1['accId']]?></td>
<td ><?php echo $row1['payment']?></td>
<td ><?php echo $category[$row1['wayId']]?></td>
<td ><?php echo $row1['settlement']?></td>
<td ><?php echo $row1['remark']?></td>
</tr>
<?php } else {?>
<tr target="id">
<td ><?php echo $account[$row1['accId']]?></td>
<td ><?php echo $row1['payment']?></td>
<td ><?php echo $category[$row1['wayId']]?></td>
<td ><?php echo $row1['settlement']?></td>
<td ><?php echo $row1['remark']?></td>
</tr>
<?php }$i++;}?>
<tr target="id">
<td >合计</td>
<td ><?php echo $payment?></td>
<td ></td>
<td ></td>
<td ></td>
</tr>
<?php $payment = 0;$n = 1;}?>
</tbody>
</table>

View File

@@ -0,0 +1,137 @@
<?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 href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
<div class="bills">
<div class="con-header">
<dl class="cf">
<dd class="pct40">
<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>
<dd class="pct30 tc">
<label>单据日期:</label>
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-10-27">
</dd>
<dd id="identifier" class="fl pct30 tr">
<label>单据编号:</label>
<span id="number"><?php echo str_no('SKD');?></span></dd>
</dl>
</div>
<div class="grid-wrap mb10" id="acGridWrap">
<table id="accountGrid">
</table>
</div>
<div id="standardVersion" class="dn">
<div class="tr" style="margin:0 -10px 10px 0; "><a class="ui-btn" id="selectSource">选择源单</a></div>
<div class="grid-wrap" id="billGridWrap">
<table id="grid">
</table>
</div>
<!-- <div class="con-footer cf">
<label id="paymentTxt">整单折扣:</label>
<input type="text" id="discount" class="ui-input">&emsp;
<span>
<label>本次预收款:</label>
<input type="text" id="payment" class="ui-input ui-input-dis" disabled>
</span>
</div> -->
</div>
<!-- <div class="con-footer cf pt">
<div class="mb10">
<div class="label-wrap">
<label>备注:</label>
</div>
<div class="ctn-wrap">
<input type="text" id="note" class="ui-input" data-ref="discount" style="width:100%; margin:0 -6px; ">
</div>
</div>
</div> -->
<div class="con-footer cf">
<div class="mb10">
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
</div>
<ul id="amountArea" class="cf">
<li>
<label id="paymentTxt">整单折扣:</label>
<input type="text" id="discount" class="ui-input">&emsp;
</li>
<li id="accountWrap">
<label>本次预收款:</label>
<input type="text" id="payment" class="ui-input ui-input-dis" disabled>
</li>
</ul>
<ul class="c999 cf">
<li>
<label class="dn">制单人:</label>
<span id="userName"></span>
</li>
<li>
<label>审核人:</label>
<span id="checkName"></span>
</li>
<li>
<label>录单时间:</label>
<span id="createTime"></span>
</li>
<li>
<label class="dn">最后修改时间:</label>
<span id="modifyTime"></span>
</li>
</ul>
</div>
<div class="cf" id="bottomField">
<div class="fr" id="toolBottom"></div>
</div>
<div id="mark"></div>
</div>
<div id="initCombo" class="dn">
<input type="text" class="textbox accountAuto" name="account" autocomplete="off">
<input type="text" class="textbox paymentAuto" name="payment" autocomplete="off">
<input type="text" class="textbox billAuto" name="goods" autocomplete="off">
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/receipt.js?ver=201509301620"></script>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<?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>
<style>
#matchCon { width: 280px; }
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入单据号或客户或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-17" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-23" class="ui-input ui-datepicker-input">
</li>
<li><a class="ui-btn" id="search">查询</a></li>
</ul>
</div>
<div class="fr">
<a class="ui-btn ui-btn-sp mrb" id="add">新增</a>
<a class="ui-btn mrb" id="export" target="_blank" href="javascript:void(0);">导出</a>
</div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/receiptList.js?ver=20150430"></script>
</body>
</html>

View File

@@ -0,0 +1,68 @@
<?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>
<style>
#matchCon { width: 120px; }
</style>
</head>
<body>
<div class="container" style="margin:20px;">
<div class="mod-search m0 cf">
<div class="fl">
<ul class="ul-inline">
<li>
<label>日期:</label>
<input type="text" id="beginDate" value="2015-04-16" class="ui-input ui-datepicker-input">
<i>-</i>
<input type="text" id="endDate" value="2015-04-22" class="ui-input ui-datepicker-input">
</li>
<li>
<label>源单编号:</label>
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入源单编号">
</li>
<li><a class="ui-btn" id="search">查询</a><!--<a class="ui-btn ui-btn-refresh" id="refresh" title
="刷新"><b></b></a>--></li>
</ul>
</div>
</div>
<div class="grid-wrap">
<table id="grid">
</table>
<div id="page"></div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/selectSource.js?ver=20140430"></script>
</body>
</html>