Commit 8ef24967 by 朱继来

详情页调整

parent a9fa7310
/* 订单信息 */ /* 订单信息 */
.order-details .order-info { .order-details .order-info {
width: 33%; width: 100%;
display: inline-block; display: inline-block;
} }
.order-details .table { .order-details .table {
...@@ -9,10 +9,14 @@ ...@@ -9,10 +9,14 @@
/* 订单信息右侧 */ /* 订单信息右侧 */
.order-details .order-right { .order-details .order-right {
width: 66%; width: 100%;
display: inline-block; display: inline-block;
} }
.changeBtn {
float: right;
}
.order-details .order-total { .order-details .order-total {
text-align: right; text-align: right;
} }
......
...@@ -13,18 +13,175 @@ ...@@ -13,18 +13,175 @@
?> ?>
<input type="hidden" class="action_type" value="{{$action_name}}"> <input type="hidden" class="action_type" value="{{$action_name}}">
<div class="tabs-box"> <div class="tabs-box">
<table class="table table-bordered order-express">
<?php
$currency = $order_info['currency'] == 2 ? '$' : '¥';
?>
<tr>
@if ($order_info['order_pay_type'] == 2)
<th>预付款</th>
<th>尾款</th>
@endif
<th>交易状态</th>
<th>对账状态</th>
<th>配送状态</th>
<th>支付方式</th>
<th>支付类型</th>
<th>支付状态</th>
</tr>
<tr>
@if ($order_info['order_pay_type'] == 2)
<td>{{$currency.$order_info['advance_amount']}}</td>
<td>
{{$currency.number_format($order_info['order_amount'] - $order_info['advance_amount'], 2, '.', '')}}
</td>
@endif
<td>
<?php
switch ($order_info['status']) {
case -2: echo "审核未通过";break;
case -1: echo "已取消";break;
case 1: echo "待审核";break;
case 2: echo "待付款";break;
case 3: echo "待付尾款";break;
case 4: echo "待发货";break;
case 7: echo "部分发货";break;
case 8: echo "待收货";break;
case 10: echo "交易成功";break;
}
?>
</td>
<td>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['order_id'] != '') {
echo '全款对账正常';
} else {
echo '未对账';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['order_id'] != '') {
echo '尾款对账正常';
} else if (!empty($order_pay_log) && $order_pay_log[0]['order_id'] != '') {
echo '首款对账正常';
} else {
echo '未对账';
}
}
?>
</td>
<td>
<?php
switch ($order_shipping_info['status']) {
case 1: echo '已配送'; break;
case 2: echo '已签收'; break;
default: echo '未配送'; break;
}
?>
</td>
<td>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['pay_name'] != '') {
echo $order_pay_log[0]['pay_name'];
} else {
echo '--';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['pay_name'] != '') {
echo $order_pay_log[1]['pay_name'];
} else if (!empty($order_pay_log) && $order_pay_log[0]['pay_name'] != '') {
echo $order_pay_log[0]['pay_name'];
} else {
echo '--';
}
}
?>
</td>
<td>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['pay_type'] != '') {
echo '全款';
} else {
echo '--';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['pay_type'] != '') {
echo '尾款';
} else if (!empty($order_pay_log) && $order_pay_log[0]['pay_type'] != '') {
echo '预付款';
} else {
echo '--';
}
}
?>
</td>
<td>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['is_paid'] != '') {
echo $order_pay_log[0]['is_paid'] == 1 ? '已支付' : '未支付';
} else {
echo '--';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['is_paid'] != '') {
echo $order_pay_log[1]['is_paid'] == 1 ? '已支付' : '未支付';
} else if (!empty($order_pay_log) && $order_pay_log[0]['is_paid'] != '') {
echo $order_pay_log[0]['is_paid'] == 1 ? '已支付' : '未支付';
} else {
echo '--';
}
}
?>
</td>
</tr>
</table>
<div class="order-info"> <div class="order-info">
<input type="hidden" id="order_id" value="{{$order_info['order_id']}}"> <input type="hidden" id="order_id" value="{{$order_info['order_id']}}">
<table class="table table-bordered"> <table class="table table-bordered">
<tr class="caption"><th colspan="2">订单信息</th></tr> <tr class="caption">
<th colspan="7" style="text-align: center; background: #f9f9f9;">
收货信息
<!-- 订单状态小于5 且 更新地址权限存在 显示按钮 -->
@if (in_array($order_info['status'], array(1, 2, 3, 4)) && in_array('update_address', $userPerms))
@if (isset($_REQUEST['tags']))
<a href="/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">更改收货地址</a>
@else
<a href="/changeShipping/{{$order_info['order_id']}}" class="btn btn-success btn-sm changeBtn">更改收货地址</a>
@endif
@endif
</th>
</tr>
<tr> <tr>
<th>订单编号</th> <th>订单编号</th>
<th>会员账号</th>
<th>收货人</th>
<th>联系电话/手机</th>
<th>配送方式</th>
@if ($order_info['order_shipping_type'] == 2)
<th>自提地址</th>
@else
<th>收货地址</th>
@endif
<th>客户备注</th>
</tr>
<tr>
<td> <td>
{{$order_info['order_sn']}} {{$order_info['order_sn']}}
</td> </td>
</tr>
<tr>
<th>会员账号</th>
<td> <td>
@if ($user_mobile) @if ($user_mobile)
{{$user_mobile}} {{$user_mobile}}
...@@ -32,273 +189,125 @@ ...@@ -32,273 +189,125 @@
{{isset($order_info['user_info']['email']) ? $order_info['user_info']['email'] : ''}} {{isset($order_info['user_info']['email']) ? $order_info['user_info']['email'] : ''}}
@endif @endif
</td> </td>
</tr>
<tr>
<th>收货人</th>
<td>{{$order_address_info['consignee']}}</td> <td>{{$order_address_info['consignee']}}</td>
</tr>
<tr>
<th>联系电话/手机</th>
<td>{{$order_address_info['mobile']}}</td>
</tr>
<td>{{$order_address_info['mobile']}}</td>
@if ($order_info['order_shipping_type'] == 2) @if ($order_info['order_shipping_type'] == 2)
<tr>
<th>配送方式</th>
<td>客户自提</td> <td>客户自提</td>
</tr> <td>{{$order_address_info['address']}}</td>
<tr> @else
<th>自提地址</th><td>{{$order_address_info['address']}}</td>
</tr>
@else
<tr>
<th>配送方式</th>
<td>快递送货</td> <td>快递送货</td>
</tr>
<tr>
<th>收货地址</th>
<td> <td>
{{$order_address_info['province_val']}}&nbsp;&nbsp;{{$order_address_info['city_val']}}&nbsp;&nbsp;{{$order_address_info['district_val']}}&nbsp;&nbsp;{{$order_address_info['address']}} {{$order_address_info['province_val']}}&nbsp;&nbsp;{{$order_address_info['city_val']}}&nbsp;&nbsp;{{$order_address_info['district_val']}}&nbsp;&nbsp;{{$order_address_info['address']}}
<!-- 订单状态小于5 且 更新地址权限存在 显示按钮 -->
@if (in_array($order_info['status'], array(1, 2, 3, 4)) && in_array('update_address', $userPerms))
@if (isset($_REQUEST['tags']))
<a href="/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm">更改收货地址</a>
@else
<a href="/changeShipping/{{$order_info['order_id']}}" class="btn btn-success btn-sm">更改收货地址</a>
@endif
@endif
</td> </td>
</tr> @endif
@endif
<tr>
<th>客户备注</th>
<td>{{$order_info['order_remark']}}</td> <td>{{$order_info['order_remark']}}</td>
</tr> </tr>
</table> </table>
</div> </div>
<div class="order-right"> <table class="table table-bordered order-express">
<table class="table order-express"> <tr class="caption">
<?php <th colspan="3" style="text-align: center; background: #f9f9f9;">
$currency = $order_info['currency'] == 2 ? '$' : '¥';
?>
@if ($order_info['order_pay_type'] == 2)
<tr>
<td colspan="2">
<p>
<b style="font-weight:bolder !important;">预付款:</b>
{{$currency.$order_info['advance_amount']}}
</p>
</td>
<td colspan="3">
<p>
<b style="font-weight:bolder !important;">尾款:</b>
{{$currency.number_format($order_info['order_amount'] - $order_info['advance_amount'], 2, '.', '')}}
</p>
</td>
</tr>
@endif
<tr>
<td>
<p>
<b style="font-weight:bolder !important;">交易状态:</b>
<?php
switch ($order_info['status']) {
case -2: echo "审核未通过";break;
case -1: echo "已取消";break;
case 1: echo "待审核";break;
case 2: echo "待付款";break;
case 3: echo "待付尾款";break;
case 4: echo "待发货";break;
case 7: echo "部分发货";break;
case 8: echo "待收货";break;
case 10: echo "交易成功";break;
}
?>
</p>
</td>
<td>
<p>
<b style="font-weight:bolder !important;">对账状态:</b>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['order_id'] != '') {
echo '全款对账正常';
} else {
echo '未对账';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['order_id'] != '') {
echo '尾款对账正常';
} else if (!empty($order_pay_log) && $order_pay_log[0]['order_id'] != '') {
echo '首款对账正常';
} else {
echo '未对账';
}
}
?>
</p>
</td>
<td>
<p>
<b style="font-weight:bolder !important;">配送状态:</b>
<?php
switch ($order_shipping_info['status']) {
case 1: echo '已配送'; break;
case 2: echo '已签收'; break;
default: echo '未配送'; break;
}
?>
</p>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<p>
<b style="font-weight:bolder !important;">支付方式:</b>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['pay_name'] != '') {
echo $order_pay_log[0]['pay_name'];
} else {
echo '--';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['pay_name'] != '') {
echo $order_pay_log[1]['pay_name'];
} else if (!empty($order_pay_log) && $order_pay_log[0]['pay_name'] != '') {
echo $order_pay_log[0]['pay_name'];
} else {
echo '--';
}
}
?>
</p>
</td>
<td>
<p>
<b style="font-weight:bolder !important;">支付类型:</b>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['pay_type'] != '') {
echo '全款';
} else {
echo '--';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['pay_type'] != '') {
echo '尾款';
} else if (!empty($order_pay_log) && $order_pay_log[0]['pay_type'] != '') {
echo '预付款';
} else {
echo '--';
}
}
?>
</p>
</td>
<td>
<p>
<b style="font-weight:bolder !important;">支付状态:</b>
<?php
if ($order_info['order_pay_type'] == 1) {
if (!empty($order_pay_log) && $order_pay_log[0]['is_paid'] != '') {
echo $order_pay_log[0]['is_paid'] == 1 ? '已支付' : '未支付';
} else {
echo '--';
}
} else if ($order_info['order_pay_type'] == 2) {
if (isset($order_pay_log[1]) && $order_pay_log[1]['is_paid'] != '') {
echo $order_pay_log[1]['is_paid'] == 1 ? '已支付' : '未支付';
} else if (!empty($order_pay_log) && $order_pay_log[0]['is_paid'] != '') {
echo $order_pay_log[0]['is_paid'] == 1 ? '已支付' : '未支付';
} else {
echo '--';
}
}
?>
</p>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table class="table table-bordered order-express">
<tr class="caption">
<th colspan="3" style="text-align: center;">
发票信息 发票信息
<!-- 发票状态小于2(已发货)且更改权限存在 显示按钮 --> <!-- 发票状态小于2(已发货)且更改权限存在 显示按钮 -->
@if (in_array($order_info['status'], array(1, 2, 3, 4, 7, 8)) && $order_invoice_info['invoice_status'] < 2 && in_array('update_invoice', $userPerms)) @if (in_array($order_info['status'], array(1, 2, 3, 4, 7, 8)) && $order_invoice_info['invoice_status'] < 2 && in_array('update_invoice', $userPerms))
@if (isset($_REQUEST['tags'])) @if (isset($_REQUEST['tags']))
<a href="/changeInvoice/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm">更改发票</a> <a href="/changeInvoice/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">更改发票</a>
@else @else
<a href="/changeInvoice/{{$order_info['order_id']}}" class="btn btn-success btn-sm">更改发票</a> <a href="/changeInvoice/{{$order_info['order_id']}}" class="btn btn-success btn-sm changeBtn">更改发票</a>
@endif @endif
@endif @endif
</th> </th>
</tr> </tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<table class="table inv"> <table class="table inv">
<tr>
<th>发票类型</th>
<th>发票抬头</th>
<th>公司注册地址</th>
<th>公司电话</th>
<th>税务登记号</th>
<th>开户银行</th>
<th>银行卡号</th>
<th>开票状态</th>
</tr>
@if ($order_invoice_info['inv_type'] == 1)
<tr style="text-align: center;">
<td colspan="8">不开发票</td>
</tr>
@else
<tr> <tr>
<th>发票类型</th> <td>
<th>发票抬头</th> <?php
<th>公司注册地址</th> switch ($order_invoice_info['inv_type']) {
<th>公司电话</th> case 2: echo '个人普通发票';break;
<th>税务登记号</th> case 3: echo '增值税发票';break;
<th>开户银行</th> case 4: echo '公司普通发票';break;
<th>银行卡号</th> }
<th>开票状态</th> ?>
</td>
<td>{{$order_invoice_info['tax_title']}}</td>
<td>{{$order_invoice_info['company_address']}}</td>
<td>{{$order_invoice_info['company_phone']}}</td>
<td>{{$order_invoice_info['tax_no']}}</td>
<td>{{$order_invoice_info['bank_name']}}</td>
<td>{{$order_invoice_info['bank_account']}}</td>
<td>{{$order_invoice_info['invoice_status_val']}}</td>
</tr> </tr>
@if ($order_invoice_info['inv_type'] == 1) @endif
<tr style="text-align: center;"> </table>
<td colspan="20">不开发票</td> </td>
</tr> </tr>
@else </table>
<tr>
<td>
<?php
switch ($order_invoice_info['inv_type']) {
case 2: echo '个人普通发票';break;
case 3: echo '增值税发票';break;
case 4: echo '公司普通发票';break;
}
?>
</td>
<td>{{$order_invoice_info['tax_title']}}</td>
<td>{{$order_invoice_info['company_address']}}</td>
<td>{{$order_invoice_info['company_phone']}}</td>
<td>{{$order_invoice_info['tax_no']}}</td>
<td>{{$order_invoice_info['bank_name']}}</td>
<td>{{$order_invoice_info['bank_account']}}</td>
<td>{{$order_invoice_info['invoice_status_val']}}</td>
</tr>
@endif
</table> @if (!empty($order_info['order_source']) && preg_match('/adtag\=/', $order_info['order_source']))
</td>
</tr>
</table>
</div>
</div>
@if (!empty($order_info['order_source']) && preg_match('/adtag\=/', $order_info['order_source']))
<div style="background: #fff;">
<table class="table table-bordered table-hover"> <table class="table table-bordered table-hover">
<tr> <tr>
<td width="10%" style="color: #343434;">Adtag值:</td> <th width="10%">Adtag值:</th>
<td>{{$order_info['order_source']}}</td> <td>{{$order_info['order_source']}}</td>
</tr> </tr>
</table> </table>
</div> @endif
@endif
<?php
$shipping = App\Http\Controllers\getShipping($order_info['order_id']);
?>
@if (!empty($shipping))
<table class="table table-bordered table-hover">
<tr class="caption">
<th colspan="4" style="text-align: center; background: #f9f9f9;">
订单物流信息
</th>
</tr>
@foreach ($shipping as $s)
<tr>
<th width="10%">快递单号:</th>
<td>{{$s->shipping_no}}</td>
<th width="10%">配送方式:</th>
<td>
<?php
switch ($s->status) {
case 0:
case 1: echo '已配送'; break;
case 2: echo '已签收'; break;
default: echo '未配送'; break;
}
?>
</td>
</tr>
@endforeach
</table>
@endif
</div>
<div class="tabs-box goods-price"> <div class="tabs-box goods-price">
<table class="table"> <table class="table">
<thead> <thead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment