Merge branch 'feature/trippest'
commit
1dd1d4b1d6
@ -0,0 +1,197 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* 账单结算
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Trippest & 地接账单预审核</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport">
|
||||||
|
<meta content="yes" name="apple-mobile-web-app-capable">
|
||||||
|
<meta name="referrer" content="always">
|
||||||
|
<link href="http://www.mycht.cn/css/webht/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="http://www.mycht.cn/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
|
||||||
|
<!-- <?php // include 'flatpickr.css.php'; ?> -->
|
||||||
|
<style type="text/css">
|
||||||
|
form{border-bottom: 1px solid #ccc;}
|
||||||
|
.navbar-header h1{display: inline-block;margin-left: 30px;margin-right: 30px;}
|
||||||
|
label {display: inline-block;max-width: none;margin-bottom: 5px;font-weight: bold; }
|
||||||
|
.form-check-label{font-weight: normal; margin-left: 5px;}
|
||||||
|
thead th {text-align: center;}
|
||||||
|
tbody td {text-align: right;}
|
||||||
|
.bg-grey {background-color: #f5f5f5;}
|
||||||
|
.text-left {text-align: left;}
|
||||||
|
.text-right {text-align: right;}
|
||||||
|
.text-bold {font-weight: bold;}
|
||||||
|
.text-red {color: red;}
|
||||||
|
.cell-right {float: right;}
|
||||||
|
td a {cursor: pointer;}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="wrapper" class="chkVisible print-none">
|
||||||
|
<div class="navbar-header" style="float:none;border-bottom: 1px solid #ccc;">
|
||||||
|
<a class="navbar-brand text-muted" style="height: 52px;padding-top: 7px;padding-left: 30px;" href="http://www.mycht.cn/webht.php/index/index">
|
||||||
|
<img width="150" style="height:40px;" src="/css/nav/img/6000.png">
|
||||||
|
</a>
|
||||||
|
<h1>Trippest & 地接账单预审核</h1>
|
||||||
|
<ul class="nav navbar-nav navbar-right pull-right" style="margin:7.5px 0;">
|
||||||
|
<li class="dropdown">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><?php $userdata=$this->session->userdata('admin_chtcdn'); echo $userdata['OPI_Name']; ?> <span class="caret"></span></a>
|
||||||
|
<ul class="dropdown-menu" role="menu">
|
||||||
|
<li><a href="<?php echo site_url('login/logout'); ?>">退出</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<p></p>
|
||||||
|
<form action="/webht.php/apps/trippestordersync/vendor_money/precheck" method="POST" role="form" id="request_form" name="request_form" enctype="multipart/form-data">
|
||||||
|
<div class="form-group row">
|
||||||
|
<label for="" class="col-md-2">地接社</label>
|
||||||
|
<div class="">
|
||||||
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="1343" <?php if(in_array(1343, $default_vendor)) { ?>checked<?php } ?> >北京图兰朵</label>
|
||||||
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="29188" <?php if(in_array(29188, $default_vendor)) { ?>checked<?php } ?>>上海图兰朵</label>
|
||||||
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="30548" <?php if(in_array(30548, $default_vendor)) { ?>checked<?php } ?>>西安图兰朵</label>
|
||||||
|
<!-- <label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="628">桂林地接</label> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<!-- <label for="" class="col-md-2">发团日期</label> -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="date_range" id="date_range" placeholder="选择日期范围" required>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="file" class="form-control" name="upload_cost" id="upload_cost" placeholder="上传成本文件" >
|
||||||
|
</div>
|
||||||
|
<div class="">
|
||||||
|
<!-- <input type="text" class="form-control" id="end_date" placeholder="结束日期"> -->
|
||||||
|
<button type="submit" class="btn btn-primary">开始预审</button>
|
||||||
|
<span>( 务必上传与所选 [ 发团日期 ,地接社 ]相对应的成本文件. )</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<p></p>
|
||||||
|
|
||||||
|
<table class="table table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="9" class="text-left">团款异常:</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>HT团号</th>
|
||||||
|
<th>拼团号</th>
|
||||||
|
<th class="text-left">
|
||||||
|
总团款差额
|
||||||
|
<p>= 账单总团款 - ( HT收款 + HT代收 )</p>
|
||||||
|
</th>
|
||||||
|
<th class="text-left">
|
||||||
|
地接代收差额
|
||||||
|
<p>= 账单代收 - HT代收</p>
|
||||||
|
</th>
|
||||||
|
<th class="text-left">
|
||||||
|
海纳收差额
|
||||||
|
<p>= 账单收款 - HT收款</p>
|
||||||
|
</th>
|
||||||
|
<th>账单:总团款</th>
|
||||||
|
<th>账单:地接代收</th>
|
||||||
|
<th>HT:海纳收款</th>
|
||||||
|
<th>HT:地接代收</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php if ( ! empty($price_error)) {
|
||||||
|
foreach ($price_error as $ko => $ep) { ?>
|
||||||
|
<tr>
|
||||||
|
<td class="text-left"><?php echo $ep['GRI_Name']; ?></td>
|
||||||
|
<td class="text-left"><?php echo $ep['combineNo']; ?></td>
|
||||||
|
<td>
|
||||||
|
<?php echo $ep['total_price_err']; ?>
|
||||||
|
<!-- <p><?php // echo "=" . $ep['TLD_total_price'] . "-(" . $ep['HT_haina_receipt'] . "+" . $ep['HT_agency_receipt'] . ")"; ?></p> -->
|
||||||
|
</td>
|
||||||
|
<td><?php echo $ep['agency_receipt_err']; ?></td>
|
||||||
|
<td><?php echo $ep['HT_receipt_err']; ?></td>
|
||||||
|
<td><?php echo $ep['TLD_total_price']; ?></td>
|
||||||
|
<td><?php echo $ep['TLD_agency_receipt']; ?></td>
|
||||||
|
<td><?php echo $ep['HT_haina_receipt']; ?></td>
|
||||||
|
<td><?php echo $ep['HT_agency_receipt']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<?php if ( ! empty($error_msg)) { ?>
|
||||||
|
<p><?php echo $error_msg; ?></p>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<table class="table table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="3" class="text-left">成本异常:</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>拼团号</th>
|
||||||
|
<th>HT成本</th>
|
||||||
|
<th>账单成本</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php if ( ! empty($cost_error)) {
|
||||||
|
foreach ($cost_error as $ko => $ec) { ?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $ec['GCI_combineNo']; ?></td>
|
||||||
|
<td><?php echo $ec['cost']; ?></td>
|
||||||
|
<td><?php echo $ec['group_cost']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
|
<?php if ( ! empty($ht_no_match)) {
|
||||||
|
foreach ($ht_no_match as $ko => $ht) { ?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $ht['GCI_combineNo']; ?></td>
|
||||||
|
<td><?php echo $ht['cost']; ?></td>
|
||||||
|
<td>未找到</td>
|
||||||
|
</tr>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
|
<?php if ( ! empty($xls_no_match)) {
|
||||||
|
foreach ($xls_no_match as $ko => $xls) { ?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $xls['group_name']; ?></td>
|
||||||
|
<td>未找到</td>
|
||||||
|
<td><?php echo $xls['group_cost']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src="/js/jquery.min.js" type="text/javascript"></script>
|
||||||
|
<script src="/js/bootstrap.min.js" type="text/javascript"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#date_range").flatpickr({
|
||||||
|
dateFormat: 'Y-m-d'
|
||||||
|
,mode: 'range'
|
||||||
|
,allowInput: true
|
||||||
|
,defaultDate:['<?php echo $default_date1 ?>', '<?php echo $default_date2 ?>']
|
||||||
|
});
|
||||||
|
|
||||||
|
})
|
||||||
|
function detail_download(vendor) {
|
||||||
|
document.request_form.action = "/webht.php/apps/trippestordersync/vendor_money/index" + "/" + vendor;
|
||||||
|
document.querySelector('#request_form').submit();
|
||||||
|
document.request_form.action = "/webht.php/apps/trippestordersync/vendor_money/index";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</html>
|
Loading…
Reference in New Issue