初始版本
This commit is contained in:
72
application/views/scm/invTf/exportInvTf.php
Executable file
72
application/views/scm/invTf/exportInvTf.php
Executable 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>
|
||||
|
||||
|
||||
|
||||
100
application/views/scm/invTf/initTf.php
Executable file
100
application/views/scm/invTf/initTf.php
Executable 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>
|
||||
|
||||
|
||||
67
application/views/scm/invTf/initTfList.php
Executable file
67
application/views/scm/invTf/initTfList.php
Executable 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>
|
||||
|
||||
|
||||
106
application/views/scm/invTf/toPdf.php
Executable file
106
application/views/scm/invTf/toPdf.php
Executable 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>
|
||||
Reference in New Issue
Block a user