Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8ef24967
authored
Apr 18, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
详情页调整
parent
a9fa7310
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
257 additions
and
244 deletions
public/css/detail.css
resources/views/detail/content.blade.php
public/css/detail.css
View file @
8ef24967
/* 订单信息 */
.order-details
.order-info
{
width
:
33
%
;
width
:
100
%
;
display
:
inline-block
;
}
.order-details
.table
{
...
...
@@ -9,10 +9,14 @@
/* 订单信息右侧 */
.order-details
.order-right
{
width
:
66
%
;
width
:
100
%
;
display
:
inline-block
;
}
.changeBtn
{
float
:
right
;
}
.order-details
.order-total
{
text-align
:
right
;
}
...
...
resources/views/detail/content.blade.php
View file @
8ef24967
...
...
@@ -13,18 +13,175 @@
?>
<input
type=
"hidden"
class=
"action_type"
value=
"{{$action_name}}"
>
<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"
>
<input
type=
"hidden"
id=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<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>
<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>
{{$order_info['order_sn']}}
</td>
</tr>
<tr>
<th>
会员账号
</th>
<td>
@if ($user_mobile)
{{$user_mobile}}
...
...
@@ -32,273 +189,125 @@
{{isset($order_info['user_info']['email']) ? $order_info['user_info']['email'] : ''}}
@endif
</td>
</tr>
<tr>
<th>
收货人
</th>
<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)
<tr>
<th>
配送方式
</th>
@if ($order_info['order_shipping_type'] == 2)
<td>
客户自提
</td>
</tr>
<tr>
<th>
自提地址
</th><td>
{{$order_address_info['address']}}
</td>
</tr>
@else
<tr>
<th>
配送方式
</th>
<td>
{{$order_address_info['address']}}
</td>
@else
<td>
快递送货
</td>
</tr>
<tr>
<th>
收货地址
</th>
<td>
{{$order_address_info['province_val']}}
{{$order_address_info['city_val']}}
{{$order_address_info['district_val']}}
{{$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>
</tr>
@endif
<tr>
<th>
客户备注
</th>
@endif
<td>
{{$order_info['order_remark']}}
</td>
</tr>
</tr>
</table>
</div>
<div
class=
"order-right"
>
<table
class=
"table order-express"
>
<?php
$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>
</td>
<td>
</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>
</td>
<td>
</td>
</tr>
</table>
<table
class=
"table table-bordered order-express"
>
<tr
class=
"caption"
>
<th
colspan=
"3"
style=
"text-align: center;"
>
<table
class=
"table table-bordered order-express"
>
<tr
class=
"caption"
>
<th
colspan=
"3"
style=
"text-align: center; background: #f9f9f9;"
>
发票信息
<!-- 发票状态小于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
(
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
<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
</th>
</tr>
</tr>
<tr>
<td
colspan=
"3"
>
<table
class=
"table inv"
>
<tr>
<td
colspan=
"3"
>
<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>
<th>
发票类型
</th>
<th>
发票抬头
</th>
<th>
公司注册地址
</th>
<th>
公司电话
</th>
<th>
税务登记号
</th>
<th>
开户银行
</th>
<th>
银行卡号
</th>
<th>
开票状态
</th>
<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>
@if ($order_invoice_info['inv_type'] == 1)
<tr
style=
"text-align: center;"
>
<td
colspan=
"20"
>
不开发票
</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
</table>
</td>
</tr>
</table>
</table>
</td>
</tr>
</table>
</div>
</div>
@if (!empty($order_info['order_source'])
&&
preg_match('/adtag\=/', $order_info['order_source']))
<div
style=
"background: #fff;"
>
@if (!empty($order_info['order_source'])
&&
preg_match('/adtag\=/', $order_info['order_source']))
<table
class=
"table table-bordered table-hover"
>
<tr>
<t
d
width=
"10%"
style=
"color: #343434;"
>
Adtag值:
</td
>
<t
h
width=
"10%"
>
Adtag值:
</th
>
<td>
{{$order_info['order_source']}}
</td>
</tr>
</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"
>
<table
class=
"table"
>
<thead>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment