初始版本

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,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nERROR: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@@ -0,0 +1,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nDatabase error: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@@ -0,0 +1,21 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
An uncaught Exception was encountered
Type: <?php echo get_class($exception), "\n"; ?>
Message: <?php echo $message, "\n"; ?>
Filename: <?php echo $exception->getFile(), "\n"; ?>
Line Number: <?php echo $exception->getLine(); ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
Backtrace:
<?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
File: <?php echo $error['file'], "\n"; ?>
Line: <?php echo $error['line'], "\n"; ?>
Function: <?php echo $error['function'], "\n\n"; ?>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>

View File

@@ -0,0 +1,8 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nERROR: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@@ -0,0 +1,21 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
A PHP Error was encountered
Severity: <?php echo $severity, "\n"; ?>
Message: <?php echo $message, "\n"; ?>
Filename: <?php echo $filepath, "\n"; ?>
Line Number: <?php echo $line; ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
Backtrace:
<?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
File: <?php echo $error['file'], "\n"; ?>
Line: <?php echo $error['line'], "\n"; ?>
Function: <?php echo $error['function'], "\n\n"; ?>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@@ -0,0 +1,64 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Page Not Found</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,64 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Database Error</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>An uncaught Exception was encountered</h4>
<p>Type: <?php echo get_class($exception); ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $exception->getFile(); ?></p>
<p>Line Number: <?php echo $exception->getLine(); ?></p>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace:</p>
<?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
<p style="margin-left:10px">
File: <?php echo $error['file']; ?><br />
Line: <?php echo $error['line']; ?><br />
Function: <?php echo $error['function']; ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>

View File

@@ -0,0 +1,64 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,33 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: <?php echo $severity; ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace:</p>
<?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
<p style="margin-left:10px">
File: <?php echo $error['file'] ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

16
application/views/header.php Executable file
View File

@@ -0,0 +1,16 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=1280, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit|ie-stand|ie-comp">
<title>在线进销存</title>
<link href="<?php echo skin_url()?>/css/common.css?ver=20150522" rel="stylesheet" type="text/css">
<link href="<?php echo skin_url()?>/css/<?php echo sys_skin()?>/ui.min.css?ver=20150522" rel="stylesheet">
<script src="<?php echo skin_url()?>/js/common/libs/jquery/jquery-1.10.2.min.js?10"></script>
<script src="<?php echo skin_url()?>/js/common/libs/json3.min.js?10"></script>
<script src="<?php echo skin_url()?>/js/common/common.js?ver=20151021"></script>
<script src="<?php echo skin_url()?>/js/common/grid.js?ver=20151021"></script>
<script src="<?php echo skin_url()?>/js/common/plugins.js?ver=20151021"></script>
<script src="<?php echo skin_url()?>/js/common/plugins/jquery.dialog.js?self=true&ver=20151021"></script>

334
application/views/import.php Executable file
View File

@@ -0,0 +1,334 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "<?php echo site_url()?>";
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>
<script src="<?php echo base_url()?>statics/js/common/libs/swfupload/swfupload.js"></script>
<style>
.wrapper {padding: 15px 0 0 18px;min-width: 0;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-inner" style="width:480px; ">
<h3>批量导入客户、供应商、商品信息及初始余额</h3>
<ul class="mod-steps" id="import-steps">
<li><span class="current">1.下载模版</span>&gt;</li>
<li><span>2.导入Excel</span>&gt;</li>
<li><span>3.导入完毕</span></li>
</ul>
<div id="import-wrap" class="cf">
<div id="import-step1" class="step-item">
<div class="ctn">
<h3 class="tit">温馨提示:</h3>
<p>导入模板的格式不能修改,录入方法请参考演示模板。</p>
</div>
<p><a href="/index.php/basedata/import?action=downloadtemplate3" class="link">下载导入模版</a></p>
<p><a href="/basedata/import?action=downloadTemplate" class="link">下载演示模版</a></p>
<p><a href="#" id="resultInfo" class="link">查看导入信息</a></p>
<div class="step-btns">
<a href="#" class="ui-btn ui-btn-sp" rel="step2">下一步</a>
</div>
</div>
<div id="import-step2" class="step-item" style="display:none;">
<div class="ctn file-import-ctn">
<span class="tit">请选择要导入文件:</span>
<input type="text" name="file-path" id="file-path" class="ui-input" readonly autocomplete="false" />
<span id="import-btn-wrap"><span id="import-btn"></span></span>
</div>
<div class="step-btns">
<a href="#" class="ui-btn mrb" rel="step1">上一步</a><a href="#" class="ui-btn ui-btn-sp" id="btn-import">导入</a>
</div>
</div>
<div id="import-step3" class="step-item" style="display:none;">
<div class="ctn file-import-ctn" id="import-result"></div>
<div class="step-btns">
<a href="#" class="link" id="a_step3">上一步</a><a href="#" class="ui-btn ui-btn-sp" id="btn-complete">完成</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
(function($){
var defaultPage = Public.getDefaultPage();
var progressPop;
var uploadInstance = new SWFUpload({
upload_url: "<?php echo site_url('basedata/import')?>",
file_post_name: "resume_file",
post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"},
file_size_limit : "100 MB",
file_types : "*.*",
file_types_description : "All Files",
file_upload_limit : "0",
file_queue_limit : "1",
file_dialog_start_handler: fileDialogStart,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
button_image_url : "<?php echo base_url()?>statics/js/common/libs/swfupload/import-btn.png",
button_placeholder_id : "import-btn",
button_width: 60,
button_height: 32,
// Flash Settings
flash_url : "<?php echo base_url()?>statics/js/common/libs/swfupload/swfupload.swf",
custom_settings : {
progress_target : "fsUploadProgress",
upload_successful : false
},
// Debug settings
debug: false
});
$('#import-wrap .step-btns a[rel]').bind('click',function(e){
var step = $(this).attr('rel').substr(4,1)-1;
if(step < 2){
$('#import-wrap .step-item').eq(step).show().siblings().hide();
$('#import-steps >li >span').removeClass('current');
$('#import-steps >li >span').eq(step).addClass('current');
} else {
}
e.preventDefault();
});
function findImportResult() {
$.ajax({
url: 'basedata/import/findDataImporter',
type: 'post',
dataType: 'json',
success: function(data){
if(data.status == 200){
if(data.data.items.length == 0) {
uploadInstance.addPostParam('voucherReSeq',$('#voucherReSeq').attr('checked') ? 1 : 0);
uploadInstance.startUpload();
return;
}
if(data.data.items[0].status == 1) {
parent.Public.tips({content : '初始数据还在导入中。。。请稍后做此操作!', type : 2});
} else {
//uploadInstance.addPostParam({'voucherReSeq' : $('#voucherReSeq').attr('checked') ? 1 : 0});
uploadInstance.addPostParam('voucherReSeq',$('#voucherReSeq').attr('checked') ? 1 : 0);
uploadInstance.startUpload();
}
} else {
Public.tips({ type:1,content : data.msg});
}
},
error: function(){
Public.tips({ type:1,content : '系统繁忙,请稍后重试!'});
}
});
}
$('#resultInfo').click(function(){
var _pop = parent.$.dialog({
width: 460,
height: 300,
title: '导入信息',
content: 'url:/resultInfo.jsp',
data: {
callback: function(row){
_pop.close();
}
},
lock: true,
parent:frameElement.api
});
});
$("#import-wrap").on("click", '#resultInfo2', function() {
parent.$.dialog({
width: 460,
height: 300,
title: '导入信息',
content: 'url:/resultInfo.jsp',
data: {
callback: function(row){
}
},
lock: true
});
});
$('#btn-import').on('click',function(e){
e.preventDefault();
if(!$('#file-path').val()){
parent.Public.tips({content : '请选择要上传的文件!', type : 2});
return ;
}
findImportResult();
//uploadInstance.addPostParam({'voucherReSeq' : $('#voucherReSeq').attr('checked') ? 1 : 0});
//uploadInstance.addPostParam('voucherReSeq',$('#voucherReSeq').attr('checked') ? 1 : 0);
//uploadInstance.startUpload();
});
function fileDialogComplete(a,b){
}
function fileDialogStart() {
$('#file-path').val('');
uploadInstance.cancelUpload();
}
function fileQueued(file) {
//console.log(file);
try {
$('#file-path').val(file.name);
} catch (e) {
}
}
function fileQueueError(file, errorCode, message) {
try {
// Handle this error separately because we don't want to create a FileProgress element for it.
switch (errorCode) {
case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:
Public.tips({content : '每次只能上传一个文件!', type : 2});
return;
case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:
Public.tips({content : '文件大小不能超过10 MB', type : 2});
return;
case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:
Public.tips({content : '您选择的文件大小为0请重新选择', type : 2});
return;
case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:
Public.tips({content : '只能导入Excel文件', type : 2});
return;
default:
Public.tips({content : '导入失败,请重试!', type : 2});
return;
}
} catch (e) {
}
}
function uploadStart(){
progressPop = $.dialog.tips('正在导入凭证,请耐心等待...',1000,'loading.gif',true).show();
}
function uploadProgress(file, bytesLoaded, bytesTotal){
try {
var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);
if($('#upload-progress .progress-bar > span').length > 0){
$('#upload-progress .progress-bar > span').width(percent + '%');
}
} catch (e) {
}
}
function uploadError(file, errorCode, message) {
try {
progressPop.close();
parent.Public.tips({content : '导入失败,请重试!', type : 2});
} catch (e) {
}
}
function uploadSuccess(file, serverData) {
try {
progressPop.close();
$('#import-wrap .step-item').eq(2).show().siblings().hide();
$('#import-steps >li >span').removeClass('current');
$('#import-steps >li >span').eq(2).addClass('current');
$('#import-result').html(serverData);
var html = "<a href='#' id='resultInfo2' class='link'>查看导入记录</a>";
$('#import-result').append(html);
return;
//根据服务器返回数据进行处理
if (serverData === " ") {
this.customSettings.upload_successful = false;
} else {
this.customSettings.upload_successful = true;
var data = eval('(' + serverData + ')');
if(data.status == 200){
$('#import-result').html(data.data.msg);
var html = "<a href='/basedata/import.do?action=download&relativePath=" + data.data.relativePath + "' class='link'>下载错误数据文件</a>";
$('#import-result').append(html);
}else{
//Public.tips({type:1, content : data.msg});
}
//$('#import-result').html(serverData);
//更新期间数据
parent.getPeriod();
}
} catch (e) {
}
}
$('#a_step3').bind('click',function(e){
$('#import-wrap .step-item').eq(1).show().siblings().hide();
$('#import-steps2 >li >span').removeClass('current');
$('#import-steps2 >li >span').eq(1).addClass('current');
e.preventDefault();
});
$('#btn-complete').on('click',function(e){
frameElement.api.close();
});
function uploadComplete(){
$('#file-path').val('');
//导入成功之后要更新商品缓存和对应的sku等缓存
defaultPage.getGoods();
defaultPage.getStorage();
defaultPage.getCustomer();
defaultPage.getSupplier();
// defaultPage.getAddr();
defaultPage.getUnit();
defaultPage.getUnitGroup();
// defaultPage.getAccounts();
defaultPage.getAssistingPropType();
defaultPage.getAssistingProp();
defaultPage.getAssistingPropGroup();
// defaultPage.getStaff();
// defaultPage.getBatch();
}
})(jQuery);
</script>
</body>
</html>

11
application/views/index.html Executable file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

594
application/views/index.php Executable file
View File

@@ -0,0 +1,594 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "<?php echo site_url()?>";
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/base.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/default.css?ver=20150522" rel="stylesheet" type="text/css" id="defaultFile">
<script src="<?php echo skin_url()?>/js/common/tabs.js?ver=20150522"></script>
<!-- author209887082 -->
<script>
var CONFIG = {
DEFAULT_PAGE: true,
SERVICE_URL: '<?php echo base_url()?>'
};
//系统参数控制
var SYSTEM = {
version: 1,
skin: "<?php echo sys_skin()?>",
language:"",
site:"",
curDate: "1033737952010", //系统当前日期
DBID: "88886683", //账套ID
serviceType: "12", //账套类型13表示收费服务12表示免费服务
realName: "<?php echo $name;?>", //真实姓名
userName: "<?php echo $username;?>", //用户名
companyName: "<?php echo $system['companyName']?>", //公司名称
companyAddr: "<?php echo $system['companyAddr']?>", //公司地址
phone: "<?php echo $system['phone']?>", //公司电话
fax: "<?php echo $system['fax']?>", //公司传真
postcode: "<?php echo $system['postcode']?>", //公司邮编
startDate: "", //启用日期
currency: "RMB", //本位币
qtyPlaces: "<?php echo $system['qtyPlaces']?>", //数量小数位
pricePlaces: "<?php echo $system['pricePlaces']?>", //单价小数位
amountPlaces: "<?php echo $system['amountPlaces']?>", //金额小数位
valMethods: "<?php echo $system['valMethods']?>", //存货计价方法
invEntryCount: "",//试用版单据分录数
rights: <?php echo $rights?>, //权限列表
billRequiredCheck: 1, //是否启用单据审核功能 1是、0
requiredCheckStore: <?php echo $system['requiredCheckStore']?>, //是否检查负库存 1是、0
hasOnlineStore: 0, //是否启用网店
enableStorage: 0, //是否启用仓储
genvChBill: 0, //生成凭证后是否允许修改单据
requiredMoney: 1, //是否启用资金功能 1是、0
taxRequiredCheck: 0,
taxRequiredInput: 17,
isAdmin:<?php echo $roleid==0 ? 'true' : 'false'?>, //是否管理员
siExpired:false,//是否过期
siType:2, //服务版本1表示基础版2表示标准版
siVersion:1, //1表示试用、2表示免费百度版、3表示收费4表示体验版
Mobile:"",//当前用户手机号码
isMobile:true,//是否验证手机
isshortUser:false,//是否联邦用户
shortName:"",//shortName
isOpen:false,//是否弹出手机验证
enableAssistingProp:0, //是否开启辅助属性功能 1是、0
ISSERNUM: 0, //是否启用序列号 1是、0与enableAssistingProp对立只能启用其一
ISWARRANTY: 0 //是否启用保质期 1是、0
};
//区分服务支持
SYSTEM.servicePro = SYSTEM.siType === 2 ? 'forbscm3' : 'forscm3';
var cacheList = {}; //缓存列表查询
//全局基础数据
(function(){
/*
* 判断IE6提示使用高级版本
*/
if(Public.isIE6) {
var Oldbrowser = {
init: function(){
this.addDom();
},
addDom: function() {
var html = $('<div id="browser">您使用的浏览器版本过低,影响网页性能,建议您换用<a href="http://www.google.cn/chrome/intl/zh-CN/landing_chrome.html" target="_blank">谷歌</a>、<a href="http://download.microsoft.com/download/4/C/A/4CA9248C-C09D-43D3-B627-76B0F6EBCD5E/IE9-Windows7-x86-chs.exe" target="_blank">IE9</a>、或<a href=http://firefox.com.cn/" target="_blank">火狐浏览器</a>,以便更好的使用!<a id="bClose" title="关闭">x</a></div>').insertBefore('#container').slideDown(500);
this._colse();
},
_colse: function() {
$('#bClose').click(function(){
$('#browser').remove();
});
}
};
Oldbrowser.init();
};
getPageConfig();
getGoods();
getStorage();
getCustomer();
getSupplier();
getAddr();
getUnit();
getUnitGroup();
getAccounts();
getAssistingPropType();
getAssistingProp();
getAssistingPropGroup();
getStaff();
getBatch();
})();
//缓存用户配置
function getPageConfig(){
//return;
Public.ajaxGet('<?php echo site_url()?>/basedata/userSetting?action=list', {}, function(data){
if(data.status === 200) {
SYSTEM.pageConfigInfo = {};
for (var i = 0; i < data.data.rows.length; i++) {
var conf = data.data.rows[i];
SYSTEM.pageConfigInfo[''+conf.key] = conf['value'] || {};
for(var gridId in conf.grids){
var g = conf.grids[gridId];
if(typeof g != 'function' && g.isReg){
var colModel = g.colModel;
var tmpArr = [];
for (var i = 0; i < colModel.length; i++) {
var col = colModel[i];
tmpArr.push({
name: col['name']//列名,唯一标识
,label: col['label']//列名
,hidden: col['hidden']//显示与隐藏
,width: col['width']//宽度
})
};
g.colModel = tmpArr;
}
}
};
} else if (data.status === 250){
SYSTEM.pageConfigInfo = {};
} else {
Public.tips({type: 1, content : data.msg});
}
});
};
//缓存商品信息
function getGoods() {
if(SYSTEM.isAdmin || SYSTEM.rights.INVENTORY_QUERY) {
//&isDelete=2 获取全部,很奇葩的定义。。。
Public.ajaxGet('<?php echo site_url()?>/basedata/inventory?action=list&isDelete=2', { rows: 5000 }, function(data){
if(data.status === 200) {
SYSTEM.goodsInfo = data.data.rows;
} else if (data.status === 250){
SYSTEM.goodsInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.goodsInfo = [];
}
};
//缓存仓库信息
function getStorage() {
if(SYSTEM.isAdmin || SYSTEM.rights.INVLOCTION_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/invlocation?action=list&isDelete=2', {}, function(data){
if(data.status === 200) {
SYSTEM.storageInfo = data.data.rows;
} else if (data.status === 250){
SYSTEM.storageInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.storageInfo = [];
}
};
//缓存客户信息
function getCustomer() {
if(SYSTEM.isAdmin || SYSTEM.rights.BU_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/contact?action=list&simple=1&isDelete=2', { rows: 5000 }, function(data){
if(data.status === 200) {
SYSTEM.customerInfo = data.data.rows;
} else if (data.status === 250){
SYSTEM.customerInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.customerInfo = [];
}
};
//缓存供应商信息
function getSupplier() {
if(SYSTEM.isAdmin || SYSTEM.rights.PUR_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/contact?action=list&simple=1&type=10&isDelete=2', { rows: 5000 }, function(data){
if(data.status === 200) {
SYSTEM.supplierInfo = data.data.rows;
} else if (data.status === 250){
SYSTEM.supplierInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.supplierInfo = [];
}
};
//缓存地址信息
function getAddr() {
if(SYSTEM.isAdmin || SYSTEM.rights.DELIVERYADDR_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/deliveryAddr?action=list&isDelete=2', { rows: 5000 }, function(data){
if(data.status === 200) {
SYSTEM.addrInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.addrInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.addrInfo = [];
}
};
//缓存职员
function getStaff() {
if(true) {
Public.ajaxGet('<?php echo site_url()?>/basedata/employee?action=list&isDelete=2', {}, function(data){
if(data.status === 200) {
SYSTEM.salesInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.salesInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.salesInfo = [];
}
};
//缓存账户信息
function getAccounts() {
if(SYSTEM.isAdmin || SYSTEM.rights.SettAcct_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/settAcct?action=list&isDelete=2', {}, function(data){
if(data.status === 200) {
SYSTEM.accountInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.accountInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.accountInfo = [];
}
};
//缓存结算方式
function getPayments() {
if(true) {
Public.ajaxGet('<?php echo site_url()?>/basedata/assist?action=list&typeNumber=PayMethod&isDelete=2', {}, function(data){
if(data.status === 200) {
SYSTEM.paymentInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.paymentInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.paymentInfo = [];
}
};
//缓存计量单位
function getUnit(){
if(SYSTEM.isAdmin || SYSTEM.rights.UNIT_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/unit?action=list&isDelete=2', {}, function(data){
if(data.status === 200) {
SYSTEM.unitInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.unitInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.unitInfo = [];
}
}
//缓存计量单位组
function getUnitGroup(){
if(SYSTEM.isAdmin || SYSTEM.rights.UNIT_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/unitType?action=list', {}, function(data){
if(data.status === 200) {
SYSTEM.unitGroupInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.unitGroupInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.unitGroupInfo = [];
}
}
//缓存计量单位
function getAssistingProp(){
if(SYSTEM.isAdmin || SYSTEM.rights.UNIT_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/unitType?action=list', {}, function(data){
if(data.status === 200) {
SYSTEM.unitGroupInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.unitGroupInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.unitGroupInfo = [];
}
}
//缓存辅助属性分类
function getAssistingPropType(){
if(SYSTEM.isAdmin || SYSTEM.rights.FZSX_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/assistType?action=list', {}, function(data){
if(data.status === 200) {
SYSTEM.assistPropTypeInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.assistPropTypeInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.assistPropTypeInfo = [];
}
}
//缓存辅助属性
function getAssistingProp(){
if(SYSTEM.isAdmin || SYSTEM.rights.FZSX_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/assist?action=list&isDelete=2', {}, function(data){
if(data.status === 200) {
SYSTEM.assistPropInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.assistPropInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.assistPropInfo = [];
}
}
//缓存辅助属性组合
function getAssistingPropGroup(){
if(SYSTEM.isAdmin || SYSTEM.rights.FZSX_QUERY) {
Public.ajaxGet('<?php echo site_url()?>/basedata/assistSku?action=list', {}, function(data){
if(data.status === 200) {
SYSTEM.assistPropGroupInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.assistPropGroupInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.assistPropGroupInfo = [];
}
}
//缓存辅助属性组合
function getBatch(){
return;
if(SYSTEM.isAdmin || SYSTEM.ISWARRANTY) {
Public.ajaxGet('/warranty.do?action=getBatchNoList', {}, function(data){
if(data.status === 200) {
SYSTEM.batchInfo = data.data.items;
} else if (data.status === 250){
SYSTEM.batchInfo = [];
} else {
Public.tips({type: 1, content : data.msg});
}
});
} else {
SYSTEM.batchInfo = [];
}
}
//左上侧版本标识控制
function markupVension(){
var imgSrcList = {
base:'<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/img/icon_v_b.png', //基础版正式版
baseExp:'<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/img/icon_v_b_e.png', //基础版体验版
baseTrial:'<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/img/icon_v_b_t.png', //基础版试用版
standard:'<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/img/icon_v_s.png', //标准版正式版
standardExp:'<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/img/icon_v_s_e.png', //标准版体验版
standardTrial :'<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/img/icon_v_s_t.png' //标准版试用版
};
var imgModel = $("<img id='icon-vension' src='' alt=''/>");
if(SYSTEM.siType === 1){
switch(SYSTEM.siVersion){
case 1: imgModel.attr('src',imgSrcList.baseTrial).attr('alt','基础版试用版');
break;
case 2: imgModel.attr('src',imgSrcList.baseExp).attr('alt','免费版(百度版)');
break;
case 3: imgModel.attr('src',imgSrcList.base).attr('alt','基础版');//标准版
break;
case 4: imgModel.attr('src',imgSrcList.baseExp).attr('alt','基础版体验版');//标准版
break;
};
} else {
switch(SYSTEM.siVersion){
case 1: imgModel.attr('src',imgSrcList.standardTrial).attr('alt','标准版试用版');
break;
case 3: imgModel.attr('src',imgSrcList.standard).attr('alt','标准版');//标准版
break;
case 4: imgModel.attr('src',imgSrcList.standardExp).attr('alt','标准版体验版');//标准版
break;
};
};
$('#col-side').prepend(imgModel);
};
</script>
<!--<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?0613c265aa34b0ca0511eba4b45d2f5e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>-->
</head>
<body>
<div id="container" class="cf">
<div id="col-side">
<ul id="nav" class="cf">
<li class="item item-vip"> <a href="javascript:void(0);" class="vip main-nav">高级<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap group-nav group-nav-t0 vip-nav cf">
<div class="nav-item nav-onlineStore">
<h3>网店</h3>
<ul class="sub-nav" id="vip-onlineStore">
</ul>
</div>
<div class="nav-item nav-JDstore last">
<h3>京东仓储</h3>
<ul class="sub-nav" id="vip-JDStorage">
</ul>
</div>
</div>
</li>
<li class="item item-purchase"> <a href="javascript:void(0);" class="purchase main-nav">购货<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap single-nav">
<ul class="sub-nav" id="purchase">
</ul>
</div>
</li>
<li class="item item-sales"> <a href="javascript:void(0);" class="sales main-nav">销货<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap single-nav">
<ul class="sub-nav" id="sales">
</ul>
</div>
</li>
<li class="item item-storage"> <a href="javascript:void(0);" class="storage main-nav">仓库<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap single-nav">
<ul class="sub-nav" id="storage">
</ul>
</div>
</li>
<li class="item item-money"> <a href="javascript:void(0);" class="money main-nav">资金<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap single-nav">
<ul class="sub-nav" id="money">
</ul>
</div>
</li>
<li class="item item-report"> <a href="javascript:void(0);" class="report main-nav">报表<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap group-nav group-nav-b0 report-nav cf">
<div class="nav-item nav-pur">
<h3>采购报表</h3>
<ul class="sub-nav" id="report-purchase">
</ul>
</div>
<div class="nav-item nav-sales">
<h3>销售报表</h3>
<ul class="sub-nav" id="report-sales">
</ul>
</div>
<div class="nav-item nav-fund">
<h3>仓存报表</h3>
<ul class="sub-nav" id="report-storage">
</ul>
</div>
<div class="nav-item nav-fund last">
<h3>资金报表</h3>
<ul class="sub-nav" id="report-money">
</ul>
</div>
</div>
</li>
<li class="item item-setting"> <a href="javascript:void(0);" class="setting main-nav">设置<span class="arrow">&gt;</span></a>
<div class="sub-nav-wrap cf group-nav group-nav-b0 setting-nav">
<div class="nav-item">
<h3>基础资料</h3>
<ul class="sub-nav" id="setting-base">
</ul>
</div>
<div class="nav-item">
<h3>辅助资料</h3>
<ul class="sub-nav" id="setting-auxiliary">
</ul>
</div>
<div class="nav-item cf last">
<h3>高级设置</h3>
<ul class="sub-nav" id="setting-advancedSetting">
</ul>
<ul class="sub-nav" id="setting-advancedSetting-right">
</ul>
</div>
</div>
</li>
</ul>
<!--<div id="navScroll" class="cf"><span id="scollUp"><i>dd</i></span><span id="scollDown"><i>aa</i></span></div>-->
<!--<a href="#" class="side_fold">收起</a>-->
</div>
<div id="col-main">
<div id="main-hd" class="cf">
<div class="tit"> <a class="company" id="companyName" href="javascript:;" title=""></a> <span class="period" id="period"></span> </div>
<ul class="user-menu">
<!--<li class="qq"><a href="" target="_blank" id="mobile" title="手机版">手机版</a></li>
<li class="space">|</li>-->
<li class="qq"><a href="" onClick="return false;" id="wpa">QQ咨询86514465</a></li>
<li class="space">|</li>
<li class="telphone">电话400-878-0621</li>
<li class="space">|</li>
<li><a href="https://item.taobao.com/item.htm?id=561248183510" target="_blank" class="buy-now">购买</a></li>
<li class="space">|</li>
<li id="sysSkin">换肤</li>
<li class="space">|</li>
<li><a class="service-tab" data-tab="3">服务支持</a></li>
<li class="space">|</li>
<!--
<li><a href="javascript:void(0);" onClick="window.location.href='';return false;">返回助手</a></li>-->
<!--<li class="space">|</li>-->
<!--
<li id="yswb-tab"><a href="" target="_blank">社区</a></li>
<li class="space">|</li>
-->
<!-- <li><a href="" target="_blank">帮助</a></li>
<li class="space">|</li>-->
<li><a href="<?php echo site_url('login/out')?>">退出</a></li>
</ul>
</div>
<div id="main-bd">
<div class="page-tab" id="page-tab">
<!--<ul class="tab_hd">
<li><a href="#">首页</a></li>
<li><a href="#">会计科目</a></li>
</ul>
<div class="tab_bd">
内容
</div>-->
</div>
</div>
</div>
</div>
<div id="selectSkin" class="shadow dn">
<ul class="cf">
<li><a id="skin-default"><span></span><small>经典</small></a></li>
<li><a id="skin-blue"><span></span><small>丰收</small></a></li>
<li><a id="skin-green"><span></span><small>小清新</small></a></li>
</ul>
</div>
<script src="<?php echo base_url()?>statics/js/dist/default.js?ver=20170711"></script>
</body>
</html>

54
application/views/inventory.php Executable file
View File

@@ -0,0 +1,54 @@
<?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: 240px; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div class="container" style="margin:20px 20px 0;">
<div class="mod-search m0 cf" style="padding-right:0;">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input">
</li>
<li><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</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/goodsInventory.js?ver=20140430"></script>
</body>
</html>

136
application/views/login.php Executable file
View File

@@ -0,0 +1,136 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<title>进销存</title>
<meta charset="utf-8">
<meta name="globalsign-domain-verification" content="wnLJy1jTEsQbKd3ZepUI9lK4R1lnQif9O4mKSlu1rX" />
<meta name="viewport" content='width=device-width,initial-scale=0.4; maximum-scale=3.0;minimum-scale:0.5;user-scalable=yes;' />
<link href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Css/common.css?2" rel="stylesheet" />
<link href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Css/global.css?2" rel="stylesheet" />
<link rel="shortcut icon" href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Images/bitbug_favicon.ico" type="image/x-icon"/>
<link rel="apple-touch-icon" href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Images/WebIcon/apple-touch-icon-57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Images/WebIcon/apple-touch-icon-72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Images/WebIcon/apple-touch-icon-114.png" />
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Images/WebIcon/apple-touch-icon-144.png" />
<script src="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Scripts/minijs/jquery-1.7.1.js"></script>
<script src="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Scripts/minijs/common.js"></script>
<script src="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Scripts/minijs/minicheck.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body id="body">
<div class="connext">
<form action="" onSubmit="return Login()">
<div class="LoginBox">
<div class="LoginLog"></div>
<div class="Loginc">
<div class="loginInputc">
<input type="text" class="logininput" value="<?php echo get_cookie('username')?>" id="username" placeholder="输入域账号" />
</div>
<div class="loginInputc">
<input type="password" class="logininput" id="password" value="<?php echo get_cookie('userpwd')?>" placeholder="输入域密码" />
</div>
</div>
<div style="color:red; font-size:20px; margin-top:12px; line-height:20px; display:none;" id="loginerror"></div>
<div class="checkMMBox">
<span class="checkbox<?php echo get_cookie('ispwd')==1?'true':'false'?>" id="Checked" onClick="ChechBoxAction(this)" val="<?php echo get_cookie('ispwd')?>">记住账号</span>
</div>
<div class="LoginBtn"><input type="button" class="loginBtn" id="btnLogin" onClick="Login()" /></div>
</div>
</form>
</div>
<!--需要loading 的页面就在页面最下方加-->
<div class="loading">
<img src="<?php echo base_url()?>statics/login/<?php echo sys_skin()?>/Images/loading.gif" style="position:absolute;top:50%;left:50%;margin:-82px 0 0 -135px;" alt="请稍后...">
</div>
<script type="text/javascript">
//加载公用的js最后面
$(window).load(function(){
$('.loading').hide();
});
function Login() {
var cookieEnabled = (navigator.cookieEnabled) ? true : false;
if (!cookieEnabled) {
alert("该浏览器Cookie设置不正确无法正常登录");
return false;
}
var username = $.trim($("#username").val());
var password = $.trim($("#password").val());
var isRemmenbPassWord = $("#Checked").attr("val"); // 1为记住密码 0 未记住密码
if (checkNullOrEmpty(username)) {
$("#loginerror").text("请输入账号").show();
$("#username").focus();
return false;
}
if (checkNullOrEmpty(password)) {
$("#loginerror").text("请输入密码").show();
$("#password").focus();
return false;
}
$('.loading').show();
$.ajax({
type: "POST",
url: "<?php echo site_url('login');?>",
data: {
username: username,
userpwd: password,
token: "<?php echo token()?>",
ispwd:isRemmenbPassWord
},
//dataType: "json",
success: function (data) {
//if (!data) {
// $("#loginerror").text("有未知错误发生").show();
// $('.loading').hide();
// return false;
// }
// if (!data.Success) {
// $("#loginerror").text(data.ResultMessage).show();
// $("#username").val('');
// $("#password").val('');
// $("#username").focus();
// $('.loading').hide();
// return false;
// }
if (data==1) {
$('.loading').hide();
location.href = "<?php echo site_url('home/index')?>";
} else {
$("#loginerror").text(data).show();
$('.loading').hide();
setTimeout("location.href='<?php echo site_url('login')?>'",1500);
}
//$('.loading').hide();
//location.href = "<?php echo site_url('home/index')?>";
return false;
},
timeout: 60000,
error: function (xhr, status) {
if (status == "timeout") {
$("#loginerror").text("您的网络好像很糟糕,请刷新页面重试").show();
$('.loading').hide();
return false;
}
else {
$("#loginerror").text("服务器内部错误,请重试").show();
$('.loading').hide();
return false;
}
}
});
return false;
}
$(function () {
document.onkeydown = function(e) {
var ev = document.all ? window.event : e;
if (ev.keyCode == 13) {
$("#btnLogin").trigger("click");
}
};
});
</script>
</body>
</html>

291
application/views/main.php Executable file
View File

@@ -0,0 +1,291 @@
<?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){
}
</script>
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/index.css?2" rel="stylesheet" type="text/css" id="indexFile">
<script src="<?php echo base_url()?>statics/js/dist/template.js?2"></script>
</head>
<body>
<div id="hd" class="cf">
<div class="fl welcome cf">
<strong><span id="greetings"></span><span id="username"></span></strong>
<a href="javascrip:void(0);" id="manageAcct">账号管理</a>
<!--<a href="" target="_blank" id="newGuide" title="新手入门">新手入门</a>-->
</div>
<div class="fr storages-search"><label><a class="b" id="invWarning">库存预警</a></label><label for="">库存查询</label><span class="ui-search"><input type="text" id="goodsAuto" class="ui-input" /></span><span id="stockSearch"></span></div>
</div>
<script>
var greetings = "", cur_time = new Date().getHours();
if(cur_time >= 0 && cur_time <= 4 ) {
greetings = "已经夜深了,请注意休息"
} else if (cur_time > 4 && cur_time <= 7 ) {
greetings = "早上好";
} else if (cur_time > 7 && cur_time < 12 ) {
greetings = "上午好";
} else if (cur_time >= 12 && cur_time <= 18 ) {
greetings = "下午好";
} else {
greetings = "晚上好";
};
$("#greetings").text(greetings);
$("#username").text(parent.SYSTEM.realName);
</script>
<div id="bd" class="index-body cf">
<div class="col-main">
<div class="main-wrap cf">
<div class="m-top cf" id="profileDom">
<!--
<div class="fr" id="interval">
<label class="radio"><input type="radio" name="interval" value="month" checked="checked">本月</label>
<label class="radio"><input type="radio" name="interval" value="year">本年</label>
<label class="radio"><input type="radio" name="interval" value="today">今日</label>
<label class="radio"><input type="radio" name="interval" value="yesterday">昨日</label>
</div>
-->
<table width="100%" border="0" cellspacing="0" cellpadding="20">
<tr>
<td><a class="ta t1" tabid="report-initialBalance" data-right="InvBalanceReport_QUERY" tabTxt="商品库存余额" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/goods_balance')?>">商品库存余额</a></td>
<td><a class="ta t2" tabid="report-cashBankJournal" data-right="SettAcctReport_QUERY" tabTxt="现金银行报表" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/bankBalance_detail?action=detail')?>">现金银行报表</a></td>
<td><a class="ta t3" tabid="report-contactDebt" data-right="ContactDebtReport_QUERY" tabTxt="往来单位欠款表" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/contact_debt_new?action=detail')?>">往来单位欠款表</a></td>
<td><a class="ta t4" tabid="report-salesSummary" data-right="SAREPORTINV_QUERY" tabTxt="销售汇总表(按商品)" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/sales_summary')?>">销售汇总表</a></td>
<td><a class="ta t5" tabid="report-puSummary" data-right="PUREPORTINV_QUERY" tabTxt="采购汇总表(按商品)" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/puDetail_inv')?>">采购汇总表</a></td>
</tr>
</table>
</div>
<ul class="quick-links">
<li class="purchase-purchase">
<a tabid="purchase-purchase" data-right="PU_ADD" tabTxt="购货单" parentOpen="true" rel="pageTab" href="<?php echo site_url('scm/invPu?action=initPur')?>"><span></span>采购入库</a>
</li>
<li class="sales-sales">
<a tabid="sales-sales" data-right="SA_ADD" tabTxt="销货单" parentOpen="true" rel="pageTab" href="<?php echo site_url('scm/invSa?action=initSale')?>"><span></span>销货出库</a>
</li>
<li class="storage-transfers">
<a tabid="storage-transfers" data-right="TF_ADD" tabTxt="调拨单" parentOpen="true" rel="pageTab" href="<?php echo site_url('scm/invTf?action=initTf')?>"><span></span>仓库调拨</a>
</li>
<li class="storage-inventory">
<a tabid="storage-inventory" data-right="PD_GENPD" tabTxt="盘点" parentOpen="true" rel="pageTab" href="<?php echo site_url('storage/inventory')?>"><span></span>库存盘点</a>
</li>
<li class="storage-otherWarehouse">
<a tabid="storage-otherWarehouse" data-right="IO_ADD" tabTxt="其他入库" parentOpen="true" rel="pageTab" href="<?php echo site_url('scm/invOi?action=initOi&type=in')?>"><span></span>其他入库</a>
</li>
<li class="storage-otherOutbound">
<a tabid="storage-otherOutbound" data-right="OO_ADD" tabTxt="其他出库" parentOpen="true" rel="pageTab" href="<?php echo site_url('scm/invOi?action=initOi&type=out')?>"><span></span>其他出库</a>
</li>
<li class="added-service">
<!--<a tabid="setting-addedServiceList" tabTxt="增值服务" parentOpen="true" rel="pageTab" href="<?php echo site_url('settings/addedServiceList')?>"><span></span>增值服务</a>-->
<a href="#" id="feedback"><span></span>增值服务</a>
</li>
<li class="feedback">
<a href="#" id="feedback"><span></span>意见反馈</a>
</li>
</ul>
</div>
</div>
<div class="col-extra">
<div class="extra-wrap">
<h2>快速查看</h2>
<div class="list">
<ul>
<li><!--<span class="bulk-import">导入</span>--><a tabid="setting-goodsList" data-right="INVENTORY_QUERY" tabTxt="商品管理" parentOpen="true" rel="pageTab" href="<?=site_url('settings/goods_list')?>">商品管理</a></li>
<li><!--<span class="bulk-import">导入</span>--><a tabid="setting-customerList" data-right="BU_QUERY" tabTxt="客户管理" parentOpen="true" rel="pageTab" href="<?=site_url('settings/customer_list')?>">客户管理</a></li>
<li><!--<span class="bulk-import">导入</span>--><a tabid="setting-vendorList" data-right="PUR_QUERY" tabTxt="供应商管理" parentOpen="true" rel="pageTab" href="<?=site_url('settings/vendor_list')?>">供应商管理</a></li>
<li><a tabid="sales-salesList" data-right="SA_QUERY" tabTxt="销货记录" parentOpen="true" rel="pageTab" href="<?=site_url('scm/invSa?action=initSaleList')?>">销售记录</a></li>
<li><a tabid="purchase-salesList" data-right="PU_QUERY" tabTxt="采购记录" parentOpen="true" rel="pageTab" href="<?=site_url('scm/invPu?action=initPurList')?>">采购记录</a></li>
<li><a href="<?=site_url('scm/receipt?action=initReceipt')?>" rel="pageTab" tabid="money-receiptList" tabTxt="收款记录" data-right="RECEIPT_QUERY" parentOpen="true">收款记录</a></li>
<li><a href="<?=site_url('scm/payment?action=initPay')?>" rel="pageTab" tabid="money-paymentList" tabTxt="付款记录" data-right="PAYMENT_QUERY" parentOpen="true">付款记录</a></li>
<li><a href="<?=site_url('report/sales_detail')?>" rel="pageTab" tabid="report-salesDetail" tabTxt="销售明细表" data-right="SAREPORTDETAIL_QUERY" parentOpen="true">销售明细表</a></li>
<li><a href="<?=site_url('report/pu_detail_new')?>" rel="pageTab" tabid="report-puDetail" tabTxt="采购明细表" data-right="PUREOORTDETAIL_QUERY" parentOpen="true">采购明细表</a></li>
<li style="border-bottom:none; line-height: 42px; "><a tabid="storage-transfersList" data-right="TF_QUERY" tabTxt="调拨记录" parentOpen="true" rel="pageTab" href="<?=site_url('scm/invTf?action=initTfList')?>">调拨记录</a></li>
<!--
<li><a tabid="storage-otherWarehouseList" data-right="IO_QUERY" tabTxt="其他入库记录" parentOpen="true" rel="pageTab" href="/scm/invOi.do?action=initOiList&type=in">其他入库记录</a></li>
<li><a tabid="storage-otherOutboundList" data-right="OO_QUERY" tabTxt="其他出库记录" parentOpen="true" rel="pageTab" href="/scm/invOi.do?action=initOiList&type=out">其他出库记录</a></li>
<li><a tabid="report-initialBalance" data-right="InvBalanceReport_QUERY" tabTxt="商品库存余额" parentOpen="true" rel="pageTab" href="/report/invBalance.do?action=detail">商品库存余额</a></li>
<li><a tabid="report-contactDebt" data-right="ContactDebtReport_QUERY" tabTxt="往来单位欠款表" parentOpen="true" rel="pageTab" href="/report/contactDebt.do?action=detail">往来单位欠款</a></li>
-->
</ul>
</div>
</div>
</div>
</div>
<script id="profile" type="text/html">
<table width="100%" border="0" cellspacing="0" cellpadding="20">
<tr>
<td><a class="tad t1" tabid="report-initialBalance" data-right="InvBalanceReport_QUERY" tabTxt="商品库存余额" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/goods_balance')?>?search=true"><span>库存总量:<b><#= items[0].total1 #></b></span><span>库存成本:<b><#= items[0].total2 #></b></span></a></td>
<td><a class="tad t2" tabid="report-cashBankJournal" data-right="SettAcctReport_QUERY" tabTxt="现金银行报表" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/cash_bank_journal_new')?>"><span>现金:<b><#= items[1].total1 #></b></span><span>银行存款:<b><#= items[1].total2 #></b></span></a></td>
<td><a class="tad t3" tabid="report-contactDebt" data-right="ContactDebtReport_QUERY" tabTxt="往来单位欠款表" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/contact_debt_new')?>"><span>客户欠款:<b><#= items[2].total1 #></b></span><span>供应商欠款:<b><#= items[2].total2 #></b></span></a></td>
<td><a class="tad t4" tabid="report-salesSummary" data-right="SAREPORTINV_QUERY" tabTxt="销售汇总表(按商品)" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/sales_summary')?>"><span>销售收入(本月):<b><#= items[3].total1 #></b></span><span>商品毛利(本月):<b><#= items[3].total2 #></b></span></a></td>
<td><a class="tad t5" tabid="report-puSummary" data-right="PUREPORTINV_QUERY" tabTxt="采购汇总表(按商品)" parentOpen="true" rel="pageTab" href="<?php echo site_url('report/pu_summary_new')?>"><span>采购金额(本月):<b><#= items[4].total1 #></b></span><span>商品种类(本月):<b><#= items[4].total2 #></b></span></a></td>
</tr>
</table>
<i></i>
</script>
<script>
parent.dataReflush = function(){
if(parent.SYSTEM.isAdmin || parent.SYSTEM.rights.INDEXREPORT_QUERY) {
template.openTag = '<#';
template.closeTag = '#>';
Public.ajaxGet('../report/index?action=getInvData', {finishDate: parent.SYSTEM.endDate, beginDate: parent.SYSTEM.beginDate, endDate: parent.SYSTEM.endDate }, function(data){
if(data.status === 200) {
var html = template.render('profile', data.data);
document.getElementById('profileDom').innerHTML = html;
reportParam();
} else {
parent.Public.tips({type: 1, content : data.msg});
}
});
};
};
parent.dataReflush();
$('#profileDom').on('click','i',function(){
parent.dataReflush();
});
</script>
<script>
Public.pageTab();
reportParam();
function reportParam(){
$("[tabid^='report']").each(function(){
var dateParams = "beginDate="+parent.SYSTEM.beginDate+"&endDate="+parent.SYSTEM.endDate;
var href = this.href;
href += (this.href.lastIndexOf("?")===-1) ? "?" : "&";
if($(this).html() === '商品库存余额表'){
this.href = href + "beginDate="+parent.SYSTEM.startDate+"&endDate="+parent.SYSTEM.endDate;
}
else{
this.href = href + dateParams;
}
});
}
var goodsCombo = Business.goodsCombo($('#goodsAuto'), {
extraListHtml: ''
});
$('#goodsAuto').click(function(){
var _self = this;
setTimeout(function(){
_self.select();
}, 50);
});
$('#invWarning').click(function(){
if (!Business.verifyRight('INVENTORY_WARNING')) {
return ;
};
$.dialog({
width: 800,
height: 410,
title: '商品库存预警',
//content: 'url:/inventory-warning.jsp',
content: 'url:../settings/inventory_warning',
cancel: true,
lock: true,
cancelVal: '关闭'
});
});
$('#stockSearch').click(function(e){
e.preventDefault();
var id = goodsCombo.getValue();
var text = $('#goodsAuto').val();
Business.forSearch(id, text);
$('#goodsAuto').val('');
});
$("#feedback").click(function(e){
e.preventDefault();
parent.tab.addTabItem({tabid: 'myService', text: '服务支持', url: '../service', callback: function(){
parent.document.getElementById('myService').contentWindow.openTab(3);
}});
});
$('.bulk-import').click(function(e){
e.preventDefault();
if (!Business.verifyRight('BaseData_IMPORT')) {
return ;
};
parent.$.dialog({
width: 560,
height: 300,
title: '批量导入',
content: 'url:../import',
data: {
callback: function(row){
}
},
lock: true
});
});
$('#manageAcct').click(function(e){
e.preventDefault();
var updateUrl = location.protocol + '//' + location.host + '/update_info';
$.dialog({
min: false,
max: false,
cancle: false,
lock: true,
width: 500,
height: 380,
title: '账号管理',
//content: 'url:' + url
content: 'url:../home/set_password'
});
});
//公告
(function (){
var URL = parent.CONFIG.SERVICE_URL, SYSTEM = parent.SYSTEM;
var version;
switch (SYSTEM.siVersion) {
case 3:
version = '1';
break;
case 4:
version = '3';
break;
default:
version = '2';
};
var param = '?eventType=2&serviceId=' + SYSTEM.DBID; //自带参数
$.getJSON("../home/Services?callback=?", {coid : SYSTEM.DBID, loginuserno: SYSTEM.UserName, version: version, type: 'getsystemmsg' + SYSTEM.servicePro}, function(data){
if(data.msg == 'success'){
if(data.data.length == 0){
return;
}
var $notices = $('<span class="notices" id="notices"></span>'),
html = [],
notice,
li = '';
data = data.data;
for(var i=0; i<data.length; i++){
notice = data[i];
if(notice.msglink){
li = '<li><a target="_blank" href="' + notice.msglink + param + '" title="' + notice.msgtitle + '" data-id="' + notice.msgid + '"><i></i>' + notice.msgtitle + '</a></li>'
}else{
li = '<li><a href="../home/Services?newsId=' + notice.msgid + '" rel="pageTab" tabId="myService" tabTxt="服务支持" parentOpen="true" title="' + notice.msgtitle + '" data-id="' + notice.msgid + '"><i></i>' + notice.msgtitle + '</a></li>'
}
html.push(li);
}
$notices.append('<ul>' + html.join('') + '</ul>').appendTo('.welcome');
Public.txtSlide();
}
});
})();
</script>
</body>
</html>

View File

@@ -0,0 +1,257 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>台州镇杰商品订购系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
</head>
<body>
<header class="mui-bar-nav" id="header">
<a style="float:left;display:inline-block;line-height:40px;height:40px;vertical-align:middle;margin-top: 12px;text-align:center;left:13px;width:57px;" href="<?php echo base_url()?>index.php/mobile/selfs">
<i style="display: block;font-size:40px;color: #fafafa;" class="iconfont icon-sort"></i>
</a>
<div class="top-sch-box">
<div style="float:left;display:inline-block;width:26px;">
<i class="fdj iconfont icon-search"></i>
</div>
<div style="display:inline-block;width:70%;">
<input class="sch-input mui-input-clear" type="text" name="" id="searchText" placeholder="输入商品编号或名称" />
</div>
</div>
<a style="display:inline-block;line-height:40px;height:40px;right:13px;width:75px;text-align: center;vertical-align:middle;font-size:20px;cursor: pointer;color: #fff;background-color: #ff395c;-webkit-border-radius: 100px;border-radius: 100px;position: fixed;top: 13px;z-index: 20;" href="javascript:loadGoods();">搜索</a>
</header>
<div id="container" class="container">
<div class="section" id="goodList">
<!-- <div class="prt-lt">
<div class="lt-lt"><img src="<?php echo base_url()?>statics/mobile/images/index/prt_1.jpg"></div>
<div class="lt-ct">
<p>商品1</p>
<p class="pr">¥<span class="price">60.00</span></p>
</div>
<div class="lt-rt">
<input type="button" class="minus" value="-">
<input type="text" class="result" value="0">
<input type="button" class="add" value="+">
</div>
</div> -->
</div>
<div class="s_empty" id="noMoreTip">已无更多商品,您可以换一个关键字搜一下哦~</div>
</div>
<footer>
<div class="ft-lt">
<p>合计:<span id="total" class="total">163.00元</span><span class="nm">(<label class="share"></label>个)</span></p>
</div>
<div class="ft-rt">
<p>选好了</p>
</div>
</footer>
<div class="cd-user-modal">
<div style="position: absolute;width: 90%;height:60%;min-height:220px;left:5%;top:20%;background: #FFF;cursor: auto;border-radius: 3px;">
<div style="height:20%;background: #d2d8d8;color: #809191;font-size:16px;text-align:center;">
<div style="padding-top:20px;">
客户下单
</div>
</div>
<div id="cd-login" style="height:80%;"> <!-- 登录表单 -->
<form class="cd-form" style="padding:10px">
<p class="fieldset" style="margin:20px auto;">
<label style="top: 20px;" class="image-replace cd-username" for="signin-username">用户名</label>
<input class="full-width has-padding has-border" id="signin-username" type="text" placeholder="输入用户名">
</p>
<p class="fieldset" style="margin:20px auto;">
<label style="top: 60px;" class="image-replace cd-password" for="signin-password">密码</label>
<input class="full-width has-padding has-border" id="signin-password" type="text" placeholder="输入密码">
</p>
<!-- <p class="fieldset">
<input type="checkbox" id="remember-me" checked>
<label for="remember-me">记住登录状态</label>
</p> -->
<p class="fieldset" style="margin-top:20px auto;">
<input class="full-width2" type="submit" id="submitOrder" value="下单">
</p>
</form>
</div>
</div>
</div>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
var currentPage=1;
var skey="";
var entrys=[];
$(function(){
var $form_modal = $('.cd-user-modal'),
$form_login = $form_modal.find('#cd-login'),
$form_modal_tab = $('.cd-switcher'),
$tab_login = $form_modal_tab.children('li').eq(0).children('a'),
$main_nav = $('.ft-rt');
//弹出窗口
$main_nav.on('click', function(event){
$form_modal.addClass('is-visible');
});
//关闭弹出窗口
$('.cd-user-modal').on('click', function(event){
if( $(event.target).is($form_modal) || $(event.target).is('.cd-close-form') ) {
$form_modal.removeClass('is-visible');
}
});
//使用Esc键关闭弹出窗口
$(document).keyup(function(event){
if(event.which=='27'){
$form_modal.removeClass('is-visible');
}
});
$("#submitOrder").on('click', function(event){
submitOrder();
});
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight-5) {
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
skey = $("#searchText").val();
$("#goodList").empty();
$("#noMoreTip").css('display','none');
}
var data = {page:page,rows:10,skey:skey};
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getGoods",
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page == total) && $("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
for(var i in rows){
var good = rows[i];
var imgUrl = '<?php echo base_url()?>index.php/mobile/getImageById?id='+good.id;
$good = $(
'<div class="prt-lt">'+
'<div class="lt-lt">'+
'<img src="'+imgUrl+'">'+
'</div>'+
'<div class="lt-ct">'+
'<p>'+good.name+'</p>'+
'<p class="pr">¥<span class="price">'+good.salePrice+'</span></p>'+
'</div>'+
'<div class="lt-rt">'+
'<input type="button" class="minus" value="-">'+
'<input type="text" class="result" value="0">'+
'<input type="button" class="add" value="+">'+
'</div>'+
'</div>');
$("#goodList").append($good);
}
$(".add").click(function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())+1);
setTotal();
})
$(".minus").click(function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal();
})
setTotal();
}else{
alert(result.msg);
}
},
error: function () {
alert("商品加载失败!")
}
});
}
function setTotal(){
var s=0;
var v=0;
var n=0;
<!--计算总额-->
$(".lt-rt").each(function(){
s+=parseInt($(this).find('input[class*=result]').val())*parseFloat($(this).siblings().find('span[class*=price]').text());
});
<!--计算总份数-->
$("input[class*=result]").each(function(){
v += parseInt($(this).val());
});
$(".share").html(v);
$("#total").html(s.toFixed(2));
}
function submitOrder(){
var postData = {};
postData.id= -1;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

View File

@@ -0,0 +1,233 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>台州镇杰科技有限公司订单系统</title>
<meta name="description" content="台州镇杰科技有限公司订单系统" />
</head>
<body>
<audio id="broadcast" style="display: none" controls="controls" ><!-- autoplay="autoplay" -->
<source src="<?php echo base_url()?>statics/mobile/images/7758.mp3" type="audio/ogg" />
</audio>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
(function($){
$.fn.myScroll = function(options){
//默认配置
var defaults = {
speed:60, //滚动速度,值越大速度越慢
rowHeight:54 //每行的高度
};
var opts = $.extend({}, defaults, options),intId = [];
function marquee(obj, step){
obj.find("ul").animate({
marginTop: '-=1'
},0,function(){
var s = Math.abs(parseInt($(this).css("margin-top")));
if(s >= step){
$(this).find("li").slice(0, 1).appendTo($(this));
$(this).css("margin-top", 0);
}
});
}
this.each(function(i){
var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this);
intId[i] = setInterval(function(){
if(_this.find("ul").height()<=_this.height()){
clearInterval(intId[i]);
}else{
marquee(_this, sh);
}
}, speed);
_this.hover(function(){
clearInterval(intId[i]);
},function(){
intId[i] = setInterval(function(){
if(_this.find("ul").height()<=_this.height()){
clearInterval(intId[i]);
}else{
marquee(_this, sh);
}
}, speed);
});
});
}
})(jQuery);
function getOrderInfo(){
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getBigOrder",
data: {},
dataType: "json",
success: function (rtn) {
if(rtn.status==200){
$("#ordList").empty();
$("#ordListVip").empty();
var data = rtn.data;
var ordinfo,ordinfovip = '';
var j=1,k=1;
for(var i in data){
var ord = data[i];
var level = parseInt(ord.contactLevel);console.info(level);
var m = level >= 2 ? k : j;
var serino = ('00'+ m);
var one = '<li '+ (m < 6 ? 'class="top"':'')+'>'+
'<em>'+serino.substring(serino.length-2)+'</em>'+
'<p>'+
'<a href="javascript:void(0)">'+
'<span style="float:left;display:inline-block;width:15%;overflow:hidden;text-align:center;">' + ord.billDate + '</span>'+
'<span style="float:left;display:inline-block;width:25%;overflow:hidden;text-align:center;">' + ord.contactName + '</span>'+
<!--'<span style="float:left;display:inline-block;width:10%;overflow:hidden;">' + '¥&nbsp;'+ord.amount + '</span>'+-->
'<span style="float:left;display:inline-block;width:25%;overflow:hidden;text-align:center;">' + ord.goodName + '</span>'+
'<span style="float:left;display:inline-block;width:5%;overflow:hidden;text-align:center;">' + ord.totalQty + '</span>'+
'<span style="float:left;display:inline-block;width:30%;overflow:hidden;text-align:center;">' + ord.description + '</span>'+
'</a>'+
'</p>'+
<!--'<span class="num">'+ord.totalQty+'</span>'+-->
'</li>';
if(ord.contactLevel>=2){
ordinfovip += one;
k++;
}else{
ordinfo += one;
j++;
}
}
$("#ordList").append($(ordinfo));
$("#ordListVip").append($(ordinfovip));
if(curCount>0 && data.length>curCount){
var audio = $("#broadcast")[0];
audio.play();
}
curCount = data.length;
}else{
}
if(firstscroll){
$("div.ranklist").myScroll({
speed:60,
rowHeight:54
});
firstscroll = false;
}
},
error: function () {
console.log("获取订单失败!")
}
});
}
$(function(){
window.setInterval(getOrderInfo,30000);
/*$("#ranklist2").myScroll({
speed:50,
rowHeight:52
});*/
getOrderInfo();
/*$("div.ranklist").myScroll({
speed:60,
rowHeight:54
});*/
});
var curCount=0;
var firstscroll = true;
</script>
<style type="text/css">
html,body{height:95%;}
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
a,a:visited{color:#5e5e5e; text-decoration:none;}
a:hover{color:#b52725;text-decoration:underline;}
.clear{display:block;overflow:hidden;clear:both;height:0;line-height:0;font-size:0;}
/*body{font:20px/180% Arial, Helvetica, sans-serif;}*/
body{font-size:25px;}
.demo{width:95%;margin:20px auto;border:solid 1px #ddd;padding:0 10px;}
.demo h2{font-size:30px;color:#333;height:30px;line-height:30px;padding:15px 0;color:#791039;}/*#3366cc*/
/* ranklist */
.ranklist{height:400px;overflow:hidden;}
.ranklist li{height:32px;line-height:32px;overflow:hidden;position:relative;padding:0 0 0 80px;margin:0 0 20px 0;}
.ranklist li em{width:40px;height:32px;overflow:hidden;display:block;position:absolute;left:0;top:0;text-align:center;font-style:normal;color:#fff;}
.ranklist li em{background-color:#3385ff;}
.ranklist li a{font-family: "Microsoft YaHei" ! important;}
.ranklist li.top em{background-color:#DE206E;color:#fff;}
.ranklist li .num{position:absolute;right:0;top:0;color:#999;font-family: "Microsoft YaHei" ! important;}
</style>
<center><h1 style="font-size:35px;color:#ce105e;margin-top:10px;">台州镇杰科技有限公司订单系统</h1></center>
<div class="demo">
<center><h2>大客户专区</h2></center>
<div class="ranklist" style="height:40px;font-family:'宋体' ! important;">
<ul>
<li>
<em style="background-color:#fff;color:#000;font-size:18px;font-weight:bold;"></em>
<p>
<a href="javascript:void(0)">
<span style="float:left;display:inline-block;width:15%;overflow:hidden;font-size:22px;color:#000;text-align:center;">日期</span>
<span style="float:left;display:inline-block;width:25%;overflow:hidden;font-size:22px;color:#000;text-align:center;">客户名称</span>
<span style="float:left;display:inline-block;width:25%;overflow:hidden;font-size:22px;color:#000;text-align:center;">商品名称</span>
<span style="float:left;display:inline-block;width:5%;overflow:hidden;font-size:22px;color:#000;text-align:center;">数量</span>
<span style="float:left;display:inline-block;width:30%;overflow:hidden;font-size:22px;color:#000;text-align:center;">备注</span>
</a>
</p>
<!--<span class="num" style="font-size:22px;color:#000;">数量</span>-->
</li>
</ul>
</div>
<div class="ranklist" style="height: 200px;" id="ranklist1">
<ul id="ordListVip">
<li class="top">
<em>01</em><p><a href="http://www.17sucai.com/" target="_blank">js图片左右无缝滚动用鼠标控制图片滚动</a></p><span class="num">32万下载</span>
</li>
</ul>
</div>
<center><h2 style="color:#3366cc">贵宾客户专区</h2></center>
<div class="ranklist" style="height:40px;font-family:'宋体' ! important;">
<ul>
<li>
<em style="background-color:#fff;color:#000;font-size:18px;font-weight:bold;"></em>
<p>
<a href="javascript:void(0)">
<span style="float:left;display:inline-block;width:15%;overflow:hidden;font-size:22px;color:#000;text-align:center;">日期</span>
<span style="float:left;display:inline-block;width:25%;overflow:hidden;font-size:22px;color:#000;text-align:center;">客户名称</span>
<span style="float:left;display:inline-block;width:25%;overflow:hidden;font-size:22px;color:#000;text-align:center;">商品名称</span>
<span style="float:left;display:inline-block;width:5%;overflow:hidden;font-size:22px;color:#000;text-align:center;">数量</span>
<span style="float:left;display:inline-block;width:30%;overflow:hidden;font-size:22px;color:#000;text-align:center;">备注</span>
</a>
</p>
<!--<span class="num" style="font-size:22px;color:#000;">数量</span>-->
</li>
</ul>
</div>
<div class="ranklist" id="ranklist2">
<ul id="ordList">
<li class="top">
<em>01</em><p><a href="http://www.17sucai.com/" target="_blank">js图片左右无缝滚动用鼠标控制图片滚动</a></p><span class="num">32万下载</span>
</li>
<li class="top">
<em>02</em><p><a href="http://www.17sucai.com/" target="_blank"><font style="color:#c00">js无缝滚动制作js文字无缝滚动和js图片无缝滚动</font></a></p><span class="num">32万下载</span>
</li>
<li class="top">
<em>03</em><p><a href="http://www.17sucai.com/" target="_blank">jquery 滚动 kxbdSuperMarquee插件支持图片与文字无缝滚动 图片翻滚 焦点图左右切换 banner广告制作</a></p><span class="num">32万下载</span>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html>
<head>
<title>注册页面</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<link href="<?php echo base_url()?>statics/mobile/login/css/success.css" type="text/css" rel="stylesheet">
<link href="<?php echo base_url()?>statics/mobile/login/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
</head>
<body onload="load()">
<div class="success">
<img style="width:50px;margin-left:calc(50% - 25px);" src="<?php echo base_url()?>statics/mobile/login/images/success.png" />
<p style="margin:0"><font color=#deb3df><?php echo $_COOKIE['userName']?></font>,<font color=#92cf84>已登陆</font><!-- ,<font color=#ba3537><?php echo $_COOKIE['score']?></font><font color=#e5a785>积分</font> --></p>
<div class="s_msg">
<div class="s_title"><span class="s_red">历史订单</span></div>
<div class="s_title">
<span class="s_redlink">
<a id="soCount" href="javascript:void(0)" target="_blank">0</a>
</span>
</div>
</div>
<div class="login-btn">
<button class="submit" type="submit" onclick="location.href='<?php echo base_url()?>index.php/mobile/vloginOut'">退出</button>
<a href="javascript:history.go(-1);"><div class="login-reg"><p>返回</p></div></a>
</div>
</div>
</body>
</html>
<script type="text/javascript">
function load()
{
var soOrSa = "sa";
$("#soCount").click(function(){
location.href = "<?php echo base_url()?>index.php/mobile/v"+soOrSa+"old";
});
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/v"+soOrSa+"Count?a="+Math.random(),
data: "",
dataType: "json",
success: function (result) {
if(result&&result.status==200){
$("#soCount").text(result.msg);
}
},
error: function () {
alert("数量加载失败!")
}
});
}
</script>

439
application/views/mobile/good.php Executable file
View File

@@ -0,0 +1,439 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>台州镇杰商品订购系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
</head>
<body>
<!-- 购物车 -->
<header class="mui-bar-nav" id="header">
<a style="float:left;display:inline-block;line-height:40px;height:40px;vertical-align:middle;margin-top: 12px;text-align:center;left:13px;width:57px;" href="<?php echo base_url()?>index.php/mobile/selfs">
<i style="display: block;font-size:40px;color: #fafafa;" class="iconfont icon-sort"></i>
</a>
<div class="top-sch-box">
<div style="float:left;display:inline-block;width:26px;">
<i class="fdj iconfont icon-search"></i>
</div>
<div style="display:inline-block;width:70%;">
<input class="sch-input mui-input-clear" type="text" name="" id="searchText" placeholder="输入商品编号或名称" />
</div>
</div>
<a style="display:inline-block;line-height:40px;height:40px;right:13px;width:75px;text-align: center;vertical-align:middle;font-size:20px;cursor: pointer;color: #fff;background-color: #ff395c;-webkit-border-radius: 100px;border-radius: 100px;position: fixed;top: 13px;z-index: 20;" href="javascript:loadGoods();">搜索</a>
</header>
<div id="container" class="container">
<div class="section" id="goodList">
<!-- <div class="prt-lt">
<div class="lt-lt"><img src="<?php echo base_url()?>statics/mobile/images/index/prt_1.jpg"></div>
<div class="lt-ct">
<p>商品1</p>
<p class="pr">¥<span class="price">60.00</span></p>
</div>
<div class="lt-rt">
<input type="button" class="minus" value="-">
<input type="text" class="result" value="0">
<input type="button" class="add" value="+">
</div>
</div> -->
</div>
<div class="s_empty" id="noMoreTip">已无更多商品,您可以换一个关键字搜一下哦~</div>
</div>
<footer>
<div class="ft-lt">
<p>合计:<span id="total" class="total">163.00元</span><span class="nm">(<label class="share"></label>个)</span></p>
</div>
<div class="ft-rt">
<p>选好了</p>
</div>
</footer>
<!-- 客户下单确认 -->
<div class="cd-user-modal">
<div style="position: absolute;width: 90%;height:60%;min-height:210px;left:5%;top:20%;background: #FFF;cursor: auto;border-radius: 3px;">
<div style="height:20%;background: #d2d8d8;color: #809191;font-size:16px;text-align:center;">
<div style="padding-top:20px;">
客户下单
</div>
</div>
<div id="cd-login" style="height:80%;"> <!-- 登录表单 -->
<form class="cd-form" style="padding:10px" action="<?php echo base_url()?>index.php/mobile/good">
<p id="good_def1" style="font-size:18px;text-align:center;margin:5px auto;">共
<span id="goodnum" style="color:red">12
</span>件商品,
<sapn id="goodmoney" style="color:red">234
</sapn>元.
</p>
<!--<p class="fieldset" style="margin:20px auto;">
<label style="top: 20px;" class="image-replace cd-username" for="signin-username">用户名</label>
<input class="full-width has-padding has-border" id="signin-username" type="text" placeholder="输入用户名">
</p>
<p class="fieldset" style="margin:20px auto;">
<label style="top: 60px;" class="image-replace cd-password" for="signin-password">密码</label>
<input class="full-width has-padding has-border" id="signin-password" type="text" placeholder="输入密码">
</p>
<p class="fieldset">
<input type="checkbox" id="remember-me" checked>
<label for="remember-me">记住登录状态</label>
</p> -->
<p id="good_def2" style="text-align:center;margin:10px auto;"">
<input class="full-width has-padding has-border" type="text" id="desp" placeholder="请输入备注">
</p>
<p id="good_def3" style="clear:both;font-size:18px;text-align:center;margin-top:10px;">确认下单吗?</p>
<p id="good_def4" class="fieldset" style="position:static;margin-top:20px auto;">
<input style="" class="full-width2" type="submit" id="submitOrder" value="确定">
<input class="full-width3" type="submit" id="submitOrder2" value="取消">
</p>
<p id="good_suc1" style="font-size:18px;text-align:center;margin:5px auto;">
<span id="err_msg" style="color:red">恭喜您!下单成功!可于历史订单中查看!
</span>
</p>
<p id="good_suc2" class="fieldset" style="position:static;margin-top:20px auto;">
<input style="" class="full-width4" type="submit" id="submitOrder3" value="确定">
</p>
</form>
</div>
</div>
</div>
<!-- 订单详情 -->
<div id="detailView" style="position: fixed;z-index:100;width:100%;height:100%;background:#fff;font-size: 18px;">
<div style="background: #FC605A;top: 0;right: 0;left: 0;height: 63.98px;">
<div style="float:left;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="$('#detailView').hide();">&lt;返回</div>
<div style="float:left;width:calc(100% - 160px);color:#fff;text-align:center;font-size:21px;line-height:63.97px;vertical-align:middle">商品详情</div>
</div>
<div id="goodDetail" style="height: calc(100% - 63.98px);overflow:auto;">
</div>
</div>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
var currentPage=1;
var skey="";
var entrys=[];
var origood = {};
$(function(){
var $form_modal = $('.cd-user-modal'),
$form_login = $form_modal.find('#cd-login'),
$form_modal_tab = $('.cd-switcher'),
$tab_login = $form_modal_tab.children('li').eq(0).children('a'),
$main_nav = $('.ft-rt');
//弹出窗口
$main_nav.on('click', function(event){
$("#goodnum").text($(".share").html());
console.info($(".share").html());
$("#goodmoney").text($("#total").html());
$("#good_def1").show();
$("#good_def2").show();
$("#good_def3").show();
$("#good_def4").show();
$("#good_suc1").hide();
$("#good_suc2").hide();
$form_modal.addClass('is-visible');
});
//关闭弹出窗口
/*$('.cd-user-modal').on('click', function(event){
if( $(event.target).is($form_modal) || $(event.target).is('.cd-close-form') ) {
$form_modal.removeClass('is-visible');
}
});*/
$('#submitOrder').on('click', function(event){
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/addOrder",
data: {postData:getPostData()},
dataType: "json",
success: function (rtn) {
$("#good_def1").hide();
$("#good_def2").hide();
$("#good_def3").hide();
$("#good_def4").hide();
$("#good_suc1").show();
$("#good_suc2").show();
if(rtn.status==200){
//$form_modal.removeClass('is-visible');
$("#err_msg").text('恭喜您!下单成功!');
}else{
$("#err_msg").text(rtn.msg);
}
},
error: function () {
console.log("订单提交失败!")
}
});
return false;
});
$('#submitOrder2').on('click', function(event){
$form_modal.removeClass('is-visible');
return false;
});
$('#submitOrder3').on('click', function(event){
$form_modal.removeClass('is-visible');
return true;
});
//使用Esc键关闭弹出窗口
$(document).keyup(function(event){
if(event.which=='27'){
$form_modal.removeClass('is-visible');
}
});
$("#detailView").hide();
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
//console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight-5) {
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
skey = $("#searchText").val();
$("#goodList").empty();
$("#noMoreTip").css('display','none');
}
var data = {page:page,rows:10,skey:skey};
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getGoods",
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page == total) && $("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
for(var i in rows){
var good = rows[i];
origood[good.id] = good;
var imgUrl = '<?php echo base_url()?>index.php/mobile/getImageById?id='+good.id;
$good = $(
'<div class="prt-lt">'+
'<div class="lt-lt">'+
'<img src="'+imgUrl+'">'+
'</div>'+
'<div class="lt-ct">'+
'<p>'+good.name+'</p>'+
'<p class="pr">¥<span class="price">'+good.salePrice+'</span></p>'+
'</div>'+
'<div class="lt-rt" goodid="'+good.id+'">'+
'<input type="button" class="minus" value="-">'+
'<input type="text" class="result" value="0">'+
'<input type="button" class="add" value="+">'+
'</div>'+
'</div>');
$("#goodList").append($good);
}
/*$(".add").click(function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())+1);
setTotal();
})
$(".minus").click(function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal();
})*/
$(".add").unbind('click').bind('click',function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())+1);
setTotal();
});
$(".minus").unbind('click').bind('click',function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal();
});
$(".prt-lt").unbind('click').bind('click',function(event){
if($(event.target).is(".add")||$(event.target).is(".minus"))return;
var goodid = $(this).find('.lt-rt').attr('goodid');
var good = origood[goodid];
$("#detailView").show();
$("#goodDetail").empty();
var $good = $(
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;text-align:center">商品编号</span>'+
'<span style="color:#000;font-size:14px;">'+good.number+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;text-align:center">名称</span>'+
'<span style="color:#000;font-size:14px;">'+good.name+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">规格</span>'+
'<span style="color:#000;font-size:14px;">'+(good.spec||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">售价</span>'+
'<span style="color:#000;font-size:14px;">'+(good.salePrice||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">当前库存</span>'+
'<span style="color:#000;font-size:14px;">'+(good.currentQty||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">单位</span>'+
'<span style="color:#000;font-size:14px;">'+(good.unitName||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">备注</span>'+
'<span style="color:#000;font-size:14px;">'+(good.remark||'')+'</span>'+
'</div>'
);
$("#goodDetail").append($good);
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getImagesById",
data: {id:good.id},
dataType: "json",
success: function (rtn) {
if(rtn.status==200){
var img= '';
var files = rtn.files;
for(var i in files){
img += '<img style="width:100%;" src="'+files[i].url+'"/>'
}
img += '<div class="s_empty" style="display:block;">已无更多图片,您可以换一个商品查看哦~</div>';
$("#goodDetail").append($(img));
}else{
}
},
error: function () {
console.log("获取图片失败!")
}
});
});
setTotal();
}else{
alert(result.msg);
}
},
error: function () {
alert("商品加载失败!")
}
});
}
function setTotal(){
var s=0;
var v=0;
var n=0;
entrys = [];
<!--计算总额-->
$(".lt-rt").each(function(){
var num = parseInt($(this).find('input[class*=result]').val());
var price = parseFloat($(this).siblings().find('span[class*=price]').text());
if(num>0){
var good=origood[$(this).attr('goodid')];
var entry={};
entry.invId = good.id;
entry.invNumber = good.number;
entry.invName = good.name;
entry.invSpec = good.spec;
entry.skuId = -1;
entry.skuName = "";
entry.unitId = good.unitId;
entry.mainUnit = good.unitName;
entry.qty = num;
entry.price = good.salePrice;
entry.discountRate = "0";
entry.deduction = "0.00";
entry.amount = num*price;
entry.locationId = good.locationId;
entry.locationName = good.locationName;
entry.description = "";
entrys.push(entry);
s+= num*price;
v += num;
}
});
<!--计算总份数-->
/*$("input[class*=result]").each(function(){
v += parseInt($(this).val());
});*/
$(".share").html(v);
$("#total").html(s.toFixed(2));
}
function getPostData(){
var data = {};
data.id= -1;
data.entries = entrys;
data.totalQty = $(".share").html();
data.totalDiscount = "0.00";
data.totalAmount = $("#total").html();
data.description = $("#desp").val();
data.disRate = "0";
data.disAmount = "0";
data.amount = $("#total").html();
data.salesId = 0;
data.salesName = "";
data.transType = "150601";
return data;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

View File

@@ -0,0 +1,134 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>台州镇杰商品订购系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
</head>
<body>
<header class="mui-bar-nav" id="header">
<div style="float:left;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="history.go(-1);">&lt;返回</div>
<div style="float:left;width:calc(100% - 160px);color:#fff;text-align:center;font-size:21px;line-height:63.97px;vertical-align:middle">历史订单</div>
</header>
<div id="container" class="container" style="height:calc(100% - 63.97px)">
<div class="section" id="soList">
</div>
<div class="s_empty" id="noMoreTip">已无更多订单,您可以换一个关键字搜一下哦~</div>
</div>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
var currentPage=1;
var skey="";
var entrys=[];
$(function(){
$("#submitOrder").on('click', function(event){
submitOrder();
});
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
//console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight-1) {
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
skey = $("#searchText").val();
$("#soList").empty();
$("#noMoreTip").css('display','none');
}
var data = {page:page,rows:10,skey:skey};
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/soList?a="+Math.random(),
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page == total) && $("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
for(var i in rows){
var so = rows[i];
$good = $(
'<div style="position:relative;width:95%;font-size:14px;padding-left:5px;padding-top:15px;padding-right:5px;height:80px;border-bottom: 1px solid #e5e5e5;">'+
'<div style="width:100%;height:45px;">'+
'<span style="display:inline-block;width:65%;">订单号:<strong>'+so.billNo+'</strong></span>'+
'<span style="display:inline-block;width:35%;text-align:right"><strong>'+so.billDate+'</strong></span>'+
'</div>'+
'<div style="width:100%">'+
'<span style="display:inline-block;width:35%;color:#FF5151;font-family: "microsoft yahei";">¥:<strong style="font-size:15px;">'+so.amount+'</strong>元</span>'+
'<span style="display:inline-block;width:30%;font-family: "microsoft yahei";">数量:<strong style="font-size:16px;">'+so.totalQty+'</strong></span>'+
'<span style="display:inline-block;width:35%;text-align:right;font-family: "microsoft yahei";">'+(so.checked==0?'<strong style="font-size:15px;color:#449d44">待审核':'<strong style="font-size:15px;color:#FF5151;">已审核')+'</strong></span>'+
'</div>'+
'</div>');
$("#soList").append($good);
}
}else{
alert(result.msg);
}
},
error: function () {
alert("订单加载失败!")
}
});
}
function submitOrder(){
var postData = {};
postData.id= -1;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>登陆页面</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<link href="<?php echo base_url()?>statics/mobile/login/css/login.css" type="text/css" rel="stylesheet">
<link href="<?php echo base_url()?>statics/mobile/login/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/login/js/login.js"></script>
</head>
<body>
<div class="login">
<div class="login-title"><p>ERP进销存V8标准版</p>
<i></i>
</div>
<form method="post" action="<?php echo base_url()?>index.php/mobile/good">
<div class="login-bar">
<ul>
<li><img src="<?php echo base_url()?>statics/mobile/login/images/login_user.png"><input type="text" class="text" placeholder="请输入用户名" /></li>
<li><img src="<?php echo base_url()?>statics/mobile/login/images/login_pwd.png"><input type="password" class="psd" placeholder="请输入确认密码" /></li>
</ul>
</div>
<div class="login-btn">
<button class="submit" type="submit" id="submit">登陆</button>
</div>
</form>
</div>
</body>
</html>

195
application/views/mobile/main.php Executable file
View File

@@ -0,0 +1,195 @@
<!DOCTYPE html>
<html>
<head>
<title>登陆页面</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<style type="text/css">
.nav {
background: #009c39;//#0499fe;//#38393f;//#009c39;
padding: 10px 0 6px 0;
width: 100%;
position: fixed;
left: 0;
bottom: 0;
}
.nav ul {
height: 0px;
}
.nav ul li {
float: left;
width: 20%;
text-align: center;
list-style-type: none;
margin: 0px;
padding: 0px;
}
.nav ul li span {
display: block;
color: #fff;
font-size: 14px;
font-family: "微软雅黑";
line-height: 22px;
}
a {
color: #000;
text-decoration: none;
}
* {
padding: 0;
margin: 0;
list-style: none;
font-weight: normal;
}
</style>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/ichart.1.2.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/auto-alert.js"></script>
</head>
<body>
<!-- 头部导航 -->
<header style="background: #009c39;position:absolute;height:60px;line-height:60px;color:#fff;z-index:49;width:100%">
<!-- <span style="display:inline-block; width:40px;float:left;text-align:center"><</span> -->
<span id="maintitle" style="display:block;float:left;text-align:center;width:calc(100%)">日单量</span><!-- - 80px -->
<!--<span style="display:inline-block;float:right;width:40px;text-align:center">></span> -->
</header>
<!-- 内容 -->
<div id="canvasDiv" style="position:absolute;top:60px;height:calc(100% - 123px);"></div>
<!-- 底部导航 -->
<footer class="nav">
<ul>
<li id="shouye" onclick="loadChart()"><a href="javascript:void(0)"><span><img src="<?php echo base_url()?>statics/mobile/images/f1.png" height="20"></span><span>首页</span></a>
</li>
<li id="xiadan" style="position: relative;">
<a href="javascript:void(0)"><span><img src="<?php echo base_url()?>statics/mobile/images/f2.png" height="20"></span><span>下单</span></a>
</li>
<li id="kucun" ><a href="javascript:void(0)"><span><img src="<?php echo base_url()?>statics/mobile/images/f5.png" height="20"></span><span>库存</span></a>
</li>
<li id="baobiao"><a href="javascript:void(0)"><span><img src="<?php echo base_url()?>statics/mobile/images/f3.png" height="20"></span><span>报表</span></a>
</li>
<li id="wode"><a href="javascript:void(0)"><span><img src="<?php echo base_url()?>statics/mobile/images/f4.png" height="20"></span><span>个人中心</span></a>
</li>
</ul>
</footer>
</body>
</html>
<script type="text/javascript">
var soOrSa = "sa";
var boss = "<?php echo $boss?>";
var chart = null;
//定义数据
$(function(){
if(boss != '1'){
location.href="<?php echo base_url()?>index.php/mobile/v"+soOrSa;
return;
$("#maintitle").text("先启科技进销存");
$("#shouye").hide();
$("#kucun").hide();
$("#baobiao").hide();
$("#canvasDiv").hide();
$("#xiadan").css("width","50%");
$("#shouye").css("width","50%");
}
chart = new iChart.Column2D({
render : 'canvasDiv',//渲染的Dom目标,canvasDiv为Dom的ID
data: null,//绑定数据
//title : '单量',//设置标题
width : document.body.clientWidth+40,//设置宽度默认单位为px
height : window.screen.height-250,//设置高度默认单位为px
shadow:true,//激活阴影
shadow_color:'#c7c7c7',//设置阴影颜色
coordinate:{//配置自定义坐标轴
scale:[{//配置自定义值轴
position:'left',//配置左值轴
start_scale:0,//设置开始刻度为0
end_scale:10,//设置结束刻度为26
scale_space:10,//设置刻度间距
listeners:{//配置事件
parseText:function(t,x,y){//设置解析值轴文本
return {text:t+""}
}
}
}]
}
});
//调用绘图方法开始绘图
//chart.draw();
loadChart();
$("#xiadan").click(function(){
$.fn.alert({
'tip': '选择单据类型',
'btnLbl': [
['购货单', '退货单','客户订单'],
['销货单', '销退单','客户退单']
],
callback:[
[
function() {
location.href = "<?php echo base_url()?>index.php/mobile/vpa";
},
function() {
location.href = "<?php echo base_url()?>index.php/mobile/vpr";
},
function() {
location.href = "<?php echo base_url()?>index.php/mobile/vso";
}
],
[
function() {
location.href = "<?php echo base_url()?>index.php/mobile/vsa";
},
function() {
location.href = "<?php echo base_url()?>index.php/mobile/vsr";
},
function() {
location.href = "<?php echo base_url()?>index.php/mobile/vsor";
}
],
[null,null, null]
]
});
});
$("#kucun").click(function(){
location.href = "<?php echo base_url()?>index.php/mobile/vstock";
});
$("#baobiao").click(function(){
location.href = "<?php echo base_url()?>index.php/mobile/vreport";
});
$("#wode").click(function(){
location.href = "<?php echo base_url()?>index.php/mobile/center";
});
});
function loadChart(){
if(!chart) return;
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getDayBillNum",
data: {},
dataType: "json",
success: function (rtn) {
if(rtn.status==200){
var dt = rtn.data;
var data = [
{name : '客户订单',value : dt.orderNum,color:'#c12c44'},
{name : '销售出库',value : dt.saleNum,color:'#a56f8f'},
{name : '销退入库',value : dt.saleRtnNum,color:'#76a871'},
{name : '购货入库',value : dt.purNum,color:'#76a871'},
{name : '退货出库',value : dt.purRtnNum,color:'#a56f8f'}
];
chart.load(data);
}else{
}
},
error: function () {
console.log("查询日单失败!")
}
});
}
</script>

View File

@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<title>注册页面</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<link href="<?php echo base_url()?>statics/mobile/login/css/success.css" type="text/css" rel="stylesheet">
<link href="<?php echo base_url()?>statics/mobile/login/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
</head>
<body onload="load()">
<div class="success">
<img style="width:50px;margin-left:calc(50% - 25px);" src="<?php echo base_url()?>statics/mobile/login/images/success.png" />
<p style="margin:0"><font color=#deb3df><?php echo $_COOKIE['userName']?></font>,<font color=#92cf84>已登陆</font>,<font color=#ba3537><?php echo $_COOKIE['score']?></font><font color=#e5a785>积分</font></p>
<div class="s_msg">
<div class="s_title"><span class="s_red">历史订单</span></div>
<div class="s_title">
<span class="s_redlink">
<a id="soCount" href="javascript:location.href='<?php echo base_url()?>index.php/mobile/invoice'" target="_blank">0</a>
</span>
</div>
</div>
<div class="login-btn">
<button class="submit" type="submit" onclick="location.href='<?php echo base_url()?>index.php/mobile/loginOut'">退出</button>
<a href="javascript:history.go(-1);"><div class="login-reg"><p>返回</p></div></a>
</div>
</div>
</body>
</html>
<script type="text/javascript">
function load()
{
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/soCount?a="+Math.random(),
data: "",
dataType: "json",
success: function (result) {
if(result&&result.status==200){
$("#soCount").text(result.msg);
}
},
error: function () {
alert("数量加载失败!")
}
});
}
</script>

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>登陆页面</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<link href="<?php echo base_url()?>statics/mobile/login/css/login.css" type="text/css" rel="stylesheet">
<link href="<?php echo base_url()?>statics/mobile/login/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/login/js/vlogin.js"></script>
</head>
<body>
<div class="login">
<div class="login-title"><p>ERP进销存V8标准版</p>
<i></i>
</div>
<form method="post" action="<?php echo base_url()?>index.php/mobile/good">
<div class="login-bar">
<ul>
<li><img src="<?php echo base_url()?>statics/mobile/login/images/login_user.png"><input type="text" class="text" placeholder="请输入用户名" /></li>
<li><img src="<?php echo base_url()?>statics/mobile/login/images/login_pwd.png"><input type="password" class="psd" placeholder="请输入确认密码" /></li>
</ul>
</div>
<div class="login-btn">
<button class="submit" type="submit" id="submit">登陆</button>
</div>
</form>
</div>
</body>
</html>

1097
application/views/mobile/vpa.php Executable file

File diff suppressed because it is too large Load Diff

1097
application/views/mobile/vpr.php Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,191 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ERP进销存V8标准版系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/mobiscroll.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/mobiscroll_date.css">
</head>
<body>
<header class="mui-bar-nav" id="header">
<div style="float:left;width:60px;color:#fff;text-align:center;font-size:16px;line-height:63.97px;vertical-align:middle" onclick="history.go(-1);">&lt;返回</div>
<div style="float:left;width:calc(100% - 120px);color:#fff;text-align:center;font-size:16px;line-height:63.97px;vertical-align:middle;" id="inoutid">出入库明细</div>
<div style="float:right;width:60px;color:#fff;text-align:center;font-size:18px;line-height:63.97px;vertical-align:middle" onclick="showSel();">
<i style="font-size:16px;" class="iconfont icon-filter"></i>
</div>
</header>
<footer style="position: fixed; background: #FC605A;z-index: 10;height: 50px;font-size:14px;line-height:50px;">
<span style="display:inline-block;width:30%;text-align: center;color:#fff">总入库:<span id="intotal"></span></span>
<span style="display:inline-block;width:30%;text-align: center;color:#fff">总出库:<span id="outtotal"></span></span>
<span style="display:inline-block;width:30%;text-align: center;color:#fff">总结存:<span id="alltotal"></span></span>
</footer>
<div id="container" class="container" style="height:calc(100% - 113.97px)">
<div class="section" id="soList">
</div>
<div class="s_empty" id="noMoreTip">已无更多信息,您可以换一个关键字搜一下哦~</div>
</div>
<section id="pushbutton"></section>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/mobiscroll_date.js" charset="gb2312"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/mobiscroll.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/date-alert.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"H+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
var beginDate=new Date().Format("yyyy-MM-dd");
var currentPage=1;
var skey="";
var entrys=[];
$("#inoutid").text("出入库明细-"+beginDate.replace(/-/g,''));
function showSel(){
$.fn.alert({
'tip': '选择时间',
'cancelBtnLbl': '确定',
'confirmBtnLbl': '取消',
'otherBtnLbl':'',
cancelCallback: function() {
beginDate = $("#selDate").val();
$("#inoutid").text("出入库明细-"+beginDate.replace(/-/g,''));
loadGoods();
},
confirmCallback: function() {
}
});
}
$(function(){
$("#submitOrder").on('click', function(event){
submitOrder();
});
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
//console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight-1) {
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
//skey = $("#searchText").val();
$("#soList").empty();
$("#noMoreTip").css('display','none');
}
debugger;
var data = {page:page,rows:5,beginDate:beginDate};
console.info(data);
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/vreportDetail?a="+Math.random(),
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page >= total) &&$("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
var udata = data.userdata;
$("#intotal").text(udata.inqty);
$("#outtotal").text(udata.outqty);
$("#alltotal").text(udata.totalqty);
for(var i in rows){
var so = rows[i];
$good = $(
'<div style="'+(so.inout==0?';border-top:1px solid rgba(255,0,0,0.3);':'')+'position:relative;width:95%;font-size:14px;padding-left:5px;padding-top:15px;padding-right:5px;height:80px;border-bottom: 1px solid #e5e5e5;">'+
'<div style="width:100%;height:45px;">'+
'<span style="display:inline-block;width:65%;vertical-align: bottom;overflow:hidden;white-space:nowrap;text-overflow: ellipsis;"><i style="font-size:10px;">'+(((page-1)*5)+Number(i)+1)+'</i>.&nbsp;<strong>'+so.invName+'</strong></span>'+
'<span style="display:inline-block;width:35%;text-align:right;"><strong>'+so.invNo+'</strong></span>'+
'</div>'+
'<div style="width:100%">'+
'<span style="display:inline-block;width:34%;margin-left:1%;">'+so.transType+'</span>'+
'<span style="display:inline-block;width:35%;color:#FF5151;">'+'<strong>'+(so.inout == 1 ? '+'+so.inqty : (so.inout == -1 ? '-'+so.outqty : '^'+so.totalqty)) +''+(so.inout == 0?'期初':'')+so.location+'</strong></span>'+//+so.unit
'<span style="display:inline-block;width:30%;text-align:right;font-family: "microsoft yahei";">'+
'<strong style="font-size:15px;color:#1B96A9;">结存:'+so.totalqty+'</strong>'+
'</span>'+
'</div>'+
'</div>');
$("#soList").append($good);
}
}else{
alert(result.msg);
}
},
error: function () {
alert("订单加载失败!")
}
});
}
function submitOrder(){
var postData = {};
postData.id= -1;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

1097
application/views/mobile/vsa.php Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,171 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ERP进销存V8标准版系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
</head>
<body>
<header class="mui-bar-nav" id="header">
<div style="float:left;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="history.go(-1);">&lt;返回</div>
<div style="float:left;width:calc(100% - 160px);color:#fff;text-align:center;font-size:21px;line-height:63.97px;vertical-align:middle">历史订单</div>
<div style="float:right;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="showSel();">
<i style="font-size:23px;" class="iconfont icon-filter"></i>
</div>
</header>
<div id="container" class="container" style="height:calc(100% - 63.97px)">
<div class="section" id="soList">
</div>
<div class="s_empty" id="noMoreTip">已无更多订单,您可以换一个关键字搜一下哦~</div>
</div>
<section id="pushbutton"></section>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/lanren-alert.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
var curStatus="";
var currentPage=1;
var skey="";
var entrys=[];
function showSel(){
$.fn.alert({
'tip': '选择订单状态',
'cancelBtnLbl': '待发货',
'confirmBtnLbl': '已发货',
'otherBtnLbl':'已回单',
cancelCallback: function() {
//取消后的操作
curStatus = 1;
loadGoods();
},
confirmCallback: function() {
//确认后的操
curStatus = 2;
loadGoods();
},
otherCallback: function() {
//确认后的操
curStatus = 3;
loadGoods();
}
});
}
$(function(){
$("#submitOrder").on('click', function(event){
submitOrder();
});
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
//console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight-1) {
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
skey = $("#searchText").val();
$("#soList").empty();
$("#noMoreTip").css('display','none');
}
var data = {page:page,rows:10,skey:skey,curStatus:curStatus,transType:150601};
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/vsaList?a="+Math.random(),
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page >= total) && $("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
for(var i in rows){
var so = rows[i];
$good = $(
'<div style="position:relative;width:95%;font-size:14px;padding-left:5px;padding-top:15px;padding-right:5px;height:80px;border-bottom: 1px solid #e5e5e5;">'+
'<div style="width:100%;height:45px;">'+
'<span style="display:inline-block;width:70%;"><i style="font-size:10px;">'+(((page-1)*10)+Number(i)+1)+'</i>.&nbsp;订单号:<strong>'+so.billNo+'</strong></span>'+
'<span style="display:inline-block;width:30%;text-align:right"><strong>'+so.billDate+'</strong></span>'+
'</div>'+
'<div style="width:100%">'+
'<span style="display:inline-block;width:35%;color:#FF5151;font-family: "microsoft yahei";">¥:<strong style="font-size:15px;">'+so.amount+'</strong>元</span>'+
'<span style="display:inline-block;width:30%;font-family: "microsoft yahei";">数量:<strong style="font-size:16px;">'+so.totalQty+'</strong></span>'+
'<span style="display:inline-block;width:35%;text-align:right;font-family: "microsoft yahei";">'+
(so.checked==0 ?
'<strong style="font-size:15px;color:#449d44">待发货':
(so.checked == 2 ? '<strong style="font-size:15px;color:#FF5151;">已回单' :
'<strong style="font-size:15px;color:#1B96A9;">已发货'))+'</strong>'+
'</span>'+
'</div>'+
'</div>');
$("#soList").append($good);
}
}else{
alert(result.msg);
}
},
error: function () {
alert("订单加载失败!")
}
});
}
function submitOrder(){
var postData = {};
postData.id= -1;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

1068
application/views/mobile/vso.php Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,171 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ERP进销存V8标准版系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
</head>
<body>
<header class="mui-bar-nav" id="header">
<div style="float:left;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="history.go(-1);">&lt;返回</div>
<div style="float:left;width:calc(100% - 160px);color:#fff;text-align:center;font-size:21px;line-height:63.97px;vertical-align:middle">历史订单</div>
<div style="float:right;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="showSel();">
<i style="font-size:23px;" class="iconfont icon-filter"></i>
</div>
</header>
<div id="container" class="container" style="height:calc(100% - 63.97px)">
<div class="section" id="soList">
</div>
<div class="s_empty" id="noMoreTip">已无更多订单,您可以换一个关键字搜一下哦~</div>
</div>
<section id="pushbutton"></section>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/lanren-alert.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
var curStatus="";
var currentPage=1;
var skey="";
var entrys=[];
function showSel(){
$.fn.alert({
'tip': '选择订单状态',
'cancelBtnLbl': '待审核',
'confirmBtnLbl': '已审核',
'otherBtnLbl':'已出库',
cancelCallback: function() {
//取消后的操作
curStatus = 1;
loadGoods();
},
confirmCallback: function() {
//确认后的操
curStatus = 2;
loadGoods();
},
otherCallback: function() {
//确认后的操
curStatus = 3;
loadGoods();
}
});
}
$(function(){
$("#submitOrder").on('click', function(event){
submitOrder();
});
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
//console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight-1) {
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
skey = $("#searchText").val();
$("#soList").empty();
$("#noMoreTip").css('display','none');
}
var data = {page:page,rows:10,skey:skey,curStatus:curStatus};
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/vsoList?a="+Math.random(),
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page >= total) && $("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
for(var i in rows){
var so = rows[i];
$good = $(
'<div style="position:relative;width:95%;font-size:14px;padding-left:5px;padding-top:15px;padding-right:5px;height:80px;border-bottom: 1px solid #e5e5e5;">'+
'<div style="width:100%;height:45px;">'+
'<span style="display:inline-block;width:70%;"><i style="font-size:10px;">'+(((page-1)*10)+Number(i)+1)+'</i>.&nbsp;订单号:<strong>'+so.billNo+'</strong></span>'+
'<span style="display:inline-block;width:30%;text-align:right"><strong>'+so.billDate+'</strong></span>'+
'</div>'+
'<div style="width:100%">'+
'<span style="display:inline-block;width:35%;color:#FF5151;font-family: "microsoft yahei";">¥:<strong style="font-size:15px;">'+so.amount+'</strong>元</span>'+
'<span style="display:inline-block;width:30%;font-family: "microsoft yahei";">数量:<strong style="font-size:16px;">'+so.totalQty+'</strong></span>'+
'<span style="display:inline-block;width:35%;text-align:right;font-family: "microsoft yahei";">'+
(so.checked==0 ?
'<strong style="font-size:15px;color:#449d44">待审核':
(so.billStatus == 2 ? '<strong style="font-size:15px;color:#FF5151;">已出库' :
'<strong style="font-size:15px;color:#1B96A9;">已审核'))+'</strong>'+
'</span>'+
'</div>'+
'</div>');
$("#soList").append($good);
}
}else{
alert(result.msg);
}
},
error: function () {
alert("订单加载失败!")
}
});
}
function submitOrder(){
var postData = {};
postData.id= -1;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

1068
application/views/mobile/vsor.php Executable file

File diff suppressed because it is too large Load Diff

1097
application/views/mobile/vsr.php Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,449 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ERP进销存V8标准版系统</title>
<link href="<?php echo base_url()?>statics/mobile/iconfont/iconfont.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/mobile/css/index.css">
</head>
<body>
<!-- 购物车 -->
<header class="mui-bar-nav" id="header">
<a style="float:left;display:inline-block;line-height:40px;height:40px;vertical-align:middle;margin-top: 12px;text-align:center;left:13px;width:57px;" href="javascript:history.go(-1);">
<i style="display: block;font-size:23px;color: #fafafa;" class="iconfont icon-back"></i>
</a>
<div class="top-sch-box">
<div style="float:left;display:inline-block;width:26px;">
<i class="fdj iconfont icon-search"></i>
</div>
<div style="display:inline-block;width:70%;">
<input class="sch-input mui-input-clear" type="text" name="" id="searchText" placeholder="输入商品编号或名称" />
</div>
</div>
<a style="display:inline-block;line-height:40px;height:40px;right:13px;width:75px;text-align: center;vertical-align:middle;font-size:20px;cursor: pointer;color: #fff;background-color: #ff395c;-webkit-border-radius: 100px;border-radius: 100px;position: fixed;top: 13px;z-index: 20;" href="javascript:loadGoods();">搜索</a>
</header>
<div id="container" class="container" style="height: calc(100% - 63.98px);">
<div class="section" id="goodList">
<!-- <div class="prt-lt">
<div class="lt-lt"><img src="<?php echo base_url()?>statics/mobile/images/index/prt_1.jpg"></div>
<div class="lt-ct">
<p>商品1</p>
<p class="pr">¥<span class="price">60.00</span></p>
</div>
<div class="lt-rt">
<input type="button" class="minus" value="-">
<input type="text" class="result" value="0">
<input type="button" class="add" value="+">
</div>
</div> -->
</div>
<div class="s_empty" id="noMoreTip">已无更多商品,您可以换一个关键字搜一下哦~</div>
</div>
<footer style="display: none">
<div class="ft-lt">
<p>合计:<span id="total" class="total">163.00元</span><span class="nm">(<label class="share"></label>个)</span></p>
</div>
<div class="ft-rt">
<p>选好了</p>
</div>
</footer>
<!-- 客户下单确认 -->
<div class="cd-user-modal">
<div style="position: absolute;width: 90%;height:60%;min-height:210px;left:5%;top:20%;background: #FFF;cursor: auto;border-radius: 3px;">
<div style="height:20%;background: #d2d8d8;color: #809191;font-size:16px;text-align:center;">
<div style="padding-top:20px;">
客户下单
</div>
</div>
<div id="cd-login" style="height:80%;"> <!-- 登录表单 -->
<form class="cd-form" style="padding:10px" action="<?php echo base_url()?>index.php/mobile/good">
<p id="good_def1" style="font-size:18px;text-align:center;margin:5px auto;">共
<span id="goodnum" style="color:red">12
</span>件商品,
<sapn id="goodmoney" style="color:red">234
</sapn>元.
</p>
<!--<p class="fieldset" style="margin:20px auto;">
<label style="top: 20px;" class="image-replace cd-username" for="signin-username">用户名</label>
<input class="full-width has-padding has-border" id="signin-username" type="text" placeholder="输入用户名">
</p>
<p class="fieldset" style="margin:20px auto;">
<label style="top: 60px;" class="image-replace cd-password" for="signin-password">密码</label>
<input class="full-width has-padding has-border" id="signin-password" type="text" placeholder="输入密码">
</p>
<p class="fieldset">
<input type="checkbox" id="remember-me" checked>
<label for="remember-me">记住登录状态</label>
</p> -->
<p id="good_def2" style="text-align:center;margin:10px auto;"">
<input class="full-width has-padding has-border" type="text" id="desp" placeholder="请输入备注">
</p>
<p id="good_def3" style="clear:both;font-size:18px;text-align:center;margin-top:10px;">确认下单吗?</p>
<p id="good_def4" class="fieldset" style="position:static;margin-top:20px auto;">
<input style="" class="full-width2" type="submit" id="submitOrder" value="确定">
<input class="full-width3" type="submit" id="submitOrder2" value="取消">
</p>
<p id="good_suc1" style="font-size:18px;text-align:center;margin:5px auto;">
<span id="err_msg" style="color:red">恭喜您!下单成功!可于历史订单中查看!
</span>
</p>
<p id="good_suc2" class="fieldset" style="position:static;margin-top:20px auto;">
<input style="" class="full-width4" type="submit" id="submitOrder3" value="确定">
</p>
</form>
</div>
</div>
</div>
<!-- 订单详情 -->
<div id="detailView" style="position: fixed;z-index:100;width:100%;height:100%;background:#fff;font-size: 18px;">
<div style="background: #FC605A;top: 0;right: 0;left: 0;height: 63.98px;">
<div style="float:left;width:80px;color:#fff;text-align:center;font-size:20px;line-height:63.97px;vertical-align:middle" onclick="$('#detailView').hide();">&lt;返回</div>
<div style="float:left;width:calc(100% - 160px);color:#fff;text-align:center;font-size:21px;line-height:63.97px;vertical-align:middle">商品详情</div>
</div>
<div id="goodDetail" style="height: calc(100% - 63.98px);overflow:auto;">
</div>
</div>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/Adaptive.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/jquery.nav.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 30,
});
$(function(){
$('#nav').onePageNav();
});
</script>
<script>
var currentPage=1;
var skey="";
var entrys=[];
var origood = {};
var canLoaded=true;
$(function(){
var $form_modal = $('.cd-user-modal'),
$form_login = $form_modal.find('#cd-login'),
$form_modal_tab = $('.cd-switcher'),
$tab_login = $form_modal_tab.children('li').eq(0).children('a'),
$main_nav = $('.ft-rt');
//弹出窗口
$main_nav.on('click', function(event){
$("#goodnum").text($(".share").html());
console.info($(".share").html());
$("#goodmoney").text($("#total").html());
$("#good_def1").show();
$("#good_def2").show();
$("#good_def3").show();
$("#good_def4").show();
$("#good_suc1").hide();
$("#good_suc2").hide();
$form_modal.addClass('is-visible');
});
//关闭弹出窗口
/*$('.cd-user-modal').on('click', function(event){
if( $(event.target).is($form_modal) || $(event.target).is('.cd-close-form') ) {
$form_modal.removeClass('is-visible');
}
});*/
$('#submitOrder').on('click', function(event){
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/addOrder",
data: {postData:getPostData()},
dataType: "json",
success: function (rtn) {
$("#good_def1").hide();
$("#good_def2").hide();
$("#good_def3").hide();
$("#good_def4").hide();
$("#good_suc1").show();
$("#good_suc2").show();
if(rtn.status==200){
//$form_modal.removeClass('is-visible');
$("#err_msg").text('恭喜您!下单成功!');
}else{
$("#err_msg").text(rtn.msg);
}
},
error: function () {
console.log("订单提交失败!")
}
});
return false;
});
$('#submitOrder2').on('click', function(event){
$form_modal.removeClass('is-visible');
return false;
});
$('#submitOrder3').on('click', function(event){
$form_modal.removeClass('is-visible');
return true;
});
//使用Esc键关闭弹出窗口
$(document).keyup(function(event){
if(event.which=='27'){
$form_modal.removeClass('is-visible');
}
});
$("#detailView").hide();
loadGoods();
//滚动条在Y轴上的滚动距离
/*$(".ft-rt").click(function(){
alert(1);
});*/
$("#container").scroll(function(){
var divHeight = $(this).height();
var nScrollHeight = $(this)[0].scrollHeight;
var nScrollTop = $(this)[0].scrollTop;
//console.info('a:'+divHeight+'b:'+nScrollHeight+'c:'+nScrollTop);
if(nScrollTop + divHeight >= nScrollHeight) {
if(!canLoaded) return;
canLoaded = false;
//请求数据
debugger;
if(currentPage<=1)
return;
else
loadGoods(currentPage);
}
});
});
function loadGoods(page){
var first = !page || (page==1);
if(first){
page = 1;
skey = $("#searchText").val();
$("#goodList").empty();
$("#noMoreTip").css('display','none');
}
var data = {page:page,rows:10,skey:skey};
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getGoods",
data: data,
dataType: "json",
success: function (result) {
if(result.status==200){
var data = result.data;
var page = data.page;
var total = data.total;
currentPage = page < total ? (page+1) : 1;
(page >= total) && $("#noMoreTip").css('display','block');
var records = data.records;
var rows = data.rows;
for(var i in rows){
var good = rows[i];
origood[good.id] = good;
var imgUrl = '<?php echo base_url()?>index.php/mobile/getImageById?id='+good.id;
$good = $(
'<div class="prt-lt">'+
'<div class="lt-lt">'+
'<img src="'+imgUrl+'">'+
'</div>'+
'<div class="lt-ct">'+
'<p>'+good.name+'</p>'+
'<p class="pr">¥<span class="price">'+good.salePrice+'</span></p>'+
'</div>'+
'<div class="lt-rt" goodid="'+good.id+'" style="border: none;color: #FF5151;float:left;width:1.2rem;bottom: 0.05rem;height:0.2rem;">'+
'<input type="text" style="height:0.24rem;width:1.2rem;" class="result" value="'+good.currentQty+''+good.unitName+'">'+
'</div>'+
'</div>');
$("#goodList").append($good);
}
/*$(".add").click(function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())+1);
setTotal();
})
$(".minus").click(function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal();
})*/
$(".add").unbind('click').bind('click',function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())+1);
setTotal();
});
$(".minus").unbind('click').bind('click',function(){
var t=$(this).parent().find('input[class*=result]');
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal();
});
$(".prt-lt").unbind('click').bind('click',function(event){
if($(event.target).is(".add")||$(event.target).is(".minus"))return;
var goodid = $(this).find('.lt-rt').attr('goodid');
var good = origood[goodid];
$("#detailView").show();
$("#goodDetail").empty();
var $good = $(
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;text-align:center">商品编号</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+good.number+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;text-align:center">名称</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+good.name+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">规格</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+(good.spec||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">售价</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+(good.salePrice||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">当前库存</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+(good.currentQty||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">单位</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+(good.unitName||'')+'</span>'+
'</div>'+
'<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;;text-align:center">备注</span>'+
'<span style="display:inline-block;color:#000;font-size:14px;width:calc(100% - 80px);text-align:center;">'+(good.remark||'')+'</span>'+
'</div>'
);
$("#goodDetail").append($good);
$.ajax({
type: "post",
url: "<?php echo base_url()?>index.php/mobile/getImagesById",
data: {id:good.id},
dataType: "json",
success: function (rtn) {
if(rtn.status==200){
var img= '';
var files = rtn.files;
var locs = rtn.locations;
for(var i in locs){
img += '<div style="height:50px;line-height:60px;font-size:16px;font-family: tahoma,arial,宋体;vertical-align:middle;border-bottom: 1px solid #e5e5e5;color:#a5a5a5">'+
'<span style="display:inline-block;width:80px;text-align:center">'+locs[i].locationName+'</span>'+
'<span style="display:inline-block;width:calc(100% - 80px);text-align:center;color:#000;font-size:14px;">'+(locs[i].qty||'0')+'</span>'+
'</div>'
}
for(var i in files){
img += '<img style="width:100%;" src="'+files[i].url+'"/>'
}
img += '<div class="s_empty" style="display:block;">已无更多图片,您可以换一个商品查看哦~</div>';
$("#goodDetail").append($(img));
}else{
}
},
error: function () {
console.log("获取图片失败!")
}
});
});
setTotal();
}else{
alert(result.msg);
}
canLoaded = true;
},
error: function () {
canLoaded = true;
alert("商品加载失败!")
}
});
}
function setTotal(){
var s=0;
var v=0;
var n=0;
entrys = [];
<!--计算总额-->
$(".lt-rt").each(function(){
var num = parseInt($(this).find('input[class*=result]').val());
var price = parseFloat($(this).siblings().find('span[class*=price]').text());
if(num>0){
var good=origood[$(this).attr('goodid')];
var entry={};
entry.invId = good.id;
entry.invNumber = good.number;
entry.invName = good.name;
entry.invSpec = good.spec;
entry.skuId = -1;
entry.skuName = "";
entry.unitId = good.unitId;
entry.mainUnit = good.unitName;
entry.qty = num;
entry.price = good.salePrice;
entry.discountRate = "0";
entry.deduction = "0.00";
entry.amount = num*price;
entry.locationId = good.locationId;
entry.locationName = good.locationName;
entry.description = "";
entrys.push(entry);
s+= num*price;
v += num;
}
});
<!--计算总份数-->
/*$("input[class*=result]").each(function(){
v += parseInt($(this).val());
});*/
$(".share").html(v);
$("#total").html(s.toFixed(2));
}
function getPostData(){
var data = {};
data.id= -1;
data.entries = entrys;
data.totalQty = $(".share").html();
data.totalDiscount = "0.00";
data.totalAmount = $("#total").html();
data.description = $("#desp").val();
data.disRate = "0";
data.disAmount = "0";
data.amount = $("#total").html();
data.salesId = 0;
data.salesName = "";
data.transType = "150601";
return data;
}
</script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/waypoints.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>statics/mobile/js/navbar2.js"></script>
</body>
</html>

View File

@@ -0,0 +1,302 @@
<?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>
.print-settings-wrap{padding: 25px 25px 10px;}
.print-settings-wrap a{text-decoration: underline;}
.print-settings-wrap .num-input{width: 50px;text-align: right;}
.print-settings-wrap .row-btns{margin-top: 30px;}
.print-settings-wrap .taoda-margin{margin-bottom: 5px;}
.print-settings-wrap .settings-ctn{margin-top: 25px;font-size: 14px;}
.print-settings-wrap .settings-ctn .print-tips{color: #dd4e4e;}
.print-settings-wrap .settings-ctn .print-tips a{color: #2383c0;}
.print-settings-wrap .mod-form-rows{margin-top: 20px;}
.taoda-settings .mod-form-rows .label-wrap{width: 110px;}
.taoda-settings .mod-form-rows a{color: #999;margin-left: 10px;}
.taoda-settings .mod-form-rows a:hover{color: #2383c0;}
#printTemp{margin-right: 10px;}
#setDefaultTemp{white-space: nowrap;margin-left: 0}
.template-list .list-item{font-size: 12px;}
</style>
</head>
<body class="ui-dialog-body">
<div class="print-settings-wrap">
<ul class="ui-tab" id="printSelect">
<li data-type="pdf" class="cur">PDF打印</li>
<!--<li data-type="taoda">专业套打</li>-->
</ul>
<div class="settings-ctn" id="printSettings">
<div class="item">
<p class="print-tips">为了保证您的正常打印,请先下载安装<a href="http://dl.pconline.com.cn/html_2/1/81/id=1322&pn=0&linkPage=1.html" target="_blank">Adobe PDF阅读器</a></p>
<ul class="mod-form-rows" id="pdfSettings">
<li class="row-item">
<div class="label-wrap">
<label>打印纸型:</label>
</div>
<div class="ctn-wrap">
<span class="radio-wrap"><input type="radio" name="paperType" value="" checked="checked"/><labe>A4</label></span>
</div>
</li>
<!--<li class="row-item">
<div class="label-wrap">
<label for="pdfStatX">左边距:</label>
</div>
<div class="ctn-wrap">
<input type="text" id="pdfStatX" name="pdfStatX" value="50" class="ui-input margin-input num-input"/>毫米
</div>
</li>-->
</ul>
</div>
<div class="item taoda-settings" id="taodaSettings" style="display:none;">
<p class="print-tips" id="taodaTips">为了保证您的正常打印,请先下载安装<a href="/noteprinttemp.do?action=downloadTemplateReader" target="_blank">友商网套打工具</a></p>
<ul class="mod-form-rows">
<li class="row-item">
<div class="label-wrap">
<label>选择模版:</label>
</div>
<div class="ctn-wrap">
<span id="printTemp"></span><a href="#" id="setDefaultTemp">设为默认模版</a>
</div>
</li>
<li class="row-item">
<div class="label-wrap">
<label for="entrysPerNote">每张打印分录数:</label>
</div>
<div class="ctn-wrap">
<input type="text" value="0" class="ui-input num-input" id="entrysPerNote" name="entrysPerNote"/>
<span class="tips">为0时默认取套打模版中设置的打印分录数</span>
</div>
</li>
<li class="row-item">
<div class="label-wrap">
<label>左边距:</label>
</div>
<div class="ctn-wrap">
<p class="taoda-margin"><input type="text" id="taodaStartX" name="taodaStartX" class="ui-input margin-input num-input" value="0"/>毫米</p>
</div>
<div class="label-wrap">
<label>上边距:</label>
</div>
<div class="ctn-wrap">
<p><input type="text" id="taodaStartY" name="taodaStartY" class="ui-input margin-input num-input" value="0"/>毫米</p>
</div>
</li>
<li class="row-item">
<span class="radio-wrap"><input type="checkbox" name="isEmptyLinePrint" id="isEmptyLinePrint" checked="checked"/><label for="isEmptyLinePrint">打印空白行</label></span>
<span class="radio-wrap"><input type="checkbox" name="printFirstLayer" id="printFirstLayer" checked="checked"/><label for="printFirstLayer">打印表格线</span></span>
<!--<span class="radio-wrap"><input type="checkbox" name="isSaveSettings" id="isSaveSettings" /><label for="isSaveSettings" checked="checked">保存该模版的设置</span></span>-->
</li>
</ul>
</div>
</div>
</div>
<form method="post" id="downloadForm" style="display:none;"></form>
<script>
(function($){
var billType = frameElement.api.data.billType;
var printMethod = $.cookie('printMethod') || 'pdf';
var taodaData = frameElement.api.data.taodaData;
var pdfData = frameElement.api.data.pdfData;
var pdfUrl = frameElement.api.data.pdfUrl;
var defaultSelectValue = frameElement.api.data.opt.defaultSelectValue;//必须为数组形式:[key, value]
init();
function init(){
//初始化设置
initPrintMethod(printMethod);
initSettings();
//绑定事件
$('#printSelect li').on('click', function(){
if($(this).hasClass('cur')){return ;}
printMethod = $(this).data('type');
initPrintMethod(printMethod);
});
//模版选择下拉
$('#printTemp').combo({
data: '../noteprinttemp?action=findByType&type=' + billType,
width: 'auto',
listCls: 'template-list droplist',
width: 340,
defaultSelected: (defaultSelectValue?defaultSelectValue:['isDefault', true]),
text: 'name',
value: 'id',
ajaxOptions: {
formatData: function(data){
return data.data.items;
}
}
});
//限制输入数字
Public.currencyToNum($('.num-input').val());
//套打提示
if (parent.parent.SYSTEM.serviceType == 8) {
var taodaTips = '您的帐套为免费版,须购买付费版才能使用套打功能,<a href="http://app.youshang.com/site/buy.jsp" target="_blank">点击购买</a>'
$('#taodaTips').html(taodaTips);
}
//设置默认模版
$('#setDefaultTemp').on('click', function(e){
e.preventDefault();
var templateId = $('#printTemp').getCombo().getValue();
$.ajax({
url:'../noteprinttemp?action=setDefault&templateId=' + templateId + '&type=' + billType,
type: 'post',
dataType: 'json',
success: function(data){
if (data.status == 200) {
parent.parent.Public.tips({content: '设置默认模版成功!'});
} else {
parent.parent.Public.tips({type: 1,content: data.msg});
}
},
error: function(){
parent.parent.Public.tips({type:1, content : '系统繁忙,请重试!'});
}
});
});
/*//监控表单提交
$('#downloadForm').submit(function(){
window.setTimeout(function(){
frameElement.api.close();
},500);
});*/
}
function doPrint(){
$.cookie('printMethod',printMethod);
if (printMethod == 'pdf') {
pdfPrint();
} else if(printMethod == 'taoda'){
tadaoPrint();
}
}
window.doPrint = doPrint;
function initPrintMethod(Method){
var obj = $('#printSelect li').filter('[data-type='+printMethod+']');
obj.addClass('cur').siblings('li').removeClass('cur');
var idx = obj.index($('#printSelect li'));
$('#printSettings .item').eq(idx).show().siblings().hide();
}
function initSettings(){
$('#pdfStatX').val($.cookie('pdfMarginLeft') || 50);
$('#entrysPerNote').val($.cookie('entrysPerNote') || 0);
$('#taodaStartX').val($.cookie('taodaStartX') || 0);
$('#taodaStartY').val($.cookie('taodaStartY') || 0);
if ($.cookie('isEmptyLinePrint') != null) {
var checked = $.cookie('isEmptyLinePrint') == 1 ? true : false;
$('#isEmptyLinePrint').attr('checked', checked);
}
if ($.cookie('printFirstLayer') != null) {
var checked = $.cookie('printFirstLayer') == 1 ? true : false;
$('#printFirstLayer').attr('checked', checked);
}
}
function getBillType(TypeId) {
switch(TypeId) {
case 0:
return 'Voucher';
case 10101:
return 'PUR';
case 10201:
return 'SAL';
case 10301:
return 'SCM_INV_PUR';
case 10303:
return 'SCM_INV_SALE';
default:
return '0';
}
}
function tadaoPrint(){
if (parent.parent.SYSTEM.serviceType == 8) {
parent.parent.Public.tips({type: 1,content: '您的帐套为免费版,须购买付费版才能使用套打功能'});
return ;
}
var url = '/noteprint.do?action=notePrint';
var entrysPerNote = $.trim($('#entrysPerNote').val()) || 0;
var isEmptyLinePrint = $('#isEmptyLinePrint')[0].checked ? 1 : 0;
var printFirstLayer = $('#printFirstLayer')[0].checked ? 1 : 0;
var startX = $.trim($('#taodaStartX').val()) || 0;
var startY = $.trim($('#taodaStartY').val()) || 0;
$.cookie('entrysPerNote', entrysPerNote, {expires: 365});
$.cookie('isEmptyLinePrint', isEmptyLinePrint, {expires: 365});
$.cookie('printFirstLayer', printFirstLayer, {expires: 365});
$.cookie('taodaStartX', startX, {expires: 365});
$.cookie('taodaStartY', startY, {expires: 365});
var data = {
billType: getBillType(billType),
templateId: $('#printTemp').getCombo().getValue(),
entrysPerNote: entrysPerNote,
startX: startX,
startY: startY,
isEmptyLinePrint: isEmptyLinePrint,
printFirstLayer: printFirstLayer
//voucherIds: voucherIds
};
$.extend(data, taodaData);
Business.getFile(url, data, true, true);
frameElement.api.close();
}
function pdfPrint(){
pdfData.marginLeft = $('#pdfStatX').val(); //设置左边距
$.cookie('pdfMarginLeft', pdfData.marginLeft, {expires: 365});
Business.getFile(pdfUrl, pdfData, true, false);
frameElement.api.close();
}
//打印运单处理
if(!pdfUrl){
$('#printSelect li:eq(1)').trigger('click');
$('#printSelect').hide();
$('#setDefaultTemp').hide();
}
})(jQuery);
</script>
</body>
</html>

View File

@@ -0,0 +1,96 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li>
<label>供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
<div class="no-query"></div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">应付账款明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/accountPayDetailNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,97 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li>
<label>客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
<div class="no-query"></div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">应收账款明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/accountProceedsDetailNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,220 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.filter-list li.chk-list{height: 20px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100% !important;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-05-01',
endDate: '2015-05-14'
};
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">结算账户:</label>
<span class="mod-choose-input" id="filter-settlementAccount"><input type="text" class
="ui-input" id="settlementAccountAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>现金银行报表</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>账户编号</td>
<td>账户名称</td>
<td>日期</td>
<td>单据编号</td>
<td>业务类型</td>
<td>收入</td>
<td>支出</td>
<td>账户余额</td>
<td>往来单位</td>
</tr>
</thead>
<tbody>
<?php
$sum0 = 0;
$sum1 = 0;
$sum2 = 0;
$sum3 = 0;
$sum4 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="">
<td><?php echo $row['number']?></td>
<td><?php echo $row['name']?></td>
<td></td>
<td></td>
<td>期初余额</td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo $row['amount']?></td>
<td></td>
</tr>
<?php
foreach($list2 as $arr1=>$row1){
if ($row1['accId']==$row['id']) {
$sum1 += $a1 = $row1['payment']>0 ? abs($row1['payment']) : 0;
$sum2 += $a2 = $row1['payment']<0 ? abs($row1['payment']) : 0;
$a3 = $row['amount']+$sum1-$sum2;
?>
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
<td><?php echo $row1['number']?></td>
<td><?php echo $row1['name']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td class="R"><?php echo $a1?></td>
<td class="R"><?php echo $a2?></td>
<td class="R"><?php echo $a3?></td>
<td><?php echo $row1['contact']?></td>
</tr>
<?php }}
$sum = $row['amount']+$sum1-$sum2;
?>
<tr class="link" data-id="0" data-type="">
<td> </td>
<td></td>
<td></td>
<td></td>
<td>小计</td>
<td class="R"><?php echo $sum1?></td>
<td class="R"><?php echo $sum2?></td>
<td class="R"><?php echo $sum?></td>
<td></td>
</tr>
<?php
$sum3 += $sum1;
$sum4 += $sum2;
$sum0 += $sum;
}
?>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"><?php echo $sum3?></td>
<td class="R B"><?php echo $sum4?></td>
<td class="R B"><?php echo $sum0?></td>
<td class="R B"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/cashBankJournal.js?ver=20150427"></script>
</body>
</html>

View File

@@ -0,0 +1,88 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="9"><h3>现金银行报表<h3></td></tr>
<tr><td colspan="9">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>账户编号</th>
<th>账户名称</th>
<th>日期</th>
<th>单据编号</th>
<th>业务类型</th>
<th>收入</th>
<th>支出</th>
<th>账户余额</th>
<th>往来单位</th>
</tr>
</thead>
<tbody>
<?php
$sum0 = $sum1 = $sum2 = $sum3 = $sum4 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="">
<td><?php echo $row['accountNumber']?></td>
<td><?php echo $row['accountName']?></td>
<td></td>
<td></td>
<td>期初余额</td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo $row['amount']?></td>
<td></td>
</tr>
<?php
foreach($list2 as $arr1=>$row1){
if ($row1['accId']==$row['id']) {
$sum1 += $a1 = $row1['payment']>0 ? abs($row1['payment']) : 0;
$sum2 += $a2 = $row1['payment']<0 ? abs($row1['payment']) : 0;
$a3 = $row['amount']+$sum1-$sum2;
?>
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
<td><?php echo $row1['accountNumber']?></td>
<td><?php echo $row1['accountName']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td class="R"><?php echo str_money($a1,2)?></td>
<td class="R"><?php echo str_money($a2,2)?></td>
<td class="R"><?php echo str_money($a3,2)?></td>
<td><?php echo $row1['contactName']?></td>
</tr>
<?php }}
$sum = $row['amount'] + $sum1 - $sum2;
?>
<tr class="link" data-id="0" data-type="">
<td> </td>
<td></td>
<td></td>
<td></td>
<td>小计</td>
<td class="R"><?php echo str_money($sum1,2)?></td>
<td class="R"><?php echo str_money($sum2,2)?></td>
<td class="R"><?php echo str_money($sum,2)?></td>
<td></td>
</tr>
<?php
$sum3 += $sum1;
$sum4 += $sum2;
$sum0 += $sum;
$sum1 = $sum2 = 0; //初始化
}
?>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($sum0,2)?></td>
<td class="R B"></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,95 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li>
<label>结算账户:</label>
<span class="mod-choose-input" id="filter-settlementAccount"><input type="text" class="ui-input" id="settlementAccountAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
<div class="no-query"></div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">现金银行报表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/cashBankJournalNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,83 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style>
#matchCon{width:300px;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input" value="请输入客户、供应商或编号查询">
<input type="checkbox" id="customer" class="vm" />
<label for="customer" class="f14 vm">客户</label>
<input type="checkbox" id="supplier" class="vm" />
<label for="supplier" class="f14 vm">供应商</label>
</li>
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn ui-btn-refresh" id="refresh" title="刷新"><b></b></a> --></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">往来单位欠款表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<script>
seajs.use("dist/contactDebtNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,202 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
#filter-menu .calGrossProfit-wrap{width:85px;}
#matchCon { width: 280px; margin-right:10px; }
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100% !important;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl">
<ul class="ul-inline">
<li>
<input type="text" id="matchCon" class="ui-input" value="请输入客户、供应商或编号查询">
<input type="checkbox" id="customer" class="vm" />
<label for="customer" class="f14 vm">客户</label>
<input type="checkbox" id="supplier" class="vm" />
<label for="supplier" class="f14 vm">供应商</label>
</li>
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn ui-btn-refresh" id="refresh"
title="刷新"><b></b></a> --></li>
</ul>
</div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#"
class="ui-btn fl" id="btn-export">导出</a></div>
<!-- <div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001-1009
查询)</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li>
<label class="tit">排序规则:</label>
<input id="salesQty" type="radio" value="0" name="sort-rule" /><label for="salesQty"
class="vm">按销售数量</label>
<input id="salesIncome" type="radio" value="1" name="sort-rule" /><label for="salesIncome"
class="vm">按销售收入</label>
</li>
<li class="chk-list" id="profit-wrap">
<label class="chk">
<input type="checkbox" value="1" name="profit" />
计算毛利</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
--> </div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>往来单位欠款表</td></tr>
</table>
<table width="1128px" class="list">
<thead>
<tr>
<td>行号</td>
<td>往来单位编号</td>
<td>名称</td>
<td>往来单位性质</td>
<td>应收款余额</td>
<td>应付款余额</td>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$amount1 = 0;
$amount2 = 0;
foreach($list as $arr=>$row){
?>
<tr>
<td><?php echo $i?></td>
<td><?php echo $row['number']?></td>
<td><?php echo $row['name']?></td>
<td><?php echo $row['billType']=='SALE' ? '客户' : '供应商'?></td>
<td class="R"><?php echo $row['billType']=='SALE' ? $row['amount'] : ''?></td>
<td class="R"><?php echo $row['billType']=='SALE' ? '' : $row['amount']?></td>
</tr>
<?php
$amount1 += $row['billType']=='SALE' ? $row['amount'] : 0;
$amount2 += $row['billType']=='SALE' ? 0 : $row['amount'];
$i++;
}
?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo $amount1?></td>
<td class="R B"><?php echo $amount2?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/contact-debt.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,41 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="6"><h3>往来单位欠款表<h3></td></tr>
</table>
<table width="1000px" class="list" border="1">
<tr>
<th width="80">行号</th>
<th width="120">往来单位编号</th>
<th width="250">往来单位名称</th>
<th width="120">往来单位性质</th>
<th width="100">应收款余额</th>
<th width="100">应付款余额</th>
</tr>
<?php
$i = 1;
$sum1 = $sum2 = 0;
foreach($list as $arr=>$row){
$sum1 += $amount1 = $row['type']==-10 ? $row['amount'] : 0;
$sum2 += $amount2 = $row['type']==10 ? $row['amount'] : 0;
?>
<tr>
<td><?php echo $i?></td>
<td><?php echo $row['number']?></td>
<td><?php echo $row['name']?></td>
<td><?php echo $row['type']==10 ? '供应商' : '客户'?></td>
<td class="R"><?php echo str_money($amount1,2)?></td>
<td class="R"><?php echo str_money($amount2,2)?></td>
</tr>
<?php
$i++;
}
?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,2)?></td>
<td class="R B"><?php echo str_money($sum2,2)?></td>
</tr>
</table>

View File

@@ -0,0 +1,239 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.filter-list li.chk-list{height: 20px;}
.ul-inline li .trigger{padding:0;}
.mod-report .search-wrap .s-inner {padding-bottom:15px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;width: 100%;overflow: hidden;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100%!important;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-16'
};
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl">
<ul class="ul-inline">
<li><strong class="tit mrb fl dn">查询条件</strong></li>
<li>
<label>销货单位:</label>
<span class="ui-combo-wrap" id="customer">
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
<i class="ui-icon-ellipsis"></i></span></dd>
</li>
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
<li id="match">
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name
="match">是否显示商品明细</label>
</li>
<li>
<a id="refresh" class="ui-btn ui-btn fl mrb">查询</a> <span class="txt fl" id="cur-search-tip"
></span>
</li>
</ul>
</div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<?php if ($customerId<1) {?>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>客户对账单</td></tr>
<tr><td id='customerText'>客户:</td></tr>
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>单据日期</td>
<td>单据编号</td>
<td>业务类别</td>
<td>销售金额</td>
<td>整单折扣额</td>
<td>应收金额</td>
<td>实际收款金额</td>
<td>应收款余额</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3" class="R B">合计:</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
</tr>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if ($customerId>0) {?>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>客户对账单</td></tr>
<tr><td id='customerText'>客户:</td></tr>
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>单据日期</td>
<td>单据编号</td>
<td>业务类别</td>
<td>销售金额</td>
<td>整单折扣额</td>
<td>应收金额</td>
<td>实际收款金额</td>
<td>应收款余额</td>
</tr>
</thead>
<tbody>
<tr class="link" data-id="0" data-type="BAL">
<td></td>
<td>期初余额</td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo count($list1)>0 ? $list1['arrears'] : ''?></td>
</tr>
<?php
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = 0;
$sum0 = count($list1)>0 ? $list1['arrears'] : 0;
foreach($list2 as $arr=>$row){
$sum1 += $row['totalAmount'];
$sum2 += $row['disAmount'];
$sum3 += $row['amount'];
$sum4 += $row['rpAmount'];
$sum5 += $row['arrears'];
?>
<tr class="link" data-id="<?php echo $row['id']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td class="R"><?php echo $row['totalAmount']?></td>
<td class="R"><?php echo $row['disAmount']?></td>
<td class="R"><?php echo $row['amount']?></td>
<td class="R"><?php echo $row['rpAmount']?></td>
<td class="R"><?php echo $row['arrears']?></td>
</tr>
<?php }?>
<tr>
<td colspan="3" class="R B">合计:</td>
<td class="R B"><?php echo $sum1?></td>
<td class="R B"><?php echo $sum2?></td>
<td class="R B"><?php echo $sum3?></td>
<td class="R B"><?php echo $sum4?></td>
<td class="R B"><?php echo $sum0 + $sum5?></td>
</tr>
</tbody>
</table>
</div>
</div>
<?php }?>
</div>
<script src="<?php echo base_url()?>statics/js/dist/customersReconciliation.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,126 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = 0;
$arrears = count($list1)>0 ? $list1['amount'] : 0;
?>
<table width="1440px" class="list">
<tr><td class='H' colspan="<?php echo $showDetail == "true" ? 14 : 8?>" align="center"><h3>客户对账单<h3></td></tr>
<tr><td colspan="<?php echo $showDetail == "true" ? 14 : 8?>"><?php echo $customerName?></td></tr>
<tr><td colspan="<?php echo $showDetail == "true" ? 14 : 8?>">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>单据日期</th>
<th>单据编号</th>
<th>业务类别</th>
<?php if ($showDetail == "true") {?>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>数量</th>
<th>单价</th>
<?php }?>
<th>销售金额</th>
<th>整单折扣额</th>
<th>应收金额</th>
<th>实际收款金额</th>
<th>应收款余额</th>
</tr>
</thead>
<tbody>
<tr class="link" data-id="0" data-type="BAL">
<td></td>
<td>期初余额</td>
<td></td>
<?php if ($showDetail == "true") {?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<?php }?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo str_money($arrears,2)?></td>
</tr>
<?php
foreach($list2 as $arr=>$row){
$sum1 += $row['arrears'];
$sum2 += $row['amount']; //应收金额
$sum3 += $row['totalAmount']; //销售金额
$sum4 += $row['rpAmount']; //实际收款金额
$sum5 += $row['disAmount']; //折扣率
?>
<tr>
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<?php if ($showDetail == "true") {?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<?php }?>
<td class="R"><?php echo str_money($row['totalAmount'],2)?></td>
<td class="R"><?php echo str_money($row['disAmount'],2)?></td>
<td class="R"><?php echo str_money($row['amount'],2)?></td>
<td class="R"><?php echo str_money($row['rpAmount'],2)?></td>
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
</tr>
<?php
if ($showDetail == "true") {
if ($row['billType']=='SALE') {
$postData = unserialize($row['postData']);
foreach ($postData['entries'] as $arr1=>$row1) {
?>
<tr>
<td></td>
<td></td>
<td></td>
<td class="R"><?php echo $row1['invNumber']?></td>
<td class="R"><?php echo $row1['invName']?></td>
<td class="R"><?php echo $row1['invSpec']?></td>
<td class="R"><?php echo $row1['mainUnit']?></td>
<td class="R"><?php echo str_money(abs($row1['qty']),$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row1['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
</tr>
<?php }}}?>
<?php }?>
<tr>
<td colspan="3" class="R B">合计:</td>
<?php if ($showDetail == "true") {?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<?php }?>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"><?php echo str_money($sum5,2)?></td>
<td class="R B"><?php echo str_money($sum2,2)?></td>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($arrears + $sum1,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,102 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>销货单位:</label>
<span class="ui-combo-wrap" id="customer">
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
<i class="ui-icon-ellipsis"></i></span></dd>
</li>
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li id="match">
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name="match">是否显示商品明细</label>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
<!-- grid begin -->
<div class="ui-print" style="overflow: hidden; ">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">客户对账单</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
<!-- grid end -->
</div>
<script>
seajs.use("dist/customersReconciliationNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,91 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr>
<td colspan="12" class='H' align="center"><h3>商品收发明细表<h3></td>
</tr>
<tr>
<td colspan="12">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td>
</tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>日期</th>
<th>单据号</th>
<th>业务类型</th>
<th>往来单位</th>
<th>仓库</th>
<th>入库</th>
<th>出库</th>
<th>结存</th>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="BAL">
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R">期初余额</td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
</tr>
<?php foreach($list2 as $arr1=>$row1) {
if ($row['id']==$row1['invId']) {
$inqty = $row1['qty']>0 ? abs($row1['qty']) : ''; //入库
$outqty = $row1['qty']<0 ? abs($row1['qty']) : ''; //出库
$sum1 += $inqty; //入库数量累加
$sum2 += $outqty; //出库数量累加
$totalqtys = $row['qty'] + $sum1 - $sum2; //结存
?>
<tr>
<td><?php echo $row1['invNumber']?></td>
<td><?php echo $row1['invName']?></td>
<td><?php echo $row1['invSpec']?></td>
<td><?php echo $row1['mainUnit']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td><?php echo $row1['contactName']?></td>
<td class="R"><?php echo $row1['locationName']?></td>
<td class="R"><?php echo str_money($inqty,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($outqty,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($totalqtys,$this->systems['qtyPlaces'])?></td>
</tr>
<?php }}
$sum3 += $sum1; //合计入库数量
$sum4 += $sum2; //合计出库数量
$sum5 += $totalqtys; //合计出库数量
$totalqtys = $sum1 = $sum2 = 0; //初始化
?>
<?php }?>
<tr>
<td colspan="3" class="R B">合计:</td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"><?php echo str_money($sum3,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo str_money($sum4,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo str_money($sum5,$this->systems['qtyPlaces'])?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,120 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' colspan="20" align="center"><h3>商品收发汇总表<h3></td></tr>
<tr><td colspan="20">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<tr>
<th width="216" rowspan="2">商品编号</th>
<th width="216" rowspan="2">商品名称</th>
<th width="216" rowspan="2">规格型号</th>
<th width="114" rowspan="2">单位</th>
<th width="24" rowspan="2">仓库</th>
<th>期初</th>
<th>调拨入库</th>
<th>普通采购</th>
<th>销售退回</th>
<th>盘盈</th>
<th>其他入库</th>
<th>成本调整</th>
<th>入库合计</th>
<th>调拨出库</th>
<th>采购退回</th>
<th>普通销售</th>
<th>盘亏</th>
<th>其他出库</th>
<th>出库合计</th>
<th>结存</th>
</tr>
<tr>
<?php for ($i=0;$i<15;$i++) {?>
<td align="center">数量</td>
<?php }?>
</tr>
<?php
for ($i=0;$i<15;$i++) {
$sum['qty_'.$i] = 0;
$sum['qty'.$i] = 0;
}
$qty7 = $qty_7 = $qty13 = $qty_13 = 0;
foreach($list as $arr=>$row){
//期初数量
$qty_0 = $row['qty0'];
//结存数量
$qty_14 = $row['qty14']; //结存数量
$sum['qty14'] += str_money($qty_14,$this->systems['qtyPlaces']);
for ($i=1;$i<7;$i++) {
if ($i==1) { //调拨 成本另计算
$qty_7 += abs($row['qty1']);
} else {
$qty_7 += abs($row['qty'.$i]);
}
}
for ($i=8;$i<13;$i++) {
if ($i==10 || $i==11 || $i==12 || $i==8) { //销售、盘亏、其他出库 成本另计算
$qty_13 += abs($row['qty'.$i]);
} else {
$qty_13 += abs($row['qty'.$i]);
}
}
for ($i=0; $i<15; $i++) {
if ($i==0) {
$sum['qty0'] += $sum['qty_'.$i] = $qty_0; //期初数量
} elseif($i==7) {
$sum['qty7'] += $sum['qty_'.$i] = $qty_7; //入库合计
} elseif($i==13) {
$sum['qty13'] += $sum['qty_'.$i] = $qty_13; //出库合计
} elseif($i==14) {
$sum['qty_'.$i] = $qty_14; //结存合计
} else {
if ($i==10 || $i==11 || $i==12 || $i==1 || $i==8) { //销售、盘亏、其他出库、入库调拨、出库调拨 成本另计算
$sum['qty'.$i] += $sum['qty_'.$i] = abs($row['qty'.$i]);
} else {
$sum['qty'.$i] += $sum['qty_'.$i] = abs($row['qty'.$i]);
}
}
}
$qty_7 = $qty_13 = 0; //停止累加 初始化值
?>
<tr>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<?php for ($i=0;$i<15;$i++) {?>
<td><?php echo str_money($sum['qty_'.$i],$this->systems['qtyPlaces'])?> </td>
<?php }?>
</tr>
<?php }?>
<tr>
<td colspan="5">合计:</td>
<?php for ($i=0;$i<15;$i++) {?>
<td><?php echo str_money($sum['qty'.$i],$this->systems['qtyPlaces'])?></td>
<?php }?>
</tr>
</table>

View File

@@ -0,0 +1,220 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.filter-list li.chk-list{height: 20px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100% !important;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-16'
};
/*$(function(){
$('.list').width($(window).width() - 74);
});
$(window).resize(function(){
$('.list').width($(window).width() - 74);
});*/
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>应收账款明细表</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>客户</td>
<td>单据日期</td>
<td>单据编号</td>
<td>业务类型</td>
<td>增加应收款</td>
<td>支付应收款</td>
<td>应收款余额</td>
</tr>
</thead>
<tbody>
<?php
$sum0 = 0;
$sum1 = 0;
$sum2 = 0;
$sum3 = 0;
$sum4 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="">
<td><?php echo $row['contact']?></td>
<td></td>
<td>期初余额</td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
foreach($list2 as $arr1=>$row1){
if ($row1['buId']==$row['id']) {
$sum1 += $a1 = $row1['billType']=='SALE'?($row1['payment']>0?abs($row1['payment']):-abs($row1['payment'])):0;
$sum2 += $a2 = $row1['billType']=='RECEIPT'?abs($row1['payment']):0;
?>
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
<td><?php echo $row1['contactNo'].' '.$row1['contactName']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td class="R"><?php echo $a1?></td>
<td class="R"><?php echo $a2?></td>
<td class="R"><?php echo $row['amount']+$sum1-$sum2?></td>
</tr>
<?php }}
$sum = $row['amount']+$sum1-$sum2;
?>
<tr class="link" data-id="0" data-type="">
<td></td>
<td></td>
<td>小计</td>
<td></td>
<td class="R"><?php echo $sum1?></td>
<td class="R"><?php echo $sum2?></td>
<td class="R"><?php echo $sum?></td>
</tr>
<?php
$sum3 += $sum1;
$sum4 += $sum2;
$sum0 += $sum;
}
?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo $sum3?></td>
<td class="R B"><?php echo $sum4?></td>
<td class="R B"><?php echo $sum0?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/accountProceedsDetail.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,216 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.filter-list li.chk-list{height: 20px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100% !important;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-16'
};
/*$(function(){
$('.list').width($(window).width() - 74);
});
$(window).resize(function(){
$('.list').width($(window).width() - 74);
});*/
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>应付账款明细表</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>供应商</td>
<td>单据日期</td>
<td>单据编号</td>
<td>业务类型</td>
<td>增加应付款</td>
<td>支付应付款</td>
<td>应付款余额</td>
</tr>
</thead>
<tbody>
<?php
$sum0 = 0;
$sum1 = 0;
$sum2 = 0;
$sum3 = 0;
$sum4 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="">
<td><?php echo $row['contact']?></td>
<td></td>
<td>期初余额</td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
foreach($list2 as $arr1=>$row1){
if ($row1['buId']==$row['id']) {
$sum1 += $a1 = $row1['billType']=='PUR'?($row1['payment']>0?-$row1['payment']:abs($row1['payment'])):0;
$sum2 += $a2 = $row1['billType']=='PAYMENT'?abs($row1['payment']):0;
?>
<tr class="link" data-id="<?php echo $row1['iid']?>" data-type="<?php echo $row1['billType']?>">
<td><?php echo $row1['contactNo'].' '.$row1['contactName']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td class="R"><?php echo $a1?></td>
<td class="R"><?php echo $a2?></td>
<td class="R"><?php echo $row['amount'] + $sum1 - $sum2?></td>
</tr>
<?php }}
$sum = $row['amount'] + $sum1 - $sum2;
?>
<tr class="link" data-id="0" data-type="">
<td></td>
<td></td>
<td>小计</td>
<td></td>
<td class="R"><?php echo $sum1?></td>
<td class="R"><?php echo $sum2?></td>
<td class="R"><?php echo $sum?></td>
</tr>
<?php
$sum3 += $sum1;
$sum4 += $sum2;
$sum0 += $sum;
}
?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo $sum3?></td>
<td class="R B"><?php echo $sum4?></td>
<td class="R B"><?php echo $sum0?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/accountPayDetail.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,79 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="7"><h3>应收账款明细表<h3></td></tr>
<tr><td colspan="7">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>客户</th>
<th>单据日期</th>
<th>单据编号</th>
<th>业务类别</th>
<th>增加应付款</th>
<th>增加预付款</th>
<th>应付款余额</th>
</tr>
</thead>
<tbody>
<?php
$sum0 = $sum1 = $sum2 = $sum3 = $sum4 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="BAL">
<td><?php echo $row['name']?></td>
<td></td>
<td>期初余额</td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
foreach($list2 as $arr1=>$row1){
if ($row['id']==$row1['buId']) {
$sum1 += $a1 = $row1['billType']=='SALE' ? $row1['arrears'] : 0;
$sum2 += $a2 = $row1['billType']=='RECEIPT' ? abs($row1['arrears']) : 0;
$a3 = $row['amount'] + $sum1 - $sum2;
?>
<tr>
<td><?php echo $row1['contactName']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td class="R"><?php echo str_money($a1,2)?></td>
<td class="R"><?php echo str_money($a2,2)?></td>
<td class="R"><?php echo str_money($a3,2)?></td>
</tr>
<?php }}
$sum = $row['amount'] + $sum1 - $sum2;
?>
<tr class="link" data-id="0" data-type="">
<td> </td>
<td></td>
<td></td>
<td>小计</td>
<td class="R"><?php echo str_money($sum1,2)?></td>
<td class="R"><?php echo str_money($sum2,2)?></td>
<td class="R"><?php echo str_money($sum,2)?></td>
</tr>
<?php
$sum3 += $sum1;
$sum4 += $sum2;
$sum0 += $sum;
}
?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($sum0,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,81 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="7"><h3>应付账款明细表<h3></td></tr>
<tr><td colspan="7">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>供应商</th>
<th>单据日期</th>
<th>单据编号</th>
<th>业务类别</th>
<th>增加应付款</th>
<th>增加预付款</th>
<th>应付款余额</th>
</tr>
</thead>
<tbody>
<?php
$sum0 = $sum1 = $sum2 = $sum3 = $sum4 = 0;
foreach($list1 as $arr=>$row){
?>
<tr class="link" data-id="0" data-type="BAL">
<td><?php echo $row['name']?></td>
<td></td>
<td>期初余额</td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
foreach($list2 as $arr1=>$row1){
if ($row['id']==$row1['buId']) {
$sum1 += $a1 = $row1['billType']=='PUR' ? $row1['arrears'] : 0;
$sum2 += $a2 = $row1['billType']=='PAYMENT' ? abs($row1['arrears']) : 0;
$a3 = $row['amount'] + $sum1 - $sum2;
?>
<tr>
<td><?php echo $row1['contactName']?></td>
<td><?php echo $row1['billDate']?></td>
<td><?php echo $row1['billNo']?></td>
<td><?php echo $row1['transTypeName']?></td>
<td class="R"><?php echo str_money($a1,2)?></td>
<td class="R"><?php echo str_money($a2,2)?></td>
<td class="R"><?php echo str_money($a3,2)?></td>
</tr>
<?php }}
$sum = $row['amount'] + $sum1 - $sum2;
?>
<tr class="link" data-id="0" data-type="">
<td> </td>
<td></td>
<td></td>
<td>小计</td>
<td class="R"><?php echo str_money($sum1,2)?></td>
<td class="R"><?php echo str_money($sum2,2)?></td>
<td class="R"><?php echo str_money($sum,2)?></td>
</tr>
<?php
$sum3 += $sum1;
$sum4 += $sum2;
$sum0 += $sum;
}
?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($sum0,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,111 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable
=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style type='text/css'>
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.grid-subtitle{height: 18px;}
#goodsAuto{width:200px;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-input-dis dn" name="filter-fromDate" id="filter-fromDate"
readonly disabled/>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate"
/>
</li>
<li>
<label>仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"
/><span class="ui-icon-ellipsis"></span></span>
</li>
<li>
<label>类别:</label>
<input type="text" value="" class="ui-input" name="filterCat" id="filterCat" />
</li>
<li>
<label>商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"
/><span class="ui-icon-ellipsis"></span></span>
</li>
<li class="chk-list" id="chk-wrap">
<label class="chk"><input type="checkbox" value="showSku" name="showSku" />显示辅助属性</label>
</li>
<li><a class="ui-btn mrb" id="refresh">查询</a></li>
</ul>
</div>
<div class="r"><!-- <a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a> --><a href
="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
</div>
<div class="no-query"></div>
<!-- grid begin -->
<div class="ui-print" style="display: none;">
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">商品库存余额表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<!-- grid end -->
</div>
<script>
seajs.use("dist/goodsBalance");
</script>
</body>
</html>

View File

@@ -0,0 +1,104 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
#goodsAuto{width:200px;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id
="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
<li>
<label>仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"
/><span class="ui-icon-ellipsis"></span></span>
</li>
<li>
<label>商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"
/><span class="ui-icon-ellipsis"></span></span>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="r"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
</div>
<!-- grid begin -->
<div class="ui-print" style="overflow: hidden; ">
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">商品收发明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
<!-- grid end -->
</div>
<script>
seajs.use("dist/goodsFlowDetail");
</script>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style type='text/css'>
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
#goodsAuto{width:200px;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li>
<label>仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li>
<label>商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li><a class="ui-btn mrb" id="refresh">查询</a></li>
</ul>
</div>
<div class="r"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
</div>
<div class="no-query"></div>
<!-- grid begin -->
<div class="ui-print" style="display: none;">
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">商品收发汇总表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<!-- grid end -->
</div>
<script>
seajs.use("dist/goodsFlowSummary");
</script>
</body>
</html>

View File

@@ -0,0 +1,72 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="<?php echo 6 + count($storage)*2?>"><h3>商品库存余额表<h3></td></tr>
<tr><td colspan="<?php echo 6 + count($storage)*2?>">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<tr>
<th width="216" rowspan="2">商品编号</th>
<th width="216" rowspan="2">商品名称</th>
<th width="216" rowspan="2">规格型号</th>
<th width="114" rowspan="2">单位</th>
<th colspan="2">所有仓库</th>
<?php
$i = 2;
$qty_1 = $cost_1 = $cost1 = 0;
foreach($storage as $arr=>$row) {
$qty['qty'.$i] = $qty['cost'.$i] = 0;
?>
<th width="50" colspan="2"><?php echo $row['name']?></th>
<?php $i++;}?>
</tr>
<tr class="link" data-id="0" data-type="BAL">
<td align="center">数量</td>
<td align="center">成本</td>
<?php foreach($storage as $arr=>$row){?>
<td align="center">数量</td>
<td align="center">成本</td>
<?php }?>
</tr>
<?php foreach($list as $arr=>$row) {
$i = 2;
foreach($storage as $arr1=>$row1) {
$price = isset($profit['inprice'][$row['invId']][$row1['id']]) ? $profit['inprice'][$row['invId']][$row1['id']] : 0; //单位成本
$cost1 += $row['qty'.$i] * $price;
$i++;
}
$qty_1 += $row['qty'];
$cost_1 += $cost1;
?>
<tr class="link" data-id="0" data-type="BAL">
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td align="center"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?> </td>
<td align="center"><?php echo str_money($cost1,2)?> </td>
<?php
$i = 2;
foreach($storage as $arr1=>$row1){
$price = isset($profit['inprice'][$row['invId']][$row1['id']]) ? $profit['inprice'][$row['invId']][$row1['id']] : 0; //单位成本
$qty['qty'.$i] += $row['qty'.$i];
$qty['cost'.$i] += $row['qty'.$i] * $price;
?>
<td align="center"><?php echo str_money($row['qty'.$i],$this->systems['qtyPlaces'])?></td>
<td align="center"><?php echo str_money($row['qty'.$i]*$price,2)?></td>
<?php $i++;}?>
</tr>
<?php }?>
<tr class="link" data-id="0" data-type="BAL">
<td colspan="4" align="right">合计:</td>
<td align="center"><?php echo str_money($qty_1,$this->systems['qtyPlaces'])?> </td>
<td align="center"><?php echo str_money($cost_1,2)?> </td>
<?php
$i = 2;
foreach($storage as $arr1=>$row1){?>
<td align="center"><?php echo str_money($qty['qty'.$i],$this->systems['qtyPlaces'])?></td>
<td align="center"><?php echo str_money($qty['cost'.$i],2)?></td>
<?php $i++;}?>
</tr>
</table>

View File

@@ -0,0 +1,48 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="8"><h3>其他收入支出明细表<h3></td></tr>
<tr><td colspan="8">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>日期</th>
<th>单据编号</th>
<th>收支类别</th>
<th>收支项目</th>
<th>收入</th>
<th>支出</th>
<th>往来单位</th>
<th>摘要</th>
</tr>
</thead>
<tbody>
<?php
$payment1 = $payment2 = $amountIn = $amountOut = 0;
foreach($list as $arr=>$row){
if ($row['transType']==153401) {
$payment1 += $amountIn = $row['payment']; //收入
} else {
$payment2 += $amountOut = abs($row['payment']); //支出
}
?>
<tr>
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td class="R"><?php echo $row['categoryName']?></td>
<td class="R"><?php echo $amountIn?></td>
<td class="R"><?php echo $amountOut?></td>
<td class="R"><?php echo $row['contactName']?></td>
<td class="R"><?php echo $row['remark']?></td>
</tr>
<?php }?>
<tr>
<td colspan="4" class="R B">合计:</td>
<td class="R B"><?php echo str_money($payment1,2)?></td>
<td class="R B"><?php echo str_money($payment2,2)?></td>
<td class="R B"></td>
<td class="R B"></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,96 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li><div id="incomeExpenseType"></div></li>
<li><div id="incomeName" class="dn"></div></li>
<li><div id="expenseName" class="dn"></div></li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
<div class="no-query"></div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">其它收支明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/otherIncomeExpenseDetail");
</script>
</body>
</html>

View File

@@ -0,0 +1,105 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style>
.ui-icon-ellipsis{right:5px;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009查询</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">商品采购明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<script>
seajs.use("dist/puDetailNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,123 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>/statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>/statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>/statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>/statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>/statics/css/report.css" />
<style type="text/css">
#filter-menu .con{ width:355px; }
#filter-menu label.tit{ width:80px; }
/*.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
}
*/
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">订单日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" maxlength="10" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" maxlength="10" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">预计交货日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDeliveryDate"
id="filter-fromDeliveryDate" maxlength="10" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDeliveryDate"
id="filter-toDeliveryDate" maxlength="10" />
</li>
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li id="status-wrap">
<label class="tit">状态:</label>
<label class="chk"><input type="checkbox" value="0" name="status" />未入库</label>
<label class="chk"><input type="checkbox" value="1" name="status" />部分入库</label>
<label class="chk"><input type="checkbox" value="2" name="status" />已入库</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">采购订单跟踪表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/puOrderTracking");
</script>
</body>
</html>

View File

@@ -0,0 +1,108 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style>
.ui-icon-ellipsis{right:5px;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009查询</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li class="chk-list" id="chk-wrap">
<label class="chk">
<input type="checkbox" value="showSku" name="showSku" />
显示辅助属性</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">采购汇总表(按商品)</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<script>
seajs.use("dist/puSummaryNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,104 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style>
.ui-icon-ellipsis{right:5px;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009查询</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">采购汇总表(按供应商)</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<script>
seajs.use("dist/puSummarySupplyNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,216 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.filter-list li.chk-list{height: 20px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100%;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-15'
};
/*$(function(){
var SYSTEM = parent.SYSTEM;
alert(SYSTEM.rights.SAREPORTDETAIL_COST);
$('#lhtest').html("vvv");
if(SYSTEM.rights.SAREPORTDETAIL_COST || SYSTEM.isAdmin){
$('#lhtest').show();
} else {
$('#lhtest').hide();
};
});
$(function(){
$('.list').width($(window).width() - 74);
});
$(window).resize(function(){
$('.list').width($(window).width() - 74);
});*/
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>商品采购明细表</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>采购日期</td>
<td>采购单据号</td>
<td>业务类别</td>
<td>供应商</td>
<td>商品编号</td>
<td>商品名称</td>
<td>规格型号</td>
<td>单位</td>
<td>仓库</td>
<td>数量</td>
<td>单价</td>
<td>采购金额</td>
</tr>
</thead>
<tbody>
<?php
$qty = 0;
$price = 0;
$amount = 0;
foreach($list as $arr=>$row){
?>
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo $row['qty']?></td>
<td class="R"><?php echo $row['price']?></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
$qty += $row['qty'];
$price += $row['price'];
$amount += $row['amount'];
}
?>
<tr>
<td colspan="9" class="R B">合计:</td>
<td class="R B"><?php echo $qty?></td>
<td class="R B"><?php echo $price?></td>
<td class="R B"><?php echo $amount?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/puDetail.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,56 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="12"><h3>商品采购明细表<h3></td></tr>
<tr><td colspan="12">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>采购日期</th>
<th>采购单据号</th>
<th>业务类别</th>
<th>供应商</th>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>仓库</th>
<th>数量</th>
<th>单价</th>
<th>采购金额</th>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = 0;
foreach($list as $arr=>$row){
?>
<tr>
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['amount'],2)?></td>
</tr>
<?php
$sum1 += $row['qty'];
$sum2 += $row['price'];
$sum3 += $row['amount'];
}
?>
<tr>
<td colspan="9" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,199 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>/statics/css/report.css" />
<style>
#filter-menu .calGrossProfit-wrap{width:85px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100%;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-15'
};
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li class="chk-list" id="chk-wrap">
<label class="chk">
<input type="checkbox" value="showSku" name="showSku" />
显示辅助属性</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>采购汇总表(按商品)</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1128px" class="list">
<thead>
<tr>
<td>商品编号</td>
<td width="150px">商品名称</td>
<td>规格型号</td>
<td>单位</td>
<td>仓库</td>
<td>数量</td>
<td>单价</td>
<td>采购金额</td>
</tr>
</thead>
<tbody>
<?php
$qty = 0;
$price = 0;
$amount = 0;
foreach($list as $arr=>$row){
?>
<tr class="link" data-invNo="<?php echo $row['invNumber']?>" data-locationNo="<?php echo $row['locationNo']?>" data-type="inv">
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo $row['qty']?></td>
<td class="R"><?php echo $row['price']?></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
$qty += $row['qty'];
$price += $row['price'];
$amount += $row['amount'];
}
?>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"><?php echo $qty?></td>
<td class="R B"><?php echo $price?></td>
<td class="R B"><?php echo $amount?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/pu-summary.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,58 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1128px" class="list" >
<tr><td class='H' align="center" colspan="8"><h3>采购汇总表(按商品)<h3></td></tr>
<tr><td colspan="8">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1128px" class="list" border="1">
<thead>
<tr>
<th>商品编号</th>
<th width="150px">商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>仓库</th>
<th>数量</th>
<th>单价</th>
<th>采购金额</th>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = 0;
foreach($list as $arr=>$row){
?>
<tr>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($row['sumqty'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['sumamount'],2)?></td>
</tr>
<?php
$sum1 += $row['sumqty'];
$sum2 += $row['price'];
$sum3 += $row['sumamount'];
}
?>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,199 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
#filter-menu .calGrossProfit-wrap{width:85px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100%;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-05-01',
endDate: '2015-05-16'
};
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>采购汇总表(按供应商)</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1200px" class="list">
<thead>
<tr>
<td width="150">供应商</td>
<td>商品编号</td>
<td width="150">商品名称</td>
<td>规格型号</td>
<td>单位</td>
<td>仓库</td>
<td>数量</td>
<td>单价</td>
<td>采购金额</td>
</tr>
</thead>
<tbody>
<?php
$qty = 0;
$price = 0;
$amount = 0;
foreach($list as $arr=>$row){
?>
<tr class="link" data-buNo="<?php echo $row['contactNo']?>" data-locationNo="<?php echo $row['locationNo']?>" data-invNo="<?php echo $row['invNumber']?>" data-type="supply"
>
<td><?php echo $row['contactNo'];?> <?php echo $row['contactName'];?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo $row['qty']?></td>
<td class="R"><?php echo $row['price']?></td>
<td class="R"><?php echo $row['amount']?></td>
</tr>
<?php
$qty += $row['qty'];
$price += $row['price'];
$amount += $row['amount'];
}
?>
<tr>
<td colspan="6" class="R B">合计:</td>
<td class="R B"><?php echo $qty?></td>
<td class="R B"><?php echo $price?></td>
<td class="R B"><?php echo $amount?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>statics/js/dist/pu-summary-supply.js?ver=20150427"></script>
</body>
</html>

View File

@@ -0,0 +1,51 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1200px" class="list">
<tr><td class='H' align="center" colspan="9"><h3>采购汇总表(按供应商)<h3></td></tr>
<tr><td colspan="9">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1200px" class="list" border="1">
<thead>
<tr>
<th width="150">供应商</th>
<th>商品编号</th>
<th width="150">商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>仓库</th>
<th>数量</th>
<th>单价</th>
<th>采购金额</th>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = 0;
foreach($list as $arr=>$row){
?>
<tr>
<td><?php echo $row['contactNo'];?> <?php echo $row['contactName'];?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['amount'],2)?></td>
</tr>
<?php
$sum1 += $row['qty'];
$sum2 += $row['price'];
$sum3 += $row['amount'];
}
?>
<tr>
<td colspan="6" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,103 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" maxlength="10" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" maxlength="10" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009查询</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li>
<label class="tit">销售人员:</label>
<span class="mod-choose-input" id="filter-saler"><input type="text" class="ui-input" id="salerAuto"><span class="ui-icon-ellipsis"></span></span>
</li>
<!--<li class="chk-list dn" id="profit-wrap">
<label class="chk">
<input type="checkbox" value="1" name="profit" />
计算毛利</label>
</li>-->
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="no-query"></div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">商品销售明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/salesDetail");
</script>
</body>
</html>

View File

@@ -0,0 +1,128 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable
=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>/statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>/statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>/statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>/statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>/statics/css/report.css" />
<style type="text/css">
#filter-menu .con{ width:355px; }
#filter-menu label.tit{ width:80px; }
/*.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
}
*/
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">订单日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" maxlength="10" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" maxlength="10" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">预计交货日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDeliveryDate"
id="filter-fromDeliveryDate" maxlength="10" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDeliveryDate"
id="filter-toDeliveryDate" maxlength="10" />
</li>
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li id="status-wrap">
<label class="tit">状态:</label>
<label class="chk"><input type="checkbox" value="0" name="status" />未出库</label>
<label class="chk"><input type="checkbox" value="1" name="status" />部分出库</label>
<label class="chk"><input type="checkbox" value="2" name="status" />已出库</label>
</li>
<li>
<label class="tit">销售人员:</label>
<span class="mod-choose-input" id="filter-saler"><input type="text" class="ui-input"
id="salerAuto"><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">销售订单跟踪表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
</div>
<script>
seajs.use("dist/salesOrderTracking");
</script>
</body>
</html>

View File

@@ -0,0 +1,146 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
#goodsAuto{width:200px;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
th.ui-th-column div{
white-space:normal !important;
height:auto !important;
padding:0px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id
="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li>
<label class="tit">销售人员:</label>
<span class="mod-choose-input" id="filter-saler"><input type="text" class="ui-input" id="salerAuto"><span class="ui-icon-ellipsis"></span></span>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="r"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">销售利润表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<!--
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr>
<td class='H'>销售汇总表(按商品)</td>
</tr>
<tr>
<td>日期:至</td>
</tr>
</table>
<table width="1128px" class="list">
<thead>
<tr>
<td>商品编号</td>
<td width="150px">商品名称</td>
<td>规格型号</td>
<td>单位</td>
<td>仓库</td>
<td>数量</td>
<td>单价</td>
<td>销售收入</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"></td>
</tr>
</tbody>
</table>
</div>
</div>
-->
<script>
seajs.use("dist/salesProfit");
</script>
</body>
</html>

View File

@@ -0,0 +1,108 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style>
.ui-icon-ellipsis{right:5px;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009查询</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li class="chk-list dn" id="profit-wrap">
<label class="chk">
<input type="checkbox" value="profit" name="profit" />
计算毛利</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">销售汇总表(按客户)</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<script>
seajs.use("dist/salesSummaryCustomerNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,151 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
//console.log(e);
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style>
.ui-icon-ellipsis{right:5px;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">选择查询条件:</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period">请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" maxlength="10" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" maxlength="10" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input" id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input" id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009查询</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input" id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li class="chk-list dn" id="profit-wrap">
<label class="chk">
<input type="checkbox" value="profit" name="profit" />
计算毛利</label>
<label class="chk">
<input type="checkbox" value="showSku" name="showSku" />
显示辅助属性</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn" id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">销售汇总表(按商品)</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<!--
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr>
<td class='H'>销售汇总表(按商品)</td>
</tr>
<tr>
<td>日期:至</td>
</tr>
</table>
<table width="1128px" class="list">
<thead>
<tr>
<td>商品编号</td>
<td width="150px">商品名称</td>
<td>规格型号</td>
<td>单位</td>
<td>仓库</td>
<td>数量</td>
<td>单价</td>
<td>销售收入</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"></td>
<td class="R B"></td>
<td class="R B"></td>
</tr>
</tbody>
</table>
</div>
</div>
-->
<script>
seajs.use("dist/salesSummary");
</script>
</body>
</html>

View File

@@ -0,0 +1,207 @@
<?php $this->load->view('header');?>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
#filter-menu .calGrossProfit-wrap{width:85px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100%;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-15'
};
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">客户:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="customerAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<!-- <li>
<label class="tit">排序规则:</label>
<input id="salesQty" type="radio" value="0" name="sort-rule" /><label for="salesQty"
class="vm">按销售数量</label>
<input id="salesIncome" type="radio" value="1" name="sort-rule" /><label for="salesIncome"
class="vm">按销售收入</label>
</li> -->
<li class="chk-list dn" id="profit-wrap">
<label class="chk">
<input type="checkbox" value="1" name="profit" />
计算毛利</label>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>销售汇总表(按客户)</td></tr>
<tr><td>日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1200px" class="list">
<thead>
<tr>
<td width="150">客户</td>
<td>商品编号</td>
<td width="150">商品名称</td>
<td>规格型号</td>
<td>单位</td>
<td>仓库</td>
<td>数量</td>
<td>单价</td>
<td>销售收入</td>
</tr>
</thead>
<tbody>
<?php
$qty = 0;
$price = 0;
$amount = 0;
foreach($list as $arr=>$row){
?>
<tr class="link" data-buNo="<?php echo $row['contactNo']?>" data-locationNo="<?php echo $row['locationNo']?>" data-invNo="<?php echo $row['invNumber']?>" data-type="customer">
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo $row['transType']==150601 ? (float)abs($row['qty']) : -$row['qty']?></td>
<td class="R"><?php echo $row['price']?></td>
<td class="R"><?php echo $row['transType']==150601 ? (float)abs($row['amount']) : -$row['amount']?></td>
</tr>
<?php
$qty += $row['transType']==150601 ? (float)abs($row['qty']) : -$row['qty'];
$price += $row['price'];
$amount += $row['transType']==150601 ? (float)abs($row['amount']) : -$row['amount'];
}
?>
<tr>
<td colspan="6" class="R B">合计:</td>
<td class="R B"><?php echo $qty?></td>
<td class="R B"><?php echo $price?></td>
<td class="R B"><?php echo $amount?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/sales-summary-customer.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,77 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="<?php echo $profit==1 ?'13':'9'?>"><h3>销售汇总表(按客户)<h3></td></tr>
<tr><td colspan="<?php echo $profit==1 ?'13':'9'?>">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th width="150">客户</th>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>仓库</th>
<th>数量</th>
<th>单价</th>
<th>销售收入</th>
<?php if ($profit==1) {?>
<th>单位成本</th>
<th>销售成本</th>
<th>销售毛利</th>
<th>毛利率</th>
<?php }?>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = $sum7 = 0;
foreach($list as $arr=>$row){
$sum1 += $qty = $row['sumqty']>0 ? -abs($row['sumqty']) : abs($row['sumqty']);
$sum3 += $amount = $row['sumamount'];
$unitPrice = $qty!=0 ? $amount/$qty : 0;
if ($profit==1) {
$sum4 += $unitcost = isset($info['inprice'][$row['invId']][$row['locationId']]) ? $info['inprice'][$row['invId']][$row['locationId']] : 0;
$sum5 += $cost = $unitcost * $qty;
$sum6 += $saleProfit = $amount - $cost;
$sum7 += $salepPofitRate = ($saleProfit/$amount)*100;
}
?>
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($qty,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($unitPrice,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($amount,2)?></td>
<?php if ($profit==1) {?>
<td class="R"><?php echo str_money($unitcost,2)?></td>
<td class="R"><?php echo str_money($cost,2)?></td>
<td class="R"><?php echo str_money($saleProfit,2)?></td>
<td class="R"><?php echo round($salepPofitRate,2)?>%</td>
<?php }?>
</tr>
<?php
}
?>
<tr>
<td colspan="6" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<?php if ($profit==1) {?>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($sum5,2)?></td>
<td class="R B"><?php echo str_money($sum6,2)?></td>
<td class="R B"><?php echo round($sum7,2)?>%</td>
<?php }?>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,60 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list" border="1">
<tr><td class='H' align="center" colspan="14"><h3>商品销售明细表<h3></td></tr>
<tr><td colspan="14">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>销售日期</th>
<th>销售单据号</th>
<th>业务类别</th>
<th>销售人员</th>
<th>客户</th>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>仓库</th>
<th>数量</th>
<th>单价</th>
<th>销售收入</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = 0;
foreach($list as $arr=>$row){
$sum1 += $qty = $row['qty']>0 ? -abs($row['qty']) : abs($row['qty']);
$sum3 += $amount = $row['amount'];
?>
<tr>
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td><?php echo $row['salesName']?></td>
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($qty,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($amount,2)?></td>
<td class="R"><?php echo $row['description']?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="10" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,72 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="<?php echo $profit==1 ?'12':'8'?>"><h3>销售汇总表(按商品)<h3></td></tr>
<tr><td colspan="<?php echo $profit==1 ?'12':'8'?>">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>仓库</th>
<th>数量</th>
<th>单价</th>
<th>销售收入</th>
<?php if ($profit==1) {?>
<th>单位成本</th>
<th>销售成本</th>
<th>销售毛利</th>
<th>毛利率</th>
<?php }?>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = $sum7 = 0;
foreach($list as $arr=>$row){
$sum1 += $qty = $row['sumqty']>0 ? -abs($row['sumqty']) : abs($row['sumqty']);
$sum3 += $amount = $row['sumamount'];
$unitPrice = $qty!=0 ? $amount/$qty : 0;
if ($profit==1) {
$sum4 += $unitcost = isset($info['inprice'][$row['invId']][$row['locationId']]) ? $info['inprice'][$row['invId']][$row['locationId']] : 0;
$sum5 += $cost = $unitcost * $qty;
$sum6 += $saleProfit = $amount - $cost;
$sum7 += $salepPofitRate = ($saleProfit/$amount)*100;
}
?>
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($qty,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($unitPrice,$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($amount,2)?></td>
<?php if ($profit==1) {?>
<td class="R"><?php echo str_money($unitcost,2)?></td>
<td class="R"><?php echo str_money($cost,2)?></td>
<td class="R"><?php echo str_money($saleProfit,2)?></td>
<td class="R"><?php echo round($salepPofitRate,2)?>%</td>
<?php }?>
</tr>
<?php
}
?>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<?php if ($profit==1) {?>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($sum5,2)?></td>
<td class="R B"><?php echo str_money($sum6,2)?></td>
<td class="R B"><?php echo round($sum7,2)?>%</td>
<?php }?>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,116 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="17"><h3>销售利润表<h3></td></tr>
<tr><td colspan="<?php echo $profit==1 ?'12':'8'?>">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>单据日期</th>
<th>客户</th>
<th>销售人员</th>
<th>单据编号</th>
<th>业务类型</th>
<th>数量</th>
<th>销售收入</th>
<th>销售成本</th>
<th>销售毛利<br/>(销售收入-销售成本)</th>
<th>毛利率</th>
<th>优惠金额</th>
<th>销售净利润<br/>(销售毛利-优惠金额)</th>
<th>净利润率</th>
<th>优惠后金额</th>
<th>应收金额</th>
<th>已收款金额</th>
<th>整单备注</th>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = $sum7 = $sum8 = $sum9 = $sum10 = $sum11 = 0;
foreach ($list as $arr=>$row) {
$totalAmount = (float)$row['totalAmount'];
$amount = (float)$row['amount'];
$v[$arr]['salesNo'] = $row['salesNo'];
$v[$arr]['contactNo'] = $row['contactNo'];
$v[$arr]['billDate'] = $row['billDate'];//单据日期
$v[$arr]['salesName'] = $row['salesName'];//销售人员
$v[$arr]['contactName'] = $row['contactName'];//客户
$v[$arr]['billNo'] = $row['billNo'];//单据编号
$v[$arr]['transTypeName'] = $row['transTypeName'];//业务类型
$v[$arr]['totalQty'] = (float)$row['totalQty'];//数量
$v[$arr]['disAmount'] = (float)$row['disAmount'];//优惠金额
$v[$arr]['amount'] = (float)$row['amount'];//优惠后金额
$v[$arr]['totalAmount'] = (float)$row['totalAmount'];//销售收入
//$v[$arr]['totalCost'] = (float)$row['totalCost'];//销售成本
$v[$arr]['ysAmount'] = (float)$row['amount'];//应收金额
$v[$arr]['rpAmount'] = (float)$row['rpAmount'];//已收款金额
$v[$arr]['description'] = $row['description'];//整单备注
$details = $this->data_model->get_invoice_info(' a.iid ='.$row['id']);
$sum = 0;
foreach ($details as $key=>$detail) {
$qty = $detail['qty']>0 ? -abs($detail['qty']):abs($detail['qty']);
$unitcost = isset($info['inprice'][$detail['invId']][$detail['locationId']]) ? $info['inprice'][$detail['invId']][$detail['locationId']] : 0; //单位成本
$sum += $cost = $unitcost * $qty;
}
$v[$arr]['totalCost'] = round($sum,2);//销售成本
$v[$arr]['saleProfit'] = round($totalAmount - $sum,2);//销售毛利=销售收入-销售成本
$salepPofitRate = $totalAmount>0? ($v[$arr]['saleProfit']/$totalAmount)*100 :0;
$v[$arr]['salepPofitRate'] = round($salepPofitRate,2).'%';//毛利率
$v[$arr]['pureProfit'] = $v[$arr]['saleProfit'] - $v[$arr]['disAmount'];//销售净利润=销售毛利-优惠金额
$pureProfitRate = $amount>0? ($v[$arr]['pureProfit']/$amount)*100 :0;
$v[$arr]['pureProfitRate'] = round($pureProfitRate,2).'%';//净利润率
$sum1 += $v[$arr]['totalQty'];
$sum2 += $v[$arr]['disAmount'];
$sum3 += $v[$arr]['amount'];
$sum4 += $v[$arr]['totalAmount'];
$sum5 += $v[$arr]['ysAmount'];
$sum6 += $v[$arr]['rpAmount'];
$sum7 += $v[$arr]['totalCost'];
$sum8 += $v[$arr]['saleProfit'];
$sum9 += $salepPofitRate;
$sum10 += $v[$arr]['pureProfit'];
$sum11 += $pureProfitRate;
?>
<tr class="link" data-id="<?php echo $row['iid']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['salesName']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td class="R"><?php echo str_money($row['totalQty'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['totalAmount'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($sum,2)?></td>
<td class="R"><?php echo str_money($totalAmount - $sum,2)?></td>
<td class="R"><?php echo round($salepPofitRate,2)?>%</td>
<td class="R"><?php echo str_money($row['disAmount'],2)?></td>
<td class="R"><?php echo str_money($v[$arr]['saleProfit'] - $v[$arr]['disAmount'],2)?></td>
<td class="R"><?php echo round($pureProfitRate,2)?>%</td>
<td class="R"><?php echo str_money($v[$arr]['amount'],2)?></td>
<td class="R"><?php echo str_money($v[$arr]['ysAmount'],2)?></td>
<td class="R"><?php echo str_money($v[$arr]['rpAmount'],2)?></td>
<td><?php echo $row['description']?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="5" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo str_money($sum4,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo str_money($sum7,2)?></td>
<td class="R B"><?php echo str_money($sum8,2)?></td>
<td class="R B"><?php echo round($sum9,2)?>%</td>
<td class="R B"><?php echo str_money($sum2,2)?></td>
<td class="R B"><?php echo str_money($sum10,2)?></td>
<td class="R B"><?php echo round($sum11,2)?>%</td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"><?php echo str_money($sum5,2)?></td>
<td class="R B"><?php echo str_money($sum6,2)?></td>
</tr>
</tbody>
</table>

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();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.filter-list li.chk-list{height: 20px;}
.ul-inline li .trigger{padding:0;}
.mod-report .search-wrap .s-inner {padding-bottom:15px;}
.mod-report{position: relative;*zoom: 1;padding:66px 0 0 18px;}
.mod-report .search-wrap{position: fixed;left: 0;top: 0;width: 100%;_position:absolute;_left:expression
(eval(document.documentElement.scrollLeft));_top:expression(eval(document.documentElement.scrollTop)
);background: #f5f5f5;}
.mod-report .search-wrap .s-inner{padding: 18px;}
.mod-report .search-wrap strong.tit{font-size:14px;line-height: 30px;}
.mod-report .search-wrap .txt{display: inline-block;*display: inline;*zoom: 1;font-size: 14px;line-height
: 30px;}
.mod-report .grid-wrap:after{content: '.';display: block;clear: both;visibility: hidden;overflow: hidden
;height: 0;}
.mod-report .grid-wrap{*zoom: 1;}
.mod-report .grid-wrap .grid{float: left;padding: 18px;border:1px solid #cfcfcf;background: #fff;box-shadow
:0 1px 3px rgba(0,0,0,0.2);}
.mod-report .grid-wrap .H{font-size:24px;font-weight:bold;text-align: center;}
.mod-report .grid-wrap .R{text-align: right;}
.mod-report .grid-wrap .B{font-weight: bold;}
.mod-report .grid-wrap table{border-collapse:collapse;}
.mod-report .grid-wrap table.caption{margin-bottom: 5px;}
.mod-report .grid-wrap table.list{border:1px solid #666;}
.mod-report .grid-wrap table.list td{padding: 5px 5px;border:1px solid #666;}
.mod-report .grid-wrap table.list thead td{text-align: center;font-weight: bold;}
.link{ cursor:pointer; }
.tr-hover{ background:#f8ff94;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
#filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
thead{word-break: keep-all;white-space:nowrap;}
@media print{
body{background: #fff;}
.mod-report{padding: 0;}
.mod-report .search-wrap{display: none;}
.mod-report .grid-wrap .grid{float: none;padding: 0;border:none;background: none;box-shadow:none;}
.mod-report .grid-wrap table.caption{margin-bottom: 0;}
.mod-report .grid-wrap table.list{width:100% !important;}
.mod-report .grid-wrap table.list td{padding: 1px;}
}
</style>
<script>
var defParams = {
beginDate: '2015-04-01',
endDate: '2015-04-16'
};
</script>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl">
<ul class="ul-inline">
<li><strong class="tit mrb fl dn">查询条件</strong></li>
<li>
<label>购货单位:</label>
<span class="ui-combo-wrap" id="customer">
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
<i class="ui-icon-ellipsis"></i></span></dd>
</li>
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
<li id="match">
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name
="match">是否显示商品明细</label>
</li>
<li>
<a id="refresh" class="ui-btn ui-btn fl mrb">查询</a> <span class="txt fl" id="cur-search-tip"
></span>
</li>
</ul>
</div>
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<?php if ($supplierId<1) {?>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>供应商对账单</td></tr>
<tr><td id='customerText'>供应商:</td></tr>
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>单据日期</td>
<td>单据编号</td>
<td>业务类别</td>
<td>采购金额</td>
<td>整单折扣额</td>
<td>应付金额</td>
<td>实际付款金额</td>
<td>应付款余额</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3" class="R B">合计:</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
<td class="R B">0.00</td>
</tr>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if ($supplierId>0) {?>
<div class="grid-wrap">
<div class="grid">
<table width=100% class="caption">
<tr><td class='H'>供应商对账单</td></tr>
<tr><td id='customerText'>供应商:</td></tr>
<tr><td>日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list">
<thead>
<tr>
<td>单据日期</td>
<td>单据编号</td>
<td>业务类别</td>
<td>采购金额</td>
<td>整单折扣额</td>
<td>应付金额</td>
<td>实际付款金额</td>
<td>应付款余额</td>
</tr>
</thead>
<tbody>
<tr class="link" data-id="0" data-type="BAL">
<td></td>
<td>期初余额</td>
<td></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo count($list1)>0 ? $list1['arrears'] : ''?></td>
</tr>
<?php
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = 0;
$sum0 = count($list1)>0 ? $list1['arrears'] : 0;
foreach($list2 as $arr=>$row){
$sum1 += $row['totalAmount'];
$sum2 += $row['disAmount'];
$sum3 += $row['amount'];
$sum4 += $row['rpAmount'];
$sum5 += $row['arrears'];
?>
<tr class="link" data-id="<?php echo $row['id']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td class="R"><?php echo $row['totalAmount']?></td>
<td class="R"><?php echo $row['disAmount']?></td>
<td class="R"><?php echo $row['amount']?></td>
<td class="R"><?php echo $row['rpAmount']?></td>
<td class="R"><?php echo $row['arrears']?></td>
</tr>
<?php }?>
<tr>
<td colspan="3" class="R B">合计:</td>
<td class="R B"><?php echo $sum1?></td>
<td class="R B"><?php echo $sum2?></td>
<td class="R B"><?php echo $sum3?></td>
<td class="R B"><?php echo $sum4?></td>
<td class="R B"><?php echo $sum0 + $sum5?></td>
</tr>
</tbody>
</table>
</div>
</div>
<?php }?>
</div>
<script src="<?php echo base_url()?>statics/js/dist/suppliersReconciliation.js?ver=20140430"></script>
</body>
</html>

View File

@@ -0,0 +1,127 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
$sum1 = $sum2 = $sum3 = $sum4 = $sum5 = $sum6 = 0;
$arrears = count($list1)>0 ? $list1['amount'] : 0;
?>
<table width="1440px" class="list">
<tr><td class='H' colspan="<?php echo $showDetail == "true" ? 14 : 8?>" align="center"><h3>供应商对账单<h3></td></tr>
<tr><td id='customerText' colspan="<?php echo $showDetail == "true" ? 14 : 8?>"><?php echo $supplierName?></td></tr>
<tr><td colspan="<?php echo $showDetail == "true" ? 14 : 8?>">日期:<?php echo $beginDate;?>至<?php echo $endDate;?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<thead>
<tr>
<th>单据日期</th>
<th>单据编号</th>
<th>业务类别</th>
<?php if ($showDetail == "true") {?>
<th>商品编号</th>
<th>商品名称</th>
<th>规格型号</th>
<th>单位</th>
<th>数量</th>
<th>单价</th>
<?php }?>
<th>采购金额</th>
<th>整单折扣额</th>
<th>应付金额</th>
<th>实际付款金额</th>
<th>应付款余额</th>
</tr>
</thead>
<tbody>
<tr class="link" data-id="0" data-type="BAL">
<td></td>
<td>期初余额</td>
<td></td>
<?php if ($showDetail == "true") {?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<?php }?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo str_money($arrears,2)?></td>
</tr>
<?php
foreach($list2 as $arr=>$row){
$sum1 += $row['arrears'];
$sum2 += $row['amount']; //应收金额
$sum3 += $row['totalAmount']; //销售金额
$sum4 += $row['rpAmount']; //实际收款金额
$sum5 += $row['disAmount']; //折扣率
?>
<tr class="link" data-id="<?php echo $row['id']?>" data-type="<?php echo $row['billType']?>">
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<?php if ($showDetail == "true") {?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<?php }?>
<td class="R"><?php echo str_money($row['totalAmount'],2)?></td>
<td class="R"><?php echo str_money($row['disAmount'],2)?></td>
<td class="R"><?php echo str_money($row['amount'],2)?></td>
<td class="R"><?php echo str_money($row['rpAmount'],2)?></td>
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
</tr>
<?php
if ($showDetail == "true") {
if ($row['billType']=='PUR') {
$postData = unserialize($row['postData']);
foreach ($postData['entries'] as $arr1=>$row1) {
?>
<tr>
<td></td>
<td></td>
<td></td>
<td class="R"><?php echo $row1['invNumber']?></td>
<td class="R"><?php echo $row1['invName']?></td>
<td class="R"><?php echo $row1['invSpec']?></td>
<td class="R"><?php echo $row1['mainUnit']?></td>
<td class="R"><?php echo str_money($row1['qty'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row1['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"><?php echo str_money($arrears + $sum1,2)?></td>
</tr>
<?php }}}?>
<?php }?>
<tr>
<td colspan="3" class="R B">合计:</td>
<?php if ($showDetail == "true") {?>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<td class="R"></td>
<?php }?>
<td class="R B"><?php echo str_money($sum3,2)?></td>
<td class="R B"><?php echo str_money($sum5,2)?></td>
<td class="R B"><?php echo str_money($sum2,2)?></td>
<td class="R B"><?php echo str_money($sum4,2)?></td>
<td class="R B"><?php echo str_money($arrears + $sum1,2)?></td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,102 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css?2" />
<style type="text/css">
.filter-menu .mod-choose-input{position: relative;*zoom: 1;}
.filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:226px; font-family:"宋体";}
.filter-menu .ui-datepicker-input{width:105px; font-family:"宋体";}
.ui-icon-ellipsis{ right:3px; }
.ul-inline li{position:relative;}
.no-query {
background: url("<?php echo base_url()?>statics/css/img/no_query.png") no-repeat scroll 100px 60px #fff;
border: 1px solid #ddd;
height: 402px;
margin-right: 18px;
}
#chk-wrap{line-height: 30px;}
.frozen-sdiv{ display: none;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="wrapper">
<div class="mod-search cf">
<div class="l">
<ul class="ul-inline fix">
<li>
<label>购货单位:</label>
<span class="ui-combo-wrap" id="customer">
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
<i class="ui-icon-ellipsis"></i></span></dd>
</li>
<li>
<label>日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate" id="filter-fromDate" /> - <input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate" id="filter-toDate" />
</li>
<li id="match">
<label class="chk" style="margin-top:6px; " title="是否显示商品明细"><input type="checkbox" name="match">是否显示商品明细</label>
</li>
<li><a class="ui-btn mrb" id="filter-submit">查询</a></li>
</ul>
</div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class="ui-btn fl" id="btn-export">导出</a></div>
</div>
<!-- grid begin -->
<div class="ui-print" style="overflow: hidden; ">
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">供应商对账单</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
<!-- grid end -->
</div>
<script>
seajs.use("dist/suppliersReconciliationNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,114 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable
=no">
<meta name="renderer" content="webkit">
<title>在线进销存</title>
<link href="<?php echo base_url()?>statics/css/common.css?ver=20140430" rel="stylesheet">
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/ui.min.css?ver=20140430" rel="stylesheet">
<script src="<?php echo base_url()?>statics/js/common/seajs/2.1.1/sea.js?ver=20140430" id="seajsnode"></script>
<script src="<?php echo base_url()?>statics/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "<?php echo sys_skin()?>";
try{
document.domain = '<?php echo base_url()?>';
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
/* Act on the event */
if(event.keyCode === 116 && event.ctrlKey){
var defaultPage = Public.getDefaultPage();
var href = defaultPage.location.href.split('?')[0] + '?';
var params = Public.urlParam();
params['version'] = Date.parse((new Date()));
for(i in params){
if(i && typeof i != 'function'){
href += i + '=' + params[i] + '&';
}
}
defaultPage.location.href = href;
event.preventDefault();
}
});
</script>
<link rel="stylesheet" href="<?php echo base_url()?>statics/css/report.css" />
<style>
.ui-icon-ellipsis{right:5px;}
#grid tr{cursor:pointer;}
</style>
</head>
<body>
<div class="mod-report">
<div class="search-wrap" id="report-search">
<div class="s-inner cf">
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <strong id="selected-period"
>请选择查询条件</strong><b></b> </span>
<div class="con">
<ul class="filter-list">
<li>
<label class="tit">日期:</label>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-fromDate"
id="filter-fromDate" />
<span>至</span>
<input type="text" value="" class="ui-input ui-datepicker-input" name="filter-toDate"
id="filter-toDate" />
</li>
</ul>
<ul class="filter-list" id="more-conditions">
<li>
<label class="tit">供应商:</label>
<span class="mod-choose-input" id="filter-customer"><input type="text" class="ui-input"
id="supplierAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
<li style="height:60px; ">
<label class="tit">商品:</label>
<span class="mod-choose-input" id="filter-goods"><input type="text" class="ui-input"
id="goodsAuto"/><span class="ui-icon-ellipsis"></span></span>
<p style="color:#999; padding:3px 0 0 0; ">(可用,分割多个编码如1001,1008,2001或直接输入编码段如1001--1009
查询)</p>
</li>
<li>
<label class="tit">仓库:</label>
<span class="mod-choose-input" id="filter-storage"><input type="text" class="ui-input"
id="storageAuto"/><span class="ui-icon-ellipsis"></span></span>
</li>
</ul>
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
</div>
</div>
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
></span> </div>
<div class="fr"><!--<a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a>--><a href="#" class
="ui-btn fl" id="btn-export">导出</a></div>
</div>
</div>
<div class="ui-print">
<div class="grid-wrap" id="grid-wrap">
<div class="grid-title">商品采购明细表</div>
<div class="grid-subtitle"></div>
<table id="grid"></table>
</div>
</div>
<div class="no-query"></div>
</div>
<script>
seajs.use("dist/puDetailNew");
</script>
</body>
</html>

View File

@@ -0,0 +1,59 @@
<?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 style="background:#FFF; ">
<div class="wrapper">
<div class="mod-search-adv">
<ul>
<li>
<label>搜索条件:</label>
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或客户名或序列号或备注">
</li>
<li>
<label>日期:</label>
<input type="text" id="beginDate" class="ui-input ui-datepicker-input">
<i>至</i>
<input type="text" id="endDate" class="ui-input ui-datepicker-input">
</li>
<li>
<label>销售人员:</label>
<span id="sales"></span>
</li>
<li>
<label>收款状态:</label>
<span id="hxState"></span>
</li>
</ul>
</div>
</div>
<script src="<?php echo base_url()?>/statics/js/dist/advSearch.js?ver=20140430"></script>
</body>
</html>

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>

Some files were not shown because too many files have changed in this diff Show More