初始版本
This commit is contained in:
77
application/views/scm/payment/export.php
Executable file
77
application/views/scm/payment/export.php
Executable file
@@ -0,0 +1,77 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1500px" class="list">
|
||||
<tr><td class='H' align="center" colspan="10"><h3>付款单记录</h3></td></tr>
|
||||
</table>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="100" align="center">单据日期</th>
|
||||
<th width="150" align="center">单据编号</th>
|
||||
<th width="120" align="center">购货单位</th>
|
||||
<th width="60" align="center">付款金额</th>
|
||||
<th width="100" align="center">备注</th>
|
||||
<th width="200" align="center">结算账户</th>
|
||||
<th width="60" align="center">付款金额</th>
|
||||
<th width="80" align="center">结算方式</th>
|
||||
<th width="60" align="center">结算号</th>
|
||||
<th width="100" align="center">备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
$n = 1;
|
||||
$payment = 0;
|
||||
foreach($list as $arr=>$row) {
|
||||
$postData = unserialize($row['postData']);
|
||||
$n = isset($postData['accounts']) ? count($postData['accounts'])+1 : 1;
|
||||
?>
|
||||
<tr target="id">
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['description']?></td>
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($postData['accounts'] as $arr1=>$row1) {
|
||||
$payment += abs($row1['payment']);
|
||||
if ($i==1) {
|
||||
?>
|
||||
|
||||
<td ><?php echo $account[$row1['accId']]?></td>
|
||||
<td ><?php echo $row1['payment']?></td>
|
||||
<td ><?php echo $category[$row1['wayId']]?></td>
|
||||
<td ><?php echo $row1['settlement']?></td>
|
||||
<td ><?php echo $row1['remark']?></td>
|
||||
</tr>
|
||||
<?php } else {?>
|
||||
<tr target="id">
|
||||
<td ><?php echo $account[$row1['accId']]?></td>
|
||||
<td ><?php echo $row1['payment']?></td>
|
||||
<td ><?php echo $category[$row1['wayId']]?></td>
|
||||
<td ><?php echo $row1['settlement']?></td>
|
||||
<td ><?php echo $row1['remark']?></td>
|
||||
</tr>
|
||||
<?php }$i++;}?>
|
||||
<tr target="id">
|
||||
<td >合计</td>
|
||||
<td ><?php echo $payment?></td>
|
||||
<td ></td>
|
||||
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php $payment = 0;$n = 1;}?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
132
application/views/scm/payment/initPay.php
Executable file
132
application/views/scm/payment/initPay.php
Executable file
@@ -0,0 +1,132 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
|
||||
<div class="bills">
|
||||
<div class="con-header">
|
||||
<dl class="cf">
|
||||
<dd class="pct40">
|
||||
<label>购货单位:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
<dd class="pct30 tc">
|
||||
<label>单据日期:</label>
|
||||
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-10-27">
|
||||
</dd>
|
||||
<dd id="identifier" class="fl pct30 tr">
|
||||
<label>单据编号:</label>
|
||||
<span id="number"><?php echo str_no('FKD')?></span></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="grid-wrap mb10" id="acGridWrap">
|
||||
<table id="accountGrid">
|
||||
</table>
|
||||
</div>
|
||||
<div id="standardVersion" class="dn">
|
||||
<div class="tr" style="margin:0 -10px 10px 0; "><a class="ui-btn" id="selectSource">选择源单</a></div>
|
||||
<div class="grid-wrap" id="billGridWrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
</div>
|
||||
<!-- <div class="con-footer cf">
|
||||
<label id="paymentTxt">整单折扣:</label>
|
||||
<input type="text" id="discount" class="ui-input"> 
|
||||
<span>
|
||||
<label>本次预付款:</label>
|
||||
<input type="text" id="payment" class="ui-input ui-input-dis" disabled>
|
||||
</span>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- <div class="con-footer cf pt">
|
||||
<div class="mb10">
|
||||
<div class="label-wrap">
|
||||
<label>备注:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" id="note" class="ui-input" data-ref="discount" style="width:100%; margin:0 -6px; ">
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="con-footer cf">
|
||||
<div class="mb10">
|
||||
<textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
|
||||
</div>
|
||||
<ul id="amountArea" class="cf">
|
||||
<li>
|
||||
<label id="paymentTxt">整单折扣:</label>
|
||||
<input type="text" id="discount" class="ui-input"> 
|
||||
</li>
|
||||
<li id="accountWrap">
|
||||
<label>本次预付款:</label>
|
||||
<input type="text" id="payment" class="ui-input ui-input-dis" disabled>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="c999 cf">
|
||||
<li>
|
||||
<label class="dn">制单人:</label>
|
||||
<span id="userName"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>审核人:</label>
|
||||
<span id="checkName"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>录单时间:</label>
|
||||
<span id="createTime"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label class="dn">最后修改时间:</label>
|
||||
<span id="modifyTime"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cf" id="bottomField">
|
||||
<div class="fr" id="toolBottom"></div>
|
||||
</div>
|
||||
<div id="mark"></div>
|
||||
</div>
|
||||
|
||||
<div id="initCombo" class="dn">
|
||||
<input type="text" class="textbox accountAuto" name="account" autocomplete="off">
|
||||
<input type="text" class="textbox paymentAuto" name="payment" autocomplete="off">
|
||||
<input type="text" class="textbox billAuto" name="goods" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/payment.js?ver=201510141132"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
66
application/views/scm/payment/initPayList.php
Executable file
66
application/views/scm/payment/initPayList.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 280px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入单据号或供应商或备注">
|
||||
</li>
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" id="beginDate" value="2015-04-17" class="ui-input ui-datepicker-input">
|
||||
|
||||
<i>-</i>
|
||||
<input type="text" id="endDate" value="2015-04-23" class="ui-input ui-datepicker-input">
|
||||
</li>
|
||||
<li><a class="ui-btn" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
|
||||
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/paymentList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
66
application/views/scm/payment/initUnhxList.php
Executable file
66
application/views/scm/payment/initUnhxList.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 120px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" id="beginDate" value="2015-04-17" class="ui-input ui-datepicker-input">
|
||||
|
||||
<i>-</i>
|
||||
<input type="text" id="endDate" value="2015-04-23" class="ui-input ui-datepicker-input">
|
||||
</li>
|
||||
<li>
|
||||
<label>源单编号:</label>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入源单编号">
|
||||
</li>
|
||||
<li><a class="ui-btn" id="search">查询</a><!--<a class="ui-btn ui-btn-refresh" id="refresh" title
|
||||
="刷新"><b></b></a>--></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/selectSource.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user