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
002cfa52
authored
Nov 27, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. 自营待付款可审核;
2. 联营审核无次数和商品价格80%限制; 3. 物流、操作记录展开和收起;
parent
c2eb1c6a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
18 deletions
app/Http/Controllers/OrderController.php
public/js/order.js
resources/views/detail/changeOrder.blade.php
resources/views/detail/content.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
002cfa52
...
...
@@ -835,7 +835,7 @@ Class OrderController extends Controller
$info
=
$this
->
orderDetail
(
$request
,
$id
);
//总共允许2次调价(以点击审核按钮次数来统计)
if
(
$info
[
'order_info'
][
'adjust_count'
]
>=
2
)
{
if
(
$info
[
'order_info'
][
'
order_goods_type'
]
!=
1
&&
$info
[
'order_info'
][
'
adjust_count'
]
>=
2
)
{
errorLog
(
Error
::
E_FORBIDDEN
,
'该订单无法再进行调价操作'
);
return
redirect
(
'/prompt'
)
->
with
([
'message'
=>
"该订单无法再进行调价操作"
,
'url'
=>
'/details/'
.
$id
,
'jumpTime'
=>
3
,
'status'
=>
false
]);
}
...
...
public/js/order.js
View file @
002cfa52
...
...
@@ -632,16 +632,16 @@
// 点击物流展开
$
(
'.click-down'
).
click
(
function
()
{
$
(
'.other-infos'
).
show
();
$
(
this
).
parents
(
'tbody'
).
find
(
'.other-infos'
).
show
();
$
(
this
).
hide
();
$
(
'.click-up'
).
show
();
$
(
this
).
parents
(
'tbody'
).
find
(
'.click-up'
).
show
();
})
// 点击物流收起
$
(
'.click-up'
).
click
(
function
()
{
$
(
'.other-infos'
).
hide
();
$
(
this
).
parents
(
'tbody'
).
find
(
'.other-infos'
).
hide
();
$
(
this
).
hide
();
$
(
'.click-down'
).
show
();
$
(
this
).
parents
(
'tbody'
).
find
(
'.click-down'
).
show
();
})
},
...
...
@@ -1254,11 +1254,12 @@
var
payTimeOther
=
$
(
'.payTimeOther'
).
val
();
var
sale_id
=
$
(
'input[name=sale_id]'
).
val
();
var
order_goods_type
=
$
(
'input[name=order_goods_type]'
).
val
();
var
order_id
=
$
(
'input[name=order_id]'
).
val
();
// 联营订单需要先指派业务员
if
(
order_goods_type
==
1
&&
sale_id
==
0
)
{
layer
.
alert
(
'请先将订单推送给业务员'
,
function
(){
location
.
href
=
'/sendSales/'
+
$
(
'input[name=order_id]'
).
val
()
;
location
.
href
=
'/sendSales/'
+
order_id
;
});
return
false
;
}
...
...
@@ -1348,7 +1349,7 @@
}
}
if
(
!
is_manager
)
{
if
(
!
is_manager
&&
order_goods_type
!=
1
)
{
// 非管理员或经理权限和非联营订单需要判断商品价格是否低于80%以下
// 设置默认值false
$
(
'input[name=check_failed]'
).
val
(
0
);
$
(
'input[name=change_pay_type]'
).
val
(
0
);
...
...
@@ -1383,8 +1384,10 @@
if
(
order_goods_type
==
1
)
{
var
extra_fee
=
$
(
'input[name=extra_fee]'
).
val
()
?
currencySign
+
'0'
:
currencySign
+
$
(
'input[name=extra_fee]'
).
val
();
var
content
=
'<div><p class="error">请核对订单金额,谨慎操作!</p><div><p>商品总金额:'
+
goods_amount
+
'</p><p>附加费金额:'
+
extra_fee
+
'</p><p>订单总金额:<span class="error">'
+
order_amount
+
'</span></p></div></div>'
;
var
url
=
'/details/'
+
order_id
;
}
else
{
var
content
=
'<div><p class="error">请核对订单金额,谨慎操作!</p><div><p>商品总金额:'
+
goods_amount
+
'</p><p>订单总金额:<span class="error">'
+
order_amount
+
'</span></p></div></div>'
;
var
url
=
'/details/'
+
order_id
+
'?tags=self'
;
}
// 弹出提示
...
...
@@ -1405,7 +1408,8 @@
if
(
resp
.
errcode
===
0
){
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
setTimeout
(
function
(){
location
.
reload
();
// location.reload();
location
.
href
=
url
;
},
1000
);
}
else
{
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
,
function
(){
...
...
resources/views/detail/changeOrder.blade.php
View file @
002cfa52
<p
style=
"padding-left: 5px;"
>
人工审单
</p>
<div
class=
"tabs-box"
>
<div
class=
"order-change-main"
>
@if (
$order_info['status'] == 1
)
@if (
($order_info['order_goods_type'] == 1
&&
$order_info['status'] == 1) || ($order_info['order_goods_type'] != 1
&&
in_array($order_info['status'], [1, 2]))
)
<form
id=
"checkOrderForm"
class=
"form-horizontal table-responsive"
>
<input
type=
"hidden"
name=
"order_sn"
value=
"{{$order_info['order_sn']}}"
>
<input
type=
"hidden"
name=
"user_id"
value=
"{{$order_info['user_id']}}"
>
...
...
@@ -279,7 +279,7 @@
</form>
@endif
@if ($order_info['status'] == 2)
@if ($order_info['
order_goods_type'] == 1
&&
$order_info['
status'] == 2)
<div
class=
"checked_section"
>
<div
class=
"checked_left"
>
<p>
交易状态:
审核通过,请联系客户及时付款!
...
...
@@ -296,8 +296,10 @@
}
?>
@if ($order_info['adjust_count']
<
2
)
@if ($order_info['
order_goods_type'] == 2
&&
$order_info['
adjust_count']
<
2
)
<
a
class=
"btn btn-default"
href=
"{{$adjustPriceUrl}}"
>
再次调价
</a><span
class=
"warn-tip"
>
每笔订单仅有一次“再次调价”机会
</span>
@elseif ($order_info['order_goods_type'] == 1)
<a
class=
"btn btn-default"
href=
"{{$adjustPriceUrl}}"
>
再次调价
</a>
@endif
</div>
...
...
resources/views/detail/content.blade.php
View file @
002cfa52
...
...
@@ -566,11 +566,11 @@
<div
class=
"tabs-box"
>
<!-- 判断操作权限 -->
@if ($order_info['status'] == 1
&&
in_array('check_order', $userPerms))
<a
class=
"btn btn-
success
"
href=
"{{URL('change', ['order_id'=>$order_info['order_id']])}}"
>
人工审单
</a>
<a
class=
"btn btn-
info
"
href=
"{{URL('change', ['order_id'=>$order_info['order_id']])}}"
>
人工审单
</a>
@endif
@if ($order_info['status'] == 2
&&
in_array('cancel_order', $userPerms))
<a
href=
"{{URL('cancelPay', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-d
efault
"
>
取消订单
</a>
<a
href=
"{{URL('cancelPay', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-d
anger
"
>
取消订单
</a>
@endif
<!-- 预付款 管理员完成首款对账后改变'对账'按钮 -->
...
...
@@ -600,13 +600,13 @@
<a
class=
"btn btn-success self-check"
data-id=
"{{$order_info['order_id']}}"
>
内部订单审核
</a>
@endif
<!--
预售
订单审单 -->
@if (
$order_info['status'] == 1
&&
$order_info['sale_type'] == 2
&&
in_array('self_check_order', $userPerms))
<a
class=
"btn btn-
success
"
href=
"/change/{{$order_info['order_id']}}?tags=self"
>
人工审单
</a>
<!-- 订单审单 -->
@if (
in_array($order_info['status'], [1, 2, 3])
&&
in_array('self_check_order', $userPerms))
<a
class=
"btn btn-
info
"
href=
"/change/{{$order_info['order_id']}}?tags=self"
>
人工审单
</a>
@endif
@if (in_array($order_info['status'], [1, 2, 3, 4])
&&
!$extend
&&
in_array('self_order_cancel', $userPerms))
<a
class=
"btn btn-d
efault
self_cancel"
href=
"javascript:;"
data-id=
"{{$order_info['order_id']}}"
>
取消订单
</a>
<a
class=
"btn btn-d
anger
self_cancel"
href=
"javascript:;"
data-id=
"{{$order_info['order_id']}}"
>
取消订单
</a>
@endif
@if ($order_info['status'] == 2
&&
in_array('self_check_pay', $userPerms))
...
...
resources/views/selfOrder/content.blade.php
View file @
002cfa52
...
...
@@ -276,7 +276,7 @@
<div
class=
"btn-group btn-group-xs"
>
<a
class=
"btn btn-primary"
href=
"/details/{{$v['order_id']}}?tags=self"
target=
"_blank"
>
详情
</a>
@if (in_array('self_check_order', $userPerms)
&&
in_array($v['status'], [1, 2, 3])
&&
$v['sale_type'] == 2
)
@if (in_array('self_check_order', $userPerms)
&&
in_array($v['status'], [1, 2, 3]))
<a
class=
"btn btn-success"
href=
"/change/{{$v['order_id']}}?tags=self"
target=
"_blank"
>
人工审单
</a>
@endif
...
...
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