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
39661fc2
authored
Apr 04, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_adjust_price_20180404' into 'master'
添加再次调价 See merge request
!26
parents
926bfbca
64df2161
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
18 deletions
app/Http/Controllers/OrderController.php
app/Http/routes.php
resources/views/detail/changeOrder.blade.php
resources/views/detail/content.blade.php
app/Http/Controllers/OrderController.php
View file @
39661fc2
...
@@ -764,6 +764,32 @@ Class OrderController extends Controller
...
@@ -764,6 +764,32 @@ Class OrderController extends Controller
}
}
}
}
// 人工审单后再次调价 --- 20180404
public
function
adjustPrice
(
Request
$request
,
$id
)
{
$info
=
$this
->
orderDetail
(
$request
,
$id
);
//总共允许2次调价(以点击审核按钮次数来统计)
if
(
$info
[
'order_info'
][
'adjust_count'
]
>=
2
)
{
return
redirect
(
'/prompt'
)
->
with
([
'message'
=>
"该订单无法再进行调价操作"
,
'url'
=>
'/details/'
.
$id
,
'jumpTime'
=>
3
,
'status'
=>
false
]);
}
$data
[
'confirm_time'
]
=
0
;
$data
[
'status'
]
=
1
;
$data
[
'sale_id'
]
=
0
;
// 再次调价调整sale_id
$update
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
(
'order_id'
,
'='
,
$id
)
->
update
(
$data
);
if
(
$update
)
{
return
redirect
(
'/change/'
.
$id
);
}
else
{
return
redirect
(
'/prompt'
)
->
with
([
'message'
=>
"调价操作更新数据失败!"
,
'url'
=>
'/details/'
.
$id
,
'jumpTime'
=>
3
,
'status'
=>
false
]);
}
}
// 申请再次调价
// 申请再次调价
public
function
applyAdjust
(
Request
$request
,
$id
)
public
function
applyAdjust
(
Request
$request
,
$id
)
{
{
...
...
app/Http/routes.php
View file @
39661fc2
...
@@ -44,6 +44,7 @@ Route::group(['middleware' => 'web'], function () {
...
@@ -44,6 +44,7 @@ Route::group(['middleware' => 'web'], function () {
Route
::
match
([
'get'
,
'post'
],
'/applyAdjust/{id}'
,
'OrderController@applyAdjust'
);
Route
::
match
([
'get'
,
'post'
],
'/applyAdjust/{id}'
,
'OrderController@applyAdjust'
);
Route
::
match
([
'get'
,
'post'
],
'/send/{id}'
,
'OrderController@send'
);
Route
::
match
([
'get'
,
'post'
],
'/send/{id}'
,
'OrderController@send'
);
Route
::
post
(
'/ajaxCheck'
,
'OrderController@ajaxCheck'
);
Route
::
post
(
'/ajaxCheck'
,
'OrderController@ajaxCheck'
);
Route
::
match
([
'get'
,
'post'
],
'/adjustPrice/{id}'
,
'OrderController@adjustPrice'
);
Route
::
match
([
'get'
,
'post'
],
'/cancelPay/{id}'
,
'OrderController@cancelPay'
);
Route
::
match
([
'get'
,
'post'
],
'/cancelPay/{id}'
,
'OrderController@cancelPay'
);
Route
::
match
([
'get'
,
'post'
],
'/checkPay/{id}'
,
'OrderController@checkPay'
);
Route
::
match
([
'get'
,
'post'
],
'/checkPay/{id}'
,
'OrderController@checkPay'
);
Route
::
match
([
'get'
,
'post'
],
'/invShipping/{id}'
,
'OrderController@invShipping'
);
Route
::
match
([
'get'
,
'post'
],
'/invShipping/{id}'
,
'OrderController@invShipping'
);
...
...
resources/views/detail/changeOrder.blade.php
View file @
39661fc2
...
@@ -153,6 +153,10 @@
...
@@ -153,6 +153,10 @@
@if ($order_info['status'] == 2)
@if ($order_info['status'] == 2)
<p>
交易状态:
审核通过,请联系客户及时付款!
</p>
<p>
交易状态:
审核通过,请联系客户及时付款!
</p>
@if ($order_info['adjust_count']
<
2
)
<
a
class=
"btn btn-default"
href=
"{{URL('adjustPrice', ['order_id'=>$order_info['order_id']])}}"
>
再次调价
</a><span
class=
"warn-tip"
>
每笔订单仅有一次“再次调价”机会
</span>
@endif
@endif
@endif
@if ($order_info['status'] == -1)
@if ($order_info['status'] == -1)
...
...
resources/views/detail/content.blade.php
View file @
39661fc2
...
@@ -409,11 +409,6 @@
...
@@ -409,11 +409,6 @@
@include('detail.invShipping')
@include('detail.invShipping')
@endif
@endif
<if
condition=
"ACTION_NAME eq 'cancel'"
>
<!--取消订单-->
<include
file=
"cancel"
/>
</if>
@if ($action_name == 'cancelPay')
@if ($action_name == 'cancelPay')
<!--取消订单 (支付前)-->
<!--取消订单 (支付前)-->
@include('detail.cancelPay')
@include('detail.cancelPay')
...
@@ -429,16 +424,6 @@
...
@@ -429,16 +424,6 @@
@include('detail.check')
@include('detail.check')
@endif
@endif
<if
condition=
"ACTION_NAME eq 'account'"
>
<!--账期设置-->
<include
file=
"account"
/>
</if>
<if
condition=
"ACTION_NAME eq 'recovery'"
>
<!--账期设置-->
<include
file=
"recovery"
/>
</if>
<!-- 查看ERP订单详情时去掉操作按钮 -->
<!-- 查看ERP订单详情时去掉操作按钮 -->
@if (!isset($_REQUEST['tags']))
@if (!isset($_REQUEST['tags']))
<!-- 人工审单时去掉操作按钮 -->
<!-- 人工审单时去掉操作按钮 -->
...
@@ -449,9 +434,9 @@
...
@@ -449,9 +434,9 @@
@if (($role == 1 || $role ==2)
&&
$order_info['status'] == 1
&&
in_array('check_order', $userPerms))
@if (($role == 1 || $role ==2)
&&
$order_info['status'] == 1
&&
in_array('check_order', $userPerms))
<a
class=
"btn btn-success"
href=
"{{URL('change', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-default"
>
人工审单
</a>
<a
class=
"btn btn-success"
href=
"{{URL('change', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-default"
>
人工审单
</a>
@endif
@endif
<!-- <a href="{:U('account', 'order_id='.$order_info['order_id'])}" class="btn btn-default">账期设置</a> -->
@if (($role == 1 || $role ==2)
&&
in_array($order_info['status'], array(1, 2))
&&
in_array('check_order
', $userPerms))
@if (($role == 1 || $role ==2)
&&
$order_info['status'] == 2
&&
in_array('adjust_price
', $userPerms))
<!-- <a href="{{URL('
check', ['order_id'=>$order_info['order_id']])}}" class="btn btn-default">审单
</a> -->
<!-- <a href="{{URL('
adjustPrice', ['order_id'=>$order_info['order_id']])}}" class="btn btn-default">调价
</a> -->
@endif
@endif
@if ($order_info['status'] == 2
&&
in_array('cancel_order', $userPerms))
@if ($order_info['status'] == 2
&&
in_array('cancel_order', $userPerms))
...
...
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