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
42860d30
authored
May 24, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_erp_syn_20190514' into development
parents
4f18777e
b9cf3fdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
157 additions
and
176 deletions
resources/views/detail/content.blade.php
resources/views/detail/content.blade.php
View file @
42860d30
...
@@ -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>
<th>
订单编号
</th>
<th>
会员账号
</th>
<th>
收货人
</th>
<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
width=
"25%"
>
订单编号
</th>
<td>
{{$order_info['order_sn']}}
</td>
</tr>
<tr>
<td>
{{$order_address_info['mobile']}}
</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>
@if ($order_info['order_shipping_type'] == 2)
<th>
收货人
</th>
<td>
客户自提
</td>
<td>
{{$order_address_info['consignee']}}
</td>
<td>
{{$order_address_info['address']}}
</td>
</tr>
@else
<td>
快递送货
</td>
<td>
{{$order_address_info['province_val']}}
{{$order_address_info['city_val']}}
{{$order_address_info['district_val']}}
{{$order_address_info['address']}}
</td>
@endif
</tr>
</table>
@if (!empty($order_invoice_info))
<table
class=
"table table-bordered order-express"
>
<tr
class=
"caption"
>
<th
colspan=
"3"
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'
]);
<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_address_info['mobile']}}
</td>
}
</tr>
}
else
{
if
(
$order_invoice_info
[
'invoice_status'
]
<
2
&&
in_array
(
'self_order_update_invoice'
,
$userPerms
))
{
<tr>
echo
'<a href="/changeInvoice/'
.
$order_info
[
'order_id'
]
.
'?tags='
.
$_REQUEST
[
'tags'
]
.
'" class="btn btn-success btn-sm changeBtn">更改发票</a>'
;
<th>
配送方式
</th>
}
<td>
}
@if ($order_info['order_shipping_type'] == 2)
?>
客户自提
<!-- in_array($order_info['status'], [1, 2, 3, 4]) && $order_invoice_info['invoice_status'] < 2 && in_array('self_order_update_invoice', $userPerms) -->
@else
@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
</td>
@endif
</tr>
</th>
</tr>
<tr>
<tr>
<th>
配送地址
</th>
<td
colspan=
"3"
>
<td>
<table
class=
"table inv"
>
@if ($order_info['order_shipping_type'] == 2)
<tr>
{{$order_address_info['address']}}
<th>
发票类型
</th>
@else
<th>
发票抬头
</th>
{{$order_address_info['province_val']}}
{{$order_address_info['city_val']}}
{{$order_address_info['district_val']}}
{{$order_address_info['address']}}
<th>
公司注册地址
</th>
@endif
<th>
公司电话
</th>
</td>
<th>
税务登记号
</th>
</tr>
<th>
开户银行
</th>
</table>
<th>
银行卡号
</th>
</div>
<th>
开票状态
</th>
</tr>
<!-- 发票信息 -->
@if (!empty($order_invoice_info))
@if ($order_invoice_info['inv_type'] == 1)
<div
class=
"col-lg-4 col-md-4 col-xs-4"
>
<tr
style=
"text-align: center;"
>
<table
class=
"table table-bordered"
>
<td
colspan=
"8"
>
不开发票
</td>
<caption
style=
"text-align: center; background: #f9f9f9;"
>
</tr>
发票信息
@else
@if (!$isPage)
<tr>
<!-- 发票状态小于2(已发货)且更改权限存在 显示按钮 -->
<td>
@if (!isset($_REQUEST['tags']))
<?php
@if(in_array($order_info['status'], [1, 2, 3, 4])
&&
$order_invoice_info['invoice_status']
<
2
&&
in_array
('
update_invoice
',
$
userPerms
))
switch
(
$order_invoice_info
[
'inv_type'
])
{
<
a
href=
"/changeInvoice/{{$order_info['order_id']}}"
class=
"btn btn-success btn-sm changeBtn"
>
编辑
</a>
case
2
:
echo
'普通发票'
;
break
;
@endif
case
3
:
echo
'增值税专用发票'
;
break
;
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'self'
&&
!$extend)
case
4
:
echo
'增值税普通发票'
;
break
;
<?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>'
;
}
}
}
?>
?>
</td>
<!-- 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['tax_title']}}
</td>
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'erp')
<td>
{{$order_invoice_info['company_address']}}
</td>
<a
href=
"/changeInvoice/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}"
class=
"btn btn-success btn-sm changeBtn"
>
编辑
</a>
<td>
{{$order_invoice_info['company_phone']}}
</td>
@endif
<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>
@if ($order_invoice_info['inv_type'] == 1)
</tr>
<tr
style=
"text-align: center;"
>
</table>
<td
colspan=
"8"
>
不开发票
</td>
@endif
</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>
<table
class=
"table table-bordered"
>
<th>
发票抬头
</th>
<tr
class=
"caption"
>
<td>
{{$order_invoice_info['tax_title']}}
</td>
<th
colspan=
"4"
style=
"text-align: center; background: #f9f9f9;"
>
合同乙方信息
</tr>
<!-- 待审核可编辑 -->
<tr>
@if ($order_info['status'] == 1)
<th>
公司注册地址
</th>
<a
href=
"javascript:;"
class=
"btn btn-success btn-sm changeBtn contract_info_edit"
>
编辑
</a>
<td>
{{$order_invoice_info['company_address']}}
</td>
</tr>
<tr>
<th>
公司电话
</th>
<td>
{{$order_invoice_info['company_phone']}}
</td>
</tr>
<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>
</th>
</div>
</tr>
@endif
<!-- 合同乙方信息 -->
<div
class=
"col-lg-4 col-md-4 col-xs-4"
>
<table
class=
"table table-bordered"
>
<caption
style=
"text-align: center; background: #f9f9f9;"
>
合同乙方信息
<!-- 待审核可编辑 -->
@if ($order_info['status'] == 1)
<a
href=
"javascript:;"
class=
"btn btn-success btn-sm changeBtn contract_info_edit"
>
编辑
</a>
@endif
</caption>
<tr>
<tr>
<th
width=
"25%"
>
公司名称
</th>
<th
>
公司名称
</th>
<td>
{{ $order_temp_info['contract_com_name'] }}
</td
>
<th>
公司地址
</th
>
</tr
>
<th>
联系人
</th
>
<tr
>
<th>
联系电话
</th
>
<th>
公司地址
</th
>
</tr
>
<td>
{{ $order_temp_info['contract_com_addr'] }}
</td>
@if ($order_temp_info['contract_com_name'])
</
tr>
<
tr>
<tr
>
<td>
{{ $order_temp_info['contract_com_name'] }}
</td
>
<th>
联系人
</th
>
<td>
{{ $order_temp_info['contract_com_addr'] }}
</td
>
<td>
{{ $order_temp_info['contract_link_name'] }}
</td>
<td>
{{ $order_temp_info['contract_link_name'] }}
</td>
</tr
>
<td>
{{ $order_temp_info['contract_link_tel'] }}
</td
>
<
tr>
</
tr>
<th>
联系电话
</th>
@else
<td>
{{ $order_temp_info['contract_link_tel'] }}
</td
>
<tr
>
<
/tr
>
<
td
colspan=
"4"
style=
"text-align: center;"
>
无乙方信息
</td
>
</t
able
>
</t
r
>
</div>
@endif
</
div
>
</
table
>
<!-- 发票收货地址 -->
<!-- 发票收货地址 -->
@if ($order_invoice_address_info)
@if ($order_invoice_address_info)
...
...
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