|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>Trippest账单结算</title>
|
|
|
|
|
<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">
|
|
|
|
@ -15,13 +15,17 @@
|
|
|
|
|
<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'; ?>
|
|
|
|
|
<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;}
|
|
|
|
|
.text-left {text-align: left;}
|
|
|
|
|
.text-bold {font-weight: bold;}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
@ -30,30 +34,30 @@
|
|
|
|
|
<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>
|
|
|
|
|
<h1>Trippest & 地接账单结算</h1>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<p></p>
|
|
|
|
|
<form action="" method="POST" role="form">
|
|
|
|
|
<form action="/webht.php/apps/trippestordersync/vendor_money/index" method="POST" role="form">
|
|
|
|
|
<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">北京图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="29188">上海图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="30548">西安图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="628">桂林地接</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="1343" checked>北京图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="29188" checked>上海图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="30548" checked>西安图兰朵</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-3">
|
|
|
|
|
<input type="text" class="form-control" id="" placeholder="开始日期" required>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<input type="text" class="form-control" name="date_range" id="date_range" placeholder="选择日期范围" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
<input type="text" class="form-control" id="" placeholder="结束日期">
|
|
|
|
|
<!-- <input type="text" class="form-control" id="end_date" placeholder="结束日期"> -->
|
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<p></p>
|
|
|
|
@ -63,16 +67,16 @@
|
|
|
|
|
<th rowspan="2">目的地</th>
|
|
|
|
|
<th colspan="2">总营收</th>
|
|
|
|
|
<th colspan="2">总成本</th>
|
|
|
|
|
<th rowspan="2">利润</th>
|
|
|
|
|
<th rowspan="2">海纳利润</th>
|
|
|
|
|
<th rowspan="2">地接利润</th>
|
|
|
|
|
<th rowspan="2">海纳应付地接</th>
|
|
|
|
|
<th rowspan="2">⑤利润</th>
|
|
|
|
|
<th rowspan="2">⑥海纳利润</th>
|
|
|
|
|
<th rowspan="2">⑦地接利润</th>
|
|
|
|
|
<th rowspan="2">⑧海纳应付地接</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th >海纳代收</th>
|
|
|
|
|
<th >地接代收</th>
|
|
|
|
|
<th rowspan="2">海纳成本</th>
|
|
|
|
|
<th rowspan="2">地接成本</th>
|
|
|
|
|
<th >①海纳代收</th>
|
|
|
|
|
<th >②地接代收</th>
|
|
|
|
|
<th rowspan="2">③海纳成本</th>
|
|
|
|
|
<th rowspan="2">④地接成本</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
@ -80,36 +84,51 @@
|
|
|
|
|
foreach ($money as $kt => $trippest) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><?php echo $trippest['vendor_name'] ?></td>
|
|
|
|
|
<td class="text-left"><?php echo $trippest['vendor_name'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['vendor_sum'] ?></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td><?php echo $trippest['trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['total_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php }
|
|
|
|
|
} ?>
|
|
|
|
|
<?php if ( ! empty($col_sum)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td class="text-left">合计</td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<p>旧的算法, 需扣除Trippest自营订单的地接代收款项:</p>
|
|
|
|
|
<table class="table table-bordered table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th rowspan="2">目的地</th>
|
|
|
|
|
<th colspan="2">总营收</th>
|
|
|
|
|
<th colspan="2">总成本</th>
|
|
|
|
|
<th rowspan="2">利润</th>
|
|
|
|
|
<th rowspan="2">海纳利润</th>
|
|
|
|
|
<th rowspan="2">地接利润</th>
|
|
|
|
|
<th rowspan="2">海纳应付地接</th>
|
|
|
|
|
<th rowspan="2">⑤利润</th>
|
|
|
|
|
<th rowspan="2">⑥海纳利润</th>
|
|
|
|
|
<th rowspan="2">⑦地接利润</th>
|
|
|
|
|
<th rowspan="2">⑧海纳应付地接</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th >海纳代收</th>
|
|
|
|
|
<th >地接代收</th>
|
|
|
|
|
<th rowspan="2">海纳成本</th>
|
|
|
|
|
<th rowspan="2">地接成本</th>
|
|
|
|
|
<th >①海纳代收</th>
|
|
|
|
|
<th >②地接代收</th>
|
|
|
|
|
<th rowspan="2">③海纳成本</th>
|
|
|
|
|
<th rowspan="2">④地接成本</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
@ -117,38 +136,60 @@
|
|
|
|
|
foreach ($money as $kv => $vendor) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><?php echo $vendor['vendor_name'] ?></td>
|
|
|
|
|
<td class="text-left"><?php echo $vendor['vendor_name'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor']['trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor']['vendor_sum'] ?></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td><?php echo $vendor['trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor']['total_profit'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor']['trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor']['vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $vendor['vendor']['payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php }
|
|
|
|
|
} ?>
|
|
|
|
|
<?php if ( ! empty($col_sum)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td class="text-left">合计</td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_vendor_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['vendor']['sum_payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<?php if ( ! empty($trippest_order_vendor_money)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<th colspan="2">团号</th>
|
|
|
|
|
<th colspan="7">应扣除地接收款: 总计 <?php echo $transfer_sum ?></th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php foreach ($trippest_order_vendor_money as $ko => $order) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><?php echo $order['COLI_GroupCode'] ?></td>
|
|
|
|
|
<td colspan="7"><?php echo $order["vendor_sum"] ?></td>
|
|
|
|
|
<td colspan="2" class="text-left"><?php echo $order['COLI_GroupCode'] ?></td>
|
|
|
|
|
<td colspan="7" class="text-left"><?php echo $order["vendor_sum"] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } } ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
<script src="/js/jquery.min.js&v=20170811" type="text/javascript"></script>
|
|
|
|
|
<script src="/js/jquery.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="/js/bootstrap.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="/js/jquery.form.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 ?>']
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</html>
|
|
|
|
|