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
b8f56dbd
authored
Nov 28, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_iteration_20181127' into development
parents
5fe2b66f
eac51a4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
public/js/order.js
resources/views/detail/changeOrder.blade.php
public/js/order.js
View file @
b8f56dbd
...
@@ -1447,13 +1447,11 @@
...
@@ -1447,13 +1447,11 @@
// 弹出已调价的订单信息
// 弹出已调价的订单信息
$
(
'.checkAdjusted'
).
click
(
function
(){
$
(
'.checkAdjusted'
).
click
(
function
(){
var
adjusted_info
=
$
(
'.adjusted_order'
).
html
();
var
adjusted_info
=
$
(
'.adjusted_order'
).
html
();
var
layer_btn
;
var
order_id
=
$
(
'input[name=order_id]'
).
val
();
var
order_goods_type
=
$
(
'input[name=order_goods_type]'
).
val
();
if
(
is_manager
)
{
var
layer_btn
=
is_manager
?
[
'通过'
,
'驳回'
]
:
[];
layer_btn
=
[
'驳回'
,
'通过'
];
var
url
=
order_goods_type
==
1
?
'/details/'
+
order_id
:
'/details/'
+
order_id
+
'?tags=self'
;
}
else
{
layer_btn
=
[];
}
// 弹出提示
// 弹出提示
layer
.
open
({
layer
.
open
({
...
@@ -1463,15 +1461,15 @@
...
@@ -1463,15 +1461,15 @@
btn
:
layer_btn
,
btn
:
layer_btn
,
yes
:
function
(
index
,
layero
){
yes
:
function
(
index
,
layero
){
$
.
ajax
({
$
.
ajax
({
url
:
'/ajax
Rejected
'
,
url
:
'/ajax
SaveChange
'
,
type
:
'post'
,
type
:
'post'
,
data
:
$
(
'#adjustedOrderForm'
).
serialize
()
+
'&order_status=
1
'
,
data
:
$
(
'#adjustedOrderForm'
).
serialize
()
+
'&order_status=
2
'
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
if
(
resp
.
errcode
===
0
){
if
(
resp
.
errcode
===
0
){
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
setTimeout
(
function
(){
setTimeout
(
function
(){
location
.
reload
()
;
location
.
href
=
url
;
},
1000
);
},
1000
);
}
else
{
}
else
{
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
);
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
);
...
@@ -1485,15 +1483,16 @@
...
@@ -1485,15 +1483,16 @@
},
},
btn2
:
function
(
index
,
layero
){
btn2
:
function
(
index
,
layero
){
$
.
ajax
({
$
.
ajax
({
url
:
'/ajax
SaveChange
'
,
url
:
'/ajax
Rejected
'
,
type
:
'post'
,
type
:
'post'
,
data
:
$
(
'#adjustedOrderForm'
).
serialize
()
+
'&order_status=
2
'
,
data
:
$
(
'#adjustedOrderForm'
).
serialize
()
+
'&order_status=
1
'
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
if
(
resp
.
errcode
===
0
){
if
(
resp
.
errcode
===
0
){
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
setTimeout
(
function
(){
setTimeout
(
function
(){
location
.
reload
();
// location.reload();
location
.
href
=
url
;
},
1000
);
},
1000
);
}
else
{
}
else
{
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
);
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
);
...
...
resources/views/detail/changeOrder.blade.php
View file @
b8f56dbd
...
@@ -271,7 +271,7 @@
...
@@ -271,7 +271,7 @@
</table>
</table>
</div>
</div>
@if ($order_info['
status'] == 1
&&
$order_temp_info['status'] == 1)
@if ($order_info['
order_goods_type'] != 1
&&
in_array($order_info['status'], [1, 2])
&&
$order_temp_info['status'] == 1)
<a
class=
"btn btn-primary checkAdjusted"
>
查看调价信息
</a>
<a
class=
"btn btn-primary checkAdjusted"
>
查看调价信息
</a>
@else
@else
<a
class=
"btn btn-primary checkOrder"
>
提交
</a>
<a
class=
"btn btn-primary checkOrder"
>
提交
</a>
...
...
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