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
e6c56b19
authored
May 11, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整调价信息
parent
84b5420f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/changeOrder.blade.php
app/Http/Controllers/OrderController.php
View file @
e6c56b19
...
...
@@ -786,15 +786,15 @@ Class OrderController extends Controller
if
(
$request
->
isMethod
(
'post'
))
{
$order_id
=
$request
->
input
(
'order_id'
);
$order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
([
'order_id'
=>
$order_id
])
->
update
([
'order_temp_info'
=>
''
]);
// 调价失败临时表状态更改
$order_temp
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_temp_info'
)
->
where
([
'order_id'
=>
$order_id
])
->
update
([
'status'
=>
-
1
]);
if
(
!
$order
)
{
if
(
!
$order
_temp
)
{
return
array
(
'errcode'
=>-
1
,
'errmsg'
=>
'驳回失败'
);
}
return
array
(
'errcode'
=>
0
,
'errmsg'
=>
'驳回成功'
);
}
}
...
...
@@ -873,6 +873,9 @@ Class OrderController extends Controller
->
update
(
$data
);
if
(
$update
)
{
// 调价失败临时表状态更改
DB
::
connection
(
'order'
)
->
table
(
'lie_order_temp_info'
)
->
where
([
'order_id'
=>
$id
])
->
update
([
'status'
=>
0
]);
return
redirect
(
'/change/'
.
$id
);
}
else
{
return
redirect
(
'/prompt'
)
->
with
([
'message'
=>
"调价操作更新数据失败!"
,
'url'
=>
'/details/'
.
$id
,
'jumpTime'
=>
3
,
'status'
=>
false
]);
...
...
@@ -1317,6 +1320,7 @@ Class OrderController extends Controller
'order_invoice_shipping_info'
=>
$temp
[
'data'
][
'order_invoice_shipping_info'
],
'order_pay_log'
=>
$temp
[
'data'
][
'order_pay_log'
],
'order_price_info'
=>
$temp
[
'data'
][
'order_price_info'
],
'order_temp_info'
=>
$temp
[
'data'
][
'order_temp_info'
],
];
$response
=
array_merge
(
$response
,
$info
);
...
...
resources/views/detail/changeOrder.blade.php
View file @
e6c56b19
...
...
@@ -148,7 +148,7 @@
</tr>
</table>
@if ($order_info['status'] == 1
&&
$order_
info['order_temp_info']
)
@if ($order_info['status'] == 1
&&
$order_
temp_info['status'] == 1
)
<a
class=
"btn btn-primary checkAdjusted"
>
查看调价信息
</a>
@else
<a
class=
"btn btn-primary checkOrder"
>
提交
</a>
...
...
@@ -212,17 +212,17 @@
</div>
</div>
@if ($order_info['status'] == 1
&&
$order_
info['order_temp_info']
)
@if ($order_info['status'] == 1
&&
$order_
temp_info['status'] == 1
)
<div
class=
"tabs-box adjusted_order"
style=
"display: none;"
>
<div
class=
"order-change-main"
>
<form
id=
"adjustedOrderForm"
class=
"form-horizontal"
>
<input
type=
"hidden"
name=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<input
type=
"hidden"
name=
"sale_id"
value=
"{{$order_info['sale_id']}}"
>
<input
type=
"hidden"
name=
"extra_fee"
value=
"{{$order_
info['order_temp_info']
['extra_fee']}}"
>
<input
type=
"hidden"
name=
"goods_amount"
value=
"{{$order_
info['order_temp_info']
['goods_amount']}}"
>
<input
type=
"hidden"
name=
"deposit_amount"
value=
"{{$order_
info['order_temp_info']
['deposit_amount']}}"
>
<input
type=
"hidden"
name=
"order_pay_type"
value=
"{{$order_
info['order_temp_info']
['order_pay_type']}}"
>
<input
type=
"hidden"
name=
"pay_time_limit"
value=
"{{$order_
info['order_temp_info']
['pay_time_limit']}}"
>
<input
type=
"hidden"
name=
"extra_fee"
value=
"{{$order_
temp_info
['extra_fee']}}"
>
<input
type=
"hidden"
name=
"goods_amount"
value=
"{{$order_
temp_info
['goods_amount']}}"
>
<input
type=
"hidden"
name=
"deposit_amount"
value=
"{{$order_
temp_info
['deposit_amount']}}"
>
<input
type=
"hidden"
name=
"order_pay_type"
value=
"{{$order_
temp_info
['order_pay_type']}}"
>
<input
type=
"hidden"
name=
"pay_time_limit"
value=
"{{$order_
temp_info
['pay_time_limit']}}"
>
<input
type=
"hidden"
name=
"cancel_reason"
value=
"{{isset($order_info['cancle_reason']) ? $order_info['cancle_reason'] : ''}}"
>
<table
class=
"table table-bordered table-hover"
>
...
...
@@ -235,7 +235,7 @@
</thead>
<tbody>
@foreach ($order_
info['order_temp_info']
['change_info'] as $k => $v)
@foreach ($order_
temp_info
['change_info'] as $k => $v)
<tr>
<td>
<input
type=
"hidden"
name=
"change_info[{{$k}}][goods_name]"
value=
"{{$v['goods_name']}}"
>
...
...
@@ -257,12 +257,12 @@
<table
class=
"table table-bordered table-hover"
>
<tr>
<th>
商品总额:
</th>
<td>
{{$order_
info['order_temp_info']
['goods_amount']}}
</td>
<td>
{{$order_
temp_info
['goods_amount']}}
</td>
</tr>
<tr>
<th>
附加费:
</th>
<td>
{{$order_
info['order_temp_info']
['extra_fee']}}
</td>
<td>
{{$order_
temp_info
['extra_fee']}}
</td>
</tr>
<tr>
...
...
@@ -272,12 +272,12 @@
<tr>
<th>
订单总额:
</th>
<td>
{{$order_
info['order_temp_info']['goods_amount'] + $order_info['order_temp_info']
['extra_fee'] + $order_price_info['discount_amount']}}
</td>
<td>
{{$order_
temp_info['goods_amount'] + $order_temp_info
['extra_fee'] + $order_price_info['discount_amount']}}
</td>
</tr>
<tr>
<th>
付款时间:
</th>
<td>
{{$order_
info['order_temp_info']
['pay_time_limit'].'天'}}
</td>
<td>
{{$order_
temp_info
['pay_time_limit'].'天'}}
</td>
</tr>
</table>
</form>
...
...
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