Commit adf4ff56 by 朱继来

调整订单详情页样式

parent 29a9b7d9
Showing with 158 additions and 177 deletions
...@@ -164,192 +164,173 @@ ...@@ -164,192 +164,173 @@
</tr> </tr>
</table> </table>
<div class="col-lg-12 col-md-12 col-xs-12"> <table class="table table-bordered">
<!-- 收货信息 --> <tr class="caption">
<div class="col-lg-4 col-md-4 col-xs-4"> <th colspan="7" style="text-align: center; background: #f9f9f9;">
<table class="table table-bordered"> 收货信息
<caption style="text-align: center; background: #f9f9f9;">收货信息 @if (!$isPage)
@if (!$isPage) <!-- 订单状态小于5 且 更新地址权限存在 显示按钮 -->
<!-- 订单状态小于5 且 更新地址权限存在 显示按钮 --> @if (!isset($_REQUEST['tags']))
@if (!isset($_REQUEST['tags'])) @if (in_array($order_info['status'], array(1, 2, 3, 4)) && in_array('update_address', $userPerms))
@if (in_array($order_info['status'], array(1, 2, 3, 4)) && in_array('update_address', $userPerms)) <a href="/changeShipping/{{$order_info['order_id']}}" class="btn btn-success btn-sm changeBtn">更改收货地址</a>
<a href="/changeShipping/{{$order_info['order_id']}}" class="btn btn-success btn-sm changeBtn">编辑</a> @endif
@endif @elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'self')
@elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'self') @if (in_array($order_info['status'], array(1, 2, 4)) && in_array('self_order_update_address', $userPerms))
@if (in_array($order_info['status'], array(1, 2, 4)) && in_array('self_order_update_address', $userPerms)) <a href="/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">更改收货地址</a>
<a href="/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">编辑</a> @endif
@endif @elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'erp')
@elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'erp') <a href="/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">更改收货地址</a>
<a href="/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">编辑</a> @endif
@endif @endif
@endif </th>
</caption> </tr>
<tr>
<tr> <th>订单编号</th>
<th width="25%">订单编号</th> <th>会员账号</th>
<td>{{$order_info['order_sn']}}</td> <th>收货人</th>
</tr> <th>联系电话/手机</th>
<th>配送方式</th>
@if ($order_info['order_shipping_type'] == 2)
<th>自提地址</th>
@else
<th>收货地址</th>
@endif
</tr>
<tr>
<td>
{{$order_info['order_sn']}}
</td>
<td>
@if ($user_mobile)
{{$user_mobile}}
@else
{{isset($order_info['user_info']['email']) ? $order_info['user_info']['email'] : ''}}
@endif
</td>
<tr> <td>{{$order_address_info['consignee']}}</td>
<th>会员账号</th>
<td>
@if ($user_mobile)
{{$user_mobile}}
@else
{{isset($order_info['user_info']['email']) ? $order_info['user_info']['email'] : ''}}
@endif
</td>
</tr>
<tr> <td>{{$order_address_info['mobile']}}</td>
<th>收货人</th>
<td>{{$order_address_info['consignee']}}</td>
</tr>
<tr> @if ($order_info['order_shipping_type'] == 2)
<th>联系电话</th> <td>客户自提</td>
<td>{{$order_address_info['mobile']}}</td> <td>{{$order_address_info['address']}}</td>
</tr> @else
<td>快递送货</td>
<tr> <td>
<th>配送方式</th> {{$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']}}
<td> </td>
@if ($order_info['order_shipping_type'] == 2) @endif
客户自提 </tr>
@else </table>
快递送货
@endif @if (!empty($order_invoice_info))
</td> <table class="table table-bordered order-express">
</tr> <tr class="caption">
<th colspan="3" style="text-align: center; background: #f9f9f9;">
<tr> 发票信息
<th>配送地址</th> @if (!$isPage)
<td> <!-- 发票状态小于2(已发货)且更改权限存在 显示按钮 -->
@if ($order_info['order_shipping_type'] == 2) @if (!isset($_REQUEST['tags']))
{{$order_address_info['address']}} @if(in_array($order_info['status'], [1, 2, 3, 4]) && $order_invoice_info['invoice_status'] < 2 && in_array('update_invoice', $userPerms))
@else <a href="/changeInvoice/{{$order_info['order_id']}}" class="btn btn-success btn-sm changeBtn">更改发票</a>
{{$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']}}
@endif
</td>
</tr>
</table>
</div>
<!-- 发票信息 -->
@if (!empty($order_invoice_info))
<div class="col-lg-4 col-md-4 col-xs-4">
<table class="table table-bordered">
<caption style="text-align: center; background: #f9f9f9;">
发票信息
@if (!$isPage)
<!-- 发票状态小于2(已发货)且更改权限存在 显示按钮 -->
@if (!isset($_REQUEST['tags']))
@if(in_array($order_info['status'], [1, 2, 3, 4]) && $order_invoice_info['invoice_status'] < 2 && in_array('update_invoice', $userPerms))
<a href="/changeInvoice/{{$order_info['order_id']}}" class="btn btn-success btn-sm changeBtn">编辑</a>
@endif
@elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'self' && !$extend)
<?php
if ($order_info['status'] > 3) { // 已付款请求财务接口判断是否能修改发票
$isChangeInvoice = App\Http\Controllers\isChangeInvoice($order_info['order_sn']);
if ($isChangeInvoice) {
echo '<a href="/changeInvoice/'.$order_info['order_id'].'?tags='.$_REQUEST['tags'].'" class="btn btn-success btn-sm changeBtn">编辑</a>';
}
} else {
if ($order_invoice_info['invoice_status'] < 2 && in_array('self_order_update_invoice', $userPerms)) {
echo '<a href="/changeInvoice/'.$order_info['order_id'].'?tags='.$_REQUEST['tags'].'" class="btn btn-success btn-sm changeBtn">编辑</a>';
}
}
?>
<!-- in_array($order_info['status'], [1, 2, 3, 4]) && $order_invoice_info['invoice_status'] < 2 && in_array('self_order_update_invoice', $userPerms) -->
@elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'erp')
<a href="/changeInvoice/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">编辑</a>
@endif
@endif @endif
</caption> @elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'self' && !$extend)
<?php
@if ($order_invoice_info['inv_type'] == 1) if ($order_info['status'] > 3) { // 已付款请求财务接口判断是否能修改发票
<tr style="text-align: center;"> $isChangeInvoice = App\Http\Controllers\isChangeInvoice($order_info['order_sn']);
<td colspan="8">不开发票</td>
</tr>
@else
<tr>
<th width="25%">发票类型</th>
<td>
<?php
switch ($order_invoice_info['inv_type']) {
case 2: echo '普通发票';break;
case 3: echo '增值税专用发票';break;
case 4: echo '增值税普通发票';break;
}
?>
</td>
</tr>
<tr> if ($isChangeInvoice) {
<th>发票抬头</th> echo '<a href="/changeInvoice/'.$order_info['order_id'].'?tags='.$_REQUEST['tags'].'" class="btn btn-success btn-sm changeBtn">更改发票</a>';
<td>{{$order_invoice_info['tax_title']}}</td> }
</tr> } else {
<tr> if ($order_invoice_info['invoice_status'] < 2 && in_array('self_order_update_invoice', $userPerms)) {
<th>公司注册地址</th> echo '<a href="/changeInvoice/'.$order_info['order_id'].'?tags='.$_REQUEST['tags'].'" class="btn btn-success btn-sm changeBtn">更改发票</a>';
<td>{{$order_invoice_info['company_address']}}</td> }
</tr> }
<tr> ?>
<th>公司电话</th> <!-- in_array($order_info['status'], [1, 2, 3, 4]) && $order_invoice_info['invoice_status'] < 2 && in_array('self_order_update_invoice', $userPerms) -->
<td>{{$order_invoice_info['company_phone']}}</td> @elseif (isset($_REQUEST['tags']) && $_REQUEST['tags'] == 'erp')
</tr> <a href="/changeInvoice/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}" class="btn btn-success btn-sm changeBtn">更改发票</a>
<tr>
<th>税务登记号</th>
<td>{{$order_invoice_info['tax_no']}}</td>
</tr>
<tr>
<th>开户银行</th>
<td>{{$order_invoice_info['bank_name']}}</td>
</tr>
<tr>
<th>银行卡号</th>
<td>{{$order_invoice_info['bank_account']}}</td>
</tr>
<tr>
<th>开票状态</th>
<td>{{$order_invoice_info['invoice_status_val']}}</td>
</tr>
@endif @endif
</table> @endif
</div> </th>
@endif </tr>
<!-- 合同乙方信息 --> <tr>
<div class="col-lg-4 col-md-4 col-xs-4"> <td colspan="3">
<table class="table table-bordered"> <table class="table inv">
<caption style="text-align: center; background: #f9f9f9;"> <tr>
合同乙方信息 <th>发票类型</th>
<th>发票抬头</th>
<!-- 待审核可编辑 --> <th>公司注册地址</th>
@if ($order_info['status'] == 1) <th>公司电话</th>
<a href="javascript:;" class="btn btn-success btn-sm changeBtn contract_info_edit">编辑</a> <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>
<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 @endif
</caption> </table>
</td>
</tr>
</table>
@endif
<tr> <table class="table table-bordered">
<th width="25%">公司名称</th> <caption style="text-align: center; background: #f9f9f9;">
<td>{{ $order_temp_info['contract_com_name'] }}</td> 合同乙方信息
</tr>
<tr> <!-- 待审核可编辑 -->
<th>公司地址</th> @if ($order_info['status'] == 1)
<td>{{ $order_temp_info['contract_com_addr'] }}</td> <a href="javascript:;" class="btn btn-success btn-sm changeBtn contract_info_edit">编辑</a>
</tr> @endif
<tr> </caption>
<th>联系人</th>
<td>{{ $order_temp_info['contract_link_name'] }}</td> <tr>
</tr> <th>公司名称</th>
<tr> <th>公司地址</th>
<th>联系电话</th> <th>联系人</th>
<td>{{ $order_temp_info['contract_link_tel'] }}</td> <th>联系电话</th>
</tr> </tr>
</table> @if ($order_temp_info['contract_com_name'])
</div> <tr>
</div> <td>{{ $order_temp_info['contract_com_name'] }}</td>
<td>{{ $order_temp_info['contract_com_addr'] }}</td>
<td>{{ $order_temp_info['contract_link_name'] }}</td>
<td>{{ $order_temp_info['contract_link_tel'] }}</td>
</tr>
@else
<tr>
<td colspan="4" style="text-align: center;">无乙方信息</td>
</tr>
@endif
</table>
<!-- 发票收货地址 --> <!-- 发票收货地址 -->
@if ($order_invoice_address_info) @if ($order_invoice_address_info)
......
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